3c5c979c44a068b8c34cc3abebb82921484bd097
[gnulib.git] / ChangeLog
1 2008-04-20  Bruno Haible  <bruno@clisp.org>
2
3         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
4         take 2.
5         * lib/canonicalize.c (canonicalize_file_name): Elide if the
6         'canonicalize-lgpl' module is also used.
7         * lib/canonicalize-lgpl.c: Undo last change.
8         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
9
10 2008-04-20  Bruno Haible  <bruno@clisp.org>
11
12         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
13         config.h. Provide _mkdir based fallback for mingw.
14         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
15         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
16         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
17         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
18         rather than defining mkdir in config.h.
19         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
20         (gl_SYS_STAT_H_DEFAULTS): New macro.
21         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
22         HAVE_IO_H any more.
23         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
24         HAVE_DECL_MKDIR and HAVE_IO_H.
25
26 2008-04-20  Bruno Haible  <bruno@clisp.org>
27
28         * lib/isapipe.c: Port to native Windows platforms.
29
30 2008-04-20  Bruno Haible  <bruno@clisp.org>
31
32         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
33
34 2008-04-21  Eric Blake  <ebb9@byu.net>
35
36         Work around preprocessors that don't handle UINTMAX_MAX.
37         * lib/memchr2.c (memchr2): Avoid embedded #if.
38         Reported by Alain Guibert, fix suggested by Bruno Haible.
39
40 2008-04-21  Simon Josefsson  <simon@josefsson.org>
41
42         * doc/posix-functions/strftime.texi (strftime): Explain better
43         Windows incompatibility.  Suggested by Micah Cowan
44         <micah@cowan.name>.
45
46 2008-04-20  Bruno Haible  <bruno@clisp.org>
47
48         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
49         unistr/u8-mblen.
50
51 2008-04-20  Bruno Haible  <bruno@clisp.org>
52
53         Fix test failure on platforms with non-GNU iconv.
54         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
55         (U_TO_U8): Use it, rather than u16_to_u8.
56         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
57         units at the end of the input string.
58         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
59
60 2008-04-20  Bruno Haible  <bruno@clisp.org>
61
62         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
63         when the resulting length is 0.
64         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
65
66 2008-04-20  Bruno Haible  <bruno@clisp.org>
67
68         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
69         works.
70         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
71
72 2008-04-20  Bruno Haible  <bruno@clisp.org>
73
74         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
75         * modules/tsearch-tests (configure.ac): Test for initstate function.
76
77 2008-04-20  Bruno Haible  <bruno@clisp.org>
78
79         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
80         for nlink_t if missing.
81         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
82
83 2008-04-19  Bruno Haible  <bruno@clisp.org>
84
85         Work around snprintf bug on Linux libc5.
86         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
87         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
88         gl_SNPRINTF_SIZE1.
89         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
90         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
91         that test failed.
92         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
93         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
94         * modules/snprintf (Files): Add m4/printf.m4.
95         * modules/vsnprintf (Files): Likewise.
96         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
97         * doc/posix-functions/vsnprintf.texi: Likewise.
98
99 2008-04-19  Bruno Haible  <bruno@clisp.org>
100
101         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
102         from 0.0058 to less than 10^-7.
103
104 2008-04-19  Bruno Haible  <bruno@clisp.org>
105
106         Fix rounding when a precision is given.
107         * lib/vasnprintf.c (is_borderline): New function.
108         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
109         9...9x.
110         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
111         %e, %g.
112         * tests/test-vasprintf-posix.c (test_function): Likewise.
113         * tests/test-snprintf-posix.h (test_function): Likewise.
114         * tests/test-sprintf-posix.h (test_function): Likewise.
115         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
116         * tests/test-printf-posix.h (test_function): Likewise.
117         * tests/test-printf-posix.output: Update.
118         Reported by John Darrington <john@darrington.wattle.id.au> via
119         Ben Pfaff <blp@cs.stanford.edu>.
120
121 2008-04-18  Simon Josefsson  <simon@josefsson.org>
122
123         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
124         Suggested by Bruno Haible <bruno@clisp.org>.
125
126 2008-04-17  Bruno Haible  <bruno@clisp.org>
127
128         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
129         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
130         implementation.
131         Patch by Bruce Merry <bmerry@gmail.com>.
132
133 2008-04-17  Simon Josefsson  <simon@josefsson.org>
134
135         * doc/posix-functions/strftime.texi (strftime): Mention that %e
136         doesn't work under Windows.
137
138 2008-04-16  Bruno Haible  <bruno@clisp.org>
139
140         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
141         New macros.
142         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
143         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
144         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
145         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
146         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
147         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
148         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
149         macros.
150         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
151         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
152         Northern Sotho, Uighur.
153
154 2008-04-16  Bruno Haible  <bruno@clisp.org>
155
156         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
157         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
158         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
159         Reported by Daniel Bergström <daniel@octocode.com>.
160
161 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
162             Bruno Haible  <bruno@clisp.org>
163
164         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
165         function.
166         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
167         New functions, mostly extracted from gl_locale_name_default.
168         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
169
170 2008-04-16  Eric Blake  <ebb9@byu.net>
171
172         Adjust strtod detection to catch glibc 2.7 bug.
173         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
174         Reported by John Gatewood Ham.
175
176 2008-04-16  Bruno Haible  <bruno@clisp.org>
177
178         Add tentative support for Linux libc5.
179         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
180         * lib/fpurge.c (fpurge): Likewise.
181         * lib/freadable.c (freadable): Likewise.
182         * lib/freadahead.c (freadahead): Likewise.
183         * lib/freading.c (freading): Likewise.
184         * lib/freadptr.c (freadptr): Likewise.
185         * lib/freadseek.c (freadptrinc): Likewise.
186         * lib/fseeko.c (rpl_fseeko): Likewise.
187         * lib/fseterr.c (fseterr): Likewise.
188         * lib/fwritable.c (fwritable): Likewise.
189         * lib/fwriting.c (fwriting): Likewise.
190         Reported by Alain Guibert <alguibert+bts@free.fr>.
191
192 2008-04-15  Bruno Haible  <bruno@clisp.org>
193
194         * modules/mathl (configure.ac): Define module indicator.
195
196 2008-04-15  Bruno Haible  <bruno@clisp.org>
197
198         * lib/logl.c (logl): Remove unused variables.
199
200 2008-04-15  Bruno Haible  <bruno@clisp.org>
201
202         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
203         fails.
204
205 2008-04-15  Bruno Haible  <bruno@clisp.org>
206
207         * lib/trim.c (trim2): Fix argument of isspace() macro.
208
209 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
210
211         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
212         to 0.
213         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
214
215 2008-04-14  Bruno Haible  <bruno@clisp.org>
216
217         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
218         AC_LANG_PROGRAM argument.
219         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
220         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
221         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
222         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
223         * m4/math_h.m4 (gl_MATH_H): Likewise.
224         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
225         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
226         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
227         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
228         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
229         * m4/regex.m4 (gl_REGEX): Likewise.
230         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
231         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
232         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
233         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
234         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
235         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
236         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
237         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
238
239 2008-04-14  Jim Meyering  <meyering@redhat.com>
240
241         test-strtod: fix typos: s/abs/fabs/
242         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
243
244 2008-04-13  Bruno Haible  <bruno@clisp.org>
245
246         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
247         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
248         module is also used and while not building the reloc-wrapper.
249
250 2008-04-13  Bruno Haible  <bruno@clisp.org>
251
252         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
253
254 2008-04-13  Bruno Haible  <bruno@clisp.org>
255
256         Fix AIX compilation failure introduced on 2008-04-02.
257         * tests/test-frexp.c (exp): Undefine before redefining.
258         * tests/test-frexpl.c (exp): Likewise.
259
260 2008-04-13  Bruno Haible  <bruno@clisp.org>
261
262         Work around a HP-UX stdio bug.
263         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
264         * tests/test-ftello.c (main): Likewise.
265         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
266         * doc/posix-functions/ftello.texi: Likewise.
267
268 2008-04-13  Bruno Haible  <bruno@clisp.org>
269
270         Make test-signbit pass on HP-UX/hppa.
271         * tests/test-signbit.c (minus_zerol): New variable.
272         (test_signbitl): Use it.
273
274 2008-04-13  Bruno Haible  <bruno@clisp.org>
275
276         Make truncl work on OSF/1 4.0.
277         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
278         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
279         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
280         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
281         HAVE_DECL_TRUNCL.
282         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
283         HAVE_DECL_TRUNCL.
284         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
285
286 2008-04-13  Bruno Haible  <bruno@clisp.org>
287
288         * lib/unictype.h: Remove trailing comma from enumeration definitions.
289
290 2008-04-13  Bruno Haible  <bruno@clisp.org>
291
292         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
293         expression, so as to avoid HP-UX 11 cc compiler bug.
294
295 2008-04-13  Bruno Haible  <bruno@clisp.org>
296
297         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
298
299 2008-04-13  Bruno Haible  <bruno@clisp.org>
300
301         * lib/git-merge-changelog.c: Remove empty declaration outside of
302         functions.
303
304 2008-04-13  Bruno Haible  <bruno@clisp.org>
305
306         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
307
308 2008-04-13  Bruno Haible  <bruno@clisp.org>
309
310         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
311         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
312         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
313         also if it exists but lacks definitions of the SHUT_* macros.
314         * modules/sys_socket (Description): Update.
315         Reported by Elbert Pol <e.pol@chello.nl>.
316
317 2008-04-13  Bruno Haible  <bruno@clisp.org>
318
319         * lib/localcharset.c (OS2): Don't redefine if already defined.
320         Reported by Elbert Pol <e.pol@chello.nl>.
321
322 2008-04-13  Bruno Haible  <bruno@clisp.org>
323
324         * lib/binary-io.h [__EMX__]: Include <io.h>.
325         Reported by Elbert Pol <e.pol@chello.nl>.
326
327 2008-04-12  Bruno Haible  <bruno@clisp.org>
328
329         * lib/fpucw.h: Enable the definitions also for x86_64.
330         Needed for NetBSD/x86_64.
331         Reported by Thomas Klausner <tk@giga.or.at>.
332
333 2008-04-12  Bruno Haible  <bruno@clisp.org>
334
335         * tests/test-strtod.c: Include isnand.h.
336         (main): Use isnand instead of isnan.
337         Reported by Jim Meyering.
338
339 2008-04-12  Bruno Haible  <bruno@clisp.org>
340
341         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
342         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
343
344 2008-04-12  Jim Meyering  <meyering@redhat.com>
345
346         * m4/math_h.m4 (gl_MATH_H): Fix typos.
347
348 2008-04-12  Bruno Haible  <bruno@clisp.org>
349
350         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
351         Reported by Elbert Pol <e.pol@chello.nl>.
352
353 2008-04-12  Eric Blake  <ebb9@byu.net>
354
355         Work around Solaris 10 math.h bug.
356         * m4/math_h.m4 (gl_MATH_H): Check for bug.
357         (gl_MATH_H_DEFAULTS): Set up default.
358         * modules/math (Makefile.am): Replace new indicators.
359         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
360         * tests/test-math.c (main): Test this.
361         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
362         * doc/posix-headers/math.texi (math.h): Mention bug.
363         Reported by Nelson H. F. Beebe and Jim Meyering.
364
365 2008-04-11  Bruno Haible  <bruno@clisp.org>
366
367         Adapt to future versions of Apple GCC.
368         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
369         Reported by Peter O'Gorman <peter@pogma.com>.
370
371 2008-04-11  Bruno Haible  <bruno@clisp.org>
372
373         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
374
375 2008-04-11  Bruno Haible  <bruno@clisp.org>
376
377         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
378
379         * modules/getaddrinfo-tests (Makefile.am): Define
380         test_getaddrinfo_LDADD.
381
382 2008-04-11  Bruno Haible  <bruno@clisp.org>
383
384         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
385         (init): Fix syntax error.
386         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
387         is declared.
388
389 2008-04-11  Bruno Haible  <bruno@clisp.org>
390
391         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
392         * modules/glob (Depends-on): Add stdbool.
393
394 2008-04-11  Bruno Haible  <bruno@clisp.org>
395
396         * lib/trim.c: Include <string.h>.
397
398 2008-04-11  Eric Blake  <ebb9@byu.net>
399
400         Avoid compile failure on OS/2.
401         * lib/regex_internal.h (internal_function): Disable optimization
402         on OS/2 (__EMX__), where it caused compiler error.
403         Reported by Elbert Pol.
404
405 2008-04-11  Bruno Haible  <bruno@clisp.org>
406
407         Flush the standard error stream before aborting. Needed on mingw.
408         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
409         * tests/test-array_list.c (ASSERT): Likewise.
410         * tests/test-array_oset.c (ASSERT): Likewise.
411         * tests/test-avltree_list.c (ASSERT): Likewise.
412         * tests/test-avltree_oset.c (ASSERT): Likewise.
413         * tests/test-avltreehash_list.c (ASSERT): Likewise.
414         * tests/test-binary-io.c (ASSERT): Likewise.
415         * tests/test-byteswap.c (ASSERT): Likewise.
416         * tests/test-c-ctype.c (ASSERT): Likewise.
417         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
418         * tests/test-c-strcasestr.c (ASSERT): Likewise.
419         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
420         * tests/test-c-strstr.c (ASSERT): Likewise.
421         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
422         * tests/test-canonicalize.c (ASSERT): Likewise.
423         * tests/test-carray_list.c (ASSERT): Likewise.
424         * tests/test-ceilf1.c (ASSERT): Likewise.
425         * tests/test-ceilf2.c (ASSERT): Likewise.
426         * tests/test-ceill.c (ASSERT): Likewise.
427         * tests/test-count-one-bits.c (ASSERT): Likewise.
428         * tests/test-fbufmode.c (ASSERT): Likewise.
429         * tests/test-fflush2.c (ASSERT): Likewise.
430         * tests/test-floorf1.c (ASSERT): Likewise.
431         * tests/test-floorf2.c (ASSERT): Likewise.
432         * tests/test-floorl.c (ASSERT): Likewise.
433         * tests/test-fopen.c (ASSERT): Likewise.
434         * tests/test-fpending.c (ASSERT): Likewise.
435         * tests/test-fprintf-posix.c (ASSERT): Likewise.
436         * tests/test-fpurge.c (ASSERT): Likewise.
437         * tests/test-freadable.c (ASSERT): Likewise.
438         * tests/test-freadahead.c (ASSERT): Likewise.
439         * tests/test-freading.c (ASSERT): Likewise.
440         * tests/test-freadptr.c (ASSERT): Likewise.
441         * tests/test-freadptr2.c (ASSERT): Likewise.
442         * tests/test-freadseek.c (ASSERT): Likewise.
443         * tests/test-freopen.c (ASSERT): Likewise.
444         * tests/test-frexp.c (ASSERT): Likewise.
445         * tests/test-frexpl.c (ASSERT): Likewise.
446         * tests/test-fseek.c (ASSERT): Likewise.
447         * tests/test-fseeko.c (ASSERT): Likewise.
448         * tests/test-fstrcmp.c (ASSERT): Likewise.
449         * tests/test-ftell.c (ASSERT): Likewise.
450         * tests/test-ftello.c (ASSERT): Likewise.
451         * tests/test-func.c (ASSERT): Likewise.
452         * tests/test-fwritable.c (ASSERT): Likewise.
453         * tests/test-fwriting.c (ASSERT): Likewise.
454         * tests/test-getdelim.c (ASSERT): Likewise.
455         * tests/test-getline.c (ASSERT): Likewise.
456         * tests/test-i-ring.c (ASSERT): Likewise.
457         * tests/test-iconv-utf.c (ASSERT): Likewise.
458         * tests/test-iconv.c (ASSERT): Likewise.
459         * tests/test-isfinite.c (ASSERT): Likewise.
460         * tests/test-isnand.c (ASSERT): Likewise.
461         * tests/test-isnanf.c (ASSERT): Likewise.
462         * tests/test-isnanl.h (ASSERT): Likewise.
463         * tests/test-ldexpl.c (ASSERT): Likewise.
464         * tests/test-linked_list.c (ASSERT): Likewise.
465         * tests/test-linkedhash_list.c (ASSERT): Likewise.
466         * tests/test-localename.c (ASSERT): Likewise.
467         * tests/test-lseek.c (ASSERT): Likewise.
468         * tests/test-mbscasecmp.c (ASSERT): Likewise.
469         * tests/test-mbscasestr1.c (ASSERT): Likewise.
470         * tests/test-mbscasestr2.c (ASSERT): Likewise.
471         * tests/test-mbscasestr3.c (ASSERT): Likewise.
472         * tests/test-mbscasestr4.c (ASSERT): Likewise.
473         * tests/test-mbschr.c (ASSERT): Likewise.
474         * tests/test-mbscspn.c (ASSERT): Likewise.
475         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
476         * tests/test-mbspbrk.c (ASSERT): Likewise.
477         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
478         * tests/test-mbsrchr.c (ASSERT): Likewise.
479         * tests/test-mbsspn.c (ASSERT): Likewise.
480         * tests/test-mbsstr1.c (ASSERT): Likewise.
481         * tests/test-mbsstr2.c (ASSERT): Likewise.
482         * tests/test-mbsstr3.c (ASSERT): Likewise.
483         * tests/test-memchr2.c (ASSERT): Likewise.
484         * tests/test-memmem.c (ASSERT): Likewise.
485         * tests/test-open.c (ASSERT): Likewise.
486         * tests/test-printf-frexp.c (ASSERT): Likewise.
487         * tests/test-printf-frexpl.c (ASSERT): Likewise.
488         * tests/test-printf-posix.c (ASSERT): Likewise.
489         * tests/test-quotearg.c (ASSERT): Likewise.
490         * tests/test-rbtree_list.c (ASSERT): Likewise.
491         * tests/test-rbtree_oset.c (ASSERT): Likewise.
492         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
493         * tests/test-round1.c (ASSERT): Likewise.
494         * tests/test-roundf1.c (ASSERT): Likewise.
495         * tests/test-roundl.c (ASSERT): Likewise.
496         * tests/test-signbit.c (ASSERT): Likewise.
497         * tests/test-sleep.c (ASSERT): Likewise.
498         * tests/test-snprintf-posix.c (ASSERT): Likewise.
499         * tests/test-snprintf.c (ASSERT): Likewise.
500         * tests/test-sprintf-posix.c (ASSERT): Likewise.
501         * tests/test-stat-time.c (ASSERT): Likewise.
502         * tests/test-strcasestr.c (ASSERT): Likewise.
503         * tests/test-strerror.c (ASSERT): Likewise.
504         * tests/test-striconv.c (ASSERT): Likewise.
505         * tests/test-striconveh.c (ASSERT): Likewise.
506         * tests/test-striconveha.c (ASSERT): Likewise.
507         * tests/test-strsignal.c (ASSERT): Likewise.
508         * tests/test-strstr.c (ASSERT): Likewise.
509         * tests/test-strtod.c (ASSERT): Likewise.
510         * tests/test-trunc1.c (ASSERT): Likewise.
511         * tests/test-trunc2.c (ASSERT): Likewise.
512         * tests/test-truncf1.c (ASSERT): Likewise.
513         * tests/test-truncf2.c (ASSERT): Likewise.
514         * tests/test-truncl.c (ASSERT): Likewise.
515         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
516         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
517         * tests/test-vasnprintf.c (ASSERT): Likewise.
518         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
519         * tests/test-vasprintf.c (ASSERT): Likewise.
520         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
521         * tests/test-vprintf-posix.c (ASSERT): Likewise.
522         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
523         * tests/test-vsnprintf.c (ASSERT): Likewise.
524         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
525         * tests/test-wcwidth.c (ASSERT): Likewise.
526         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
527         * tests/test-xprintf-posix.c (ASSERT): Likewise.
528         * tests/test-xvasprintf.c (ASSERT): Likewise.
529         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
530         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
531         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
532         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
533         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
534         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
535         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
536         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
537         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
538         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
539         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
540         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
541         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
542         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
543         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
544         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
545         * tests/unictype/test-block_list.c (ASSERT): Likewise.
546         * tests/unictype/test-block_of.c (ASSERT): Likewise.
547         * tests/unictype/test-block_test.c (ASSERT): Likewise.
548         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
549         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
550         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
551         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
552         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
553         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
554         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
555         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
556         * tests/unictype/test-combining.c (ASSERT): Likewise.
557         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
558         * tests/unictype/test-digit.c (ASSERT): Likewise.
559         * tests/unictype/test-mirror.c (ASSERT): Likewise.
560         * tests/unictype/test-numeric.c (ASSERT): Likewise.
561         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
562         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
563         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
564         * tests/unictype/test-scripts.c (ASSERT): Likewise.
565         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
566         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
567         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
568         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
569         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
570         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
571         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
572         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
573         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
574         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
575         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
576         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
577         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
578         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
579         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
580         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
581         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
582         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
583         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
584         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
585         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
586         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
587         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
588         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
589         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
590         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
591         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
592         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
593         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
594         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
595         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
596         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
597         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
598         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
599         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
600         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
601         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
602         Reported by Eric Blake.
603
604 2008-04-11  Bruno Haible  <bruno@clisp.org>
605
606         * lib/wchar.in.h: Tweak comment.
607
608 2008-04-11  Bruno Haible  <bruno@clisp.org>
609
610         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
611         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
612         gl_COMMON.
613         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
614
615 2008-04-11  Bruno Haible  <bruno@clisp.org>
616
617         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
618
619 2008-04-11  Simon Josefsson  <simon@josefsson.org>
620
621         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
622         of attempting to use non-existing /dev/*random.  Based on patch
623         from Adam Strzelecki <ono@java.pl> in
624         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
625
626 2008-04-08  Bruno Haible  <bruno@clisp.org>
627
628         Add tentative support for emx+gcc.
629         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
630         * lib/fpurge.c (fpurge): Likewise.
631         * lib/freadable.c (freadable): Likewise.
632         * lib/freadahead.c (freadahead): Likewise.
633         * lib/freading.c (freading): Likewise.
634         * lib/freadptr.c (freadptr): Likewise.
635         * lib/freadseek.c (freadptrinc): Likewise.
636         * lib/fseeko.c (rpl_fseeko): Likewise.
637         * lib/fseterr.c (fseterr): Likewise.
638         * lib/fwritable.c (fwritable): Likewise.
639         * lib/fwriting.c (fwriting): Likewise.
640         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
641
642 2008-04-09  Eric Blake  <ebb9@byu.net>
643
644         Avoid some autoconf warnings.
645         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
646         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
647         * m4/afs.m4 (gl_AFS): Likewise.
648         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
649         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
650         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
651         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
652         (gl_INTEGER_TYPE_SUFFIX): Likewise.
653         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
654         (AC_CHECK_DECLS_ONCE): Likewise.
655         Rename file...
656         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
657         gnulib-tool requires autoconf 2.59 or better.
658         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
659
660 2008-04-08  Eric Blake  <ebb9@byu.net>
661
662         Use 'git describe --match' if present (added in git 1.5.5).
663         * build-aux/git-version-gen: Limit result to tags that match 'v*'
664         if possible.
665
666 2008-04-08  Bruno Haible  <bruno@clisp.org>
667
668         Add tentative support for OpenServer.
669         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
670         _ptr, _cnt.
671         * lib/fpurge.c (fpurge): Likewise.
672         * lib/freadable.c (freadable): Likewise.
673         * lib/freadahead.c (freadahead): Likewise.
674         * lib/freading.c (freading): Likewise.
675         * lib/freadptr.c (freadptr): Likewise.
676         * lib/freadseek.c (freadptrinc): Likewise.
677         * lib/fseeko.c (rpl_fseeko): Likewise.
678         * lib/fseterr.c (fseterr): Likewise.
679         * lib/fwritable.c (fwritable): Likewise.
680         * lib/fwriting.c (fwriting): Likewise.
681         Reported by Roger Cornelius <rac@tenzing.org> and
682         Brian K. White <brian@aljex.com>.
683
684 2008-04-06  Jim Meyering  <meyering@redhat.com>
685
686         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
687
688 2008-04-06  Bruno Haible  <bruno@clisp.org>
689
690         Avoid possible error with non-ASCII bytes in UTF-8 locales.
691         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
692         * tests/test-printf-posix.sh: Likewise.
693         * tests/test-vfprintf-posix.sh: Likewise.
694         * tests/test-vprintf-posix.sh: Likewise.
695         * tests/test-xprintf-posix.sh: Likewise.
696
697 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
698
699         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
700         hide error from 'ls', needed on OS/2.
701         Report by Elbert Pol <elbert.pol@gmail.com>.
702
703 2008-04-04  Eric Blake  <ebb9@byu.net>
704
705         Make test-fseeko.c failures meaningful.
706         * tests/test-fseeko.c: Print line number on failure.
707         * tests/test-fseek.c: Likewise.
708         Reported by Nelson H. F. Beebe.
709
710         Improve strtod bug detection check.
711         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
712         required for Solaris 10.
713         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
714
715 2008-04-04  Bruno Haible  <bruno@clisp.org>
716
717         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
718         by m4/setenv.m4.
719
720 2008-04-03  Eric Blake  <ebb9@byu.net>
721
722         Ensure sane .version contents.
723         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
724         version string.
725         * build-aux/git-version-gen: Improve documentation.
726
727         Make GNU make output nicer.
728         * top/GNUmakefile [!_have-Makefile]: Add dependency on
729         MAKECMDGOALS to enforce message for all command line targets.  Set
730         srcdir for use in maint.mk.
731
732         Another maintainer tweak.
733         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
734         a target that regenerates version.
735
736 2008-04-03  Jim Meyering  <meyering@redhat.com>
737
738         vc-list-files: don't cause coreutils "make po-check" failure
739         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
740
741 2008-04-03  Eric Blake  <ebb9@byu.net>
742
743         Allow VPATH usage of vc-list-files.
744         * build-aux/vc-list-files (scriptversion): Add timestamp.
745         (options): Add --help, --version, -C.
746         (CVS): Support installed cvsu.
747
748 2008-04-02  Bruno Haible  <bruno@clisp.org>
749
750         Avoid some "statement with no effect" warnings from gcc.
751         * tests/test-wctype.c (main): Explicitly ignore unused values.
752         Reported by Jim Meyering.
753
754 2008-04-02  Jim Meyering  <meyering@redhat.com>
755
756         Avoid some warnings from "gcc -Wshadow".
757         * tests/test-frexp.c (exp): Define to a different identifier.
758         * tests/test-frexpl.c (exp): Likewise.
759
760 2008-04-03  Jim Meyering  <meyering@redhat.com>
761
762         bootstrap: remove dangling *.[ch] symlinks from lib
763         * build-aux/bootstrap [dangling symlink removal]: Move find's
764         -depth option to precede all others, to avoid a warning.
765         Remove *.[ch] files too, and from "$source_base" (usually lib/).
766
767 2008-04-02  Bruno Haible  <bruno@clisp.org>
768
769         Avoid some warnings from "gcc -Wshadow".
770         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
771         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
772         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
773         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
774         Reported by Jim Meyering.
775
776 2008-04-01  Bruno Haible  <bruno@clisp.org>
777
778         Fix test to work on IRIX 6.5 with cc.
779         * tests/test-math.c (numeric_equal): New function.
780         (main): Use it.
781
782 2008-04-01  Bruno Haible  <bruno@clisp.org>
783
784         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
785
786 2008-04-01  Bruno Haible  <bruno@clisp.org>
787
788         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
789         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
790         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
791         (Depends-on): Remove math.
792
793         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
794         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
795         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
796         (Depends-on): Remove math.
797
798         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
799         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
800         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
801         (Depends-on): Remove math.
802         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
803         (Depends-on): Remove math.
804
805         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
806         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
807         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
808         (Depends-on): Remove math.
809         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
810         (Depends-on): Remove math.
811
812         * tests/test-round1.c: Include nan.h.
813         (main): Use NaNd instead of NAN.
814         * modules/round-tests (Files): Add tests/nan.h.
815
816         * tests/test-trunc1.c: Include nan.h.
817         (main): Use NaNd instead of NAN.
818         * modules/trunc-tests (Files): Add tests/nan.h.
819
820         * tests/test-roundf1.c: Include nan.h.
821         (main): Use NaNf instead of NAN.
822         * modules/roundf-tests (Files): Add tests/nan.h.
823
824         * tests/test-truncf1.c: Include nan.h.
825         (main): Use NaNf instead of NAN.
826         * modules/truncf-tests (Files): Add tests/nan.h.
827
828         * tests/test-ceilf1.c: Include nan.h.
829         (main): Use NaNf instead of NAN.
830         * modules/ceilf-tests (Files): Add tests/nan.h.
831
832         * tests/test-floorf1.c: Include nan.h.
833         (main): Use NaNf instead of NAN.
834         * modules/floorf-tests (Files): Add tests/nan.h.
835
836         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
837         (main): Use NaNf instead of NAN.
838         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
839
840         * tests/test-isnand.c: Include nan.h instead of <math.h>.
841         (main): Use NaNd instead of NAN.
842         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
843
844         * tests/test-frexp.c: Include nan.h.
845         (main): Use NaNd instead of NAN.
846         * modules/frexp-tests (Files): Add tests/nan.h.
847
848         * lib/isnan.c: Don't include <math.h>.
849         (FUNC): Don't use NAN macro.
850         * modules/isnand-nolibm (Depends-on): Remove math.
851         * modules/isnanf-nolibm (Depends-on): Remove math.
852         * modules/isnanl (Depends-on): Remove math.
853         * modules/isnanl-nolibm (Depends-on): Remove math.
854
855         * tests/nan.h: New file.
856
857 2008-04-01  Eric Blake  <ebb9@byu.net>
858
859         Fix typos.
860         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
861         values to be the right type.
862
863         For now, cater to gnulib strtod inaccuracies.
864         * tests/test-strtod.c (main): Allow 1-ulp error on expected
865         fractional results.  While not as nice from a QoI perspective, it
866         is a quicker patch than correctly implementing decimal to binary
867         rounding.
868
869 2008-03-31  Eric Blake  <ebb9@byu.net>
870
871         Guarantee a definition of NAN.
872         * lib/math.in.h (NAN): Define if missing.
873         * tests/test-math.c (main): Test it.
874         * doc/posix-headers/math.texi (math.h): Document this.
875         * lib/isnan.c (rpl_isnand): Use it.
876         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
877         * tests/test-floorf1.c (NaN): Likewise.
878         * tests/test-frexp.c (NaN): Likewise.
879         * tests/test-isnand.c (NaN): Likewise.
880         * tests/test-isnanf.c (NaN): Likewise.
881         * tests/test-round1.c (NaN): Likewise.
882         * tests/test-roundf1.c (NaN): Likewise.
883         * tests/test-snprintf-posix.h (NaN): Likewise.
884         * tests/test-sprintf-posix.h (NaN): Likewise.
885         * tests/test-trunc1.c (NaN): Likewise.
886         * tests/test-truncf1.c (NaN): Likewise.
887         * tests/test-vasnprintf-posix.c (NaN): Likewise.
888         * tests/test-vasprintf-posix.c (NaN): Likewise.
889         * modules/isnand-nolibm (Depends-on): Add math.
890         * modules/isnanf-nolibm (Depends-on): Likewise.
891         * modules/isnanl (Depends-on): Likewise.
892         * modules/isnanl-nolibm (Depends-on): Likewise.
893         * modules/snprintf-posix-tests (Depends-on): Likewise.
894         * modules/sprintf-posix-tests (Depends-on): Likewise.
895         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
896         * modules/vsprintf-posix-tests (Depends-on): Likewise.
897         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
898         * modules/vasprintf-posix-tests (Depends-on): Likewise.
899
900 2008-03-31  Bruno Haible  <bruno@clisp.org>
901
902         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
903         * doc/posix-functions/strtod.texi: Likewise.
904
905 2008-03-31  Bruno Haible  <bruno@clisp.org>
906
907         * tests/test-strtod.c (main): Don't use C99 syntax.
908
909 2008-03-31  Bruno Haible  <bruno@clisp.org>
910
911         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
912         Reported by Eric Blake.
913
914 2008-03-31  Jim Meyering  <meyering@redhat.com>
915
916         Don't compare actual signbit return values.
917         * tests/test-strtod.c (main): Rather, compare only their
918         zero/non-zero nature.
919
920 2008-03-31  Eric Blake  <ebb9@byu.net>
921
922         More strtod documentation.
923         * doc/posix-functions/strtod.texi (strtod): Interpret more test
924         failures as distinct bugs.
925
926 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
927
928         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
929         Problem reported by Erik Benada in
930         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
931
932 2008-03-30  Bruno Haible  <bruno@clisp.org>
933
934         * tests/test-strtod.c: Add comments about which assertion fails on which
935         platform.
936         * doc/posix-functions/strtod.texi: Add info about many more platforms.
937
938 2008-03-30  Eric Blake  <ebb9@byu.net>
939
940         Test signbit behavior on zeros.
941         * tests/test-signbit.c (test_signbitf): Add tests for zero.
942         (test_signbitd, test_signbitl): Likewise.
943
944         More strtod touchups.
945         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
946         sign of negative underflow, for now.  Use .5, not .1.
947         * doc/posix-functions/strtod.texi (strtod): Mention these
948         limitations.
949         Reported by Jim Meyering.
950
951 2008-03-30  Bruno Haible  <bruno@clisp.org>
952
953         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
954         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
955
956 2008-03-30  Bruno Haible  <bruno@clisp.org>
957
958         Avoid failure when attempting to return empty iconv results on some
959         platforms.
960         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
961         allocation, don't report ENOMEM when the resulting string is empty.
962
963 2008-03-30  Bruno Haible  <bruno@clisp.org>
964
965         Fix buffer overrun.
966         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
967         Don't consider the width for tmp_length. Check count against tmp_length
968         before doing the padding. Ensure enough allocation during padding.
969
970 2008-03-30  Eric Blake  <ebb9@byu.net>
971
972         strtod touchups.
973         * lib/strtod.c (strtod): Avoid compiler warnings.
974         Reported by Jim Meyering.
975
976 2008-03-30  Bruno Haible  <bruno@clisp.org>
977
978         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
979         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
980         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
981         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
982         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
983         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
984         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
985         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
986
987         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
988         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
989         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
990         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
991         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
992         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
993         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
994         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
995
996         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
997         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
998         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
999         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
1000         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
1001         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
1002         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
1003         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
1004
1005         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
1006         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
1007
1008         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
1009         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
1010
1011         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
1012         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
1013
1014         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
1015         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
1016         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
1017
1018         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
1019         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
1020         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
1021
1022         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
1023         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
1024         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
1025
1026         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
1027         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
1028         * modules/vasprintf (Depends-on): Add EOVERFLOW.
1029
1030         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
1031         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
1032         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
1033         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
1034         (Depends-on): Add EOVERFLOW.
1035         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
1036         (Depends-on): Add EOVERFLOW.
1037         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
1038         (Depends-on): Add EOVERFLOW.
1039         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
1040         (Depends-on): Add EOVERFLOW.
1041         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
1042         (Depends-on): Add EOVERFLOW.
1043         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
1044         (Depends-on): Add EOVERFLOW.
1045         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
1046         (Depends-on): Add EOVERFLOW.
1047         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
1048         (Depends-on): Add EOVERFLOW.
1049
1050         * lib/sprintf.c (EOVERFLOW): Remove fallback.
1051         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
1052         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
1053
1054         * lib/snprintf.c (EOVERFLOW): Remove fallback.
1055         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
1056         * modules/snprintf (Depends-on): Add EOVERFLOW.
1057
1058         * lib/poll.c (EOVERFLOW): Remove fallback.
1059         * modules/poll (Depends-on): Add EOVERFLOW.
1060
1061         * lib/getugroups.c (EOVERFLOW): Remove fallback.
1062         * modules/getugroups (Depends-on): Add EOVERFLOW.
1063
1064         * lib/getdelim.c (EOVERFLOW): Remove fallback.
1065         * modules/getdelim (Depends-on): Add EOVERFLOW.
1066
1067         * lib/ftell.c (EOVERFLOW): Remove fallback.
1068         * modules/ftell (Depends-on): Add EOVERFLOW.
1069
1070         * lib/fprintf.c (EOVERFLOW): Remove fallback.
1071         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
1072         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
1073
1074         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
1075
1076         * modules/EOVERFLOW-tests: New file.
1077         * tests/test-EOVERFLOW.c: New file.
1078
1079         * modules/EOVERFLOW: New file.
1080         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
1081
1082 2008-03-30  Bruno Haible  <bruno@clisp.org>
1083
1084         Fix bug introduced on 2007-06-10.
1085         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
1086         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
1087
1088 2008-03-30  Bruno Haible  <bruno@clisp.org>
1089
1090         Improve freadseek's efficiency after ungetc.
1091         * lib/freadseek.c: Include freadahead.h.
1092         (freadptrinc): New function, extracted from freadseek.
1093         (freadseek): Use it in a loop. Use freadahead to determine the number
1094         of loop iterations.
1095         * modules/freadseek (Depends-on): Add freadahead.
1096         (configure.ac): Require AC_C_INLINE.
1097
1098 2008-03-30  Bruno Haible  <bruno@clisp.org>
1099
1100         * lib/freadseek.c (freadseek): Don't ignore the return value of
1101         freadptr.
1102
1103 2008-03-29  Eric Blake  <ebb9@byu.net>
1104
1105         Add hex float support.
1106         * modules/strtod (Depends-on): Add c-ctype.
1107         (Link): Mention POW_LIB.
1108         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
1109         whitespace between 'e' and exponent.
1110         * tests/test-strtod.c (main): Enable hex float tests.
1111         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
1112         now provides.
1113
1114         Document various strtod bugs, with some fixes.
1115         * doc/posix-functions/strtod.texi (strtod): Document bugs with
1116         "-0x", "inf", "nan", and hex constants.
1117         * doc/posix-functions/atof.texi (atof): Likewise.
1118         * modules/stdlib (Makefile.am): Support strtod.
1119         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
1120         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
1121         detect additional strtod bugs.
1122         * lib/stdlib.in.h (rpl_strtod): Add declarations.
1123         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
1124         bool where appropriate.  Parse 'inf' and 'nan'.
1125         * tests/test-strtod.c: New file.
1126         * modules/strtod (Depends-on): Add stdbool, stdlib.
1127         (configure.ac): Turn on module indicator.
1128         * modules/strtod-tests: New module.
1129
1130 2008-03-29  Eric Blake  <ebb9@byu.net>
1131
1132         Fix ftell on mingw.
1133         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
1134         * modules/ftell-tests (Depends-on): Add binary-io.
1135         * modules/ftello-tests (Depends-on): Likewise.
1136         * tests/test-ftell.c (main): Enhance test to cover behavior after
1137         ungetc.  Enforce binary mode.
1138         * tests/test-ftello.c (main): Likewise.
1139
1140         Pass test-freadseek on cygwin.
1141         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
1142         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
1143         ungetc buffer.
1144
1145         * tests/test-fflush2.c (main): Fix typo.
1146
1147 2008-03-29  Bruno Haible  <bruno@clisp.org>
1148
1149         * tests/test-fflush2.c (main): Temporarily disable the contents of
1150         this test.
1151         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
1152         Reported by Eric Blake.
1153
1154 2008-03-28  Simon Josefsson  <simon@josefsson.org>
1155
1156         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
1157         (GC_SHA224_DIGEST_SIZE): Add.
1158
1159         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
1160         (gc_hash_digest_length): Likewise.
1161         (gc_hash_buffer): Likewise.
1162
1163 2008-03-25  Bruno Haible  <bruno@clisp.org>
1164
1165         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
1166         detail which gettext release to use.
1167         Reported by Simon Josefsson.
1168
1169 2008-03-26  Jim Meyering  <meyering@redhat.com>
1170
1171         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
1172         * modules/gnumakefile (clean-GNUmakefile): Also, use
1173         test ... && ... || : syntax rather than if-then ... fi.
1174
1175         gnumakefile: Don't double-quote-expand $(VPATH) value.
1176         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
1177
1178 2008-03-24  Eric Blake  <ebb9@byu.net>
1179
1180         Alter GNUmakefile to install into top directory.
1181         * modules/maintainer-makefile: Split, and add dependency...
1182         * modules/gnumakefile: to this new module.
1183         * build-aux/GNUmakefile: Move...
1184         * top/GNUmakefile: ...here.
1185         * build-aux/maint.mk: Move...
1186         * top/maint.mk: ...here.
1187         * MODULES.html.sh (Support for maintaining...): Document new
1188         module.
1189
1190 2008-03-23  Bruno Haible  <bruno@clisp.org>
1191
1192         * gnulib-tool: New options --vc-files, --no-vc-files.
1193         (func_usage): Document them.
1194         (vc_files): New variable.
1195         (func_import): Consider vc_files.
1196         (func_create_testdir): Set vc_files to empty.
1197         Suggested by Jim Meyering and Karl Berry.
1198
1199 2008-03-23  Bruno Haible  <bruno@clisp.org>
1200
1201         Fix regex compilation error on HP-UX 11.
1202         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
1203         * modules/regex (Files): Add m4/mbstate_t.m4.
1204         Reported by Ton Voon <ton.voon@altinity.com>.
1205
1206 2008-03-23  Bruno Haible  <bruno@clisp.org>
1207
1208         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
1209
1210 2008-03-23  Eric Blake  <ebb9@byu.net>
1211             Bruno Haible  <bruno@clisp.org>
1212
1213         Install files from top/ in the destination directory.
1214         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
1215         augmentation also for the files from top/.
1216         (func_import, func_create_testdir): Rewrite file names:
1217         top/filename -> filename.
1218
1219 2008-03-23  Bruno Haible  <bruno@clisp.org>
1220
1221         Tweak "gnulib --version" output.
1222         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
1223
1224 2008-03-23  Bruno Haible  <bruno@clisp.org>
1225
1226         Tweak "gnulib --version" output.
1227         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
1228         rather than contents of ChangeLog, when possible.
1229
1230 2008-03-21  Eric Blake  <ebb9@byu.net>
1231
1232         More --version tweaks.
1233         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
1234         date of last ChangeLog entry.
1235
1236 2008-03-21  Jim Meyering  <meyering@redhat.com>
1237
1238         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
1239
1240 2008-03-20  Eric Blake  <ebb9@byu.net>
1241
1242         VPATH fix.
1243         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
1244
1245 2008-03-20  Simon Josefsson  <simon@josefsson.org>
1246
1247         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
1248         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
1249
1250 2008-03-20  Eric Blake  <ebb9@byu.net>
1251
1252         Sync GNUmakefile with coreutils.
1253         * build-aux/GNUmakefile (have-Makefile): Rename...
1254         (_have-Makefile): ...to this, for namespace consideration.
1255         (GNUmakefile.cfg): Include, if present.
1256         (_autoreconf): Define a default.
1257         (_is-dist-target): New rule for rebuilds to pick up intra-release
1258         version.
1259         (maint-cfg.mk): Rename...
1260         (cfg.mk): ...to this.
1261
1262 2008-03-18  Jim Meyering  <meyering@redhat.com>
1263
1264         New script and module: mktempd
1265         * MODULES.html.sh (maint+release support): Add mktempd.
1266         * build-aux/mktempd: New file.
1267         * modules/mktempd: New file.
1268
1269 2008-03-15  Jim Meyering  <meyering@redhat.com>
1270
1271         Undo last change.
1272         * lib/sha1.c, lib/md5.c: 63 != ~63.
1273         Reported by Andreas Schwab.
1274
1275         sha1.c, md5.c: Hoist a redundant expression.
1276         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
1277         "ctx->buflen" only once, before calling *_process_block.
1278         * lib/md5.c (md5_process_bytes): Likewise.
1279
1280 2008-03-14  Eric Blake  <ebb9@byu.net>
1281
1282         Bump copyright year in files generated by gnulib-tool.
1283         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
1284         gnulib-tool, rather than hard-coding it.
1285
1286         Fix 'gnulib-tool --version' output to work with git.
1287         * gnulib-tool (func_gnulib_dir): New function, extracted from...
1288         (startup): ...here.
1289         (func_version): Use it to invoke git-version-gen, rather than
1290         relying on CVS keyword expansion.  Modernize wording.
1291         (cvsdatestamp, last_checkin_date, version): Kill unused
1292         variables.
1293
1294 2008-03-12  Jim Meyering  <meyering@redhat.com>
1295
1296         Recognize optional cast of the argument to free.
1297         * build-aux/useless-if-before-free: Update regexps.
1298
1299         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
1300
1301 2008-03-11  Bruno Haible  <bruno@clisp.org>
1302
1303         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
1304         by a single package.
1305         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
1306         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
1307         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
1308         Reported by Sam Steingold <sds@gnu.org>.
1309
1310 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
1311
1312         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
1313         repositories.
1314
1315 2008-03-11  Bruno Haible  <bruno@clisp.org>
1316
1317         Avoid conflicts between local macro definitions.
1318         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
1319         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
1320
1321 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
1322             Bruno Haible  <bruno@clisp.org>
1323
1324         Make va_copy work with some version of xlc on AIX 5.1.
1325         * lib/stdarg.in.h: New file.
1326         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
1327         On AIX, use a <stdarg.h> file substitute.
1328         * modules/stdarg (Files): Add lib/stdarg.in.h.
1329         (Depends-on): Add include_next.
1330         (Makefile.am): Build a stdarg.h substitute if requested.
1331         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
1332
1333 2008-03-10  Bruno Haible  <bruno@clisp.org>
1334
1335         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
1336         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
1337         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
1338
1339 2008-03-10  Bruno Haible  <bruno@clisp.org>
1340
1341         * modules/stdlib (Depends-on): Add include_next, remove
1342         absolute-header.
1343
1344 2008-03-09  Bruno Haible  <bruno@clisp.org>
1345
1346         * lib/freadahead.h (freadahead): Document more precisely.
1347         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
1348         the sum of both buffer sizes.
1349         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
1350         * NEWS: Document the change.
1351
1352 2008-03-09  Bruno Haible  <bruno@clisp.org>
1353
1354         Extend freadptr to return also the buffer size.
1355         * lib/freadptr.h (freadptr): Add sizep argument.
1356         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
1357         (freadptr): Add sizep argument. Determine buffer size like freadahead
1358         does.
1359         * tests/test-freadptr.c: Don't include freadahead.h.
1360         (main): Adapt for new calling convention of freadptr.
1361         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
1362         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
1363         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
1364         tests/test-freadptr2.sh.
1365         (Depends): Remove freadahead.
1366         (TESTS): Add test-freadptr2.sh.
1367         (check_PROGRAMS): Add test-freadptr2.
1368
1369 2008-03-09  Bruno Haible  <bruno@clisp.org>
1370
1371         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
1372         Report and solution by Simon Josefsson.
1373
1374 2008-03-06  Bruno Haible  <bruno@clisp.org>
1375
1376         Make fflush after ungetc work on BSD platforms.
1377         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
1378         * tests/test-fflush2.c: New file.
1379         * tests/test-fflush2.sh: New file.
1380         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
1381         tests/test-fflush2.c.
1382         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
1383         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
1384
1385 2008-03-06  Eric Blake  <ebb9@byu.net>
1386
1387         Likewise for ftello.
1388         * modules/ftello (Dependencies): Add extensions.
1389         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
1390
1391 2008-03-06  Bruno Haible  <bruno@clisp.org>
1392
1393         * modules/fseeko (Dependencies): Add extensions.
1394         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
1395         Needed on glibc systems.
1396
1397 2008-03-06  Bruno Haible  <bruno@clisp.org>
1398
1399         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
1400         email address.
1401         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
1402
1403 2008-03-06  Bruno Haible  <bruno@clisp.org>
1404
1405         * users.txt: Add libgnupdf.
1406
1407 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
1408
1409         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
1410         (Header File Substitutes, Function Substitutes,
1411         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
1412         (Build robot for gnulib): Fix typo.
1413
1414 2008-03-06  Bruno Haible  <bruno@clisp.org>
1415
1416         * doc/gnulib-tool.texi (VCS Issues): Small updates.
1417         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
1418
1419 2008-03-06  Bruno Haible  <bruno@clisp.org>
1420
1421         * doc/func.texi: New file, extracted from doc/gnulib.texi.
1422         * doc/gnulib.texi: Include it.
1423
1424 2008-03-06  Simon Josefsson  <simon@josefsson.org>
1425
1426         * modules/func (License): Change license to unlimited; there was
1427         no LGPL parts in the module anyway.
1428
1429 2008-03-06  Simon Josefsson  <simon@josefsson.org>
1430
1431         * modules/__func__: Renamed to modules/func.
1432         * modules/__func__-tests: Renamed to modules/func-tests.
1433         * tests/test-__func__.c: Renamed to tests/test-func.c.
1434         * m4/__func__.m4: Renamed to m4/func.m4.
1435         * doc/gnulib.texi (__func__): Section renamed to func.
1436         Suggested by Eric Blake <ebb9@byu.net>.
1437
1438 2008-03-06  Simon Josefsson  <simon@josefsson.org>
1439
1440         * doc/gnulib.texi (__func__): Use C99 terminology when talking
1441         about __func__.  Make example self-contained.  Suggested by Eric
1442         Blake <ebb9@byu.net>.
1443
1444         * tests/test-__func__.c (main): Avoid extraneous () around __func.
1445         Suggested by Eric Blake <ebb9@byu.net>.
1446
1447 2008-03-06  Simon Josefsson  <simon@josefsson.org>
1448
1449         * modules/__func__: New file.
1450         * modules/__func__-tests: New file.
1451         * tests/test-__func__.c: New file.
1452         * m4/__func__.m4: New file.
1453         * doc/gnulib.texi (__func__): Document __func__ module.
1454
1455 2008-03-05  Simon Josefsson  <simon@josefsson.org>
1456
1457         * modules/byteswap (License): Re-license as LGPLv2+.
1458
1459 2008-03-05  Simon Josefsson  <simon@josefsson.org>
1460
1461         * doc/Makefile: Add pdf target.
1462
1463 2008-03-05  Simon Josefsson  <simon@josefsson.org>
1464
1465         * modules/inline (License): Use 'unlimited', since there are only
1466         *.m4 files in this module.
1467
1468 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
1469             Bruno Haible  <bruno@clisp.org>
1470
1471         Add support for HP C 7.1 on OpenVMS 8.3.
1472         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
1473
1474 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
1475
1476         Update VMS specifics.
1477         * lib/getopt.c [VMS]: Remove include of unixlib.h.
1478
1479 2008-03-02  Jim Meyering  <meyering@redhat.com>
1480
1481         Remove the last dependency on the "free" module.
1482         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
1483         Reported by Bob Proulx.
1484
1485         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
1486
1487         Remove useless "if" tests before free.  Deprecate "free" module.
1488         * doc/posix-functions/free.texi: Mention that this
1489         module is no longer useful.
1490         * modules/free (Notice): Say this module is obsolete.
1491         * modules/readutmp (Depends-on): Remove free.
1492         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
1493         * lib/putenv.c (putenv): Likewise.
1494         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
1495         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
1496         * tests/test-c-strcasestr.c (main): Likewise.
1497         * tests/test-c-strstr.c (main): Likewise.
1498         * tests/test-mbscasestr1.c (main): Likewise.
1499         * tests/test-mbscasestr2.c (main): Likewise.
1500         * tests/test-mbsstr1.c (main): Likewise.
1501         * tests/test-mbsstr2.c (main): Likewise.
1502         * tests/test-memmem.c (main): Likewise.
1503         * tests/test-strcasestr.c (main): Likewise.
1504         * tests/test-striconv.c (main): Likewise.
1505         * tests/test-striconveh.c (main): Likewise.
1506         * tests/test-striconveha.c (main): Likewise.
1507         * tests/test-strstr.c (main): Likewise.
1508
1509         * build-aux/git-version-gen: Adjust a comment and the Usage string.
1510
1511         bootstrap: sync from coreutils again
1512         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
1513
1514 2008-03-01  Jim Meyering  <meyering@redhat.com>
1515
1516         bootstrap: sync from coreutils
1517         * build-aux/bootstrap (update_po_files): Copy a .po file into place
1518         also when the target doesn't exist.
1519
1520 2008-03-01  Eric Blake  <ebb9@byu.net>
1521
1522         Fix bugs in last patch.
1523         * lib/memchr2.c (memchr2): Fix typo.
1524         * tests/test-memchr2.c: Test previous bug, and don't use GNU
1525         extension.
1526         Reported by Bruce Korb.
1527
1528         New module 'memchr2'.
1529         * modules/memchr2: New file.
1530         * modules/memchr2-tests: Likewise.
1531         * lib/memchr2.h: Likewise.
1532         * lib/memchr2.c: Likewise, based on memchr.c.
1533         * tests/test-memchr2.c: New test.
1534         * MODULES.html.sh (String handling): Add memchr2.
1535
1536 2008-02-29  Bruno Haible  <bruno@clisp.org>
1537
1538         * modules/freadseek-tests: New file.
1539         * tests/test-freadseek.sh: New file.
1540         * tests/test-freadseek.c: New file.
1541
1542         New module 'freadseek'.
1543         * modules/freadseek: New file.
1544         * lib/freadseek.h: New file.
1545         * lib/freadseek.c: New file.
1546         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
1547
1548 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
1549
1550         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
1551         wydawca.
1552
1553         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
1554         program_invocation_name and program_invocation_short_name are
1555         present.
1556
1557 2008-02-28  Bruno Haible  <bruno@clisp.org>
1558
1559         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
1560         * tests/test-freadptr.sh: Also test non-seekable stdin.
1561
1562 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
1563
1564         * build-aux/bootstrap (source_base, m4_base)
1565         (doc_base, tests_base): New variables.
1566         (gnulib_tool_options): Do not hardcode base directories, use
1567         the above variables instead.
1568
1569 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
1570
1571         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
1572
1573 2008-02-28  Bruno Haible  <bruno@clisp.org>
1574
1575         * modules/freadptr-tests: New file.
1576         * tests/test-freadptr.sh: New file.
1577         * tests/test-freadptr.c: New file.
1578
1579         New module 'freadptr'.
1580         * modules/freadptr: New file.
1581         * lib/freadptr.h: New file.
1582         * lib/freadptr.c: New file.
1583         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
1584
1585 2008-02-26  Karl Berry  <karl@freefriends.org>
1586
1587         Sync from Libtool:
1588         * libltdl/argz.c (argz_add, argz_count): New functions.
1589         * libltdl/argz.in.h: Declare them.
1590         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
1591
1592 2008-02-22  Bruno Haible  <bruno@clisp.org>
1593
1594         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
1595         is a pointer type.  Needed for HP-UX 10.
1596         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
1597         * doc/posix-functions/gmtime_r.texi: Likewise.
1598         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
1599
1600 2008-02-24  Bruno Haible  <bruno@clisp.org>
1601
1602         * modules/environ-tests: New file.
1603         * tests/test-environ.c: New file.
1604
1605         New module 'environ'.
1606         * modules/environ: New file.
1607         * lib/unistd.in.h (environ): New declaration.
1608         * m4/environ.m4: New file.
1609         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
1610         after use.
1611         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
1612         HAVE_DECL_ENVIRON.
1613         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
1614         HAVE_DECL_ENVIRON.
1615         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
1616         wrong claim that 'environ' is missing on some systems.
1617         * modules/execute (Depends-on): Add environ.
1618         * lib/execute.c (environ): Remove fallback declaration.
1619         * modules/pipe (Depends-on): Add environ.
1620         * lib/pipe.c (environ): Remove fallback declaration.
1621         * modules/setenv (Depends-on): Add environ.
1622         * lib/setenv.c (environ): Remove fallback declaration.
1623         * modules/unsetenv (Depends-on): Add environ.
1624         * lib/unsetenv.c (environ): Remove fallback declaration.
1625         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
1626         m4/environ.m4.
1627         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
1628         (gl_PREREQ_UNSETENV): Likewise.
1629
1630 2008-02-24  Bruno Haible  <bruno@clisp.org>
1631
1632         * doc/posix-functions/environ.texi: Document the MacOS X problem.
1633
1634 2008-02-20  Bob Proulx  <bob@proulx.com>
1635
1636         Enable use of older two part flavor 'git describe'.
1637         * build-aux/git-version-gen: If using the older two part flavor of
1638         git version then recreate the third part now present in the
1639         newer three part flavor of git describe.
1640
1641 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
1642
1643         * lib/fts.c (fts_build): Typo correction to comment.
1644
1645 2008-02-17  Bruno Haible  <bruno@clisp.org>
1646
1647         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
1648         generating no-op conflicts.
1649
1650 2008-02-17  Bruno Haible  <bruno@clisp.org>
1651
1652         Speed up by 10%.
1653         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
1654         result_entries, rather than an index-based loop.
1655
1656 2008-02-17  Bruno Haible  <bruno@clisp.org>
1657
1658         Speed up by 25%.
1659         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
1660         'hashcode_cached'.
1661         (entry_create): New function.
1662         (entry_hashcode): Use the cached hashcode if possible.
1663         (read_changelog_file, try_split_merged_entry): Use entry_create.
1664
1665 2008-02-17  Bruno Haible  <bruno@clisp.org>
1666
1667         Speed up from O(n^2) to O(n) for long ChangeLog files.
1668         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
1669         (read_changelog_file): Change implementation of entries_reversed list
1670         to rbtreehash.
1671         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
1672
1673 2008-02-17  Bruno Haible  <bruno@clisp.org>
1674
1675         New option --split-merged-entry.
1676         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
1677         (find_paragraph_end, try_split_merged_entry): New functions.
1678         (long_options): Add option --split-merged-entry.
1679         (usage): Document option --split-merged-entry.
1680         (main): Implement option --split-merged-entry.
1681         Reported by Eric Blake.
1682
1683 2008-02-17  Bruno Haible  <bruno@clisp.org>
1684
1685         * lib/git-merge-changelog.c: Include c-strstr.h.
1686         (main): Support the "git pull --rebase" situation.
1687         * modules/git-merge-changelog (Depends-on): Add c-strstr.
1688         Reported by Eric Blake.
1689
1690 2008-02-16  Eric Blake  <ebb9@byu.net>
1691
1692         Avoid doubling \ in common case of "c-maybe" quoting style.
1693         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
1694         eliding outer quotes.
1695         * lib/quotearg.h: Document this.
1696         * tests/test-quotearg.c (result_strings, inputs, results_g)
1697         (flag_results, locale_results): Test it by adding a new string to
1698         each test group.
1699         (compare_strings): Test new string.
1700
1701 2008-02-13  Eric Blake  <ebb9@byu.net>
1702
1703         Avoid trigraph quoting in default output.
1704         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
1705         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
1706         unless explicitly requested.
1707         * tests/test-quotearg.c (flag_results, main): Add additional tests.
1708
1709 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
1710
1711         Don't rely on signed integer overflowing to negative value.
1712         * lib/getugroups.c (getugroups): Include <limits.h>.
1713         Instead, compare against INT_MAX, and increment only if the test passes.
1714
1715 2008-02-13  Jim Meyering  <meyering@redhat.com>
1716         and Eric Blake  <ebb9@byu.net>
1717
1718         Avoid shadowing warning and compile errors on Linux.
1719         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
1720         forwarding macros on Linux.
1721         (dcgettext): Define a stub, for Linux.
1722         (results_g, main): Avoid warnings.
1723
1724 2008-02-12  Eric Blake  <ebb9@byu.net>
1725
1726         Silence warning in last patch.
1727         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
1728
1729         Quotearg part 4: add tests, fix c-maybe colon quoting.
1730         * lib/quotearg.h: Improve documentation.
1731         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
1732         escapes when adding outer quotes.  When quoting trigraphs, use
1733         valid C notation.  When quoting NUL, omit extra characters if next
1734         character is not digit.  Alter prototype.
1735         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
1736         callers.
1737         * modules/quotearg-tests: New module.
1738         * tests/test-quotearg.c: New test.
1739
1740 2008-02-07  Eric Blake  <ebb9@byu.net>
1741
1742         Quotearg part 3: add flag to control outer quote elision.
1743         * lib/quotearg.h (c_maybe_quoting_style): New style.
1744         (enum quoting_flags): Better documentation of flags.
1745         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
1746         c-maybe style.
1747         (quotearg_buffer_restyled): Handle new flag to elide outer
1748         quotes.
1749
1750         Quotearg part 2: add flag that can control NUL elision.
1751         * lib/quotearg.h (set_quoting_flags): New prototype.
1752         * lib/quotearg.c (struct quoting_options): Add flag field.
1753         (set_quoting_flags): New function.
1754         (quotearg_buffer_restyled): Add flags parameter.
1755         (quotearg_alloc_mem): Set the flag if length cannot be returned.
1756         (quotearg_n_options): Set the flag, since length cannot be
1757         returned.
1758         (quoting_options_from_style): Default flags correctly.
1759
1760         Quotearg part 1: more wrappers, restore quotearg_char state.
1761         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
1762         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
1763         (quotearg_colon_mem): New wrappers.
1764         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
1765         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
1766         functions.
1767         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
1768         (quotearg_colon_mem): New functions.
1769
1770 2008-02-11  Bruno Haible  <bruno@clisp.org>
1771
1772         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
1773         library in the current directory: it does not work with parallel make.
1774         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1775
1776 2008-02-11  Bruno Haible  <bruno@clisp.org>
1777
1778         * .gitattributes: New file.
1779
1780 2008-02-11  Jim Meyering  <meyering@redhat.com>
1781
1782         useless-if-before-free: Fix reversed exit values.
1783         * build-aux/useless-if-before-free: Use correct values
1784         for EXIT_MATCH and EXIT_NO_MATCH.
1785
1786         * build-aux/useless-if-before-free: Close stdout carefully.
1787
1788 2008-02-10  Bruno Haible  <bruno@clisp.org>
1789
1790         New module 'git-merge-changelog'.
1791         * modules/git-merge-changelog: New file.
1792         * lib/git-merge-changelog.c: New file.
1793
1794 2008-02-10  Jim Meyering  <meyering@redhat.com>
1795
1796         useless-if-before-free: New option: --list (-l).
1797
1798         useless-if-before-free: Don't exit immediately upon open failure.
1799         * build-aux/useless-if-before-free: Exit 2 for errors.
1800         Upon failure to open a file, don't exit immediately.
1801         Rather, just warn and continue with any remaining files.
1802
1803 2008-02-10  Bruno Haible  <bruno@clisp.org>
1804
1805         New abstract list operation 'node_set_value'.
1806         * lib/gl_list.h (gl_list_node_set_value): New function.
1807         (struct gl_list_implementation): New field node_set_value.
1808         * lib/gl_list.c (gl_list_node_set_value): New function.
1809         * lib/gl_array_list.c (gl_array_node_set_value): New function.
1810         (gl_array_list_implementation): Update.
1811         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
1812         (gl_carray_list_implementation): Update.
1813         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
1814         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
1815         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
1816         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
1817         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
1818         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
1819         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
1820         Update.
1821         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
1822         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
1823         (gl_sublist_list_implementation): Update.
1824
1825 2008-02-10  Bruno Haible  <bruno@clisp.org>
1826
1827         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
1828         Needed when ELEMENT is #defined to 'some_type *'.
1829
1830 2008-02-10  Jim Meyering  <meyering@redhat.com>
1831
1832         New script and module: useless-if-before-free
1833         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
1834         * build-aux/useless-if-before-free: New file.
1835         * modules/useless-if-before-free: New file.
1836
1837         * build-aux/gitlog-to-changelog: Use committer date, not author date.
1838
1839         xstrtol_error: Fix typo.
1840         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
1841         s/exit_failure/exit_status/.
1842
1843 2008-02-09  Jim Meyering  <meyering@redhat.com>
1844
1845         New script and module: gitlog-to-changelog
1846         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
1847         * modules/gitlog-to-changelog: New file.
1848         * build-aux/gitlog-to-changelog: New file.
1849
1850 2008-02-08  Jim Meyering  <meyering@redhat.com>
1851
1852         Avoid two "parameter unused" warnings.
1853         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
1854         Mark "st" as used.
1855
1856         Use "git COMMAND", not "git-COMMAND".
1857         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
1858         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
1859         * build-aux/git-version-gen: Use "git status", not "git-status".
1860
1861 2008-02-07  Bruno Haible  <bruno@clisp.org>
1862
1863         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
1864         Avoids a crash on Windows Vista.
1865         Reported by Adam Strzelecki <ono@java.pl> via
1866         Simon Josefsson <simon@josefsson.org>.
1867
1868 2008-02-06  Bruno Haible  <bruno@clisp.org>
1869
1870         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
1871         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
1872         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
1873         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
1874         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
1875         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
1876         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
1877         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
1878         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
1879         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
1880         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
1881         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
1882         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
1883         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
1884         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
1885         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
1886         left-adjust flag.
1887         * tests/test-snprintf-posix.h (test_function): Likewise.
1888         * tests/test-sprintf-posix.h (test_function): Likewise.
1889         * tests/test-vasprintf-posix.c (test_function): Likewise.
1890         * doc/posix-functions/fprintf.texi: Update.
1891         * doc/posix-functions/printf.texi: Update.
1892         * doc/posix-functions/snprintf.texi: Update.
1893         * doc/posix-functions/sprintf.texi: Update.
1894         * doc/posix-functions/vfprintf.texi: Update.
1895         * doc/posix-functions/vprintf.texi: Update.
1896         * doc/posix-functions/vsnprintf.texi: Update.
1897         * doc/posix-functions/vsprintf.texi: Update.
1898         Reported by Peter Fales <psfales@alcatel-lucent.com>.
1899
1900 2008-02-06  Bruno Haible  <bruno@clisp.org>
1901
1902         Fix bug introduced on 2008-01-26.
1903         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
1904
1905 2008-02-06  Bruno Haible  <bruno@clisp.org>
1906
1907         Fix bug introduced on 2007-06-10.
1908         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
1909         !NEED_PRINTF_FLAG_ZERO.
1910
1911 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
1912
1913         getloadavg: use libperfstat on AIX5
1914         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
1915
1916 2008-02-03  Bruno Haible  <bruno@clisp.org>
1917
1918         * lib/diffseq.h: Add comments about required #includes.
1919         Reported by Michael Biggs <gnulib@doubleplum.net>.
1920
1921 2008-02-01  Bruno Haible  <bruno@clisp.org>
1922
1923         * users.txt: Add gnuit.
1924
1925 2008-01-31  Bruno Haible  <bruno@clisp.org>
1926
1927         * lib/md4.c (set_uint32): Mark as inline.
1928         * lib/md5.c (set_uint32): Likewise.
1929         * lib/sha1.c (set_uint32): Likewise.
1930         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
1931         * m4/md5.m4 (gl_MD5): Likewise.
1932         * m4/sha1.m4 (gl_SHA1): Likewise.
1933
1934 2008-01-31  Jim Meyering  <meyering@redhat.com>
1935
1936         Use "sizeof VAR", rather than a literal "4".
1937         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
1938         * lib/md4.c (md4_read_ctx): Likewise.
1939         * lib/sha1.c (sha1_read_ctx): Likewise.
1940
1941 2008-01-31  Simon Josefsson  <simon@josefsson.org>
1942
1943         * tests/test-sha1.c: New file, based on test-md5.c.
1944
1945         * modules/crypto/sha1-tests: New file.
1946
1947 2008-01-31  Simon Josefsson  <simon@josefsson.org>
1948
1949         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
1950
1951 2008-01-31  Jim Meyering  <meyering@redhat.com>
1952
1953         Prefer "sizeof v" over the equivalent "4".
1954         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
1955         * lib/md5.c (set_uint32): Likewise.
1956         * lib/sha1.c (set_uint32): Likewise.
1957
1958 2008-01-31  Simon Josefsson  <simon@josefsson.org>
1959
1960         * lib/sha1.c (set_uint32): Mark function as static.
1961
1962 2008-01-31  Simon Josefsson  <simon@josefsson.org>
1963
1964         md2: clarify comments to say that alignment is not required.
1965         * lib/md2.h: Remove warning about alignment in comment.
1966         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
1967         never been required.
1968
1969 2008-01-31  Simon Josefsson  <simon@josefsson.org>
1970
1971         md4: adapt alignment constraint fix from sha1.
1972         * lib/md4.c (set_uint32): New function, from sha1.c
1973         (md4_read_ctx): Use it.
1974         (md4_finish_ctx): Doc fix.
1975         * lib/md4.h: Doc fix.
1976
1977 2008-01-31  Simon Josefsson  <simon@josefsson.org>
1978
1979         md5: adapt alignment constraint fix from sha1.
1980         * lib/md5.c (set_uint32): New function, from sha1.c
1981         (md5_read_ctx): Use it.
1982         (md5_finish_ctx): Doc fix.
1983         * lib/md5.h: Doc fix.
1984
1985 2008-01-30  Peter Palfrader  <weasel@debian.org>
1986
1987         sha1: remove the result buffer alignment constraint
1988         * lib/sha1.c (set_uint32): New function.
1989         (sha1_read_ctx): Rewrite to remove the result buffer alignment
1990         constraint.
1991         (sha1_finish_ctx): Remove comment warning about alignment constraint.
1992         * lib/sha1.h: Likewise.
1993
1994 2008-01-30  Andreas Schwab  <schwab@suse.de>
1995             Bruno Haible  <bruno@clisp.org>
1996
1997         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
1998         correct definition of LDBL_MIN_EXP.
1999
2000 2008-01-30  Karl Berry  <karl@gnu.org>
2001
2002         * config/srclist-update: try to preserve x bit on updates.
2003         * config/srclistvars.sh: update for karl.
2004
2005 2008-01-29  Jim Meyering  <meyering@redhat.com>
2006
2007         vasnprintf.c: Avoid warning about unused label
2008         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
2009         "overflow" label definition and associated code with the
2010         same cpp condition that guards the sole use of that label.
2011
2012 2008-01-26  Bruno Haible  <bruno@clisp.org>
2013
2014         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
2015         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
2016         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
2017         * lib/isnanl-nolibm.h (isnanl): Likewise.
2018         Reported by Paul Eggert <eggert@cs.ucla.edu>.
2019
2020 2008-01-26  Bruno Haible  <bruno@clisp.org>
2021
2022         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
2023         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
2024
2025 2008-01-26  Bruno Haible  <bruno@clisp.org>
2026
2027         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
2028         GCC >= 4.0 built-in.
2029         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
2030
2031 2008-01-26  Bruno Haible  <bruno@clisp.org>
2032
2033         Rename isnan, applicable to 'double' only, to isnand.
2034         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
2035         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
2036         (configure.ac): Update.
2037         (Include): Replace "isnan.h" with "isnand.h".
2038         * m4/isnand.m4: Renamed from m4/isnan.m4.
2039         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
2040         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
2041         instead of isnan.c.
2042         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
2043         instead of HAVE_ISNAN_IN_LIBC.
2044         (isnand): Renamed from isnan.
2045         * lib/isnand.c: New file.
2046         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
2047         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
2048         (Makefile.am): Update.
2049         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
2050         Include isnand.h instead of isnan.h.
2051         (main): Test isnand instead of isnan.
2052         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
2053         isnan-nolibm.
2054         * modules/frexp (Depends-on): Likewise.
2055         * modules/frexp-tests (Depends-on): Likewise.
2056         * modules/frexp-nolibm (Depends-on): Likewise.
2057         * modules/frexp-nolibm-tests (Depends-on): Likewise.
2058         * modules/isfinite (Depends-on): Likewise.
2059         * modules/round-tests (Depends-on): Likewise.
2060         * modules/signbit (Depends-on): Likewise.
2061         * modules/signbit-tests (Depends-on): Likewise.
2062         * modules/snprintf-posix (Depends-on): Likewise.
2063         * modules/sprintf-posix (Depends-on): Likewise.
2064         * modules/trunc-tests (Depends-on): Likewise.
2065         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
2066         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
2067         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
2068         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
2069         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
2070         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
2071         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
2072         * modules/vasnprintf-posix (Depends-on): Likewise.
2073         * modules/vasprintf-posix (Depends-on): Likewise.
2074         * modules/vfprintf-posix (Depends-on): Likewise.
2075         * modules/vsnprintf-posix (Depends-on): Likewise.
2076         * modules/vsprintf-posix (Depends-on): Likewise.
2077         * lib/frexp.c: Include isnand.h instead of isnan.h.
2078         (ISNAN): Set to isnand instead of isnan.
2079         * lib/isfinite.c: Include isnand.h instead of isnan.h.
2080         (gl_isfinited): Use isnand instead of isnan.
2081         * lib/signbitd.c: Include isnand.h instead of isnan.h.
2082         (gl_signbitd): Use isnand instead of isnan.
2083         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
2084         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
2085         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
2086         (main): Use isnand instead of isnan.
2087         * tests/test-round1.c: Include isnand.h.
2088         (main): Use isnand instead of isnan.
2089         * tests/test-round2.c: Include isnand.h instead of isnan.h.
2090         (ISNAN): Set to isnand instead of isnan.
2091         * tests/test-trunc1.c: Include isnand.h.
2092         (main): Use isnand instead of isnan.
2093         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
2094         (equal): Use isnand instead of isnan.
2095         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
2096         isnand-nolibm.
2097         * NEWS: Mention the change.
2098
2099 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
2100             Bruno Haible  <bruno@clisp.org>
2101
2102         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
2103         the GCC builtins for signbits are present and set
2104         REPLACE_SIGNBIT_USING_GCC if so.
2105         * lib/math.in.h (signbit): Define using GCC builtins if
2106         REPLACE_SIGNBIT_USING_GCC is set.
2107         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
2108         REPLACE_SIGNBIT_USING_GCC.
2109         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
2110
2111 2008-01-25  Jim Meyering  <meyering@redhat.com>
2112
2113         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
2114         * lib/poll.c: Include <config.h>, not "config.h".
2115         * tests/test-getaddrinfo.c: Likewise.
2116
2117 2008-01-25  Simon Josefsson  <simon@josefsson.org>
2118
2119         * modules/sockets-tests: New file.
2120
2121 2008-01-24  Simon Josefsson  <simon@josefsson.org>
2122
2123         * modules/sockets: New module, can be used to call WSA_Startup and
2124         WSA_Cleanup when needed.
2125
2126         * lib/sockets.h, lib/sockets.c: New files.
2127
2128         * m4/sockets.m4: New file.
2129
2130         * tests/test-sockets.c: New file.
2131
2132 2008-01-19  Bruno Haible  <bruno@clisp.org>
2133
2134         * doc/posix-headers: Renamed from doc/headers.
2135         * doc/posix-functions: Renamed from doc/functions.
2136         * doc/gnulib.texi: Update.
2137
2138 2008-01-19  Bruno Haible  <bruno@clisp.org>
2139
2140         * doc/glibc-functions/strcasestr.texi: Include contents of
2141         doc/functions/strcasestr.texi, fixing the list of platforms.
2142         * doc/functions/strcasestr.texi: Remove file.
2143
2144 2008-01-19  Bruno Haible  <bruno@clisp.org>
2145
2146         * doc/glibc-functions/memmem.texi: Include contents of
2147         doc/functions/memmem.texi.
2148         * doc/functions/memmem.texi: Remove file.
2149
2150 2008-01-18  Bruno Haible  <bruno@clisp.org>
2151
2152         * doc/glibc-functions/*.texi: New files.
2153         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
2154         to use the new files.
2155
2156 2008-01-17  Bruno Haible  <bruno@clisp.org>
2157
2158         * tests/test-gethostname.c (main): Fix printf statement.
2159
2160 2008-01-17  Simon Josefsson  <simon@josefsson.org>
2161
2162         * modules/gethostname-tests: New file.
2163
2164         * tests/test-gethostname.c: New file.
2165
2166 2008-01-17  Simon Josefsson  <simon@josefsson.org>
2167
2168         * lib/gethostname.c: Include string.h unconditionally, strncpy is
2169         used by the UNAME case.  Reported by Bruno Haible
2170         <bruno@clisp.org>.
2171
2172 2008-01-17  Eric Blake  <ebb9@byu.net>
2173
2174         Convert c-strcasestr to be more efficient.
2175         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
2176         (Depends-on): Add c-strcase, remove malloca, strnlen.
2177         * tests/test-c-strcasestr.c (main): Enhance test.
2178         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
2179
2180 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
2181
2182         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
2183         Use it in creating po/Makevars.
2184
2185 2008-01-15  Simon Josefsson  <simon@josefsson.org>
2186
2187         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
2188         Applications that requires it should initialize libgcrypt
2189         manually.
2190
2191 2008-01-16  Simon Josefsson  <simon@josefsson.org>
2192
2193         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
2194
2195 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
2196
2197         Fix problem with getdate on mingw32 reported by Simon Josefsson
2198         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
2199         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
2200         tzname", when deciding whether to declare tzname.
2201         * lib/strftime.c (tzname): Likewise.
2202
2203 2008-01-15  Bruno Haible  <bruno@clisp.org>
2204
2205         Work around a MacOS X 10.5 bug in frexpl().
2206         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
2207         * doc/functions/frexpl.texi: Document the bug.
2208         Reported by Elias Pipping <pipping@gentoo.org>.
2209
2210 2008-01-14  Eric Blake  <ebb9@byu.net>
2211
2212         Touch up previous patch.
2213         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
2214         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
2215
2216         Convert strcasestr module to use Two-Way algorithm.
2217         * modules/strcasestr-simple: New module, based on the old
2218         strcasestr, but with Two-Way rather than KMP.
2219         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
2220         * lib/string.in.h (rpl_strcasestr): Declare.
2221         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
2222         performance.
2223         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
2224         * modules/string (Makefile.am): Support strcasestr.
2225         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
2226         * modules/strcasestr-tests (Depends-on): Check for alarm.
2227         * tests/test-strcasestr.c: Augment test.
2228         * lib/str-two-way.h: Clean up stray macro.
2229         * NEWS: Document new module.
2230         * MODULES.html.sh (string handling): Likewise.
2231         * doc/functions/strcasestr.texi: New file.
2232         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
2233         here, since it is not a POSIX function.
2234
2235 2008-01-14  Colin Watson  <cjwatson@debian.org>
2236             Bruno Haible  <bruno@clisp.org>
2237
2238         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
2239         works fine; if not, set REPLACE_STRSIGNAL.
2240         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
2241         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
2242         REPLACE_STRSIGNAL.
2243         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
2244         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
2245         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
2246
2247 2008-01-14  Bruno Haible  <bruno@clisp.org>
2248
2249         * modules/strsignal (Include): Change to <string.h>.
2250
2251 2008-01-14  Colin Watson  <cjwatson@debian.org>
2252
2253         * modules/argp (Notice): Add a notice recommending to change
2254         XGETTEXT_OPTIONS.
2255         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
2256
2257 2008-01-13  Colin Watson  <cjwatson@debian.org>
2258
2259         * modules/strsignal-tests: New file.
2260         * tests/test-strsignal.c: New file.
2261
2262         * lib/strsignal.c: New file, from glibc with modifications.
2263         * lib/siglist.h: New file, from glibc with modifications.
2264         * lib/string.in.h (strsignal): New declaration.
2265         * m4/strsignal.m4: New file.
2266         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
2267         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
2268         * modules/strsignal: New file.
2269         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
2270         HAVE_DECL_STRSIGNAL.
2271
2272 2008-01-13  Bruno Haible  <bruno@clisp.org>
2273
2274         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
2275         locale encoding is not ASCII. Needed for OpenBSD 4.0.
2276         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
2277         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
2278
2279 2008-01-13  Bruno Haible  <bruno@clisp.org>
2280
2281         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
2282         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
2283         * lib/argp.h (__attribute__): Likewise.
2284         * lib/c-stack.c (__attribute__): Likewise.
2285         * lib/error.h (__attribute__): Likewise.
2286         * lib/fts.c (__attribute__): Likewise.
2287         * lib/openat.h (__attribute__): Likewise.
2288         * lib/stdio.in.h (__attribute__): Likewise.
2289         * lib/string.in.h (__attribute__): Likewise.
2290         * lib/utimens.c (__attribute__): Likewise.
2291         * lib/vasnprintf.h (__attribute__): Likewise.
2292         * lib/xalloc.h (__attribute__): Likewise.
2293         * lib/xprintf.h (__attribute__): Likewise.
2294         * lib/xstrtol.h (__attribute__): Likewise.
2295         * lib/xvasprintf.h (__attribute__): Likewise.
2296
2297 2008-01-12  Bruno Haible  <bruno@clisp.org>
2298
2299         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
2300         * doc/glibc-headers/a.out.texi: New file.
2301         * doc/glibc-headers/aliases.texi: New file.
2302         * doc/glibc-headers/alloca.texi: New file.
2303         * doc/glibc-headers/ar.texi: New file.
2304         * doc/glibc-headers/argp.texi: New file.
2305         * doc/glibc-headers/argz.texi: New file.
2306         * doc/glibc-headers/byteswap.texi: New file.
2307         * doc/glibc-headers/crypt.texi: New file.
2308         * doc/glibc-headers/endian.texi: New file.
2309         * doc/glibc-headers/envz.texi: New file.
2310         * doc/glibc-headers/err.texi: New file.
2311         * doc/glibc-headers/error.texi: New file.
2312         * doc/glibc-headers/execinfo.texi: New file.
2313         * doc/glibc-headers/fpu_control.texi: New file.
2314         * doc/glibc-headers/fstab.texi: New file.
2315         * doc/glibc-headers/fts.texi: New file.
2316         * doc/glibc-headers/getopt.texi: New file.
2317         * doc/glibc-headers/ieee754.texi: New file.
2318         * doc/glibc-headers/ifaddrs.texi: New file.
2319         * doc/glibc-headers/libintl.texi: New file.
2320         * doc/glibc-headers/mcheck.texi: New file.
2321         * doc/glibc-headers/mntent.texi: New file.
2322         * doc/glibc-headers/obstack.texi: New file.
2323         * doc/glibc-headers/paths.texi: New file.
2324         * doc/glibc-headers/printf.texi: New file.
2325         * doc/glibc-headers/pty.texi: New file.
2326         * doc/glibc-headers/resolv.texi: New file.
2327         * doc/glibc-headers/shadow.texi: New file.
2328         * doc/glibc-headers/sysexits.texi: New file.
2329         * doc/glibc-headers/ttyent.texi: New file.
2330
2331 2008-01-12  Jim Meyering  <meyering@redhat.com>
2332
2333         announce-gen: emit Gnulib's git-based version string.
2334         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
2335         New option --gnulib-version=V, where V is expected to be
2336         the output of running git describe in the gnulib directory.
2337         (get_tool_versions): Request feedback on xdelta.  I suspect it's
2338         not useful, and plan to stop publishing an xdelta file with each
2339         coreutils release.
2340
2341         * build-aux/announce-gen: Also check for lzma-compressed files.
2342
2343 2008-01-11  Bruno Haible  <bruno@clisp.org>
2344
2345         * tests/test-memmem.c (main): Increase maximum allowed time.
2346         * tests/test-strstr.c (main): Likewise.
2347
2348 2008-01-11  Bruno Haible  <bruno@clisp.org>
2349
2350         * doc/functions/memmem.texi: Add more precisions about platforms.
2351         * doc/functions/strstr.texi: Likewise.
2352
2353 2008-01-10  Eric Blake  <ebb9@byu.net>
2354
2355         * m4/strstr.m4: Delete cruft from copy-n-paste.
2356         Reported by Bruno Haible.
2357
2358 2008-01-10  Bruno Haible  <bruno@clisp.org>
2359
2360         Make c-strstr rely on strstr.
2361         * lib/c-strstr.c: Don't include str-kmp.h.
2362         (c_strstr): Define in terms of strstr.
2363         * modules/c-strstr (Files): Remove lib/str-kmp.h.
2364         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
2365
2366 2008-01-10  Bruno Haible  <bruno@clisp.org>
2367
2368         * doc/gnulib.texi (String Functions in C Locale): New section.
2369         * doc/c-ctype.texi: New file.
2370         * doc/c-strcase.texi: New file.
2371         * doc/c-strcaseeq.texi: New file.
2372         * doc/c-strcasestr.texi: New file.
2373         * doc/c-strstr.texi: New file.
2374         * doc/c-strtod.texi: New file.
2375         * doc/c-strtold.texi: New file.
2376
2377 2008-01-10  Eric Blake  <ebb9@byu.net>
2378
2379         * lib/relocatable.h: Fix a comment.
2380
2381 2008-01-10  Eric Blake  <ebb9@byu.net>
2382
2383         Share two-way algorithm.
2384         * lib/str-two-way.h: New file, merged from...
2385         * lib/memmem.c: ...here...
2386         * lib/strstr.c: ...and here.
2387         * modules/memmem (Files): Use it.
2388         * modules/strstr (Files): Likewise.
2389
2390         Avoid quadratic strstr implementations.
2391         * lib/strstr.c: New file.
2392         * m4/strstr.m4: Likewise.
2393         * modules/strstr: Likewise.
2394         * modules/strstr-tests: Likewise.
2395         * tests/test-strstr.c: Likewise.
2396         * lib/string.in.h (rpl_strstr): Declare.
2397         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
2398         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
2399         * modules/string (Makefile.am): Likewise.
2400         * MODULES.html.sh (string handling): Mention new module.
2401         * doc/functions/strstr.texi (strstr): Document the bug.
2402
2403 2008-01-10  Bruno Haible  <bruno@clisp.org>
2404
2405         * lib/relocatable.h (relocate): State whether result is freshly
2406         allocated or not.
2407         * lib/relocatable.c (relocate): Return a freshly allocated string
2408         instead of a pointer to a privately held string.
2409         Reported by Sylvain Beucler <beuc@gnu.org>.
2410
2411 2008-01-10  Colin Watson  <cjwatson@debian.org>
2412
2413         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
2414         s/S_ISNLK/S_ISLNK/.
2415
2416 2008-01-09  Bruno Haible  <bruno@clisp.org>
2417
2418         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
2419         and other files.
2420         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
2421         if it's only a guess.
2422         * modules/memmem: Simplify by depending on memmem-simple.
2423
2424 2008-01-09  Bruno Haible  <bruno@clisp.org>
2425
2426         Work around OpenBSD 4.0 tdelete() bug.
2427         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
2428         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
2429         macros and don't redefine the enum values.
2430         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
2431         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
2432         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
2433
2434 2008-01-09  Bruno Haible  <bruno@clisp.org>
2435
2436         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
2437         (main): Don't perform the tests if setlocale did not install a UTF-8
2438         locale. Needed on OpenBSD 4.0.
2439         * modules/wcwidth-tests (Depends-on): Add localcharset.
2440
2441 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
2442
2443         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
2444         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
2445         * NEWS: announce this.
2446         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
2447
2448 2008-01-09  Simon Josefsson  <simon@josefsson.org>
2449         and Eric Blake  <ebb9@byu.net>
2450
2451         Add memmem-simple module.
2452         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
2453         (gl_FUNC_MEMMEM): Separate performance from presence checks.
2454         * modules/memmem-simple: New file.
2455         * modules/memmem (Description): Tweak.
2456         * MODULES.html.sh (string handling): Mention new module.
2457         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
2458         addressed by memmem-simple.
2459         * NEWS: Document the difference.
2460
2461 2008-01-09  Eric Blake  <ebb9@byu.net>
2462
2463         Give gcc some memmem optimization hints.
2464         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
2465         (strcasestr): Declare as pure.
2466         * modules/memmem (Maintainer): Claim my implementation.
2467
2468 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2469
2470         Support AIX 6.1 and higher.
2471         * build-aux/config.libpath: Likewise.
2472         * build-aux/config.rpath: Likewise.
2473
2474 2008-01-08  Jim Meyering  <meyering@redhat.com>
2475             Bruno Haible  <bruno@clisp.org>
2476
2477         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
2478         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
2479         Reported by Peter Fales in
2480         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
2481
2482 2008-01-08  Bruno Haible  <bruno@clisp.org>
2483
2484         * modules/unictype/category-of (Depends-on): Add
2485         unictype/category-none.
2486         * modules/unictype/category-and-tests (Depends-on): Add
2487         unictype/category-{L,N,Lu,Nd}.
2488         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
2489         * modules/unictype/category-or-tests (Depends-on): Add
2490         unictype/category-{L,N}.
2491         * modules/unictype/category-name-tests (Depends-on): Add
2492         unictype/category-{Z,Nl}.
2493         Reported by Simon Josefsson.
2494
2495 2008-01-08  Bruno Haible  <bruno@clisp.org>
2496
2497         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
2498         convention better.
2499         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
2500         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
2501         Reported by Peter Miller <millerp@canb.auug.org.au>.
2502
2503 2008-01-08  Eric Blake  <ebb9@byu.net>
2504
2505         Rewrite memmem to guarantee linear complexity without malloc.
2506         * lib/memmem.c (memmem): Use Two-Way rather than
2507         Knuth-Morris-Pratt, to allow O(1) space usage.
2508         (critical_factorization, two_way_short_needle)
2509         (two_way_long_needle): New functions.
2510         (knuth_morris_pratt): Delete.
2511         * modules/memmem (Depends-on): No longer need malloca or stdbool.
2512         Add stdint.
2513         * tests/test-memmem.c (main): Add tests for periodic needle and
2514         sublinear performance.
2515         * doc/functions/memmem.texi (memmem): Document other deficiencies
2516         in cygwin and older glibc.
2517
2518 2008-01-08  Bruno Haible  <bruno@clisp.org>
2519
2520         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
2521         augmentation.
2522
2523 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
2524
2525         Add a configure time option: --disable-acl.
2526         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
2527         AC_ARG_ENABLE(acl).
2528
2529 2008-01-06  Simon Josefsson  <simon@josefsson.org>
2530
2531         * tests/test-localename.c: Don't include obsolete "setenv.h".
2532
2533         * modules/localename-tests (Depends-on): Need unsetenv.
2534
2535 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2536
2537         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
2538
2539 2008-01-06  Colin Watson  <cjwatson@debian.org>
2540
2541         * users.txt: Add man-db.
2542
2543 2008-01-07  Bruno Haible  <bruno@clisp.org>
2544
2545         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
2546         previous section name.
2547
2548 2008-01-07  Bruno Haible  <bruno@clisp.org>
2549
2550         * lib/progname.c (set_program_name): Don't strip off a leading
2551         "lt-" prefix outside a .libs directory.
2552         Suggested by Paul Eggert.
2553
2554 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
2555             Bruno Haible  <bruno@clisp.org>
2556
2557         Improve memory cleanup in 'relocatable' module.
2558         * lib/relocatable.h (compute_curr_prefix): Change return type to
2559         'char *'.
2560         * lib/relocatable.c (compute_curr_prefix): Change return type to
2561         'char *'. Free curr_installdir after use.
2562         (relocate): Free curr_prefix_better after use.
2563         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
2564
2565 2008-01-01  Bruno Haible  <bruno@clisp.org>
2566
2567         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
2568         failure on older glibc systems.
2569         Reported by Peter Fales <psfales@alcatel-lucent.com>.
2570
2571 2008-01-05  Eric Blake  <ebb9@byu.net>
2572
2573         Avoid quadratic system memmem.
2574         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
2575         Reported by Ralf Wildenhues.
2576
2577         Fix memmem test for mingw.
2578         * modules/memmem-tests (configure.ac): Check for alarm.
2579         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
2580         it.
2581         * doc/functions/memmem.texi: New file.
2582         * doc/gnulib.texi (Function Substitutes): Add memmem.
2583         Reported by Bruno Haible.
2584
2585 2008-01-04  Bruno Haible  <bruno@clisp.org>
2586
2587         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
2588         Require gl_HEADER_STRINGS_H_DEFAULTS, not
2589         gl_HEADER_STRING_H_DEFAULTS.
2590
2591 2008-01-04  Eric Blake  <ebb9@byu.net>
2592
2593         Shorten duration of memmem test.
2594         * tests/test-memmem.c (main): Use alarm to declare failure if test
2595         is taking too long.
2596         Reported by Ralf Wildenhues.
2597
2598 2007-12-21  Simon Josefsson  <simon@josefsson.org>
2599
2600         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
2601         string, needed by strerror.
2602
2603 2008-01-03  Colin Watson  <cjwatson@debian.org>
2604             Bruno Haible  <bruno@clisp.org>
2605
2606         * doc/gnulib-tool.texi (Localization): New section.
2607
2608 2008-01-02  Bruno Haible  <bruno@clisp.org>
2609
2610         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
2611         variables to 'unsigned char *' type.
2612         Reported by Paul Eggert.
2613
2614 2008-01-02  Jim Meyering  <jim@meyering.net>
2615
2616         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
2617
2618 2007-12-31  Jim Meyering  <jim@meyering.net>
2619
2620         Avoid use of private FTS type name.
2621         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
2622
2623 2007-12-30  Karl Berry  <karl@gnu.org>
2624
2625         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
2626         work around defect in Texinfo and/or the standalone Info browser.
2627
2628 2007-12-30  Bruno Haible  <bruno@clisp.org>
2629
2630         Unify 5 copies of the KMP code.
2631         * lib/str-kmp.h: New file.
2632         * lib/c-strcasestr.c: Include str-kmp.h.
2633         (knuth_morris_pratt): Remove function.
2634         (c_strcasestr): Update.
2635         * lib/c-strstr.c: Include str-kmp.h.
2636         (knuth_morris_pratt): Remove function.
2637         (c_strcasestr): Update.
2638         * lib/mbscasestr.c: Include str-kmp.h.
2639         (knuth_morris_pratt_unibyte): Remove function.
2640         * lib/mbsstr.c: Include str-kmp.h.
2641         (knuth_morris_pratt_unibyte): Remove function.
2642         * lib/strcasestr.c: Include str-kmp.h.
2643         (knuth_morris_pratt): Remove function.
2644         (strcasestr): Update.
2645         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
2646         * modules/c-strstr (Files): Likewise.
2647         * modules/mbscasestr (Files): Likewise.
2648         * modules/mbsstr (Files): Likewise.
2649         * modules/strcasestr (Files): Likewise.
2650         Suggested by Paul Eggert.
2651
2652 2007-12-30  Bruno Haible  <bruno@clisp.org>
2653
2654         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
2655         defined.
2656
2657 2007-12-30  Bruno Haible  <bruno@clisp.org>
2658
2659         * lib/xmalloca.h: Include xalloc.h.
2660         (xnmalloca): New macro.
2661
2662 2007-12-30  Bruno Haible  <bruno@clisp.org>
2663
2664         * lib/malloca.h (nmalloca): New macro.
2665         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
2666         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
2667         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
2668         knuth_morris_pratt_multibyte): Likewise.
2669         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
2670         knuth_morris_pratt_multibyte): Likewise.
2671         * lib/memmem.c (knuth_morris_pratt): Likewise.
2672         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
2673
2674 2007-12-25  Bruno Haible  <bruno@clisp.org>
2675
2676         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
2677         * lib/glob.c: Don't include openat.h.
2678         (link_exists2_p): Add back the code that deals with the
2679         !GLOB_ALTDIRFUNC case.
2680         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
2681         let it do the filename concatenation.
2682         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
2683         * modules/glob (Depends-on): Remove openat.
2684
2685 2007-12-31  Bruno Haible  <bruno@clisp.org>
2686
2687         * modules/dirfd (License): Change to LGPLv2+.
2688         Approved by Jim Meyering.
2689
2690 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
2691
2692         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
2693         when multiplying M by sizeof (size_t).
2694
2695 2007-12-10  Martin Lambers  <marlam@marlam.de>
2696
2697         Override getpagesize on mingw.
2698         * lib/getpagesize.c: New file.
2699         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
2700         * modules/getpagesize (Files): Add lib/getpagesize.c.
2701         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
2702         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
2703         REPLACE_GETPAGESIZE.
2704         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
2705
2706 2007-12-25  Bruno Haible  <bruno@clisp.org>
2707
2708         * modules/localcharset (Notice): New field.
2709         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
2710         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
2711
2712 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
2713             Bruno Haible  <bruno@clisp.org>
2714
2715         Avoid using the syntax symbol() in formatted documentation.
2716         * MODULES.html.sh (func_module): When replacing symbol() with a
2717         hyperlink, remove the parentheses. Show an error if some remain.
2718         Recognize and render the '...' syntax.
2719         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
2720         Rework. Add paragraph about GCC's inlining.
2721         * doc/alloca.texi: Likewise.
2722         * doc/error.texi: Remove parentheses from symbol reference.
2723         * doc/gnulib-intro.texi: Likewise.
2724         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
2725         * modules/fnmatch (Description): Reword to say "the ... function".
2726         * modules/full-read (Description): Likewise.
2727         * modules/full-write (Description): Likewise.
2728         * modules/safe-read (Description): Likewise.
2729         * modules/safe-write (Description): Likewise.
2730         * modules/strchrnul (Description): Likewise.
2731         * modules/trim (Description): Likewise.
2732         * modules/error (Description): Remove parentheses from symbol
2733         references.
2734         * modules/verror (Description): Likewise.
2735         Reported by Karl Berry.
2736
2737 2007-12-25  Bruno Haible  <bruno@clisp.org>
2738
2739         Fixup after 2007-10-16 commit.
2740         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
2741
2742 2007-12-24  Bruno Haible  <bruno@clisp.org>
2743
2744         Make --enable-relocatable work with DESTDIR.
2745         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
2746         to compute installdir from destprog.
2747         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
2748         also set the RELOC_DESTDIR variable.
2749         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
2750
2751 2007-12-24  Bruno Haible  <bruno@clisp.org>
2752
2753         Fix link error due to xalloc_die().
2754         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
2755         of xreadlink.
2756         * lib/relocwrapper.c: Update comments.
2757         * build-aux/install-reloc: Remove xreadlink.c from file list.
2758         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
2759         xreadlink.c.
2760         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
2761
2762 2007-12-24  Bruno Haible  <bruno@clisp.org>
2763
2764         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
2765         * lib/setenv.h: Remove file.
2766         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
2767         lib/setenv.h.
2768         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
2769         (Depends-on): Add stdlib.
2770         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
2771         gl_FUNC_UNSETENV.
2772         (Include): Replace setenv.h with <stdlib.h>.
2773         * modules/unsetenv: New file.
2774         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
2775         * lib/unsetenv.c: Include <stdlib.h> first.
2776         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
2777         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
2778         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
2779         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
2780         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
2781         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
2782         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
2783         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
2784         * doc/functions/unsetenv.texi: Update.
2785         * modules/xsetenv (Depends-on): Add unsetenv.
2786         * modules/getdate (Depends-on): Likewise.
2787         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
2788         * lib/xsetenv.c: Don't include setenv.h.
2789         * lib/getdate.y: Likewise.
2790         * lib/relocwrapper.c: Likewise.
2791         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
2792         (Depends-on): Add stdlib.
2793         * NEWS: Mention the changes.
2794         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
2795
2796 2007-12-23  Bruno Haible  <bruno@clisp.org>
2797
2798         * lib/memmem.c (memmem): Use lowercase variable names. Tab
2799         indentation.
2800
2801 2007-12-23  Bruno Haible  <bruno@clisp.org>
2802
2803         * lib/c-strcasestr.c: Add more comments.
2804         * lib/c-strstr.c: Likewise.
2805         * lib/mbscasestr.c: Likewise.
2806         * lib/mbsstr.c: Likewise.
2807         * lib/strcasestr.c: Likewise.
2808         * lib/memmem.c: Likewise.
2809
2810 2007-12-23  Bruno Haible  <bruno@clisp.org>
2811
2812         * tests/test-memmem.c: Include <string.h> first.
2813
2814 2007-12-22  Bruno Haible  <bruno@clisp.org>
2815
2816         * gnulib-tool (func_create_testdir): Change $auxdir while generating
2817         the contents of $testsbase.
2818         Reported by Ralf Wildenhues.
2819
2820 2007-12-22  Bruno Haible  <bruno@clisp.org>
2821
2822         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
2823         two variables local_ldadd_before, local_ldadd_last.
2824
2825 2007-12-20  Eric Blake  <ebb9@byu.net>
2826
2827         Work around circular library issue when cross-compiling.
2828         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
2829         that progname.o does not need to pull in rpl_memcmp.
2830
2831 2007-12-19  Eric Blake  <ebb9@byu.net>
2832
2833         Fix memmem to avoid O(n^2) worst-case complexity.
2834         * lib/memmem.c (knuth_morris_pratt): New function.
2835         (memmem): Use it if first few naive iterations fail.
2836         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
2837         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
2838         * modules/memchr (License): Likewise.
2839         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
2840         malloca.
2841         * tests/test-memmem.c: Rewrite, borrowing ideas from
2842         test-mbsstr1.c; the old version wouldn't even compile!
2843         * modules/memmem-tests: New file.
2844         * lib/string.in.h (rpl_memmem): Add declaration.
2845         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
2846         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
2847         REPLACE_MEMMEM.
2848
2849 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
2850
2851         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
2852         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
2853         before any system include files, and undef after them all.  This
2854         should fix a problem on VMS reported by John E. Malmberg in
2855         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
2856
2857 2007-12-17  Eric Blake  <ebb9@byu.net>
2858
2859         Revert addition of verify, for BSD/OS.
2860         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
2861         can't handle large files, for the sake of obsolete platforms.
2862         * modules/fseeko (Depends-on): Remove verify.
2863         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
2864         * doc/functions/ftello.texi (ftello): Likewise.
2865         * doc/functions/fgetpos.texi (fgetpos): Likewise.
2866         Reported by Larry Jones.
2867
2868 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
2869
2870         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
2871         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
2872
2873 2007-12-17  Jim Meyering  <meyering@redhat.com>
2874
2875         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
2876         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
2877         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
2878         * modules/getcwd (Depends-on): Add openat.
2879         Reported by Petr Salinger.
2880
2881 2007-12-17  Bruno Haible  <bruno@clisp.org>
2882
2883         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
2884         avoid a segmentation fault of the configure test on x86_64 systems.
2885
2886 2007-12-15  Jim Meyering  <meyering@redhat.com>
2887
2888         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
2889
2890 2007-12-13  Eric Blake  <ebb9@byu.net>
2891
2892         Another fseek test.
2893         * tests/test-fseek.c (main): Also test ungetc handling.
2894         * tests/test-fseeko.c (main): Likewise.
2895         * modules/fseeko (Depends-on): Add verify.
2896         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
2897         large.
2898         Reported by Larry Jones.
2899
2900         Fix fseeko on mingw.
2901         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
2902         seek.
2903
2904         Beef up fseek tests.
2905         * tests/test-fseek.c (main): Also test eof handling.
2906         * tests/test-fseeko.c (main): Likewise.
2907         Reported by Larry Jones.
2908
2909 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
2910
2911         Fix fseeko on BSD-based platforms.
2912         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
2913         successful seek.
2914
2915 2007-12-12  Eric Blake  <ebb9@byu.net>
2916
2917         Allow circular dependency of separate libtests.a
2918         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
2919         when use_libtests.
2920
2921 2007-12-11  Eric Blake  <ebb9@byu.net>
2922
2923         Fix bug with -0.0L in previous patch.
2924         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
2925         * tests/test-isnan.c (main): Also test on zeroes.
2926         * tests/test-isnanf.c (main): Likewise.
2927         * tests/test-isnanl.h (main): Likewise.
2928
2929         Detect pseudo-denormals on x86 even when cross-compiling.
2930         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
2931         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
2932         invalid bit patterns that happen to satisfy ==.
2933
2934         Avoid link failures with separate libtests.a.
2935         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
2936         last, to satisfy circular dependencies.
2937
2938 2007-12-11  Eric Blake  <ebb9@byu.net>
2939         and Bruno Haible  <bruno@clisp.org>
2940
2941         Fix OpenBSD 4.0 <float.h> handling of long double.
2942         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
2943         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
2944         * doc/headers/float.texi (float.h): Document OpenBSD bug.
2945
2946 2007-12-11  Jim Meyering  <meyering@redhat.com>
2947
2948         * users.txt: Add libvirt.
2949
2950         Support versions of autoconf prior to 2.59c.
2951         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
2952         if it is not already defined.
2953
2954 2007-12-09  Bruno Haible  <bruno@clisp.org>
2955
2956         Let 'gnulib-tool --import' collect sources needed for the tests in
2957         tests/ rather than in lib/.
2958         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
2959         argument. If true, add rules to generate libtests.a, and put libtests.a
2960         into $(LDADD). Consider source files in subdirectories and set
2961         uses_subdirs.
2962         (func_emit_initmacro_start, func_emit_initmacro_end,
2963         func_emit_initmacro_done): Pass all arguments explicitly.
2964         (func_import): Determine two module lists main_modules,
2965         testsrelated_modules. Determine use_libtests. Determine two variables
2966         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
2967         instead of just sed_transform_lib_file. Determine two variables
2968         main_files and testsrelated_files. Compute 'files' as the union of
2969         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
2970         func_add_or_update. In the generated gnulib-comp.m4, collect the
2971         object files for tests/ in different variables than those for lib/.
2972         Substitute LIBTESTS_LIBDEPS.
2973         (func_create_testdir): Combine the uses_subdirs results from
2974         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
2975
2976 2007-12-09  Bruno Haible  <bruno@clisp.org>
2977
2978         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
2979         the build-aux directory.
2980
2981 2007-12-09  Bruno Haible  <bruno@clisp.org>
2982
2983         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
2984         introduced on 2006-09-09.
2985
2986 2007-12-07  Jim Meyering  <meyering@redhat.com>
2987
2988         Let these macros work also with autoconf-2.59.
2989         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
2990         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
2991         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
2992
2993 2007-12-06  Jim Meyering  <meyering@redhat.com>
2994
2995         Avoid a configure-time syntax error in gl_FUNC_ACL.
2996         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
2997         function in each branch, before testing the cache variable.
2998
2999 2007-12-04  Eric Blake  <ebb9@byu.net>
3000
3001         Make scripts executable.
3002         * build-aux/config.guess: Add execute permissions.
3003         * build-aux/config.sub: Likewise.
3004         * build-aux/gendocs.sh: Likewise.
3005
3006         Fix frexp on mingw.
3007         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
3008         cross-compiling.
3009         * doc/functions/frexp.texi (frexp): Document the bug.
3010
3011         Make cygwin fseeko check more reliable.
3012         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
3013         version numbers, rather than unrelated feature check.
3014         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
3015         * doc/functions/ftello.texi (ftello): Likewise.
3016         Reported by Bruno Haible.
3017
3018         * m4/strerror.m4: Bump version number.
3019
3020 2007-12-03  Bruno Haible  <bruno@clisp.org>
3021
3022         * doc/functions/mprotect.texi: Mention the mingw problem.
3023
3024 2007-12-03  Eric Blake  <ebb9@byu.net>
3025
3026         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
3027         REPLACE_STRERROR is initialized before this macro.
3028
3029 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
3030
3031         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
3032         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
3033         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
3034         put -lsec in even for programs other than 'ls'.  This fixes a problem
3035         for gettext reported by Bruno Haible in
3036         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
3037         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
3038         Add support for Solaris 10.  This isn't efficient, but should get the
3039         job done for now.
3040
3041 2007-12-03  James Youngman  <jay@gnu.org>
3042
3043         * doc/regexprops-generic.texi: change "an close-group" to "a
3044         close-group" and "illegal" to "not allowed".
3045
3046 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3047
3048         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
3049         pr_byname.h. Needed for the rare case when the maintainer has done
3050         "make maintainer-clean" in the source directory and then attempts a
3051         build outside the source directory.
3052         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
3053         scripts_byname.h.
3054
3055 2007-12-02  Martin Lambers <marlam@marlam.de>
3056             Bruno Haible  <bruno@clisp.org>
3057
3058         * lib/getpagesize.h: Remove file.
3059         * lib/unistd.in.h: Include declaration of getpagesize here.
3060         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
3061         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
3062         HAVE_SYS_PARAM_H.
3063         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
3064         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
3065         * modules/getpagesize (Files): Remove lib/getpagesize.h.
3066         (Depends-on): Add unistd.
3067         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
3068         (Include): Use <unistd.h> instead of getpagesize.h.
3069         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
3070         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
3071         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
3072         gl_GETPAGESIZE invocation, already handled by module dependency.
3073         * lib/pagealign_alloc.c: Don't include getpagesize.h.
3074
3075 2007-12-02  Bruno Haible  <bruno@clisp.org>
3076
3077         * modules/strings-tests: New file.
3078         * tests/test-strings.c: New file.
3079
3080         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
3081         * lib/strings.in.h: New file.
3082         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
3083         * m4/strings_h.m4: New file.
3084         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
3085         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
3086         * modules/strings: New file.
3087         * modules/string (Makefile.am): Update.
3088         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
3089         Reported by Karl Berry.
3090
3091 2007-12-01  Eric Blake  <ebb9@byu.net>
3092
3093         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
3094         accomodate fix in cygwin 1.5.25.
3095
3096 2007-12-01  Jim Meyering  <meyering@redhat.com>
3097
3098         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
3099         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
3100         that would inhibit utf8-optimization of a regexp containing line-
3101         or buffer-anchors, e.g., `^', `$'.
3102
3103 2007-11-30  Bruno Haible  <bruno@clisp.org>
3104
3105         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
3106         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
3107         glthread_recursive_lock_init.
3108         * lib/lock.c (glthread_recursive_lock_init)
3109         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
3110         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
3111
3112 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
3113
3114         New function qset_acl, like set_acl but with syscall semantics.
3115         * lib/acl.h (qset_acl): New decl.
3116         * lib/acl.c (qset_acl): New function.
3117         (set_acl): Use new function.  Use more-consistent diagnostics.
3118
3119 2007-11-28  Jim Meyering  <meyering@redhat.com>
3120
3121         * modules/physmem (License): Change from GPL to LGPLv2+.
3122
3123 2007-11-26  Bruno Haible  <bruno@clisp.org>
3124
3125         * lib/vasnprintf.c (decode_long_double): Don't abort if the
3126         'long double' type has excess precision.
3127         Reported by Jim Meyering in
3128         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
3129
3130 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3131
3132         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
3133         Sync from <http://gnu.org/licenses>.
3134         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
3135         with license text from same location.
3136         * doc/maintain.texi, doc/standards.texi:  Sync from
3137         <http://savannah.gnu.org/projects/gnustandards>.
3138
3139 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
3140         and Jim Meyering  <meyering@redhat.com>
3141
3142         Adjust getdate' grammar to accept a slightly more regular language.
3143         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
3144         Before, the former was rejected.
3145         * lib/getdate.y (digits_to_date_time): New function, factored
3146         out of ...
3147         (number): ...here.  Just call digits_to_date_time.
3148         (hybrid): New non-terminal to handle an <unsigned number,
3149         signed relative offset> sequence consistently.
3150
3151 2007-11-18  Jim Meyering  <meyering@redhat.com>
3152
3153         Pull my changes from coreutils:
3154         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
3155         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
3156         use of $gnulib_tool_option_extras, so that it's separated from the
3157         preceding argument.
3158
3159         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
3160         * build-aux/bootstrap (cp_mark_as_generated): Create any required
3161         parent destination directories before copying a file into place.
3162
3163 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
3164
3165         bootstrap: work also with 4-argument variant of AC_INIT
3166         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
3167
3168 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
3169
3170         Port test-getaddrinfo to Solaris.
3171         Problem reported by Bruno Haible in
3172         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
3173         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
3174         explanation of setting 'hints'.
3175         Don't reject an implementation merely because it returns EAI_SERVICE.
3176         (EAI_SERVICE): Define to 0 if not defined.
3177
3178 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
3179
3180         The license of gnu-make and posix-shell is now "GPLed build tool".
3181         * modules/gnu-make (License): Likewise.
3182         * modules/posix-shell (License): Likewise.
3183
3184         New module posix-shell, for determining a POSIX shell
3185         or perhaps something that is close enough to a POSIX shell.
3186         * m4/posix-shell.m4: New file.
3187         * modules/posix-shell: New file.
3188
3189         * MODULES.html.sh: Mention new module.
3190
3191         New module gnu-make, for determining whether we're using GNU Make.
3192         * m4/gnu-make.m4: New file.
3193         * modules/gnu-make: New file.
3194         * MODULES.html.sh: Mention new module.
3195
3196 2007-11-14  Jim Meyering  <meyering@redhat.com>
3197
3198         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
3199         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
3200         use this macro to create a function _definition_.
3201         Remove useless "#undef ARGMATCH_DIE".
3202
3203 2007-11-14  Bruno Haible  <bruno@clisp.org>
3204
3205         * lib/config.charset: Update for OpenBSD 4.1.
3206         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
3207
3208 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
3209
3210         Document 64-bit #if problems in stdint.texi.
3211         * doc/headers/stdint.texi (stdint.h): Mention problems with
3212         64-bit-#if, and how to work around them.
3213
3214         Don't insist on 'long long int' support in the preprocessor.  It
3215         breaks too many things.  For example, PRIdMAX still uses a 'long
3216         long int' format with the latest Sun compiler, even though
3217         HAVE_LONG_LONG_INT isn't defined due to that compiler's
3218         preprocessor problem.  This causes the latest coreutils to dump
3219         core on Solaris 10 sparc with the Sun C compiler.
3220         Instead, fix the 2007-10-16 problem in a different way, by evaluating
3221         the troublesome expressions at configure-time, not at #if-time.
3222         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
3223         preprocessor.
3224         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
3225         compile-time C checks, done at 'configure'-time.
3226         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
3227         * modules/inttypes (Makefile): Substitute the new symbols that
3228         gl_INTTYPES_H now generates.
3229         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
3230
3231 2007-11-12  Bruno Haible  <bruno@clisp.org>
3232
3233         Tests for Unicode character classification functions.
3234
3235         * modules/unictype/bidicategory-byname-tests: New file.
3236         * modules/unictype/bidicategory-name-tests: New file.
3237         * modules/unictype/bidicategory-of-tests: New file.
3238         * modules/unictype/bidicategory-test-tests: New file.
3239         * modules/unictype/block-list-tests: New file.
3240         * modules/unictype/block-of-tests: New file.
3241         * modules/unictype/block-test-tests: New file.
3242         * modules/unictype/category-C-tests: New file.
3243         * modules/unictype/category-Cc-tests: New file.
3244         * modules/unictype/category-Cf-tests: New file.
3245         * modules/unictype/category-Cn-tests: New file.
3246         * modules/unictype/category-Co-tests: New file.
3247         * modules/unictype/category-Cs-tests: New file.
3248         * modules/unictype/category-L-tests: New file.
3249         * modules/unictype/category-Ll-tests: New file.
3250         * modules/unictype/category-Lm-tests: New file.
3251         * modules/unictype/category-Lo-tests: New file.
3252         * modules/unictype/category-Lt-tests: New file.
3253         * modules/unictype/category-Lu-tests: New file.
3254         * modules/unictype/category-M-tests: New file.
3255         * modules/unictype/category-Mc-tests: New file.
3256         * modules/unictype/category-Me-tests: New file.
3257         * modules/unictype/category-Mn-tests: New file.
3258         * modules/unictype/category-N-tests: New file.
3259         * modules/unictype/category-Nd-tests: New file.
3260         * modules/unictype/category-Nl-tests: New file.
3261         * modules/unictype/category-No-tests: New file.
3262         * modules/unictype/category-P-tests: New file.
3263         * modules/unictype/category-Pc-tests: New file.
3264         * modules/unictype/category-Pd-tests: New file.
3265         * modules/unictype/category-Pe-tests: New file.
3266         * modules/unictype/category-Pf-tests: New file.
3267         * modules/unictype/category-Pi-tests: New file.
3268         * modules/unictype/category-Po-tests: New file.
3269         * modules/unictype/category-Ps-tests: New file.
3270         * modules/unictype/category-S-tests: New file.
3271         * modules/unictype/category-Sc-tests: New file.
3272         * modules/unictype/category-Sk-tests: New file.
3273         * modules/unictype/category-Sm-tests: New file.
3274         * modules/unictype/category-So-tests: New file.
3275         * modules/unictype/category-Z-tests: New file.
3276         * modules/unictype/category-Zl-tests: New file.
3277         * modules/unictype/category-Zp-tests: New file.
3278         * modules/unictype/category-Zs-tests: New file.
3279         * modules/unictype/category-and-not-tests: New file.
3280         * modules/unictype/category-and-tests: New file.
3281         * modules/unictype/category-byname-tests: New file.
3282         * modules/unictype/category-name-tests: New file.
3283         * modules/unictype/category-none-tests: New file.
3284         * modules/unictype/category-of-tests: New file.
3285         * modules/unictype/category-or-tests: New file.
3286         * modules/unictype/category-test-withtable-tests: New file.
3287         * modules/unictype/combining-class-tests: New file.
3288         * modules/unictype/ctype-alnum-tests: New file.
3289         * modules/unictype/ctype-alpha-tests: New file.
3290         * modules/unictype/ctype-blank-tests: New file.
3291         * modules/unictype/ctype-cntrl-tests: New file.
3292         * modules/unictype/ctype-digit-tests: New file.
3293         * modules/unictype/ctype-graph-tests: New file.
3294         * modules/unictype/ctype-lower-tests: New file.
3295         * modules/unictype/ctype-print-tests: New file.
3296         * modules/unictype/ctype-punct-tests: New file.
3297         * modules/unictype/ctype-space-tests: New file.
3298         * modules/unictype/ctype-upper-tests: New file.
3299         * modules/unictype/ctype-xdigit-tests: New file.
3300         * modules/unictype/decimal-digit-tests: New file.
3301         * modules/unictype/digit-tests: New file.
3302         * modules/unictype/mirror-tests: New file.
3303         * modules/unictype/numeric-tests: New file.
3304         * modules/unictype/property-alphabetic-tests: New file.
3305         * modules/unictype/property-ascii-hex-digit-tests: New file.
3306         * modules/unictype/property-bidi-arabic-digit-tests: New file.
3307         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
3308         * modules/unictype/property-bidi-block-separator-tests: New file.
3309         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
3310         * modules/unictype/property-bidi-common-separator-tests: New file.
3311         * modules/unictype/property-bidi-control-tests: New file.
3312         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
3313         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
3314         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
3315         * modules/unictype/property-bidi-european-digit-tests: New file.
3316         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
3317         * modules/unictype/property-bidi-left-to-right-tests: New file.
3318         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
3319         * modules/unictype/property-bidi-other-neutral-tests: New file.
3320         * modules/unictype/property-bidi-pdf-tests: New file.
3321         * modules/unictype/property-bidi-segment-separator-tests: New file.
3322         * modules/unictype/property-bidi-whitespace-tests: New file.
3323         * modules/unictype/property-byname-tests: New file.
3324         * modules/unictype/property-combining-tests: New file.
3325         * modules/unictype/property-composite-tests: New file.
3326         * modules/unictype/property-currency-symbol-tests: New file.
3327         * modules/unictype/property-dash-tests: New file.
3328         * modules/unictype/property-decimal-digit-tests: New file.
3329         * modules/unictype/property-default-ignorable-code-point-tests: New file.
3330         * modules/unictype/property-deprecated-tests: New file.
3331         * modules/unictype/property-diacritic-tests: New file.
3332         * modules/unictype/property-extender-tests: New file.
3333         * modules/unictype/property-format-control-tests: New file.
3334         * modules/unictype/property-grapheme-base-tests: New file.
3335         * modules/unictype/property-grapheme-extend-tests: New file.
3336         * modules/unictype/property-grapheme-link-tests: New file.
3337         * modules/unictype/property-hex-digit-tests: New file.
3338         * modules/unictype/property-hyphen-tests: New file.
3339         * modules/unictype/property-id-continue-tests: New file.
3340         * modules/unictype/property-id-start-tests: New file.
3341         * modules/unictype/property-ideographic-tests: New file.
3342         * modules/unictype/property-ids-binary-operator-tests: New file.
3343         * modules/unictype/property-ids-trinary-operator-tests: New file.
3344         * modules/unictype/property-ignorable-control-tests: New file.
3345         * modules/unictype/property-iso-control-tests: New file.
3346         * modules/unictype/property-join-control-tests: New file.
3347         * modules/unictype/property-left-of-pair-tests: New file.
3348         * modules/unictype/property-line-separator-tests: New file.
3349         * modules/unictype/property-logical-order-exception-tests: New file.
3350         * modules/unictype/property-lowercase-tests: New file.
3351         * modules/unictype/property-math-tests: New file.
3352         * modules/unictype/property-non-break-tests: New file.
3353         * modules/unictype/property-not-a-character-tests: New file.
3354         * modules/unictype/property-numeric-tests: New file.
3355         * modules/unictype/property-other-alphabetic-tests: New file.
3356         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
3357         * modules/unictype/property-other-grapheme-extend-tests: New file.
3358         * modules/unictype/property-other-id-continue-tests: New file.
3359         * modules/unictype/property-other-id-start-tests: New file.
3360         * modules/unictype/property-other-lowercase-tests: New file.
3361         * modules/unictype/property-other-math-tests: New file.
3362         * modules/unictype/property-other-uppercase-tests: New file.
3363         * modules/unictype/property-paired-punctuation-tests: New file.
3364         * modules/unictype/property-paragraph-separator-tests: New file.
3365         * modules/unictype/property-pattern-syntax-tests: New file.
3366         * modules/unictype/property-pattern-white-space-tests: New file.
3367         * modules/unictype/property-private-use-tests: New file.
3368         * modules/unictype/property-punctuation-tests: New file.
3369         * modules/unictype/property-quotation-mark-tests: New file.
3370         * modules/unictype/property-radical-tests: New file.
3371         * modules/unictype/property-sentence-terminal-tests: New file.
3372         * modules/unictype/property-soft-dotted-tests: New file.
3373         * modules/unictype/property-space-tests: New file.
3374         * modules/unictype/property-terminal-punctuation-tests: New file.
3375         * modules/unictype/property-test-tests: New file.
3376         * modules/unictype/property-titlecase-tests: New file.
3377         * modules/unictype/property-unassigned-code-value-tests: New file.
3378         * modules/unictype/property-unified-ideograph-tests: New file.
3379         * modules/unictype/property-uppercase-tests: New file.
3380         * modules/unictype/property-variation-selector-tests: New file.
3381         * modules/unictype/property-white-space-tests: New file.
3382         * modules/unictype/property-xid-continue-tests: New file.
3383         * modules/unictype/property-xid-start-tests: New file.
3384         * modules/unictype/property-zero-width-tests: New file.
3385         * modules/unictype/scripts-tests: New file.
3386         * modules/unictype/syntax-c-ident-tests: New file.
3387         * modules/unictype/syntax-c-whitespace-tests: New file.
3388         * modules/unictype/syntax-java-ident-tests: New file.
3389         * modules/unictype/syntax-java-whitespace-tests: New file.
3390         * tests/unictype/test-bidi_byname.c: New file.
3391         * tests/unictype/test-bidi_name.c: New file.
3392         * tests/unictype/test-bidi_of.c: New file.
3393         * tests/unictype/test-bidi_test.c: New file.
3394         * tests/unictype/test-block_list.c: New file.
3395         * tests/unictype/test-block_of.c: New file.
3396         * tests/unictype/test-block_test.c: New file.
3397         * tests/unictype/test-categ_and.c: New file.
3398         * tests/unictype/test-categ_and_not.c: New file.
3399         * tests/unictype/test-categ_byname.c: New file.
3400         * tests/unictype/test-categ_name.c: New file.
3401         * tests/unictype/test-categ_none.c: New file.
3402         * tests/unictype/test-categ_of.c: New file.
3403         * tests/unictype/test-categ_or.c: New file.
3404         * tests/unictype/test-categ_test_withtable.c: New file.
3405         * tests/unictype/test-combining.c: New file.
3406         * tests/unictype/test-decdigit.c: New file.
3407         * tests/unictype/test-digit.c: New file.
3408         * tests/unictype/test-mirror.c: New file.
3409         * tests/unictype/test-numeric.c: New file.
3410         * tests/unictype/test-pr_byname.c: New file.
3411         * tests/unictype/test-pr_test.c: New file.
3412         * tests/unictype/test-predicate-part1.h: New file.
3413         * tests/unictype/test-predicate-part2.h: New file.
3414         * tests/unictype/test-scripts.c: New file.
3415         * tests/unictype/test-sy_c_ident.c: New file.
3416         * tests/unictype/test-sy_java_ident.c: New file.
3417
3418         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
3419         for Unicode 5.0.0.
3420         * tests/unictype/test-categ_Cc.c: Likewise.
3421         * tests/unictype/test-categ_Cf.c: Likewise.
3422         * tests/unictype/test-categ_Cn.c: Likewise.
3423         * tests/unictype/test-categ_Co.c: Likewise.
3424         * tests/unictype/test-categ_Cs.c: Likewise.
3425         * tests/unictype/test-categ_L.c: Likewise.
3426         * tests/unictype/test-categ_Ll.c: Likewise.
3427         * tests/unictype/test-categ_Lm.c: Likewise.
3428         * tests/unictype/test-categ_Lo.c: Likewise.
3429         * tests/unictype/test-categ_Lt.c: Likewise.
3430         * tests/unictype/test-categ_Lu.c: Likewise.
3431         * tests/unictype/test-categ_M.c: Likewise.
3432         * tests/unictype/test-categ_Mc.c: Likewise.
3433         * tests/unictype/test-categ_Me.c: Likewise.
3434         * tests/unictype/test-categ_Mn.c: Likewise.
3435         * tests/unictype/test-categ_N.c: Likewise.
3436         * tests/unictype/test-categ_Nd.c: Likewise.
3437         * tests/unictype/test-categ_Nl.c: Likewise.
3438         * tests/unictype/test-categ_No.c: Likewise.
3439         * tests/unictype/test-categ_P.c: Likewise.
3440         * tests/unictype/test-categ_Pc.c: Likewise.
3441         * tests/unictype/test-categ_Pd.c: Likewise.
3442         * tests/unictype/test-categ_Pe.c: Likewise.
3443         * tests/unictype/test-categ_Pf.c: Likewise.
3444         * tests/unictype/test-categ_Pi.c: Likewise.
3445         * tests/unictype/test-categ_Po.c: Likewise.
3446         * tests/unictype/test-categ_Ps.c: Likewise.
3447         * tests/unictype/test-categ_S.c: Likewise.
3448         * tests/unictype/test-categ_Sc.c: Likewise.
3449         * tests/unictype/test-categ_Sk.c: Likewise.
3450         * tests/unictype/test-categ_Sm.c: Likewise.
3451         * tests/unictype/test-categ_So.c: Likewise.
3452         * tests/unictype/test-categ_Z.c: Likewise.
3453         * tests/unictype/test-categ_Zl.c: Likewise.
3454         * tests/unictype/test-categ_Zp.c: Likewise.
3455         * tests/unictype/test-categ_Zs.c: Likewise.
3456         * tests/unictype/test-ctype_alnum.c: Likewise.
3457         * tests/unictype/test-ctype_alpha.c: Likewise.
3458         * tests/unictype/test-ctype_blank.c: Likewise.
3459         * tests/unictype/test-ctype_cntrl.c: Likewise.
3460         * tests/unictype/test-ctype_digit.c: Likewise.
3461         * tests/unictype/test-ctype_graph.c: Likewise.
3462         * tests/unictype/test-ctype_lower.c: Likewise.
3463         * tests/unictype/test-ctype_print.c: Likewise.
3464         * tests/unictype/test-ctype_punct.c: Likewise.
3465         * tests/unictype/test-ctype_space.c: Likewise.
3466         * tests/unictype/test-ctype_upper.c: Likewise.
3467         * tests/unictype/test-ctype_xdigit.c: Likewise.
3468         * tests/unictype/test-decdigit.h: Likewise.
3469         * tests/unictype/test-digit.h: Likewise.
3470         * tests/unictype/test-numeric.h: Likewise.
3471         * tests/unictype/test-pr_alphabetic.c: Likewise.
3472         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
3473         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
3474         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
3475         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
3476         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
3477         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
3478         * tests/unictype/test-pr_bidi_control.c: Likewise.
3479         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
3480         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
3481         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
3482         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
3483         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
3484         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
3485         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
3486         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
3487         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
3488         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
3489         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
3490         * tests/unictype/test-pr_combining.c: Likewise.
3491         * tests/unictype/test-pr_composite.c: Likewise.
3492         * tests/unictype/test-pr_currency_symbol.c: Likewise.
3493         * tests/unictype/test-pr_dash.c: Likewise.
3494         * tests/unictype/test-pr_decimal_digit.c: Likewise.
3495         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
3496         * tests/unictype/test-pr_deprecated.c: Likewise.
3497         * tests/unictype/test-pr_diacritic.c: Likewise.
3498         * tests/unictype/test-pr_extender.c: Likewise.
3499         * tests/unictype/test-pr_format_control.c: Likewise.
3500         * tests/unictype/test-pr_grapheme_base.c: Likewise.
3501         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
3502         * tests/unictype/test-pr_grapheme_link.c: Likewise.
3503         * tests/unictype/test-pr_hex_digit.c: Likewise.
3504         * tests/unictype/test-pr_hyphen.c: Likewise.
3505         * tests/unictype/test-pr_id_continue.c: Likewise.
3506         * tests/unictype/test-pr_id_start.c: Likewise.
3507         * tests/unictype/test-pr_ideographic.c: Likewise.
3508         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
3509         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
3510         * tests/unictype/test-pr_ignorable_control.c: Likewise.
3511         * tests/unictype/test-pr_iso_control.c: Likewise.
3512         * tests/unictype/test-pr_join_control.c: Likewise.
3513         * tests/unictype/test-pr_left_of_pair.c: Likewise.
3514         * tests/unictype/test-pr_line_separator.c: Likewise.
3515         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
3516         * tests/unictype/test-pr_lowercase.c: Likewise.
3517         * tests/unictype/test-pr_math.c: Likewise.
3518         * tests/unictype/test-pr_non_break.c: Likewise.
3519         * tests/unictype/test-pr_not_a_character.c: Likewise.
3520         * tests/unictype/test-pr_numeric.c: Likewise.
3521         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
3522         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
3523         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
3524         * tests/unictype/test-pr_other_id_continue.c: Likewise.
3525         * tests/unictype/test-pr_other_id_start.c: Likewise.
3526         * tests/unictype/test-pr_other_lowercase.c: Likewise.
3527         * tests/unictype/test-pr_other_math.c: Likewise.
3528         * tests/unictype/test-pr_other_uppercase.c: Likewise.
3529         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
3530         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
3531         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
3532         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
3533         * tests/unictype/test-pr_private_use.c: Likewise.
3534         * tests/unictype/test-pr_punctuation.c: Likewise.
3535         * tests/unictype/test-pr_quotation_mark.c: Likewise.
3536         * tests/unictype/test-pr_radical.c: Likewise.
3537         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
3538         * tests/unictype/test-pr_soft_dotted.c: Likewise.
3539         * tests/unictype/test-pr_space.c: Likewise.
3540         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
3541         * tests/unictype/test-pr_titlecase.c: Likewise.
3542         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
3543         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
3544         * tests/unictype/test-pr_uppercase.c: Likewise.
3545         * tests/unictype/test-pr_variation_selector.c: Likewise.
3546         * tests/unictype/test-pr_white_space.c: Likewise.
3547         * tests/unictype/test-pr_xid_continue.c: Likewise.
3548         * tests/unictype/test-pr_xid_start.c: Likewise.
3549         * tests/unictype/test-pr_zero_width.c: Likewise.
3550         * tests/unictype/test-sy_c_whitespace.c: Likewise.
3551         * tests/unictype/test-sy_java_whitespace.c: Likewise.
3552
3553 2007-11-12  Bruno Haible  <bruno@clisp.org>
3554
3555         Unicode character classification functions.
3556         * lib/unictype.h: New file.
3557         * modules/unictype/base: New file.
3558         * modules/unictype/category-L: New file.
3559         * modules/unictype/category-Lu: New file.
3560         * modules/unictype/category-Ll: New file.
3561         * modules/unictype/category-Lt: New file.
3562         * modules/unictype/category-Lm: New file.
3563         * modules/unictype/category-Lo: New file.
3564         * modules/unictype/category-M: New file.
3565         * modules/unictype/category-Mn: New file.
3566         * modules/unictype/category-Mc: New file.
3567         * modules/unictype/category-Me: New file.
3568         * modules/unictype/category-N: New file.
3569         * modules/unictype/category-Nd: New file.
3570         * modules/unictype/category-Nl: New file.
3571         * modules/unictype/category-No: New file.
3572         * modules/unictype/category-P: New file.
3573         * modules/unictype/category-Pc: New file.
3574         * modules/unictype/category-Pd: New file.
3575         * modules/unictype/category-Ps: New file.
3576         * modules/unictype/category-Pe: New file.
3577         * modules/unictype/category-Pi: New file.
3578         * modules/unictype/category-Pf: New file.
3579         * modules/unictype/category-Po: New file.
3580         * modules/unictype/category-S: New file.
3581         * modules/unictype/category-Sm: New file.
3582         * modules/unictype/category-Sc: New file.
3583         * modules/unictype/category-Sk: New file.
3584         * modules/unictype/category-So: New file.
3585         * modules/unictype/category-Z: New file.
3586         * modules/unictype/category-Zs: New file.
3587         * modules/unictype/category-Zl: New file.
3588         * modules/unictype/category-Zp: New file.
3589         * modules/unictype/category-C: New file.
3590         * modules/unictype/category-Cc: New file.
3591         * modules/unictype/category-Cf: New file.
3592         * modules/unictype/category-Cs: New file.
3593         * modules/unictype/category-Co: New file.
3594         * modules/unictype/category-Cn: New file.
3595         * modules/unictype/category-or: New file.
3596         * modules/unictype/category-of: New file.
3597         * modules/unictype/category-test: New file.
3598         * modules/unictype/category-test-withtable: New file.
3599         * modules/unictype/category-byname: New file.
3600         * modules/unictype/category-none: New file.
3601         * modules/unictype/category-and: New file.
3602         * modules/unictype/category-and-not: New file.
3603         * modules/unictype/category-name: New file.
3604         * modules/unictype/combining-class: New file.
3605         * modules/unictype/category-all: New file.
3606         * modules/unictype/bidicategory-all: New file.
3607         * modules/unictype/bidicategory-byname: New file.
3608         * modules/unictype/bidicategory-name: New file.
3609         * modules/unictype/bidicategory-of: New file.
3610         * modules/unictype/bidicategory-test: New file.
3611         * modules/unictype/decimal-digit: New file.
3612         * modules/unictype/digit: New file.
3613         * modules/unictype/numeric: New file.
3614         * modules/unictype/mirror: New file.
3615         * modules/unictype/property-white-space: New file.
3616         * modules/unictype/property-alphabetic: New file.
3617         * modules/unictype/property-other-alphabetic: New file.
3618         * modules/unictype/property-not-a-character: New file.
3619         * modules/unictype/property-default-ignorable-code-point: New file.
3620         * modules/unictype/property-other-default-ignorable-code-point: New
3621         file.
3622         * modules/unictype/property-deprecated: New file.
3623         * modules/unictype/property-logical-order-exception: New file.
3624         * modules/unictype/property-variation-selector: New file.
3625         * modules/unictype/property-private-use: New file.
3626         * modules/unictype/property-unassigned-code-value: New file.
3627         * modules/unictype/property-uppercase: New file.
3628         * modules/unictype/property-other-uppercase: New file.
3629         * modules/unictype/property-lowercase: New file.
3630         * modules/unictype/property-other-lowercase: New file.
3631         * modules/unictype/property-titlecase: New file.
3632         * modules/unictype/property-soft-dotted: New file.
3633         * modules/unictype/property-id-start: New file.
3634         * modules/unictype/property-other-id-start: New file.
3635         * modules/unictype/property-id-continue: New file.
3636         * modules/unictype/property-other-id-continue: New file.
3637         * modules/unictype/property-xid-start: New file.
3638         * modules/unictype/property-xid-continue: New file.
3639         * modules/unictype/property-pattern-white-space: New file.
3640         * modules/unictype/property-pattern-syntax: New file.
3641         * modules/unictype/property-join-control: New file.
3642         * modules/unictype/property-grapheme-base: New file.
3643         * modules/unictype/property-grapheme-extend: New file.
3644         * modules/unictype/property-other-grapheme-extend: New file.
3645         * modules/unictype/property-grapheme-link: New file.
3646         * modules/unictype/property-bidi-control: New file.
3647         * modules/unictype/property-bidi-left-to-right: New file.
3648         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
3649         * modules/unictype/property-bidi-arabic-right-to-left: New file.
3650         * modules/unictype/property-bidi-european-digit: New file.
3651         * modules/unictype/property-bidi-eur-num-separator: New file.
3652         * modules/unictype/property-bidi-eur-num-terminator: New file.
3653         * modules/unictype/property-bidi-arabic-digit: New file.
3654         * modules/unictype/property-bidi-common-separator: New file.
3655         * modules/unictype/property-bidi-block-separator: New file.
3656         * modules/unictype/property-bidi-segment-separator: New file.
3657         * modules/unictype/property-bidi-whitespace: New file.
3658         * modules/unictype/property-bidi-non-spacing-mark: New file.
3659         * modules/unictype/property-bidi-boundary-neutral: New file.
3660         * modules/unictype/property-bidi-pdf: New file.
3661         * modules/unictype/property-bidi-embedding-or-override: New file.
3662         * modules/unictype/property-bidi-other-neutral: New file.
3663         * modules/unictype/property-hex-digit: New file.
3664         * modules/unictype/property-ascii-hex-digit: New file.
3665         * modules/unictype/property-ideographic: New file.
3666         * modules/unictype/property-unified-ideograph: New file.
3667         * modules/unictype/property-radical: New file.
3668         * modules/unictype/property-ids-binary-operator: New file.
3669         * modules/unictype/property-ids-trinary-operator: New file.
3670         * modules/unictype/property-zero-width: New file.
3671         * modules/unictype/property-space: New file.
3672         * modules/unictype/property-non-break: New file.
3673         * modules/unictype/property-iso-control: New file.
3674         * modules/unictype/property-format-control: New file.
3675         * modules/unictype/property-dash: New file.
3676         * modules/unictype/property-hyphen: New file.
3677         * modules/unictype/property-punctuation: New file.
3678         * modules/unictype/property-line-separator: New file.
3679         * modules/unictype/property-paragraph-separator: New file.
3680         * modules/unictype/property-quotation-mark: New file.
3681         * modules/unictype/property-sentence-terminal: New file.
3682         * modules/unictype/property-terminal-punctuation: New file.
3683         * modules/unictype/property-currency-symbol: New file.
3684         * modules/unictype/property-math: New file.
3685         * modules/unictype/property-other-math: New file.
3686         * modules/unictype/property-paired-punctuation: New file.
3687         * modules/unictype/property-left-of-pair: New file.
3688         * modules/unictype/property-combining: New file.
3689         * modules/unictype/property-composite: New file.
3690         * modules/unictype/property-decimal-digit: New file.
3691         * modules/unictype/property-numeric: New file.
3692         * modules/unictype/property-diacritic: New file.
3693         * modules/unictype/property-extender: New file.
3694         * modules/unictype/property-ignorable-control: New file.
3695         * modules/unictype/property-test: New file.
3696         * modules/unictype/property-byname: New file.
3697         * modules/unictype/property-all: New file.
3698         * modules/unictype/scripts: New file.
3699         * modules/unictype/scripts-all: New file.
3700         * modules/unictype/block-of: New file.
3701         * modules/unictype/block-test: New file.
3702         * modules/unictype/block-list: New file.
3703         * modules/unictype/block-all: New file.
3704         * modules/unictype/syntax-c-whitespace: New file.
3705         * modules/unictype/syntax-java-whitespace: New file.
3706         * modules/unictype/syntax-c-ident: New file.
3707         * modules/unictype/syntax-java-ident: New file.
3708         * modules/unictype/ctype-alnum: New file.
3709         * modules/unictype/ctype-alpha: New file.
3710         * modules/unictype/ctype-cntrl: New file.
3711         * modules/unictype/ctype-digit: New file.
3712         * modules/unictype/ctype-graph: New file.
3713         * modules/unictype/ctype-lower: New file.
3714         * modules/unictype/ctype-print: New file.
3715         * modules/unictype/ctype-punct: New file.
3716         * modules/unictype/ctype-space: New file.
3717         * modules/unictype/ctype-upper: New file.
3718         * modules/unictype/ctype-xdigit: New file.
3719         * modules/unictype/ctype-blank: New file.
3720         * lib/unictype/bidi_byname.c: New file.
3721         * lib/unictype/bidi_name.c: New file.
3722         * lib/unictype/bidi_of.c: New file.
3723         * lib/unictype/bidi_test.c: New file.
3724         * lib/unictype/bitmap.h: New file.
3725         * lib/unictype/block_test.c: New file.
3726         * lib/unictype/blocks.c: New file.
3727         * lib/unictype/categ_C.c: New file.
3728         * lib/unictype/categ_Cc.c: New file.
3729         * lib/unictype/categ_Cf.c: New file.
3730         * lib/unictype/categ_Cn.c: New file.
3731         * lib/unictype/categ_Co.c: New file.
3732         * lib/unictype/categ_Cs.c: New file.
3733         * lib/unictype/categ_L.c: New file.
3734         * lib/unictype/categ_Ll.c: New file.
3735         * lib/unictype/categ_Lm.c: New file.
3736         * lib/unictype/categ_Lo.c: New file.
3737         * lib/unictype/categ_Lt.c: New file.
3738         * lib/unictype/categ_Lu.c: New file.
3739         * lib/unictype/categ_M.c: New file.
3740         * lib/unictype/categ_Mc.c: New file.
3741         * lib/unictype/categ_Me.c: New file.
3742         * lib/unictype/categ_Mn.c: New file.
3743         * lib/unictype/categ_N.c: New file.
3744         * lib/unictype/categ_Nd.c: New file.
3745         * lib/unictype/categ_Nl.c: New file.
3746         * lib/unictype/categ_No.c: New file.
3747         * lib/unictype/categ_P.c: New file.
3748         * lib/unictype/categ_Pc.c: New file.
3749         * lib/unictype/categ_Pd.c: New file.
3750         * lib/unictype/categ_Pe.c: New file.
3751         * lib/unictype/categ_Pf.c: New file.
3752         * lib/unictype/categ_Pi.c: New file.
3753         * lib/unictype/categ_Po.c: New file.
3754         * lib/unictype/categ_Ps.c: New file.
3755         * lib/unictype/categ_S.c: New file.
3756         * lib/unictype/categ_Sc.c: New file.
3757         * lib/unictype/categ_Sk.c: New file.
3758         * lib/unictype/categ_Sm.c: New file.
3759         * lib/unictype/categ_So.c: New file.
3760         * lib/unictype/categ_Z.c: New file.
3761         * lib/unictype/categ_Zl.c: New file.
3762         * lib/unictype/categ_Zp.c: New file.
3763         * lib/unictype/categ_Zs.c: New file.
3764         * lib/unictype/categ_and.c: New file.
3765         * lib/unictype/categ_and_not.c: New file.
3766         * lib/unictype/categ_byname.c: New file.
3767         * lib/unictype/categ_name.c: New file.
3768         * lib/unictype/categ_none.c: New file.
3769         * lib/unictype/categ_of.c: New file.
3770         * lib/unictype/categ_or.c: New file.
3771         * lib/unictype/categ_test.c: New file.
3772         * lib/unictype/combining.c: New file.
3773         * lib/unictype/ctype_alnum.c: New file.
3774         * lib/unictype/ctype_alpha.c: New file.
3775         * lib/unictype/ctype_blank.c: New file.
3776         * lib/unictype/ctype_cntrl.c: New file.
3777         * lib/unictype/ctype_digit.c: New file.
3778         * lib/unictype/ctype_graph.c: New file.
3779         * lib/unictype/ctype_lower.c: New file.
3780         * lib/unictype/ctype_print.c: New file.
3781         * lib/unictype/ctype_punct.c: New file.
3782         * lib/unictype/ctype_space.c: New file.
3783         * lib/unictype/ctype_upper.c: New file.
3784         * lib/unictype/ctype_xdigit.c: New file.
3785         * lib/unictype/decdigit.c: New file.
3786         * lib/unictype/digit.c: New file.
3787         * lib/unictype/identsyntaxmap.h: New file.
3788         * lib/unictype/mirror.c: New file.
3789         * lib/unictype/numeric.c: New file.
3790         * lib/unictype/pr_alphabetic.c: New file.
3791         * lib/unictype/pr_ascii_hex_digit.c: New file.
3792         * lib/unictype/pr_bidi_arabic_digit.c: New file.
3793         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
3794         * lib/unictype/pr_bidi_block_separator.c: New file.
3795         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
3796         * lib/unictype/pr_bidi_common_separator.c: New file.
3797         * lib/unictype/pr_bidi_control.c: New file.
3798         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
3799         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
3800         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
3801         * lib/unictype/pr_bidi_european_digit.c: New file.
3802         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
3803         * lib/unictype/pr_bidi_left_to_right.c: New file.
3804         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
3805         * lib/unictype/pr_bidi_other_neutral.c: New file.
3806         * lib/unictype/pr_bidi_pdf.c: New file.
3807         * lib/unictype/pr_bidi_segment_separator.c: New file.
3808         * lib/unictype/pr_bidi_whitespace.c: New file.
3809         * lib/unictype/pr_byname.c: New file.
3810         * lib/unictype/pr_byname.gperf: New file.
3811         * lib/unictype/pr_combining.c: New file.
3812         * lib/unictype/pr_composite.c: New file.
3813         * lib/unictype/pr_currency_symbol.c: New file.
3814         * lib/unictype/pr_dash.c: New file.
3815         * lib/unictype/pr_decimal_digit.c: New file.
3816         * lib/unictype/pr_default_ignorable_code_point.c: New file.
3817         * lib/unictype/pr_deprecated.c: New file.
3818         * lib/unictype/pr_diacritic.c: New file.
3819         * lib/unictype/pr_extender.c: New file.
3820         * lib/unictype/pr_format_control.c: New file.
3821         * lib/unictype/pr_grapheme_base.c: New file.
3822         * lib/unictype/pr_grapheme_extend.c: New file.
3823         * lib/unictype/pr_grapheme_link.c: New file.
3824         * lib/unictype/pr_hex_digit.c: New file.
3825         * lib/unictype/pr_hyphen.c: New file.
3826         * lib/unictype/pr_id_continue.c: New file.
3827         * lib/unictype/pr_id_start.c: New file.
3828         * lib/unictype/pr_ideographic.c: New file.
3829         * lib/unictype/pr_ids_binary_operator.c: New file.
3830         * lib/unictype/pr_ids_trinary_operator.c: New file.
3831         * lib/unictype/pr_ignorable_control.c: New file.
3832         * lib/unictype/pr_iso_control.c: New file.
3833         * lib/unictype/pr_join_control.c: New file.
3834         * lib/unictype/pr_left_of_pair.c: New file.
3835         * lib/unictype/pr_line_separator.c: New file.
3836         * lib/unictype/pr_logical_order_exception.c: New file.
3837         * lib/unictype/pr_lowercase.c: New file.
3838         * lib/unictype/pr_math.c: New file.
3839         * lib/unictype/pr_non_break.c: New file.
3840         * lib/unictype/pr_not_a_character.c: New file.
3841         * lib/unictype/pr_numeric.c: New file.
3842         * lib/unictype/pr_other_alphabetic.c: New file.
3843         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
3844         * lib/unictype/pr_other_grapheme_extend.c: New file.
3845         * lib/unictype/pr_other_id_continue.c: New file.
3846         * lib/unictype/pr_other_id_start.c: New file.
3847         * lib/unictype/pr_other_lowercase.c: New file.
3848         * lib/unictype/pr_other_math.c: New file.
3849         * lib/unictype/pr_other_uppercase.c: New file.
3850         * lib/unictype/pr_paired_punctuation.c: New file.
3851         * lib/unictype/pr_paragraph_separator.c: New file.
3852         * lib/unictype/pr_pattern_syntax.c: New file.
3853         * lib/unictype/pr_pattern_white_space.c: New file.
3854         * lib/unictype/pr_private_use.c: New file.
3855         * lib/unictype/pr_punctuation.c: New file.
3856         * lib/unictype/pr_quotation_mark.c: New file.
3857         * lib/unictype/pr_radical.c: New file.
3858         * lib/unictype/pr_sentence_terminal.c: New file.
3859         * lib/unictype/pr_soft_dotted.c: New file.
3860         * lib/unictype/pr_space.c: New file.
3861         * lib/unictype/pr_terminal_punctuation.c: New file.
3862         * lib/unictype/pr_test.c: New file.
3863         * lib/unictype/pr_titlecase.c: New file.
3864         * lib/unictype/pr_unassigned_code_value.c: New file.
3865         * lib/unictype/pr_unified_ideograph.c: New file.
3866         * lib/unictype/pr_uppercase.c: New file.
3867         * lib/unictype/pr_variation_selector.c: New file.
3868         * lib/unictype/pr_white_space.c: New file.
3869         * lib/unictype/pr_xid_continue.c: New file.
3870         * lib/unictype/pr_xid_start.c: New file.
3871         * lib/unictype/pr_zero_width.c: New file.
3872         * lib/unictype/scripts.c: New file.
3873         * lib/unictype/sy_c_ident.c: New file.
3874         * lib/unictype/sy_c_whitespace.c: New file.
3875         * lib/unictype/sy_java_ident.c: New file.
3876         * lib/unictype/sy_java_whitespace.c: New file.
3877
3878         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
3879         Unicode 5.0.0.
3880         * lib/unictype/blocks.h: Likewise.
3881         * lib/unictype/categ_C.h: Likewise.
3882         * lib/unictype/categ_Cc.h: Likewise.
3883         * lib/unictype/categ_Cf.h: Likewise.
3884         * lib/unictype/categ_Cn.h: Likewise.
3885         * lib/unictype/categ_Co.h: Likewise.
3886         * lib/unictype/categ_Cs.h: Likewise.
3887         * lib/unictype/categ_L.h: Likewise.
3888         * lib/unictype/categ_Ll.h: Likewise.
3889         * lib/unictype/categ_Lm.h: Likewise.
3890         * lib/unictype/categ_Lo.h: Likewise.
3891         * lib/unictype/categ_Lt.h: Likewise.
3892         * lib/unictype/categ_Lu.h: Likewise.
3893         * lib/unictype/categ_M.h: Likewise.
3894         * lib/unictype/categ_Mc.h: Likewise.
3895         * lib/unictype/categ_Me.h: Likewise.
3896         * lib/unictype/categ_Mn.h: Likewise.
3897         * lib/unictype/categ_N.h: Likewise.
3898         * lib/unictype/categ_Nd.h: Likewise.
3899         * lib/unictype/categ_Nl.h: Likewise.
3900         * lib/unictype/categ_No.h: Likewise.
3901         * lib/unictype/categ_P.h: Likewise.
3902         * lib/unictype/categ_Pc.h: Likewise.
3903         * lib/unictype/categ_Pd.h: Likewise.
3904         * lib/unictype/categ_Pe.h: Likewise.
3905         * lib/unictype/categ_Pf.h: Likewise.
3906         * lib/unictype/categ_Pi.h: Likewise.
3907         * lib/unictype/categ_Po.h: Likewise.
3908         * lib/unictype/categ_Ps.h: Likewise.
3909         * lib/unictype/categ_S.h: Likewise.
3910         * lib/unictype/categ_Sc.h: Likewise.
3911         * lib/unictype/categ_Sk.h: Likewise.
3912         * lib/unictype/categ_Sm.h: Likewise.
3913         * lib/unictype/categ_So.h: Likewise.
3914         * lib/unictype/categ_Z.h: Likewise.
3915         * lib/unictype/categ_Zl.h: Likewise.
3916         * lib/unictype/categ_Zp.h: Likewise.
3917         * lib/unictype/categ_Zs.h: Likewise.
3918         * lib/unictype/categ_of.h: Likewise.
3919         * lib/unictype/combining.h: Likewise.
3920         * lib/unictype/ctype_alnum.h: Likewise.
3921         * lib/unictype/ctype_alpha.h: Likewise.
3922         * lib/unictype/ctype_blank.h: Likewise.
3923         * lib/unictype/ctype_cntrl.h: Likewise.
3924         * lib/unictype/ctype_digit.h: Likewise.
3925         * lib/unictype/ctype_graph.h: Likewise.
3926         * lib/unictype/ctype_lower.h: Likewise.
3927         * lib/unictype/ctype_print.h: Likewise.
3928         * lib/unictype/ctype_punct.h: Likewise.
3929         * lib/unictype/ctype_space.h: Likewise.
3930         * lib/unictype/ctype_upper.h: Likewise.
3931         * lib/unictype/ctype_xdigit.h: Likewise.
3932         * lib/unictype/decdigit.h: Likewise.
3933         * lib/unictype/digit.h: Likewise.
3934         * lib/unictype/mirror.h: Likewise.
3935         * lib/unictype/numeric.h: Likewise.
3936         * lib/unictype/pr_alphabetic.h: Likewise.
3937         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
3938         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
3939         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
3940         * lib/unictype/pr_bidi_block_separator.h: Likewise.
3941         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
3942         * lib/unictype/pr_bidi_common_separator.h: Likewise.
3943         * lib/unictype/pr_bidi_control.h: Likewise.
3944         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
3945         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
3946         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
3947         * lib/unictype/pr_bidi_european_digit.h: Likewise.
3948         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
3949         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
3950         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
3951         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
3952         * lib/unictype/pr_bidi_pdf.h: Likewise.
3953         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
3954         * lib/unictype/pr_bidi_whitespace.h: Likewise.
3955         * lib/unictype/pr_combining.h: Likewise.
3956         * lib/unictype/pr_composite.h: Likewise.
3957         * lib/unictype/pr_currency_symbol.h: Likewise.
3958         * lib/unictype/pr_dash.h: Likewise.
3959         * lib/unictype/pr_decimal_digit.h: Likewise.
3960         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
3961         * lib/unictype/pr_deprecated.h: Likewise.
3962         * lib/unictype/pr_diacritic.h: Likewise.
3963         * lib/unictype/pr_extender.h: Likewise.
3964         * lib/unictype/pr_format_control.h: Likewise.
3965         * lib/unictype/pr_grapheme_base.h: Likewise.
3966         * lib/unictype/pr_grapheme_extend.h: Likewise.
3967         * lib/unictype/pr_grapheme_link.h: Likewise.
3968         * lib/unictype/pr_hex_digit.h: Likewise.
3969         * lib/unictype/pr_hyphen.h: Likewise.
3970         * lib/unictype/pr_id_continue.h: Likewise.
3971         * lib/unictype/pr_id_start.h: Likewise.
3972         * lib/unictype/pr_ideographic.h: Likewise.
3973         * lib/unictype/pr_ids_binary_operator.h: Likewise.
3974         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
3975         * lib/unictype/pr_ignorable_control.h: Likewise.
3976         * lib/unictype/pr_iso_control.h: Likewise.
3977         * lib/unictype/pr_join_control.h: Likewise.
3978         * lib/unictype/pr_left_of_pair.h: Likewise.
3979         * lib/unictype/pr_line_separator.h: Likewise.
3980         * lib/unictype/pr_logical_order_exception.h: Likewise.
3981         * lib/unictype/pr_lowercase.h: Likewise.
3982         * lib/unictype/pr_math.h: Likewise.
3983         * lib/unictype/pr_non_break.h: Likewise.
3984         * lib/unictype/pr_not_a_character.h: Likewise.
3985         * lib/unictype/pr_numeric.h: Likewise.
3986         * lib/unictype/pr_other_alphabetic.h: Likewise.
3987         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
3988         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
3989         * lib/unictype/pr_other_id_continue.h: Likewise.
3990         * lib/unictype/pr_other_id_start.h: Likewise.
3991         * lib/unictype/pr_other_lowercase.h: Likewise.
3992         * lib/unictype/pr_other_math.h: Likewise.
3993         * lib/unictype/pr_other_uppercase.h: Likewise.
3994         * lib/unictype/pr_paired_punctuation.h: Likewise.
3995         * lib/unictype/pr_paragraph_separator.h: Likewise.
3996         * lib/unictype/pr_pattern_syntax.h: Likewise.
3997         * lib/unictype/pr_pattern_white_space.h: Likewise.
3998         * lib/unictype/pr_private_use.h: Likewise.
3999         * lib/unictype/pr_punctuation.h: Likewise.
4000         * lib/unictype/pr_quotation_mark.h: Likewise.
4001         * lib/unictype/pr_radical.h: Likewise.
4002         * lib/unictype/pr_sentence_terminal.h: Likewise.
4003         * lib/unictype/pr_soft_dotted.h: Likewise.
4004         * lib/unictype/pr_space.h: Likewise.
4005         * lib/unictype/pr_terminal_punctuation.h: Likewise.
4006         * lib/unictype/pr_titlecase.h: Likewise.
4007         * lib/unictype/pr_unassigned_code_value.h: Likewise.
4008         * lib/unictype/pr_unified_ideograph.h: Likewise.
4009         * lib/unictype/pr_uppercase.h: Likewise.
4010         * lib/unictype/pr_variation_selector.h: Likewise.
4011         * lib/unictype/pr_white_space.h: Likewise.
4012         * lib/unictype/pr_xid_continue.h: Likewise.
4013         * lib/unictype/pr_xid_start.h: Likewise.
4014         * lib/unictype/pr_zero_width.h: Likewise.
4015         * lib/unictype/scripts.h: Likewise.
4016         * lib/unictype/scripts_byname.gperf: Likewise.
4017         * lib/unictype/sy_c_ident.h: Likewise.
4018         * lib/unictype/sy_c_whitespace.h: Likewise.
4019         * lib/unictype/sy_java_ident.h: Likewise.
4020         * lib/unictype/sy_java_whitespace.h: Likewise.
4021
4022         * lib/unictype/Makefile: New file.
4023         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
4024         glibc.
4025         * lib/unictype/3level.h: New file, copied from glibc.
4026         * lib/unictype/3levelbit.h: New file.
4027
4028 2007-11-11  Bruno Haible  <bruno@clisp.org>
4029
4030         * modules/gperf: New file.
4031         * modules/iconv_open (Depends-on): Add it.
4032         (Makefile.am): Remove the GPERF definition.
4033
4034 2007-11-11  Bruno Haible  <bruno@clisp.org>
4035
4036         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
4037         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
4038
4039 2007-11-11  Bruno Haible  <bruno@clisp.org>
4040
4041         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
4042         (usage): Remove function.
4043
4044 2007-11-11  Bruno Haible  <bruno@clisp.org>
4045
4046         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
4047         gl_FUNC_CEILF_LIBS.
4048         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
4049         gl_FUNC_CEIL_LIBS.
4050         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
4051         gl_FUNC_CEILL_LIBS.
4052         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
4053         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
4054         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
4055
4056 2007-11-11  Bruno Haible  <bruno@clisp.org>
4057
4058         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
4059         roundf were declared but do not exist on functions.
4060         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
4061         roundl were declared but do not exist on functions.
4062         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
4063         HAVE_FLOORL_AND_CEILL, respectively.
4064         Needed for Sun C on Solaris 10.
4065
4066 2007-11-11  Bruno Haible  <bruno@clisp.org>
4067
4068         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
4069         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
4070         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
4071         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
4072         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
4073         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
4074         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
4075         HAVE_DECL_ROUNDF.
4076         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
4077         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
4078         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
4079         of HAVE_DECL_ROUND*.
4080         * modules/math (Makefile.am): Update.
4081
4082 2007-11-10  Bruno Haible  <bruno@clisp.org>
4083
4084         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
4085         ptrdiff_t as m4/intl.m4.
4086
4087 2007-11-10  Jim Meyering  <meyering@redhat.com>
4088
4089         Avoid link failure for the argmatch test.
4090         * tests/test-argmatch.c (usage): Define function to avoid a link
4091         failure: argmatch_die requires a usage function.
4092
4093 2007-11-09  Bruno Haible  <bruno@clisp.org>
4094
4095         * doc/functions/snprintf.texi: Mention BeOS deficiency.
4096         * doc/functions/vsnprintf.texi: Likewise.
4097         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
4098         with a size argument < 2.
4099
4100 2007-11-09  Bruno Haible  <bruno@clisp.org>
4101
4102         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
4103         buffer. Fixes an inefficiency introduced on 2007-11-03.
4104
4105 2007-11-09  Bruno Haible  <bruno@clisp.org>
4106
4107         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
4108         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
4109
4110 2007-11-08  Jim Meyering  <meyering@redhat.com>
4111
4112         Change cache variable name prefix "jm_" to "gl_" everywhere.
4113         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
4114         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
4115         * m4/uptime.m4: s/gl_/jm_/
4116
4117 2007-11-07  Bruno Haible  <bruno@clisp.org>
4118
4119         Update to GNU gettext 0.17.
4120         * m4/intl.m4: Update to GNU gettext 0.17.
4121         * m4/po.m4: Likewise.
4122         * modules/gettext (Files): Remove m4/ulonglong.m4.
4123         (configure.ac): Require gettext infrastructure from version 0.17.
4124
4125 2007-11-06  Bruno Haible  <bruno@clisp.org>
4126
4127         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
4128         symbolic values are not defined in a public header.
4129         * lib/freadable.c (freadable) [QNX]: Likewise.
4130         * lib/freadahead.c (freadahead) [QNX]: Likewise.
4131         * lib/freading.c (freading) [QNX]: Likewise.
4132         * lib/fseterr.c (fseterr) [QNX]: Likewise.
4133         * lib/fwritable.c (fwritable) [QNX]: Likewise.
4134         * lib/fwriting.c (fwriting) [QNX]: Likewise.
4135         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
4136         Reported by Alain Magloire.
4137
4138         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
4139
4140 2007-11-05  Bruno Haible  <bruno@clisp.org>
4141
4142         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
4143         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
4144         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
4145         Reported by Eric Blake.
4146
4147 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4148             Bruno Haible  <bruno@clisp.org>
4149
4150         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
4151         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
4152         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
4153         (malloc): Undefine also before including <stdlib.h>.
4154         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
4155         Needed on OSF/1 4.0.
4156
4157 2007-11-05  Jim Meyering  <meyering@redhat.com>
4158
4159         git-version-gen: sync from coreutils.
4160         * build-aux/git-version-gen: Add comments.
4161         Change the first '-' to '.' in the snapshot version string,
4162         e.g., 6.9-377-08144 -> 6.9.377-08144
4163         Remove first parameter.
4164         Don't declare a version "-dirty" merely because a time
4165         stamp has changed.
4166
4167 2007-11-04  Bruno Haible  <bruno@clisp.org>
4168
4169         * lib/lock.h: Protect all macro definitions containing an 'if'
4170         statement through a "do { ... } while (0)".
4171         * lib/tls.h: Likewise.
4172
4173 2007-11-04  Bruno Haible  <bruno@clisp.org>
4174
4175         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
4176
4177 2007-11-04  Bruno Haible  <bruno@clisp.org>
4178
4179         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
4180         * modules/fprintf-posix (Depends-on): Add nocrash.
4181         * modules/snprintf-posix (Depends-on): Likewise.
4182         * modules/sprintf-posix (Depends-on): Likewise.
4183         * modules/vasnprintf-posix (Depends-on): Likewise.
4184         * modules/vasprintf-posix (Depends-on): Likewise.
4185         * modules/vfprintf-posix (Depends-on): Likewise.
4186         * modules/vsnprintf-posix (Depends-on): Likewise.
4187         * modules/vsprintf-posix (Depends-on): Likewise.
4188         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
4189         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
4190         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
4191         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
4192         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
4193         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
4194         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
4195
4196 2007-11-04  Bruno Haible  <bruno@clisp.org>
4197
4198         * modules/nocrash: New file.
4199         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
4200         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
4201
4202 2007-11-04  Bruno Haible  <bruno@clisp.org>
4203
4204         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
4205         precision handling.
4206         * tests/test-vasprintf-posix.c (test_function): Likewise.
4207         * tests/test-snprintf-posix.h (test_function): Likewise.
4208         * tests/test-sprintf-posix.h (test_function): Likewise.
4209
4210         Fix *printf behaviour for large precisions on mingw and BeOS.
4211         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
4212         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
4213         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
4214         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
4215         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
4216         gl_PRINTF_PRECISION and test its result. Invoke
4217         gl_PREREQ_VASNPRINTF_PRECISION.
4218         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
4219         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
4220         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
4221         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
4222         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
4223         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
4224         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
4225         * doc/functions/fprintf.texi: Update.
4226         * doc/functions/printf.texi: Update.
4227         * doc/functions/snprintf.texi: Update.
4228         * doc/functions/sprintf.texi: Update.
4229         * doc/functions/vfprintf.texi: Update.
4230         * doc/functions/vprintf.texi: Update.
4231         * doc/functions/vsnprintf.texi: Update.
4232         * doc/functions/vsprintf.texi: Update.
4233
4234 2007-11-04  Bruno Haible  <bruno@clisp.org>
4235
4236         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
4237
4238 2007-11-04  Bruno Haible  <bruno@clisp.org>
4239
4240         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
4241         Reported by Sylvain Beucler <beuc@gnu.org>.
4242
4243 2007-11-03  Bruno Haible  <bruno@clisp.org>
4244
4245         * tests/test-fprintf-posix2.sh: New file.
4246         * tests/test-fprintf-posix2.c: New file.
4247         * modules/fprintf-posix-tests (Files): Add them.
4248         (TESTS): Add test-fprintf-posix2.sh.
4249         (configure.ac): Check for getrlimit and setrlimit.
4250         (check_PROGRAMS): Add test-fprintf-posix2.
4251
4252         * tests/test-printf-posix2.sh: New file.
4253         * tests/test-printf-posix2.c: New file.
4254         * modules/printf-posix-tests (Files): Add them.
4255         (TESTS): Add test-printf-posix2.sh.
4256         (configure.ac): Check for getrlimit and setrlimit.
4257         (check_PROGRAMS): Add test-printf-posix2.
4258
4259         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
4260         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
4261         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
4262         (decode_double): New function, copied from decode_long_double.
4263         (scale10_round_decimal_decoded): New function, extracted from
4264         scale10_round_decimal_long_double.
4265         (scale10_round_decimal_long_double): Use it.
4266         (scale10_round_decimal_double): New function.
4267         (floorlog10): New function.
4268         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
4269         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
4270         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
4271         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
4272         gl_PRINTF_ENOMEM and test its result. Invoke
4273         gl_PREREQ_VASNPRINTF_ENOMEM.
4274         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
4275         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
4276         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
4277         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
4278         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
4279         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
4280         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
4281         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
4282         * modules/snprintf-posix (Depends-on): Likewise.
4283         * modules/sprintf-posix (Depends-on): Likewise.
4284         * modules/vasnprintf-posix (Depends-on): Likewise.
4285         * modules/vasprintf-posix (Depends-on): Likewise.
4286         * modules/vfprintf-posix (Depends-on): Likewise.
4287         * modules/vsnprintf-posix (Depends-on): Likewise.
4288         * modules/vsprintf-posix (Depends-on): Likewise.
4289         * doc/functions/fprintf.texi: Update.
4290         * doc/functions/printf.texi: Update.
4291         * doc/functions/snprintf.texi: Update.
4292         * doc/functions/sprintf.texi: Update.
4293         * doc/functions/vfprintf.texi: Update.
4294         * doc/functions/vprintf.texi: Update.
4295         * doc/functions/vsnprintf.texi: Update.
4296         * doc/functions/vsprintf.texi: Update.
4297
4298 2007-11-03  Bruno Haible  <bruno@clisp.org>
4299
4300         * modules/frexp-nolibm-tests: New file.
4301
4302         * modules/frexp-nolibm: New file.
4303         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
4304
4305 2007-11-03  Bruno Haible  <bruno@clisp.org>
4306
4307         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
4308         value is C99 compliant.
4309         Needed for OSF/1 5.1.
4310
4311 2007-11-03  Bruno Haible  <bruno@clisp.org>
4312
4313         Fix out-of-memory handling of vasnprintf.
4314         * lib/printf-parse.c: Include <errno.h>.
4315         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
4316         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
4317         is already set.
4318
4319 2007-11-02  Eric Blake  <ebb9@byu.net>
4320
4321         Fix tests on cygwin.
4322         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
4323
4324 2007-11-01  Bruno Haible  <bruno@clisp.org>
4325
4326         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
4327         warning.
4328         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
4329         needed for POSIX compatibility.
4330
4331 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
4332
4333         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
4334         for compatibility with GNU.
4335
4336 2007-11-01  Bruno Haible  <bruno@clisp.org>
4337
4338         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
4339         (putenv): Renamed from rpl_putenv. Change argument type from
4340         'const char *' to 'char *'.
4341         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
4342         of defining putenv in config.h, just set REPLACE_PUTENV.
4343         * modules/putenv (Depends-on): Add stdlib.
4344         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
4345         (Include): Use <stdlib.h>.
4346         * lib/stdlib.in.h (putenv): New declaration.
4347         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
4348         REPLACE_PUTENV.
4349         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
4350         REPLACE_PUTENV.
4351         Needed for MacOS X 10.5.0.
4352         Reported by Peter O'Gorman <peter@pogma.com>.
4353
4354 2007-11-01  Jim Meyering  <meyering@redhat.com>
4355
4356         Treat an empty date string exactly like "0".
4357         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
4358         if the remaining date string (to be parsed) is empty, use "0".
4359         Reported by Mischa Molhoek and discussed in this thread:
4360         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
4361
4362 2007-10-31  Bruno Haible  <bruno@clisp.org>
4363
4364         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
4365         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
4366         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
4367         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
4368         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
4369         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
4370
4371 2007-10-31  Bruno Haible  <bruno@clisp.org>
4372
4373         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
4374         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
4375         (AC_TYPE_LONG_LONG_INT): Use it.
4376         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
4377         it as well.
4378         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
4379         to m4/longlong.m4.
4380         * modules/stdint (Files): Remove m4/ulonglong.m4.
4381         * modules/strtoull (Files): Use m4/longlong.m4 instead of
4382         m4/ulonglong.m4.
4383         * modules/strtoumax (Files): Likewise.
4384
4385 2007-10-30  Bruno Haible  <bruno@clisp.org>
4386
4387         * modules/xvasprintf-posix: New file.
4388         Suggested by Eric Blake.
4389
4390 2007-10-30  Bruno Haible  <bruno@clisp.org>
4391
4392         * modules/xprintf-posix-tests: New file.
4393         * tests/test-xprintf-posix.sh: New file.
4394         * tests/test-xprintf-posix.c: New file.
4395         * tests/test-xfprintf-posix.c: New file.
4396
4397         * modules/xprintf-posix: New file.
4398
4399 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4400
4401         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
4402         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
4403         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
4404
4405 2007-10-29  Bruno Haible  <bruno@clisp.org>
4406
4407         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
4408         contain the special marker '_cv_'.
4409         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
4410         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
4411         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
4412         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
4413         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
4414         Reported by Ralf Wildenhues.
4415
4416 2007-10-29  Bruno Haible  <bruno@clisp.org>
4417
4418         * gnulib-tool (func_import): When --lgpl is not specified, set
4419         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
4420         GPLv3.
4421         Reported by Simon Josefsson.
4422
4423 2007-10-28  Bruno Haible  <bruno@clisp.org>
4424
4425         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
4426         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
4427         HAVE_DECL_ISFINITE.
4428         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
4429         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
4430         HAVE_DECL_ISFINITE.
4431
4432 2007-10-28  Bruno Haible  <bruno@clisp.org>
4433
4434         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
4435         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
4436
4437 2007-10-28  Bruno Haible  <bruno@clisp.org>
4438
4439         Fix link errors with Sun C 5.0 on Solaris 10.
4440         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
4441         function is declared but not present in the compiler's libm.
4442         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
4443         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
4444         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
4445         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
4446         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
4447         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
4448         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
4449         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
4450         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
4451         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
4452         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
4453         HAVE_DECL_FLOORL.
4454
4455 2007-10-28  Bruno Haible  <bruno@clisp.org>
4456
4457         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
4458         gl_FUNC_FLOORL. Cache the result.
4459         (gl_FUNC_FLOORL): Use it.
4460         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
4461         gl_FUNC_CEILL. Cache the result.
4462         (gl_FUNC_CEILL): Use it.
4463
4464         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
4465         gl_FUNC_FLOOR. Cache the result.
4466         (gl_FUNC_FLOOR): Use it.
4467         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
4468         gl_FUNC_CEIL. Cache the result.
4469         (gl_FUNC_CEIL): Use it.
4470
4471         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
4472         gl_FUNC_FLOORF. Cache the result.
4473         (gl_FUNC_FLOORF): Use it.
4474         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
4475         gl_FUNC_CEILF. Cache the result.
4476         (gl_FUNC_CEILF): Use it.
4477
4478 2007-10-28  Bruno Haible  <bruno@clisp.org>
4479
4480         * gnulib-tool: Allow specifying the LGPL version number through
4481         --lgpl=2 or --lgpl=3.
4482         (func_usage): Document --lgpl with argument.
4483         Handle --lgpl=... arguments.
4484         (func_import): Recognize also gl_LGPL calls with an argument. When
4485         --lgpl=2 is used and the module's license is just LGPL, report an
4486         error. Set sed_transform_lib_file according to the lgpl variable. In
4487         the generated files, use --lgpl or gl_LGPL invocations with argument,
4488         if necessary.
4489         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
4490         an LGPv2+ license.
4491         * doc/gnulib-tool.texi (Modified imports): Update explanation of
4492         gl_LGPL macro.
4493
4494 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4495             Bruno Haible  <bruno@clisp.org>
4496
4497         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
4498         (u16_uctomb_aux): Likewise.
4499         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
4500         !HAVE_INLINE.
4501         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
4502
4503 2007-10-28  Bruno Haible  <bruno@clisp.org>
4504
4505         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
4506         Invoke AM_GETTEXT_OPTION if it exists.
4507         * modules/vasprintf: Likewise.
4508         * modules/verror: Likewise.
4509         * modules/xprintf: Likewise.
4510         * modules/xvasprintf: Likewise.
4511
4512 2007-10-27  Ben Pfaff  <blp@gnu.org>
4513
4514         * lib/math.in.h: Define isfinite macro and prototypes for
4515         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
4516         implementations.
4517         * m4/math_h.m4: New substitutions for isfinite module.
4518         * lib/isfinite.c: New file.
4519         * m4/isfinite.m4: New file.
4520         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
4521         * modules/isfinite: New file.
4522         * modules/isfinite-tests: New file.
4523         * tests/tests-isfinite.c: New file.
4524         * doc/functions/isfinite.texi: Mention isfinite module.
4525         * MODULES.html.sh: Mention new module.
4526
4527 2007-10-27  Ben Pfaff  <blp@gnu.org>
4528
4529         Ralf Wildenhues reported that Tru64 4.0D declares the round
4530         functions but does not have definitions.
4531         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
4532         cannot be found in any library, set the output variable to
4533         "missing" instead of "".
4534         * m4/round.m4: Also use our substitute if we cannot find round in
4535         any library, even if it is declared.
4536         * m4/roundf.m4: Likewise for roundf.
4537         * m4/roundl.m4: Likewise for roundl.
4538         * lib/math.in.h: Undefine roundf, round, roundl before defining
4539         their replacements, to allow for hypothetical systems where these
4540         may be defined as macros but not available in libraries.
4541
4542 2007-10-27  Bruno Haible  <bruno@clisp.org>
4543
4544         * doc/gnulib.texi: Invoke @firstparagraphindent.
4545         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
4546         changes in gnulib.
4547         (Source changes): New section.
4548
4549 2007-10-26  Bruno Haible  <bruno@clisp.org>
4550
4551         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
4552         borrowed from autoconf.
4553
4554 2007-10-26  Bruno Haible  <bruno@clisp.org>
4555
4556         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
4557         strerror returned the empty string. Needed on HP-UX 11.00.
4558
4559 2007-10-24  Micah Cowan  <micah@cowan.name>
4560
4561         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
4562         * build-aux/bootstrap: Remove support for now-unnecessary option,
4563         --cvs-user, and envvars CVS_USER, CVS_RSH.
4564
4565 2007-10-24  Jim Meyering  <meyering@redhat.com>
4566
4567         Avoid diagnostics from sha1sum when there is no cached checksum.
4568         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
4569         if the po.s1 file hasn't been created yet.
4570
4571         * build-aux/bootstrap: Sync from coreutils:
4572         2007-10-24  Jim Meyering  <meyering@redhat.com>
4573         Get gnulib from the git repository, not from an obsolete cvs one.
4574         * build-aux/bootstrap: Suggestion from Micah Cowan.
4575         2007-10-04  Jim Meyering  <jim@meyering.net>
4576         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
4577         (update_po_files): Work also when there are no .po files in po/.
4578
4579 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
4580
4581         * README: Append ".git" to git and cg examples.
4582         Problem reported by Benoit Sigoure.
4583
4584 2007-10-23  Micah Cowan  <micah@cowan.name>
4585
4586         * users.txt: Add wget.
4587
4588 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4589
4590         Fix linking of some unistdio tests on FreeBSD.
4591         * modules/unistdio/u16-vsnprintf-tests
4592         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
4593         * modules/unistdio/u16-vsprintf-tests
4594         (test_u16_vsnprintf1_LDADD): Likewise.
4595         * modules/unistdio/u32-vsnprintf-tests
4596         (test_u32_vsnprintf1_LDADD): Likewise.
4597         * modules/unistdio/u32-vsprintf-tests
4598         (test_u32_vsprintf1_LDADD): Likewise.
4599         * modules/unistdio/u8-vsnprintf-tests
4600         (test_u8_vsnprintf1_LDADD): Likewise.
4601         * modules/unistdio/u8-vsprintf-tests
4602         (test_u8_vsprintf1_LDADD): Likewise.
4603         * modules/unistdio/ulc-vsnprintf-tests
4604         (test_ulc_vsnprintf1_LDADD): Likewise.
4605         * modules/unistdio/ulc-vsprintf-tests
4606         (test_ulc_vsprintf1_LDADD): Likewise.
4607
4608         Fix linking of some uniconv tests on FreeBSD.
4609         * modules/uniconv/u16-conv-from-enc-tests
4610         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
4611         * modules/uniconv/u16-conv-to-enc-tests
4612         (test_u16_conv_to_enc_LDADD): Likewise.
4613         * modules/uniconv/u16-strconv-from-enc-tests
4614         (test_u16_strconv_from_enc_LDADD): Likewise.
4615         * modules/uniconv/u16-strconv-to-enc-tests
4616         (test_u16_strconv_to_enc_LDADD): Likewise.
4617         * modules/uniconv/u32-conv-from-enc-tests
4618         (test_u32_conv_from_enc_LDADD): Likewise.
4619         * modules/uniconv/u32-conv-to-enc-tests
4620         (test_u32_conv_to_enc_LDADD): Likewise.
4621         * modules/uniconv/u32-strconv-from-enc-tests
4622         (test_u32_strconv_from_enc_LDADD): Likewise.
4623         * modules/uniconv/u32-strconv-to-enc-tests
4624         (test_u32_strconv_to_enc_LDADD): Likewise.
4625         * modules/uniconv/u8-conv-from-enc-tests
4626         (test_u8_conv_from_enc_LDADD): Likewise.
4627         * modules/uniconv/u8-conv-to-enc-tests
4628         (test_u8_conv_to_enc_LDADD): Likewise.
4629         * modules/uniconv/u8-strconv-from-enc-tests
4630         (test_u8_strconv_from_enc_LDADD): Likewise.
4631         * modules/uniconv/u8-strconv-to-enc-tests
4632         (test_u8_strconv_to_enc_LDADD): Likewise.
4633
4634 2007-10-22  Bruno Haible  <bruno@clisp.org>
4635
4636         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
4637         size.
4638
4639 2007-10-22  Eric Blake  <ebb9@byu.net>
4640
4641         Tweak x*printf documentation.
4642         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
4643         variable name and comments.
4644         Suggested by Bruno Haible.
4645
4646 2007-10-22  Bruno Haible  <bruno@clisp.org>
4647
4648         * lib/acl.c (copy_acl): Fix file name in comment.
4649
4650 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
4651
4652         Fix Tru64 problem with stdbool.h.
4653         * lib/stdbool.in.h (false, true):
4654         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
4655         Don't declare as an enum in this situation; it runs afoul of Tru64.
4656         Problem reported by Steven M. Schweda in
4657         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
4658
4659 2007-10-22  Eric Blake  <ebb9@byu.net>
4660
4661         Also wrap vf?printf.
4662         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
4663         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
4664         (xvprintf, xvfprintf): New functions.
4665
4666 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4667
4668         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
4669         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
4670
4671         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
4672         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
4673
4674 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
4675
4676         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
4677         by Bruno Haible.
4678
4679 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4680
4681         * lib/getloadavg.c
4682         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
4683         Undef `sys' after including sys/table.h, for Tru64 4.0D.
4684
4685         * tests/test-i-ring.c: Work for C89.
4686
4687 2007-10-22  Bruno Haible  <bruno@clisp.org>
4688
4689         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
4690         -1u, in preprocessor expression, so that we don't test for the bug
4691         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
4692         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
4693
4694 2007-10-22  Eric Blake  <ebb9@byu.net>
4695
4696         * tests/test-yesno.sh: Silence stderr during test.
4697
4698 2007-10-22  Simon Josefsson  <simon@josefsson.org>
4699
4700         * modules/crypto/gc-camellia: New file.
4701
4702         * m4/gc-camellia.m4: New file.
4703
4704         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
4705
4706         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
4707
4708 2007-10-22  Simon Josefsson  <simon@josefsson.org>
4709
4710         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
4711         --help to stdout.  Reported by sms@antinode.org (Steven
4712         M. Schweda).
4713
4714 2007-10-22  Simon Josefsson  <simon@josefsson.org>
4715
4716         * users.txt: Fix link to libksba.
4717
4718 2007-10-21  Ben Pfaff  <blp@gnu.org>
4719
4720         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
4721         round.c roundf implementation that depends on floorf and ceilf to
4722         be tested unconditionally.
4723
4724 2007-10-21  Ben Pfaff  <blp@gnu.org>
4725
4726         * m4/check-libm-func.m4: Removed.
4727         * m4/check-math-lib.m4: New file.
4728         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
4729         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
4730         definition and lack of AC_LIBOBJ([roundf]).
4731         * m4/roundl.m4: Ditto, and similarly for roundl.
4732         * modules/round: Reference new m4 file.
4733         * modules/roundf: Ditto.
4734         * modules/roundl: Ditto.
4735         * tests/test-round2.c (main): Use ROUND instead of round.
4736         Bug report from Bruno Haible.
4737
4738 2007-10-21  Bruno Haible  <bruno@clisp.org>
4739
4740         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
4741         context.
4742
4743 2007-10-21  Bruno Haible  <bruno@clisp.org>
4744
4745         * tests/test-wcwidth.c (main): Allow negative result for some control
4746         characters.
4747
4748         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
4749         Needed on OSF/1 5.1.
4750
4751 2007-10-21  Bruno Haible  <bruno@clisp.org>
4752
4753         * tests/test-floorf1.c: Include isnanf.h.
4754         (main): Use isnanf() instead of isnan().
4755         * tests/test-ceilf1.c: Include isnanf.h.
4756         (main): Use isnanf() instead of isnan().
4757         * tests/test-truncf1.c: Include isnanf.h.
4758         (main): Use isnanf() instead of isnan().
4759         * tests/test-roundf1.c: Include isnanf.h.
4760         (main): Use isnanf() instead of isnan().
4761
4762 2007-10-21  Eric Blake  <ebb9@byu.net>
4763
4764         * users.txt: Update URL for m4.
4765
4766 2007-10-21  Bruno Haible  <bruno@clisp.org>
4767
4768         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
4769
4770 2007-10-21  Bruno Haible  <bruno@clisp.org>
4771
4772         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
4773         Git's management files if the CVS files are not present.
4774
4775 2007-10-20  Bruno Haible  <bruno@clisp.org>
4776
4777         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
4778         gcc-3.4.x.
4779
4780 2007-10-20  Ben Pfaff  <blp@gnu.org>
4781
4782         * lib/math.in.h: Declare round, roundf, roundl if we are providing
4783         implementations.
4784         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
4785         * lib/round.c: New file.
4786         * lib/roundf.c: New file.
4787         * lib/roundl.c: New file.
4788         * m4/round.m4: New file.
4789         * m4/roundf.m4: New file.
4790         * m4/roundl.m4: New file.
4791         * m4/check-libm-func-m4: New file.
4792         * modules/math: Replace round, roundf, roundl related @VARS@ in
4793         math.in.h.
4794         * modules/round: New file.
4795         * modules/round-tests: New file.
4796         * modules/roundf: New file.
4797         * modules/roundf-tests: New file.
4798         * modules/roundl: New file.
4799         * modules/roundl-tests: New file.
4800         * tests/test-round1.c: New file.
4801         * tests/test-round2.c: New file.
4802         * tests/test-roundf1.c: New file.
4803         * tests/test-roundf2.c: New file.
4804         * tests/test-roundl.c: New file.
4805         * doc/functions/round.texi: Mention round module.
4806         * doc/functions/roundf.texi: Mention roundf module.
4807         * doc/functions/roundl.texi: Mention roundl module.
4808         * MODULES.html.sh: Mention new modules.
4809         Thanks to Bruno Haible for suggestions.
4810
4811 2007-10-20  Jim Meyering  <meyering@redhat.com>
4812
4813         * lib/xprintf.c: Include <config.h> unconditionally.
4814
4815         Change xprintf's license to GPL.
4816         * modules/xprintf (License): s/LGPL/GPL/, since this module
4817         depends on modules (exit and exitfail) which are GPL.
4818         Suggestion from Bruno Haible.
4819
4820         xprintf fixes.
4821         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
4822         Use a clearer diagnostic.
4823         Patch from Bruno Haible.
4824
4825 2007-10-20  Bruno Haible  <bruno@clisp.org>
4826
4827         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
4828         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
4829         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4830
4831 2007-10-20  Bruno Haible  <bruno@clisp.org>
4832
4833         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
4834         precision in the comparison result > x - 1 or similar.
4835         * tests/test-ceilf2.c (correct_result_p): Likewise.
4836         * tests/test-truncf2.c (correct_result_p): Likewise.
4837         * tests/test-trunc2.c (correct_result_p): Likewise.
4838         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4839
4840 2007-10-20  Bruno Haible  <bruno@clisp.org>
4841
4842         * modules/ceil: New file.
4843         * m4/ceil.m4: New file.
4844         * doc/functions/ceil.texi: Mention the 'ceil' module.
4845
4846 2007-10-20  Bruno Haible  <bruno@clisp.org>
4847
4848         * modules/floor: New file.
4849         * m4/floor.m4: New file.
4850         * doc/functions/floor.texi: Mention the 'floor' module.
4851
4852 2007-10-20  Bruno Haible  <bruno@clisp.org>
4853
4854         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
4855         of %a.
4856         * modules/floorf-tests (Depends-on): Likewise.
4857         * modules/truncf-tests (Depends-on): Likewise.
4858         * modules/trunc-tests (Depends-on): Likewise.
4859         Reported by Ben Pfaff.
4860
4861 2007-10-19  Jim Meyering  <meyering@redhat.com>
4862
4863         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
4864         Don't bother testing specific errno values.  Just test ferror.
4865
4866         New module: xprintf
4867         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
4868
4869 2007-10-19  Bruno Haible  <bruno@clisp.org>
4870
4871         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
4872         syntax.
4873         * modules/javaexec (Makefile.am): Likewise.
4874         * modules/relocatable-prog (Makefile.am): Likewise.
4875         Suggested by Jim Meyering.
4876
4877 2007-10-18  Bruno Haible  <bruno@clisp.org>
4878
4879         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
4880         Reported by Jim Meyering.
4881
4882 2007-10-18  Eric Blake  <ebb9@byu.net>
4883
4884         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
4885
4886 2007-10-18  Bruno Haible  <bruno@clisp.org>
4887
4888         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
4889         the format string into writable memory. Needed in Fortify conditions.
4890
4891 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
4892             Bruno Haible  <bruno@clisp.org>
4893
4894         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
4895         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
4896         * modules/trim (Depends-on): Add mbchar.
4897         (configure.ac): Add gl_FUNC_MBRTOWC.
4898         (Makefile.am): Augment lib_SOURCES.
4899
4900 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
4901
4902         Modify glob.c to use fstatat and dirfd, to simplify it.
4903         Suggested by Eric Blake.
4904         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
4905         Don't include <stdbool.h>; not used.
4906         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
4907         (link_exists_p): Simplify implementation, since we can now assume
4908         dirfd and fstatat.
4909         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
4910
4911 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4912
4913         * gnulib-tool (func_get_dependencies): Fix sed script to
4914         match only tests.
4915
4916 2007-10-17  Bruno Haible  <bruno@clisp.org>
4917
4918         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
4919         allow locale names without encoding suffix.
4920         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
4921         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
4922
4923 2007-10-16  Bruno Haible  <bruno@clisp.org>
4924
4925         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
4926         * lib/getgroups.c (getgroups): Likewise.
4927         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
4928
4929 2007-10-16  Bruno Haible  <bruno@clisp.org>
4930
4931         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
4932         * modules/malloc-posix (License): Likewise.
4933         * modules/realloc-posix (License): Likewise.
4934         * modules/calloc-posix (License): Likewise.
4935         * modules/intprops (License): Change from GPL to LGPL, with
4936         Paul Eggert's approval.
4937
4938 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
4939
4940         Merge glibc changes into lib/glob.c.
4941
4942         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
4943         2007-10-15 04:59:03 UTC.  Here are the changes:
4944
4945         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
4946
4947         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
4948
4949         * lib/glob.c: Add some branch prediction throughout.
4950
4951         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
4952
4953         [BZ #5103]
4954         * lib/glob.c (glob): Recognize patterns starting \/.
4955
4956         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
4957
4958         [BZ #3996]
4959         * lib/glob.c (attribute_hidden): Define if not defined.
4960         (glob): Unescape dirname, filename or username when needed and not
4961         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
4962         is NULL.  Handle unescaped [ in pattern without closing ].
4963         Don't pass GLOB_CHECK down to recursive glob for directories.
4964         (__glob_pattern_type): New function.
4965         (__glob_pattern_p): Implement using __glob_pattern_type.
4966         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
4967         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
4968         Remove unreachable code.
4969
4970         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
4971
4972         * lib/glob.c (glob_in_dir): Add some comments and asserts to
4973         explain why there are no leaks.
4974
4975         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
4976
4977         [BZ #3253]
4978         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
4979         time, rather allocate increasingly bigger arrays of pointers, if
4980         possible with alloca, if too large with malloc.
4981
4982 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
4983
4984         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
4985         Problem reported by H.Merijn Brand in
4986         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
4987         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
4988         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
4989
4990 2007-10-15  Bruno Haible  <bruno@clisp.org>
4991
4992         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
4993         with explicit rpl_ prefix.
4994         * lib/fopen.c (fopen): Likewise.
4995         * lib/freopen.c (freopen): Likewise.
4996         * lib/iconv.c (iconv): Likewise.
4997         * lib/iconv_close.c (iconv_close): Likewise.
4998
4999 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5000
5001         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
5002
5003 2007-10-15  Bruno Haible  <bruno@clisp.org>
5004
5005         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
5006         <stddef.h> instead of <stdlib.h> since we only need NULL.
5007         Reported by Ben Pfaff <blp@cs.stanford.edu>.
5008
5009 2007-10-15  Bruno Haible  <bruno@clisp.org>
5010
5011         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
5012         Replace paragraph talking about LIBOBJS.
5013         Reported by Colin Watson <cjwatson@debian.org>.
5014
5015 2007-10-15  Bruno Haible  <bruno@clisp.org>
5016
5017         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
5018         <stdlib.h> before using NULL.
5019
5020 2007-10-15  Simon Josefsson  <simon@josefsson.org>
5021
5022         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
5023         Reported by Albert Chin <china@thewrittenword.com>.
5024
5025 2007-10-14  Bruno Haible  <bruno@clisp.org>
5026
5027         * modules/iconv_open-utf-tests: New file.
5028         * tests/test-iconv-utf.c: New file.
5029
5030         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
5031         * modules/iconv_open-utf: New file.
5032         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
5033         (iconv, iconv_close): New declarations.
5034         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
5035         be defined.
5036         (iconv_open): Add special handling of conversion between UTF-8 and
5037         UTF-{16,32}{BE,LE}.
5038         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
5039         * lib/iconv_close.c: New file.
5040         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
5041         gl_FUNC_ICONV_OPEN.
5042         (gl_FUNC_ICONV_OPEN): Use it.
5043         (gl_FUNC_ICONV_OPEN_UTF): New macro.
5044         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
5045         and REPLACE_ICONV_UTF.
5046         * modules/iconv_open (Depends-on): Add c-strcase.
5047         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
5048         ICONV_CONST.
5049         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
5050
5051 2007-10-13  Albert Chin  <china@thewrittenword.com>
5052             Bruno Haible  <bruno@clisp.org>
5053
5054         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
5055         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
5056
5057 2007-10-13  Bruno Haible  <bruno@clisp.org>
5058
5059         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
5060         defined, use the ISO C99 inline semantics.
5061         * lib/argp.h (ARGP_EI): Likewise.
5062
5063 2007-10-13  Bruno Haible  <bruno@clisp.org>
5064
5065         Handle 'inline' change in gcc 4.3.0.
5066         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
5067         argp_fmtstream_write, argp_fmtstream_set_lmargin,
5068         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
5069         argp_fmtstream_point): Disable 'extern' declaration if the function
5070         definition is going to be provided inline.
5071         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
5072         semantics, not the ISO C99 inline semantics.
5073         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
5074         'extern' declaration if the function definition is going to be provided
5075         inline.
5076         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
5077         the GNU C inline semantics, not the ISO C99 inline semantics. With
5078         GCC 4.2, avoid a warning.
5079
5080 2007-10-13  Bruno Haible  <bruno@clisp.org>
5081
5082         * lib/freading.h (freading): Enable the use of __freading for
5083         glibc >= 2.7.
5084         * lib/freading.c (freading): Likewise.
5085
5086 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
5087
5088         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
5089         "warning: C99 inline functions are not supported; using GNU89".
5090
5091 2007-10-12  Bruno Haible  <bruno@clisp.org>
5092
5093         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
5094         of 2.
5095         * tests/test-ceilf2.c: New file.
5096         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
5097
5098         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
5099         * modules/ceilf-tests: Update.
5100
5101 2007-10-12  Bruno Haible  <bruno@clisp.org>
5102
5103         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
5104         of 2.
5105         * tests/test-floorf2.c: New file.
5106         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
5107
5108         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
5109         * modules/floorf-tests: Update.
5110
5111 2007-10-12  Bruno Haible  <bruno@clisp.org>
5112
5113         * tests/test-trunc2.c: New file.
5114         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
5115
5116         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
5117         * modules/trunc-tests: Update.
5118
5119 2007-10-12  Bruno Haible  <bruno@clisp.org>
5120
5121         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
5122         of 2.
5123         * tests/test-truncf2.c: New file.
5124         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
5125
5126         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
5127         * modules/truncf-tests: Update.
5128
5129 2007-10-11  Eric Blake  <ebb9@byu.net>
5130
5131         Don't claim strerror is broken on Interix.
5132         * doc/functions/strerror.texi (strerror): Known broken systems are
5133         now Solaris 8, and not Interix.
5134         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
5135         Interix on cross-compile.
5136         Reported by Martin Koeppe in
5137         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
5138
5139 2007-10-11  Bruno Haible  <bruno@clisp.org>
5140
5141         * modules/i-ring-tests: New file.
5142         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
5143         instead of assert.
5144
5145 2007-10-11  Bruno Haible  <bruno@clisp.org>
5146
5147         * modules/filenamecat-tests: New file.
5148         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
5149         * lib/filenamecat.c: Remove test code.
5150
5151 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
5152
5153         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
5154
5155         * lib/strerror.c: Include <string.h> always, to test interface,
5156         and to remove the need for the dummy.
5157         Include intprops.h to compute width instead of doing it ourselves
5158         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
5159         (strerror): Define it to return NULL if there's no system strerror.
5160         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
5161         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
5162         ancient pre-strerror Unix systems well any more.  Saying "unknown
5163         system error" is enough.
5164         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
5165         simpler strerror.c implementation.
5166         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
5167         Simplify the tests to reflect the simpler strerror implementation.
5168         * modules/strerror (Depends-on): Add intprops.
5169
5170 2007-10-09  Eric Blake  <ebb9@byu.net>
5171
5172         Silence test-fpending.
5173         * modules/fpending-tests (Files): Add wrapper script.
5174         * tests/test-fpending.sh: New file.
5175
5176 2007-10-09  Bruno Haible  <bruno@clisp.org>
5177
5178         * MODULES.html.sh (func_module): Don't create a hyperlink for
5179         function names like 'printf_frexp'.
5180         (Misc): Add crc, memxor.
5181         (Characteristics of floating types): New section.
5182         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
5183         isnanf-nolibm, signbit, trunc, truncf, truncl.
5184         (Enhancements for ISO C 99 functions): New subsection Input/output.
5185         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
5186         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
5187         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
5188         (Compatibility checks for POSIX:2001 functions): Add clock-time.
5189         (Enhancements for POSIX:2001 functions): Add chdir-long.
5190         (File system functions): Add areadlink, chdir-safer, read-file.
5191         Remove cycle-check.
5192         (File system as inode set): New section.
5193         (Date and time): Add gethrxtime.
5194         (Multithreading): Add openmp.
5195         (Internationalization functions): Add localename.
5196         (Unicode string functions): Add unistr/u*-mbsnlen.
5197         (Support for maintaining and releasing projects): Add git-version-gen.
5198         (Lone files): Remove directories.
5199
5200 2007-10-08  Ben Pfaff  <blp@gnu.org>
5201
5202         * lib/xmalloca.h: Fix typo in comment.
5203
5204 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
5205
5206         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
5207         when avoiding problems with integer overflow.  Use a portable test
5208         instead.
5209
5210 2007-10-08  Simon Josefsson  <simon@josefsson.org>
5211
5212         * modules/dummy (License): Change to LGPLv2+.
5213         * modules/float (License): Likewise
5214         * modules/realloc (License): Likewise
5215         * modules/stdlib (License): Likewise
5216
5217 2007-10-07  Bruno Haible  <bruno@clisp.org>
5218
5219         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
5220         * floor.c (TWO_MANT_DIG): Likewise.
5221         * ceil.c (TWO_MANT_DIG): Likewise.
5222         Reported by Ben Pfaff.
5223
5224 2007-10-07  Bruno Haible  <bruno@clisp.org>
5225
5226         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
5227         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
5228         * lib/frexp.c (FUNC): Likewise.
5229         * lib/printf-frexp.h (printf_frexp): Likewise.
5230         * lib/printf-frexpl.h (printf_frexpl): Likewise.
5231         * lib/printf-frexp.c (FUNC): Likewise.
5232         Suggested by Jim Meyering.
5233
5234 2007-10-07  Jim Meyering  <meyering@redhat.com>
5235
5236         Make xnanosleep's integer overflow test more robust.
5237         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
5238         so that gcc-4.3.0 doesn't optimize away this test for overflow.
5239
5240 2007-10-07  Bruno Haible  <bruno@clisp.org>
5241
5242         * NEWS: Mention the license change.
5243
5244         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
5245         abbreviations in the modules files.
5246
5247         Change copyright notice from GPLv2+ to GPLv3+.
5248         * README: Change copyright notice.
5249         * MODULES.html.sh: Likewise.
5250         * build-aux/bootstrap.conf: Likewise.
5251         * build-aux/config.libpath: Likewise.
5252         * build-aux/csharpcomp.sh.in: Likewise.
5253         * build-aux/csharpexec.sh.in: Likewise.
5254         * build-aux/install-reloc: Likewise.
5255         * build-aux/javacomp.sh.in: Likewise.
5256         * build-aux/javaexec.sh.in: Likewise.
5257         * build-aux/ldd.sh.in: Likewise.
5258         * build-aux/reloc-ldflags: Likewise.
5259         * build-aux/relocatable.sh.in: Likewise.
5260         * build-aux/x-to-1.in: Likewise.
5261         * check-module: Likewise.
5262         * config/srclistvars.sh: Likewise.
5263         * gnulib-tool: Likewise.
5264         * lib/acl-internal.h: Likewise.
5265         * lib/acl.c: Likewise.
5266         * lib/acl.h: Likewise.
5267         * lib/acl_entries.c: Likewise.
5268         * lib/areadlink-with-size.c: Likewise.
5269         * lib/areadlink.c: Likewise.
5270         * lib/areadlink.h: Likewise.
5271         * lib/argmatch.c: Likewise.
5272         * lib/argmatch.h: Likewise.
5273         * lib/argp-ba.c: Likewise.
5274         * lib/argp-eexst.c: Likewise.
5275         * lib/argp-fmtstream.c: Likewise.
5276         * lib/argp-fmtstream.h: Likewise.
5277         * lib/argp-fs-xinl.c: Likewise.
5278         * lib/argp-help.c: Likewise.
5279         * lib/argp-namefrob.h: Likewise.
5280         * lib/argp-parse.c: Likewise.
5281         * lib/argp-pin.c: Likewise.
5282         * lib/argp-pv.c: Likewise.
5283         * lib/argp-pvh.c: Likewise.
5284         * lib/argp-xinl.c: Likewise.
5285         * lib/argp.h: Likewise.
5286         * lib/at-func.c: Likewise.
5287         * lib/atanl.c: Likewise.
5288         * lib/backupfile.c: Likewise.
5289         * lib/backupfile.h: Likewise.
5290         * lib/basename.c: Likewise.
5291         * lib/binary-io.h: Likewise.
5292         * lib/byteswap.in.h: Likewise.
5293         * lib/c-stack.c: Likewise.
5294         * lib/c-stack.h: Likewise.
5295         * lib/c-strcasestr.c: Likewise.
5296         * lib/c-strcasestr.h: Likewise.
5297         * lib/c-strstr.c: Likewise.
5298         * lib/c-strstr.h: Likewise.
5299         * lib/c-strtod.c: Likewise.
5300         * lib/calloc.c: Likewise.
5301         * lib/canon-host.c: Likewise.
5302         * lib/canon-host.h: Likewise.
5303         * lib/canonicalize-lgpl.c: Likewise.
5304         * lib/canonicalize.c: Likewise.
5305         * lib/canonicalize.h: Likewise.
5306         * lib/ceil.c: Likewise.
5307         * lib/ceilf.c: Likewise.
5308         * lib/ceill.c: Likewise.
5309         * lib/chdir-long.c: Likewise.
5310         * lib/chdir-long.h: Likewise.
5311         * lib/chdir-safer.c: Likewise.
5312         * lib/chdir-safer.h: Likewise.
5313         * lib/chown.c: Likewise.
5314         * lib/classpath.c: Likewise.
5315         * lib/classpath.h: Likewise.
5316         * lib/clean-temp.c: Likewise.
5317         * lib/clean-temp.h: Likewise.
5318         * lib/cloexec.c: Likewise.
5319         * lib/close-stream.c: Likewise.
5320         * lib/closein.c: Likewise.
5321         * lib/closein.h: Likewise.
5322         * lib/closeout.c: Likewise.
5323         * lib/closeout.h: Likewise.
5324         * lib/concat-filename.c: Likewise.
5325         * lib/copy-file.c: Likewise.
5326         * lib/copy-file.h: Likewise.
5327         * lib/count-one-bits.h: Likewise.
5328         * lib/crc.c: Likewise.
5329         * lib/crc.h: Likewise.
5330         * lib/creat-safer.c: Likewise.
5331         * lib/csharpcomp.c: Likewise.
5332         * lib/csharpcomp.h: Likewise.
5333         * lib/csharpexec.c: Likewise.
5334         * lib/csharpexec.h: Likewise.
5335         * lib/cycle-check.c: Likewise.
5336         * lib/cycle-check.h: Likewise.
5337         * lib/diacrit.c: Likewise.
5338         * lib/diacrit.h: Likewise.
5339         * lib/diffseq.h: Likewise.
5340         * lib/dirchownmod.c: Likewise.
5341         * lib/dirent.in.h: Likewise.
5342         * lib/dirfd.c: Likewise.
5343         * lib/dirfd.h: Likewise.
5344         * lib/dirname.c: Likewise.
5345         * lib/dirname.h: Likewise.
5346         * lib/dummy.c: Likewise.
5347         * lib/dup-safer.c: Likewise.
5348         * lib/dup2.c: Likewise.
5349         * lib/eealloc.h: Likewise.
5350         * lib/error.c: Likewise.
5351         * lib/error.h: Likewise.
5352         * lib/euidaccess.c: Likewise.
5353         * lib/exclude.c: Likewise.
5354         * lib/exclude.h: Likewise.
5355         * lib/execute.c: Likewise.
5356         * lib/execute.h: Likewise.
5357         * lib/exitfail.c: Likewise.
5358         * lib/exitfail.h: Likewise.
5359         * lib/expl.c: Likewise.
5360         * lib/fatal-signal.c: Likewise.
5361         * lib/fatal-signal.h: Likewise.
5362         * lib/fbufmode.c: Likewise.
5363         * lib/fbufmode.h: Likewise.
5364         * lib/fchdir.c: Likewise.
5365         * lib/fchmodat.c: Likewise.
5366         * lib/fchownat.c: Likewise.
5367         * lib/fcntl--.h: Likewise.
5368         * lib/fcntl-safer.h: Likewise.
5369         * lib/fcntl.in.h: Likewise.
5370         * lib/fd-safer.c: Likewise.
5371         * lib/fflush.c: Likewise.
5372         * lib/file-has-acl.c: Likewise.
5373         * lib/file-set.c: Likewise.
5374         * lib/file-type.c: Likewise.
5375         * lib/file-type.h: Likewise.
5376         * lib/fileblocks.c: Likewise.
5377         * lib/filemode.c: Likewise.
5378         * lib/filemode.h: Likewise.
5379         * lib/filename.h: Likewise.
5380         * lib/filenamecat.c: Likewise.
5381         * lib/filenamecat.h: Likewise.
5382         * lib/findprog.c: Likewise.
5383         * lib/findprog.h: Likewise.
5384         * lib/float.in.h: Likewise.
5385         * lib/floor.c: Likewise.
5386         * lib/floorf.c: Likewise.
5387         * lib/floorl.c: Likewise.
5388         * lib/fopen-safer.c: Likewise.
5389         * lib/fopen.c: Likewise.
5390         * lib/fpending.c: Likewise.
5391         * lib/fpending.h: Likewise.
5392         * lib/fprintf.c: Likewise.
5393         * lib/fprintftime.h: Likewise.
5394         * lib/fpucw.h: Likewise.
5395         * lib/fpurge.c: Likewise.
5396         * lib/fpurge.h: Likewise.
5397         * lib/freadable.c: Likewise.
5398         * lib/freadable.h: Likewise.
5399         * lib/freadahead.c: Likewise.
5400         * lib/freadahead.h: Likewise.
5401         * lib/freading.c: Likewise.
5402         * lib/freading.h: Likewise.
5403         * lib/free.c: Likewise.
5404         * lib/freopen.c: Likewise.
5405         * lib/frexp.c: Likewise.
5406         * lib/frexpl.c: Likewise.
5407         * lib/fseek.c: Likewise.
5408         * lib/fseterr.c: Likewise.
5409         * lib/fseterr.h: Likewise.
5410         * lib/fstatat.c: Likewise.
5411         * lib/fstrcmp.c: Likewise.
5412         * lib/fstrcmp.h: Likewise.
5413         * lib/fsusage.c: Likewise.
5414         * lib/fsusage.h: Likewise.
5415         * lib/ftell.c: Likewise.
5416         * lib/ftello.c: Likewise.
5417         * lib/fts-cycle.c: Likewise.
5418         * lib/fts.c: Likewise.
5419         * lib/fts_.h: Likewise.
5420         * lib/full-read.c: Likewise.
5421         * lib/full-read.h: Likewise.
5422         * lib/full-write.c: Likewise.
5423         * lib/full-write.h: Likewise.
5424         * lib/fwritable.c: Likewise.
5425         * lib/fwritable.h: Likewise.
5426         * lib/fwriteerror.c: Likewise.
5427         * lib/fwriteerror.h: Likewise.
5428         * lib/fwriting.c: Likewise.
5429         * lib/fwriting.h: Likewise.
5430         * lib/gcd.c: Likewise.
5431         * lib/gcd.h: Likewise.
5432         * lib/getcwd.c: Likewise.
5433         * lib/getdate.h: Likewise.
5434         * lib/getdate.y: Likewise.
5435         * lib/getdomainname.c: Likewise.
5436         * lib/getdomainname.h: Likewise.
5437         * lib/getgroups.c: Likewise.
5438         * lib/gethostname.c: Likewise.
5439         * lib/gethrxtime.c: Likewise.
5440         * lib/gethrxtime.h: Likewise.
5441         * lib/getloadavg.c: Likewise.
5442         * lib/getndelim2.c: Likewise.
5443         * lib/getndelim2.h: Likewise.
5444         * lib/getnline.c: Likewise.
5445         * lib/getnline.h: Likewise.
5446         * lib/getopt.c: Likewise.
5447         * lib/getopt.in.h: Likewise.
5448         * lib/getopt1.c: Likewise.
5449         * lib/getopt_int.h: Likewise.
5450         * lib/getpagesize.h: Likewise.
5451         * lib/getsubopt.c: Likewise.
5452         * lib/gettime.c: Likewise.
5453         * lib/getugroups.c: Likewise.
5454         * lib/getugroups.h: Likewise.
5455         * lib/getusershell.c: Likewise.
5456         * lib/gl_anyavltree_list1.h: Likewise.
5457         * lib/gl_anyavltree_list2.h: Likewise.
5458         * lib/gl_anyhash_list1.h: Likewise.
5459         * lib/gl_anyhash_list2.h: Likewise.
5460         * lib/gl_anylinked_list1.h: Likewise.
5461         * lib/gl_anylinked_list2.h: Likewise.
5462         * lib/gl_anyrbtree_list1.h: Likewise.
5463         * lib/gl_anyrbtree_list2.h: Likewise.
5464         * lib/gl_anytree_list1.h: Likewise.
5465         * lib/gl_anytree_list2.h: Likewise.
5466         * lib/gl_anytree_oset.h: Likewise.
5467         * lib/gl_anytreehash_list1.h: Likewise.
5468         * lib/gl_anytreehash_list2.h: Likewise.
5469         * lib/gl_array_list.c: Likewise.
5470         * lib/gl_array_list.h: Likewise.
5471         * lib/gl_array_oset.c: Likewise.
5472         * lib/gl_array_oset.h: Likewise.
5473         * lib/gl_avltree_list.c: Likewise.
5474         * lib/gl_avltree_list.h: Likewise.
5475         * lib/gl_avltree_oset.c: Likewise.
5476         * lib/gl_avltree_oset.h: Likewise.
5477         * lib/gl_avltreehash_list.c: Likewise.
5478         * lib/gl_avltreehash_list.h: Likewise.
5479         * lib/gl_carray_list.c: Likewise.
5480         * lib/gl_carray_list.h: Likewise.
5481         * lib/gl_linked_list.c: Likewise.
5482         * lib/gl_linked_list.h: Likewise.
5483         * lib/gl_linkedhash_list.c: Likewise.
5484         * lib/gl_linkedhash_list.h: Likewise.
5485         * lib/gl_list.c: Likewise.
5486         * lib/gl_list.h: Likewise.
5487         * lib/gl_oset.c: Likewise.
5488         * lib/gl_oset.h: Likewise.
5489         * lib/gl_rbtree_list.c: Likewise.
5490         * lib/gl_rbtree_list.h: Likewise.
5491         * lib/gl_rbtree_oset.c: Likewise.
5492         * lib/gl_rbtree_oset.h: Likewise.
5493         * lib/gl_rbtreehash_list.c: Likewise.
5494         * lib/gl_rbtreehash_list.h: Likewise.
5495         * lib/gl_sublist.c: Likewise.
5496         * lib/gl_sublist.h: Likewise.
5497         * lib/group-member.c: Likewise.
5498         * lib/group-member.h: Likewise.
5499         * lib/hard-locale.c: Likewise.
5500         * lib/hard-locale.h: Likewise.
5501         * lib/hash-pjw.c: Likewise.
5502         * lib/hash-pjw.h: Likewise.
5503         * lib/hash-triple.c: Likewise.
5504         * lib/hash.c: Likewise.
5505         * lib/hash.h: Likewise.
5506         * lib/human.c: Likewise.
5507         * lib/human.h: Likewise.
5508         * lib/i-ring.c: Likewise.
5509         * lib/i-ring.h: Likewise.
5510         * lib/idcache.c: Likewise.
5511         * lib/imaxabs.c: Likewise.
5512         * lib/imaxdiv.c: Likewise.
5513         * lib/inet_pton.c: Likewise.
5514         * lib/inet_pton.h: Likewise.
5515         * lib/intprops.h: Likewise.
5516         * lib/inttostr.c: Likewise.
5517         * lib/inttostr.h: Likewise.
5518         * lib/inttypes.in.h: Likewise.
5519         * lib/isapipe.c: Likewise.
5520         * lib/isdir.c: Likewise.
5521         * lib/isnan.c: Likewise.
5522         * lib/isnan.h: Likewise.
5523         * lib/isnanf.c: Likewise.
5524         * lib/isnanf.h: Likewise.
5525         * lib/isnanl-nolibm.h: Likewise.
5526         * lib/isnanl.c: Likewise.
5527         * lib/isnanl.h: Likewise.
5528         * lib/javacomp.c: Likewise.
5529         * lib/javacomp.h: Likewise.
5530         * lib/javaexec.c: Likewise.
5531         * lib/javaexec.h: Likewise.
5532         * lib/javaversion.c: Likewise.
5533         * lib/javaversion.h: Likewise.
5534         * lib/javaversion.java: Likewise.
5535         * lib/lbrkprop.h: Likewise.
5536         * lib/lchmod.h: Likewise.
5537         * lib/lchown.c: Likewise.
5538         * lib/ldexpl.c: Likewise.
5539         * lib/linebreak.c: Likewise.
5540         * lib/linebreak.h: Likewise.
5541         * lib/linebuffer.c: Likewise.
5542         * lib/linebuffer.h: Likewise.
5543         * lib/locale.in.h: Likewise.
5544         * lib/logl.c: Likewise.
5545         * lib/long-options.c: Likewise.
5546         * lib/long-options.h: Likewise.
5547         * lib/lstat.c: Likewise.
5548         * lib/lstat.h: Likewise.
5549         * lib/math.in.h: Likewise.
5550         * lib/mbchar.c: Likewise.
5551         * lib/mbchar.h: Likewise.
5552         * lib/mbfile.h: Likewise.
5553         * lib/mbiter.h: Likewise.
5554         * lib/mbscasecmp.c: Likewise.
5555         * lib/mbscasestr.c: Likewise.
5556         * lib/mbschr.c: Likewise.
5557         * lib/mbscspn.c: Likewise.
5558         * lib/mbslen.c: Likewise.
5559         * lib/mbsncasecmp.c: Likewise.
5560         * lib/mbsnlen.c: Likewise.
5561         * lib/mbspbrk.c: Likewise.
5562         * lib/mbspcasecmp.c: Likewise.
5563         * lib/mbsrchr.c: Likewise.
5564         * lib/mbssep.c: Likewise.
5565         * lib/mbsspn.c: Likewise.
5566         * lib/mbsstr.c: Likewise.
5567         * lib/mbstok_r.c: Likewise.
5568         * lib/mbswidth.c: Likewise.
5569         * lib/mbswidth.h: Likewise.
5570         * lib/mbuiter.h: Likewise.
5571         * lib/memcasecmp.c: Likewise.
5572         * lib/memcasecmp.h: Likewise.
5573         * lib/memchr.c: Likewise.
5574         * lib/memcmp.c: Likewise.
5575         * lib/memcoll.c: Likewise.
5576         * lib/memcoll.h: Likewise.
5577         * lib/memcpy.c: Likewise.
5578         * lib/memrchr.c: Likewise.
5579         * lib/mkancesdirs.c: Likewise.
5580         * lib/mkdir-p.c: Likewise.
5581         * lib/mkdir-p.h: Likewise.
5582         * lib/mkdir.c: Likewise.
5583         * lib/mkdirat.c: Likewise.
5584         * lib/mkdtemp.c: Likewise.
5585         * lib/mkstemp-safer.c: Likewise.
5586         * lib/mkstemp.c: Likewise.
5587         * lib/modechange.c: Likewise.
5588         * lib/modechange.h: Likewise.
5589         * lib/mountlist.c: Likewise.
5590         * lib/mountlist.h: Likewise.
5591         * lib/mpsort.c: Likewise.
5592         * lib/nanosleep.c: Likewise.
5593         * lib/obstack.c: Likewise.
5594         * lib/obstack.h: Likewise.
5595         * lib/open-safer.c: Likewise.
5596         * lib/open.c: Likewise.
5597         * lib/openat-die.c: Likewise.
5598         * lib/openat-priv.h: Likewise.
5599         * lib/openat-proc.c: Likewise.
5600         * lib/openat.c: Likewise.
5601         * lib/openat.h: Likewise.
5602         * lib/pagealign_alloc.c: Likewise.
5603         * lib/pagealign_alloc.h: Likewise.
5604         * lib/physmem.c: Likewise.
5605         * lib/physmem.h: Likewise.
5606         * lib/pipe-safer.c: Likewise.
5607         * lib/pipe.c: Likewise.
5608         * lib/pipe.h: Likewise.
5609         * lib/posixtm.c: Likewise.
5610         * lib/posixtm.h: Likewise.
5611         * lib/posixver.c: Likewise.
5612         * lib/printf-frexp.c: Likewise.
5613         * lib/printf-frexp.h: Likewise.
5614         * lib/printf-frexpl.c: Likewise.
5615         * lib/printf-frexpl.h: Likewise.
5616         * lib/printf.c: Likewise.
5617         * lib/progname.c: Likewise.
5618         * lib/progname.h: Likewise.
5619         * lib/progreloc.c: Likewise.
5620         * lib/putenv.c: Likewise.
5621         * lib/quote.c: Likewise.
5622         * lib/quote.h: Likewise.
5623         * lib/quotearg.c: Likewise.
5624         * lib/quotearg.h: Likewise.
5625         * lib/raise.c: Likewise.
5626         * lib/readline.c: Likewise.
5627         * lib/readline.h: Likewise.
5628         * lib/readlink.c: Likewise.
5629         * lib/readtokens.c: Likewise.
5630         * lib/readtokens.h: Likewise.
5631         * lib/readtokens0.c: Likewise.
5632         * lib/readtokens0.h: Likewise.
5633         * lib/readutmp.c: Likewise.
5634         * lib/readutmp.h: Likewise.
5635         * lib/realloc.c: Likewise.
5636         * lib/relocwrapper.c: Likewise.
5637         * lib/rename-dest-slash.c: Likewise.
5638         * lib/rename.c: Likewise.
5639         * lib/rmdir.c: Likewise.
5640         * lib/rpmatch.c: Likewise.
5641         * lib/safe-read.c: Likewise.
5642         * lib/safe-read.h: Likewise.
5643         * lib/safe-write.c: Likewise.
5644         * lib/safe-write.h: Likewise.
5645         * lib/same-inode.h: Likewise.
5646         * lib/same.c: Likewise.
5647         * lib/same.h: Likewise.
5648         * lib/save-cwd.c: Likewise.
5649         * lib/save-cwd.h: Likewise.
5650         * lib/savedir.c: Likewise.
5651         * lib/savedir.h: Likewise.
5652         * lib/savewd.c: Likewise.
5653         * lib/savewd.h: Likewise.
5654         * lib/search.in.h: Likewise.
5655         * lib/setenv.c: Likewise.
5656         * lib/setenv.h: Likewise.
5657         * lib/settime.c: Likewise.
5658         * lib/sh-quote.c: Likewise.
5659         * lib/sh-quote.h: Likewise.
5660         * lib/sig2str.c: Likewise.
5661         * lib/sig2str.h: Likewise.
5662         * lib/signal.in.h: Likewise.
5663         * lib/signbitd.c: Likewise.
5664         * lib/signbitf.c: Likewise.
5665         * lib/signbitl.c: Likewise.
5666         * lib/sigprocmask.c: Likewise.
5667         * lib/sincosl.c: Likewise.
5668         * lib/sleep.c: Likewise.
5669         * lib/sprintf.c: Likewise.
5670         * lib/sqrtl.c: Likewise.
5671         * lib/stat-time.h: Likewise.
5672         * lib/stdio--.h: Likewise.
5673         * lib/stdio-safer.h: Likewise.
5674         * lib/stdlib--.h: Likewise.
5675         * lib/stdlib-safer.h: Likewise.
5676         * lib/stdlib.in.h: Likewise.
5677         * lib/stpcpy.c: Likewise.
5678         * lib/stpncpy.c: Likewise.
5679         * lib/strchrnul.c: Likewise.
5680         * lib/strcspn.c: Likewise.
5681         * lib/strerror.c: Likewise.
5682         * lib/strftime.c: Likewise.
5683         * lib/strftime.h: Likewise.
5684         * lib/striconveh.c: Likewise.
5685         * lib/striconveh.h: Likewise.
5686         * lib/striconveha.c: Likewise.
5687         * lib/striconveha.h: Likewise.
5688         * lib/stripslash.c: Likewise.
5689         * lib/strnlen1.c: Likewise.
5690         * lib/strnlen1.h: Likewise.
5691         * lib/strtod.c: Likewise.
5692         * lib/strtoimax.c: Likewise.
5693         * lib/strtok_r.c: Likewise.
5694         * lib/strtol.c: Likewise.
5695         * lib/strtoll.c: Likewise.
5696         * lib/strtoul.c: Likewise.
5697         * lib/strtoull.c: Likewise.
5698         * lib/sysexits.in.h: Likewise.
5699         * lib/tempname.c: Likewise.
5700         * lib/tempname.h: Likewise.
5701         * lib/timespec.h: Likewise.
5702         * lib/tls.c: Likewise.
5703         * lib/tls.h: Likewise.
5704         * lib/tmpdir.c: Likewise.
5705         * lib/tmpdir.h: Likewise.
5706         * lib/tmpfile-safer.c: Likewise.
5707         * lib/tmpfile.c: Likewise.
5708         * lib/trigl.c: Likewise.
5709         * lib/trigl.h: Likewise.
5710         * lib/trim.c: Likewise.
5711         * lib/trim.h: Likewise.
5712         * lib/trunc.c: Likewise.
5713         * lib/truncf.c: Likewise.
5714         * lib/truncl.c: Likewise.
5715         * lib/tsearch.c: Likewise.
5716         * lib/unicodeio.c: Likewise.
5717         * lib/unicodeio.h: Likewise.
5718         * lib/unistd--.h: Likewise.
5719         * lib/unistd-safer.h: Likewise.
5720         * lib/unistdio/ulc-fprintf.c: Likewise.
5721         * lib/unistdio/ulc-vfprintf.c: Likewise.
5722         * lib/unlinkdir.c: Likewise.
5723         * lib/unlinkdir.h: Likewise.
5724         * lib/unlocked-io.h: Likewise.
5725         * lib/unsetenv.c: Likewise.
5726         * lib/userspec.c: Likewise.
5727         * lib/utime.c: Likewise.
5728         * lib/utimecmp.c: Likewise.
5729         * lib/utimecmp.h: Likewise.
5730         * lib/utimens.c: Likewise.
5731         * lib/verify.h: Likewise.
5732         * lib/verror.c: Likewise.
5733         * lib/verror.h: Likewise.
5734         * lib/version-etc-fsf.c: Likewise.
5735         * lib/version-etc.c: Likewise.
5736         * lib/version-etc.h: Likewise.
5737         * lib/vfprintf.c: Likewise.
5738         * lib/vprintf.c: Likewise.
5739         * lib/vsprintf.c: Likewise.
5740         * lib/w32spawn.h: Likewise.
5741         * lib/wait-process.c: Likewise.
5742         * lib/wait-process.h: Likewise.
5743         * lib/wcwidth.c: Likewise.
5744         * lib/write-any-file.c: Likewise.
5745         * lib/xalloc-die.c: Likewise.
5746         * lib/xalloc.h: Likewise.
5747         * lib/xasprintf.c: Likewise.
5748         * lib/xgetcwd.c: Likewise.
5749         * lib/xgetcwd.h: Likewise.
5750         * lib/xgetdomainname.c: Likewise.
5751         * lib/xgetdomainname.h: Likewise.
5752         * lib/xgethostname.c: Likewise.
5753         * lib/xmalloc.c: Likewise.
5754         * lib/xmalloca.c: Likewise.
5755         * lib/xmalloca.h: Likewise.
5756         * lib/xmemcoll.c: Likewise.
5757         * lib/xnanosleep.c: Likewise.
5758         * lib/xreadlink.c: Likewise.
5759         * lib/xreadlink.h: Likewise.
5760         * lib/xsetenv.c: Likewise.
5761         * lib/xsetenv.h: Likewise.
5762         * lib/xstriconv.c: Likewise.
5763         * lib/xstriconv.h: Likewise.
5764         * lib/xstrndup.c: Likewise.
5765         * lib/xstrndup.h: Likewise.
5766         * lib/xstrtod.c: Likewise.
5767         * lib/xstrtod.h: Likewise.
5768         * lib/xstrtol-error.c: Likewise.
5769         * lib/xstrtol.c: Likewise.
5770         * lib/xstrtol.h: Likewise.
5771         * lib/xtime.h: Likewise.
5772         * lib/xvasprintf.c: Likewise.
5773         * lib/xvasprintf.h: Likewise.
5774         * lib/yesno.c: Likewise.
5775         * lib/yesno.h: Likewise.
5776         * posix-modules: Likewise.
5777         * tests/test-alloca-opt.c: Likewise.
5778         * tests/test-arcfour.c: Likewise.
5779         * tests/test-arctwo.c: Likewise.
5780         * tests/test-argmatch.c: Likewise.
5781         * tests/test-argp-2.sh: Likewise.
5782         * tests/test-argp.c: Likewise.
5783         * tests/test-arpa_inet.c: Likewise.
5784         * tests/test-array_list.c: Likewise.
5785         * tests/test-array_oset.c: Likewise.
5786         * tests/test-atexit.c: Likewise.
5787         * tests/test-avltree_list.c: Likewise.
5788         * tests/test-avltree_oset.c: Likewise.
5789         * tests/test-avltreehash_list.c: Likewise.
5790         * tests/test-base64.c: Likewise.
5791         * tests/test-binary-io.c: Likewise.
5792         * tests/test-byteswap.c: Likewise.
5793         * tests/test-c-ctype.c: Likewise.
5794         * tests/test-c-strcasecmp.c: Likewise.
5795         * tests/test-c-strcasestr.c: Likewise.
5796         * tests/test-c-strncasecmp.c: Likewise.
5797         * tests/test-c-strstr.c: Likewise.
5798         * tests/test-canonicalize-lgpl.c: Likewise.
5799         * tests/test-canonicalize.c: Likewise.
5800         * tests/test-carray_list.c: Likewise.
5801         * tests/test-ceilf.c: Likewise.
5802         * tests/test-ceill.c: Likewise.
5803         * tests/test-count-one-bits.c: Likewise.
5804         * tests/test-crc.c: Likewise.
5805         * tests/test-dirname.c: Likewise.
5806         * tests/test-fbufmode.c: Likewise.
5807         * tests/test-fcntl.c: Likewise.
5808         * tests/test-fflush.c: Likewise.
5809         * tests/test-floorf.c: Likewise.
5810         * tests/test-floorl.c: Likewise.
5811         * tests/test-fopen.c: Likewise.
5812         * tests/test-fprintf-posix.c: Likewise.
5813         * tests/test-fprintf-posix.h: Likewise.
5814         * tests/test-fpurge.c: Likewise.
5815         * tests/test-freadable.c: Likewise.
5816         * tests/test-freadahead.c: Likewise.
5817         * tests/test-freading.c: Likewise.
5818         * tests/test-freopen.c: Likewise.
5819         * tests/test-frexp.c: Likewise.
5820         * tests/test-frexpl.c: Likewise.
5821         * tests/test-fseek.c: Likewise.
5822         * tests/test-fseeko.c: Likewise.
5823         * tests/test-fseterr.c: Likewise.
5824         * tests/test-fstrcmp.c: Likewise.
5825         * tests/test-ftell.c: Likewise.
5826         * tests/test-ftello.c: Likewise.
5827         * tests/test-fwritable.c: Likewise.
5828         * tests/test-fwriting.c: Likewise.
5829         * tests/test-getaddrinfo.c: Likewise.
5830         * tests/test-getpass.c: Likewise.
5831         * tests/test-gettimeofday.c: Likewise.
5832         * tests/test-hmac-md5.c: Likewise.
5833         * tests/test-hmac-sha1.c: Likewise.
5834         * tests/test-iconv.c: Likewise.
5835         * tests/test-iconvme.c: Likewise.
5836         * tests/test-inttypes.c: Likewise.
5837         * tests/test-isnan.c: Likewise.
5838         * tests/test-isnanf.c: Likewise.
5839         * tests/test-isnanl-nolibm.c: Likewise.
5840         * tests/test-isnanl.c: Likewise.
5841         * tests/test-isnanl.h: Likewise.
5842         * tests/test-ldexpl.c: Likewise.
5843         * tests/test-linked_list.c: Likewise.
5844         * tests/test-linkedhash_list.c: Likewise.
5845         * tests/test-locale.c: Likewise.
5846         * tests/test-localename.c: Likewise.
5847         * tests/test-lock.c: Likewise.
5848         * tests/test-lseek.c: Likewise.
5849         * tests/test-malloca.c: Likewise.
5850         * tests/test-math.c: Likewise.
5851         * tests/test-mbscasecmp.c: Likewise.
5852         * tests/test-mbscasestr1.c: Likewise.
5853         * tests/test-mbscasestr2.c: Likewise.
5854         * tests/test-mbscasestr3.c: Likewise.
5855         * tests/test-mbscasestr4.c: Likewise.
5856         * tests/test-mbschr.c: Likewise.
5857         * tests/test-mbscspn.c: Likewise.
5858         * tests/test-mbsncasecmp.c: Likewise.
5859         * tests/test-mbspbrk.c: Likewise.
5860         * tests/test-mbspcasecmp.c: Likewise.
5861         * tests/test-mbsrchr.c: Likewise.
5862         * tests/test-mbsspn.c: Likewise.
5863         * tests/test-mbsstr1.c: Likewise.
5864         * tests/test-mbsstr2.c: Likewise.
5865         * tests/test-mbsstr3.c: Likewise.
5866         * tests/test-md5.c: Likewise.
5867         * tests/test-memmem.c: Likewise.
5868         * tests/test-netinet_in.c: Likewise.
5869         * tests/test-open.c: Likewise.
5870         * tests/test-printf-frexp.c: Likewise.
5871         * tests/test-printf-frexpl.c: Likewise.
5872         * tests/test-printf-posix.c: Likewise.
5873         * tests/test-printf-posix.h: Likewise.
5874         * tests/test-rbtree_list.c: Likewise.
5875         * tests/test-rbtree_oset.c: Likewise.
5876         * tests/test-rbtreehash_list.c: Likewise.
5877         * tests/test-read-file.c: Likewise.
5878         * tests/test-rijndael.c: Likewise.
5879         * tests/test-search.c: Likewise.
5880         * tests/test-signbit.c: Likewise.
5881         * tests/test-sleep.c: Likewise.
5882         * tests/test-snprintf-posix.c: Likewise.
5883         * tests/test-snprintf-posix.h: Likewise.
5884         * tests/test-snprintf.c: Likewise.
5885         * tests/test-sprintf-posix.c: Likewise.
5886         * tests/test-sprintf-posix.h: Likewise.
5887         * tests/test-stat-time.c: Likewise.
5888         * tests/test-stdbool.c: Likewise.
5889         * tests/test-stdint.c: Likewise.
5890         * tests/test-stdio.c: Likewise.
5891         * tests/test-stdlib.c: Likewise.
5892         * tests/test-stpncpy.c: Likewise.
5893         * tests/test-strcasestr.c: Likewise.
5894         * tests/test-striconv.c: Likewise.
5895         * tests/test-striconveh.c: Likewise.
5896         * tests/test-striconveha.c: Likewise.
5897         * tests/test-string.c: Likewise.
5898         * tests/test-sys_select.c: Likewise.
5899         * tests/test-sys_socket.c: Likewise.
5900         * tests/test-sys_stat.c: Likewise.
5901         * tests/test-sys_time.c: Likewise.
5902         * tests/test-sysexits.c: Likewise.
5903         * tests/test-time.c: Likewise.
5904         * tests/test-tls.c: Likewise.
5905         * tests/test-trunc.c: Likewise.
5906         * tests/test-truncf.c: Likewise.
5907         * tests/test-truncl.c: Likewise.
5908         * tests/test-unistd.c: Likewise.
5909         * tests/test-vasnprintf-posix.c: Likewise.
5910         * tests/test-vasnprintf-posix2.c: Likewise.
5911         * tests/test-vasnprintf.c: Likewise.
5912         * tests/test-vasprintf-posix.c: Likewise.
5913         * tests/test-vasprintf.c: Likewise.
5914         * tests/test-verify.c: Likewise.
5915         * tests/test-vfprintf-posix.c: Likewise.
5916         * tests/test-vprintf-posix.c: Likewise.
5917         * tests/test-vsnprintf-posix.c: Likewise.
5918         * tests/test-vsnprintf.c: Likewise.
5919         * tests/test-vsprintf-posix.c: Likewise.
5920         * tests/test-wchar.c: Likewise.
5921         * tests/test-wctype.c: Likewise.
5922         * tests/test-wcwidth.c: Likewise.
5923         * tests/test-xstrtol.c: Likewise.
5924         * tests/test-xvasprintf.c: Likewise.
5925         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
5926         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
5927         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
5928         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
5929         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
5930         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
5931         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
5932         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
5933         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
5934         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
5935         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
5936         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
5937         * tests/uniname/test-uninames.c: Likewise.
5938         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
5939         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
5940         * tests/unistdio/test-u16-printf1.h: Likewise.
5941         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
5942         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
5943         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
5944         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
5945         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
5946         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
5947         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
5948         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
5949         * tests/unistdio/test-u32-printf1.h: Likewise.
5950         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
5951         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
5952         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
5953         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
5954         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
5955         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
5956         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
5957         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
5958         * tests/unistdio/test-u8-printf1.h: Likewise.
5959         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
5960         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
5961         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
5962         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
5963         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
5964         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
5965         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
5966         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
5967         * tests/unistdio/test-ulc-printf1.h: Likewise.
5968         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
5969         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
5970         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
5971         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
5972         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
5973         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
5974         * tests/uniwidth/test-u16-strwidth.c: Likewise.
5975         * tests/uniwidth/test-u16-width.c: Likewise.
5976         * tests/uniwidth/test-u32-strwidth.c: Likewise.
5977         * tests/uniwidth/test-u32-width.c: Likewise.
5978         * tests/uniwidth/test-u8-strwidth.c: Likewise.
5979         * tests/uniwidth/test-u8-width.c: Likewise.
5980         * tests/uniwidth/test-uc_width.c: Likewise.
5981         * config/srclist-update: Likewise.
5982         (fixlicense): Update to GPLv3+.
5983
5984         Change copyright notice from LGPLv2.1+ to LGPLv3+.
5985         * tests/test-tsearch.c: Change copyright notice.
5986
5987         Change copyright notice from LGPLv2.0+ to LGPLv3+.
5988         * lib/c-strcaseeq.h: Change copyright notice.
5989         * lib/streq.h: Likewise.
5990         * lib/uniconv.h: Likewise.
5991         * lib/uniconv/u-conv-from-enc.h: Likewise.
5992         * lib/uniconv/u-conv-to-enc.h: Likewise.
5993         * lib/uniconv/u-strconv-from-enc.h: Likewise.
5994         * lib/uniconv/u-strconv-to-enc.h: Likewise.
5995         * lib/uniconv/u16-conv-from-enc.c: Likewise.
5996         * lib/uniconv/u16-conv-to-enc.c: Likewise.
5997         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
5998         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
5999         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
6000         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
6001         * lib/uniconv/u32-conv-from-enc.c: Likewise.
6002         * lib/uniconv/u32-conv-to-enc.c: Likewise.
6003         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
6004         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
6005         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
6006         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
6007         * lib/uniconv/u8-conv-from-enc.c: Likewise.
6008         * lib/uniconv/u8-conv-to-enc.c: Likewise.
6009         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
6010         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
6011         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
6012         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
6013         * lib/uniname.h: Likewise.
6014         * lib/uniname/uniname.c: Likewise.
6015         * lib/unistdio.h: Likewise.
6016         * lib/unistdio/u-asnprintf.h: Likewise.
6017         * lib/unistdio/u-asprintf.h: Likewise.
6018         * lib/unistdio/u-printf-args.c: Likewise.
6019         * lib/unistdio/u-printf-args.h: Likewise.
6020         * lib/unistdio/u-printf-parse.h: Likewise.
6021         * lib/unistdio/u-snprintf.h: Likewise.
6022         * lib/unistdio/u-sprintf.h: Likewise.
6023         * lib/unistdio/u-vasprintf.h: Likewise.
6024         * lib/unistdio/u-vsnprintf.h: Likewise.
6025         * lib/unistdio/u-vsprintf.h: Likewise.
6026         * lib/unistdio/u16-asnprintf.c: Likewise.
6027         * lib/unistdio/u16-asprintf.c: Likewise.
6028         * lib/unistdio/u16-printf-parse.c: Likewise.
6029         * lib/unistdio/u16-snprintf.c: Likewise.
6030         * lib/unistdio/u16-sprintf.c: Likewise.
6031         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
6032         * lib/unistdio/u16-u16-asprintf.c: Likewise.
6033         * lib/unistdio/u16-u16-snprintf.c: Likewise.
6034         * lib/unistdio/u16-u16-sprintf.c: Likewise.
6035         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
6036         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
6037         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
6038         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
6039         * lib/unistdio/u16-vasnprintf.c: Likewise.
6040         * lib/unistdio/u16-vasprintf.c: Likewise.
6041         * lib/unistdio/u16-vsnprintf.c: Likewise.
6042         * lib/unistdio/u16-vsprintf.c: Likewise.
6043         * lib/unistdio/u32-asnprintf.c: Likewise.
6044         * lib/unistdio/u32-asprintf.c: Likewise.
6045         * lib/unistdio/u32-printf-parse.c: Likewise.
6046         * lib/unistdio/u32-snprintf.c: Likewise.
6047         * lib/unistdio/u32-sprintf.c: Likewise.
6048         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
6049         * lib/unistdio/u32-u32-asprintf.c: Likewise.
6050         * lib/unistdio/u32-u32-snprintf.c: Likewise.
6051         * lib/unistdio/u32-u32-sprintf.c: Likewise.
6052         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
6053         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
6054         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
6055         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
6056         * lib/unistdio/u32-vasnprintf.c: Likewise.
6057         * lib/unistdio/u32-vasprintf.c: Likewise.
6058         * lib/unistdio/u32-vsnprintf.c: Likewise.
6059         * lib/unistdio/u32-vsprintf.c: Likewise.
6060         * lib/unistdio/u8-asnprintf.c: Likewise.
6061         * lib/unistdio/u8-asprintf.c: Likewise.
6062         * lib/unistdio/u8-printf-parse.c: Likewise.
6063         * lib/unistdio/u8-snprintf.c: Likewise.
6064         * lib/unistdio/u8-sprintf.c: Likewise.
6065         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
6066         * lib/unistdio/u8-u8-asprintf.c: Likewise.
6067         * lib/unistdio/u8-u8-snprintf.c: Likewise.
6068         * lib/unistdio/u8-u8-sprintf.c: Likewise.
6069         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
6070         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
6071         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
6072         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
6073         * lib/unistdio/u8-vasnprintf.c: Likewise.
6074         * lib/unistdio/u8-vasprintf.c: Likewise.
6075         * lib/unistdio/u8-vsnprintf.c: Likewise.
6076         * lib/unistdio/u8-vsprintf.c: Likewise.
6077         * lib/unistdio/ulc-asnprintf.c: Likewise.
6078         * lib/unistdio/ulc-asprintf.c: Likewise.
6079         * lib/unistdio/ulc-printf-parse.c: Likewise.
6080         * lib/unistdio/ulc-snprintf.c: Likewise.
6081         * lib/unistdio/ulc-sprintf.c: Likewise.
6082         * lib/unistdio/ulc-vasnprintf.c: Likewise.
6083         * lib/unistdio/ulc-vasprintf.c: Likewise.
6084         * lib/unistdio/ulc-vsnprintf.c: Likewise.
6085         * lib/unistdio/ulc-vsprintf.c: Likewise.
6086         * lib/unistr.h: Likewise.
6087         * lib/unistr/u-cpy-alloc.h: Likewise.
6088         * lib/unistr/u-cpy.h: Likewise.
6089         * lib/unistr/u-endswith.h: Likewise.
6090         * lib/unistr/u-move.h: Likewise.
6091         * lib/unistr/u-set.h: Likewise.
6092         * lib/unistr/u-startswith.h: Likewise.
6093         * lib/unistr/u-stpcpy.h: Likewise.
6094         * lib/unistr/u-stpncpy.h: Likewise.
6095         * lib/unistr/u-strcat.h: Likewise.
6096         * lib/unistr/u-strcpy.h: Likewise.
6097         * lib/unistr/u-strcspn.h: Likewise.
6098         * lib/unistr/u-strdup.h: Likewise.
6099         * lib/unistr/u-strlen.h: Likewise.
6100         * lib/unistr/u-strncat.h: Likewise.
6101         * lib/unistr/u-strncpy.h: Likewise.
6102         * lib/unistr/u-strnlen.h: Likewise.
6103         * lib/unistr/u-strpbrk.h: Likewise.
6104         * lib/unistr/u-strspn.h: Likewise.
6105         * lib/unistr/u-strstr.h: Likewise.
6106         * lib/unistr/u-strtok.h: Likewise.
6107         * lib/unistr/u16-check.c: Likewise.
6108         * lib/unistr/u16-chr.c: Likewise.
6109         * lib/unistr/u16-cmp.c: Likewise.
6110         * lib/unistr/u16-cpy-alloc.c: Likewise.
6111         * lib/unistr/u16-cpy.c: Likewise.
6112         * lib/unistr/u16-endswith.c: Likewise.
6113         * lib/unistr/u16-mblen.c: Likewise.
6114         * lib/unistr/u16-mbsnlen.c: Likewise.
6115         * lib/unistr/u16-mbtouc-aux.c: Likewise.
6116         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
6117         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
6118         * lib/unistr/u16-mbtouc.c: Likewise.
6119         * lib/unistr/u16-mbtoucr.c: Likewise.
6120         * lib/unistr/u16-move.c: Likewise.
6121         * lib/unistr/u16-next.c: Likewise.
6122         * lib/unistr/u16-prev.c: Likewise.
6123         * lib/unistr/u16-set.c: Likewise.
6124         * lib/unistr/u16-startswith.c: Likewise.
6125         * lib/unistr/u16-stpcpy.c: Likewise.
6126         * lib/unistr/u16-stpncpy.c: Likewise.
6127         * lib/unistr/u16-strcat.c: Likewise.
6128         * lib/unistr/u16-strchr.c: Likewise.
6129         * lib/unistr/u16-strcmp.c: Likewise.
6130         * lib/unistr/u16-strcpy.c: Likewise.
6131         * lib/unistr/u16-strcspn.c: Likewise.
6132         * lib/unistr/u16-strdup.c: Likewise.
6133         * lib/unistr/u16-strlen.c: Likewise.
6134         * lib/unistr/u16-strmblen.c: Likewise.
6135         * lib/unistr/u16-strmbtouc.c: Likewise.
6136         * lib/unistr/u16-strncat.c: Likewise.
6137         * lib/unistr/u16-strncmp.c: Likewise.
6138         * lib/unistr/u16-strncpy.c: Likewise.
6139         * lib/unistr/u16-strnlen.c: Likewise.
6140         * lib/unistr/u16-strpbrk.c: Likewise.
6141         * lib/unistr/u16-strrchr.c: Likewise.
6142         * lib/unistr/u16-strspn.c: Likewise.
6143         * lib/unistr/u16-strstr.c: Likewise.
6144         * lib/unistr/u16-strtok.c: Likewise.
6145         * lib/unistr/u16-to-u32.c: Likewise.
6146         * lib/unistr/u16-to-u8.c: Likewise.
6147         * lib/unistr/u16-uctomb-aux.c: Likewise.
6148         * lib/unistr/u16-uctomb.c: Likewise.
6149         * lib/unistr/u32-check.c: Likewise.
6150         * lib/unistr/u32-chr.c: Likewise.
6151         * lib/unistr/u32-cmp.c: Likewise.
6152         * lib/unistr/u32-cpy-alloc.c: Likewise.
6153         * lib/unistr/u32-cpy.c: Likewise.
6154         * lib/unistr/u32-endswith.c: Likewise.
6155         * lib/unistr/u32-mblen.c: Likewise.
6156         * lib/unistr/u32-mbsnlen.c: Likewise.
6157         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
6158         * lib/unistr/u32-mbtouc.c: Likewise.
6159         * lib/unistr/u32-mbtoucr.c: Likewise.
6160         * lib/unistr/u32-move.c: Likewise.
6161         * lib/unistr/u32-next.c: Likewise.
6162         * lib/unistr/u32-prev.c: Likewise.
6163         * lib/unistr/u32-set.c: Likewise.
6164         * lib/unistr/u32-startswith.c: Likewise.
6165         * lib/unistr/u32-stpcpy.c: Likewise.
6166         * lib/unistr/u32-stpncpy.c: Likewise.
6167         * lib/unistr/u32-strcat.c: Likewise.
6168         * lib/unistr/u32-strchr.c: Likewise.
6169         * lib/unistr/u32-strcmp.c: Likewise.
6170         * lib/unistr/u32-strcpy.c: Likewise.
6171         * lib/unistr/u32-strcspn.c: Likewise.
6172         * lib/unistr/u32-strdup.c: Likewise.
6173         * lib/unistr/u32-strlen.c: Likewise.
6174         * lib/unistr/u32-strmblen.c: Likewise.
6175         * lib/unistr/u32-strmbtouc.c: Likewise.
6176         * lib/unistr/u32-strncat.c: Likewise.
6177         * lib/unistr/u32-strncmp.c: Likewise.
6178         * lib/unistr/u32-strncpy.c: Likewise.
6179         * lib/unistr/u32-strnlen.c: Likewise.
6180         * lib/unistr/u32-strpbrk.c: Likewise.
6181         * lib/unistr/u32-strrchr.c: Likewise.
6182         * lib/unistr/u32-strspn.c: Likewise.
6183         * lib/unistr/u32-strstr.c: Likewise.
6184         * lib/unistr/u32-strtok.c: Likewise.
6185         * lib/unistr/u32-to-u16.c: Likewise.
6186         * lib/unistr/u32-to-u8.c: Likewise.
6187         * lib/unistr/u32-uctomb.c: Likewise.
6188         * lib/unistr/u8-check.c: Likewise.
6189         * lib/unistr/u8-chr.c: Likewise.
6190         * lib/unistr/u8-cmp.c: Likewise.
6191         * lib/unistr/u8-cpy-alloc.c: Likewise.
6192         * lib/unistr/u8-cpy.c: Likewise.
6193         * lib/unistr/u8-endswith.c: Likewise.
6194         * lib/unistr/u8-mblen.c: Likewise.
6195         * lib/unistr/u8-mbsnlen.c: Likewise.
6196         * lib/unistr/u8-mbtouc-aux.c: Likewise.
6197         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
6198         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
6199         * lib/unistr/u8-mbtouc.c: Likewise.
6200         * lib/unistr/u8-mbtoucr.c: Likewise.
6201         * lib/unistr/u8-move.c: Likewise.
6202         * lib/unistr/u8-next.c: Likewise.
6203         * lib/unistr/u8-prev.c: Likewise.
6204         * lib/unistr/u8-set.c: Likewise.
6205         * lib/unistr/u8-startswith.c: Likewise.
6206         * lib/unistr/u8-stpcpy.c: Likewise.
6207         * lib/unistr/u8-stpncpy.c: Likewise.
6208         * lib/unistr/u8-strcat.c: Likewise.
6209         * lib/unistr/u8-strchr.c: Likewise.
6210         * lib/unistr/u8-strcmp.c: Likewise.
6211         * lib/unistr/u8-strcpy.c: Likewise.
6212         * lib/unistr/u8-strcspn.c: Likewise.
6213         * lib/unistr/u8-strdup.c: Likewise.
6214         * lib/unistr/u8-strlen.c: Likewise.
6215         * lib/unistr/u8-strmblen.c: Likewise.
6216         * lib/unistr/u8-strmbtouc.c: Likewise.
6217         * lib/unistr/u8-strncat.c: Likewise.
6218         * lib/unistr/u8-strncmp.c: Likewise.
6219         * lib/unistr/u8-strncpy.c: Likewise.
6220         * lib/unistr/u8-strnlen.c: Likewise.
6221         * lib/unistr/u8-strpbrk.c: Likewise.
6222         * lib/unistr/u8-strrchr.c: Likewise.
6223         * lib/unistr/u8-strspn.c: Likewise.
6224         * lib/unistr/u8-strstr.c: Likewise.
6225         * lib/unistr/u8-strtok.c: Likewise.
6226         * lib/unistr/u8-to-u16.c: Likewise.
6227         * lib/unistr/u8-to-u32.c: Likewise.
6228         * lib/unistr/u8-uctomb-aux.c: Likewise.
6229         * lib/unistr/u8-uctomb.c: Likewise.
6230         * lib/unitypes.h: Likewise.
6231         * lib/uniwidth.h: Likewise.
6232         * lib/uniwidth/cjk.h: Likewise.
6233         * lib/uniwidth/u16-strwidth.c: Likewise.
6234         * lib/uniwidth/u16-width.c: Likewise.
6235         * lib/uniwidth/u32-strwidth.c: Likewise.
6236         * lib/uniwidth/u32-width.c: Likewise.
6237         * lib/uniwidth/u8-strwidth.c: Likewise.
6238         * lib/uniwidth/u8-width.c: Likewise.
6239         * lib/uniwidth/width.c: Likewise.
6240
6241 2007-10-07  Bruno Haible  <bruno@clisp.org>
6242
6243         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
6244         The file is still under LGPL (see modules/inttypes).
6245
6246 2007-10-06  Bruno Haible  <bruno@clisp.org>
6247
6248         * modules/trunc (Dependencies): Add 'extensions'.
6249         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
6250         Reported by Ben Pfaff <blp@gnu.org>.
6251
6252 2007-10-06  Bruno Haible  <bruno@clisp.org>
6253
6254         * modules/freopen-tests: New file.
6255         * tests/test-freopen.c: New file.
6256
6257         * modules/fopen-tests: New file.
6258         * tests/test-fopen.c: New file.
6259
6260         * modules/fopen: New file.
6261         * lib/fopen.c: New file.
6262         * m4/fopen.m4: New file.
6263         * modules/freopen: New file.
6264         * lib/freopen.c: New file.
6265         * m4/freopen.m4: New file.
6266         * lib/stdio.in.h (fopen, freopen): New declarations.
6267         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
6268         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
6269         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
6270         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
6271         * doc/functions/fopen.texi: Mention the 'fopen' module.
6272         * doc/functions/freopen.texi: Mention the 'freopen' module.
6273
6274 2007-10-06  Bruno Haible  <bruno@clisp.org>
6275
6276         * modules/open-tests: New file.
6277         * tests/test-open.c: New file.
6278
6279         * modules/open: New file.
6280         * lib/open.c: New file.
6281         * m4/open.m4: New file.
6282         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
6283         lib/open.c does.
6284         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
6285         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
6286         macros.
6287         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
6288         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
6289         REPLACE_OPEN.
6290         * doc/functions/open.texi: Mention the 'open' module.
6291
6292 2007-10-04  Bruno Haible  <bruno@clisp.org>
6293
6294         * modules/ceill-tests: New file.
6295         * tests/test-ceill.c: New file.
6296
6297         * modules/ceill: New file.
6298         * lib/ceill.c: Replace entire file.
6299         * m4/ceill.m4: New file.
6300         * lib/math.in.h (ceill): Replace declaration.
6301         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
6302         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
6303         * doc/functions/ceill.texi: Mention the 'ceill' module.
6304         * modules/mathl (Files): Remove lib/ceill.c.
6305         (Depends-on): Add ceill.
6306
6307 2007-10-04  Bruno Haible  <bruno@clisp.org>
6308
6309         * modules/ceilf-tests: New file.
6310         * tests/test-ceilf.c: New file.
6311
6312         * modules/ceilf: New file.
6313         * lib/ceil.c: New file.
6314         * lib/ceilf.c: New file.
6315         * m4/ceilf.m4: New file.
6316         * lib/math.in.h (ceilf): New declaration.
6317         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
6318         HAVE_DECL_CEILF.
6319         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
6320         HAVE_DECL_CEILF.
6321         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
6322
6323 2007-10-04  Bruno Haible  <bruno@clisp.org>
6324
6325         * modules/floorl-tests: New file.
6326         * tests/test-floorl.c: New file.
6327
6328         * modules/floorl: New file.
6329         * lib/floorl.c: Replace entire file.
6330         * m4/floorl.m4: New file.
6331         * lib/math.in.h (floorl): Replace declaration.
6332         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
6333         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
6334         * doc/functions/floorl.texi: Mention the 'floorl' module.
6335         * modules/mathl (Files): Remove lib/floorl.c.
6336         (Depends-on): Add floorl.
6337
6338 2007-10-04  Bruno Haible  <bruno@clisp.org>
6339
6340         * modules/floorf-tests: New file.
6341         * tests/test-floorf.c: New file.
6342
6343         * modules/floorf: New file.
6344         * lib/floor.c: New file.
6345         * lib/floorf.c: New file.
6346         * m4/floorf.m4: New file.
6347         * lib/math.in.h (floorf): New declaration.
6348         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
6349         HAVE_DECL_FLOORF.
6350         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
6351         HAVE_DECL_FLOORF.
6352         * doc/functions/floorf.texi: Mention the 'floorf' module.
6353
6354 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
6355             Bruno Haible  <bruno@clisp.org>
6356
6357         Advertise for the Git server instead of the CVS server.
6358         * doc/gnulib-intro.texi (Steady Development): Mention the Git
6359         repository instead of the CVS one.
6360         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
6361         about all VCS systems generically.
6362         * doc/gnulib.texi (Introduction): Capitalize `Git'.
6363
6364 2007-10-04  Bruno Haible  <bruno@clisp.org>
6365
6366         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
6367         means.
6368         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
6369
6370 2007-10-04  Bruno Haible  <bruno@clisp.org>
6371
6372         * modules/truncl-tests: New file.
6373         * tests/test-truncl.c: New file.
6374
6375         * modules/truncl: New file.
6376         * lib/truncl.c: New file.
6377         * m4/truncl.m4: New file.
6378         * lib/math.in.h (truncl): New declaration.
6379         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
6380         HAVE_DECL_TRUNCL.
6381         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
6382         HAVE_DECL_TRUNCL.
6383         * doc/functions/truncl.texi: Mention the 'truncl' module.
6384
6385 2007-10-04  Bruno Haible  <bruno@clisp.org>
6386
6387         * modules/truncf-tests: New file.
6388         * tests/test-truncf.c: New file.
6389
6390         * modules/truncf: New file.
6391         * lib/trunc.c: Make paramerizable through USE_* macros.
6392         * lib/truncf.c: New file.
6393         * m4/truncf.m4: New file.
6394         * lib/math.in.h (truncf): New declaration.
6395         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
6396         HAVE_DECL_TRUNCF.
6397         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
6398         HAVE_DECL_TRUNCF.
6399         * doc/functions/truncf.texi: Mention the 'truncf' module.
6400
6401 2007-10-03  Bruno Haible  <bruno@clisp.org>
6402
6403         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
6404         augmentation also for tests modules.
6405         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
6406         * modules/atexit-tests (Makefile.am): Likewise.
6407         * modules/binary-io-tests (Makefile.am): Likewise.
6408         * modules/c-strcase-tests (Makefile.am): Likewise.
6409         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
6410         * modules/canonicalize-tests (Makefile.am): Likewise.
6411         * modules/closein-tests (Makefile.am): Likewise.
6412         * modules/fprintf-posix-tests (Makefile.am): Likewise.
6413         * modules/freadahead-tests (Makefile.am): Likewise.
6414         * modules/fseek-tests (Makefile.am): Likewise.
6415         * modules/fseeko-tests (Makefile.am): Likewise.
6416         * modules/ftell-tests (Makefile.am): Likewise.
6417         * modules/ftello-tests (Makefile.am): Likewise.
6418         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
6419         * modules/isnanl-tests (Makefile.am): Likewise.
6420         * modules/lseek-tests (Makefile.am): Likewise.
6421         * modules/mbscasecmp-tests (Makefile.am): Likewise.
6422         * modules/mbscasestr-tests (Makefile.am): Likewise.
6423         * modules/mbschr-tests (Makefile.am): Likewise.
6424         * modules/mbscspn-tests (Makefile.am): Likewise.
6425         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
6426         * modules/mbspbrk-tests (Makefile.am): Likewise.
6427         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
6428         * modules/mbsrchr-tests (Makefile.am): Likewise.
6429         * modules/mbsspn-tests (Makefile.am): Likewise.
6430         * modules/mbsstr-tests (Makefile.am): Likewise.
6431         * modules/printf-posix-tests (Makefile.am): Likewise.
6432         * modules/snprintf-posix-tests (Makefile.am): Likewise.
6433         * modules/sprintf-posix-tests (Makefile.am): Likewise.
6434         * modules/tsearch-tests (Makefile.am): Likewise.
6435         * modules/uniname/uniname-tests (Makefile.am): Likewise.
6436         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
6437         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
6438         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
6439         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
6440         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
6441         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
6442         * modules/vprintf-posix-tests (Makefile.am): Likewise.
6443         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
6444         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
6445         * modules/xstrtoimax-tests (Makefile.am): Likewise.
6446         * modules/xstrtol-tests (Makefile.am): Likewise.
6447         * modules/xstrtoumax-tests (Makefile.am): Likewise.
6448         * modules/yesno-tests (Makefile.am): Likewise.
6449
6450 2007-10-03  Bruno Haible  <bruno@clisp.org>
6451
6452         * modules/trunc-tests: New file.
6453         * tests/test-trunc.c: New file.
6454
6455         * modules/trunc: New file.
6456         * lib/trunc.c: New file.
6457         * m4/trunc.m4: New file.
6458         * lib/math.in.h (trunc): New declaration.
6459         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
6460         HAVE_DECL_TRUNC.
6461         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
6462         HAVE_DECL_TRUNC.
6463         * doc/functions/trunc.texi: Mention the 'trunc' module.
6464
6465 2007-10-03  Bruno Haible  <bruno@clisp.org>
6466
6467         * tests/test-fpending.c: New file, mostly copied
6468         from coreutils/lib/t-fpending.c.
6469         * modules/fpending-tests: New file.
6470
6471 2007-10-03  Bruno Haible  <bruno@clisp.org>
6472
6473         Port the stdio extensions to QNX (untested).
6474         * lib/fseterr.c (fseterr): Add support for QNX.
6475         * lib/fbufmode.c (fbufmode): Likewise.
6476         * lib/freadable.c (freadable): Likewise.
6477         * lib/fwritable.c (fwritable): Likewise.
6478         * lib/freading.c (freading): Likewise.
6479         * lib/fwriting.c (fwriting): Likewise.
6480         * lib/freadahead.c (freadahed): Likewise.
6481         * lib/fpurge.c (fpurge): Likewise.
6482         * lib/fseeko.c (rpl_fseeko): Likewise.
6483
6484 2007-10-03  Bruno Haible  <bruno@clisp.org>
6485             Jim Meyering  <jim@meyering.net>
6486             Eric Blake  <ebb9@byu.net>
6487
6488         * doc/relocatable.texi: Use @command instead of @program.
6489
6490 2007-10-02  Jim Meyering  <jim@meyering.net>
6491
6492         Perform one more "_.h" -> ".in.h" substitution.
6493         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
6494         instead of unistd_.h here, too.
6495
6496 2007-10-01  Bruno Haible  <bruno@clisp.org>
6497
6498         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
6499         Needed for the alloca-opt module.
6500
6501 2007-09-30  Bruno Haible  <bruno@clisp.org>
6502
6503         * lib/alloca.in.h: Renamed from lib/alloca_.h.
6504         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
6505         alloca_.h.
6506         * lib/argz.in.h: Renamed from lib/argz_.h.
6507         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
6508         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
6509         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
6510         byteswap_.h.
6511         * lib/dirent.in.h: Renamed from lib/dirent_.h.
6512         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
6513         dirent_.h.
6514         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
6515         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
6516         fcntl_.h.
6517         * lib/float.in.h: Renamed from lib/float_.h.
6518         * modules/float (Files, Makefile.am): Use float.in.h instead of
6519         float_.h.
6520         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
6521         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
6522         fnmatch_.h.
6523         * lib/getopt.in.h: Renamed from lib/getopt_.h.
6524         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
6525         getopt_.h.
6526         * lib/glob.in.h: Renamed from lib/glob_.h.
6527         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
6528         * lib/iconv.in.h: Renamed from lib/iconv_.h.
6529         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
6530         iconv_.h.
6531         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
6532         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
6533         inttypes_.h.
6534         * lib/locale.in.h: Renamed from lib/locale_.h.
6535         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
6536         locale_.h.
6537         * lib/math.in.h: Renamed from lib/math_.h.
6538         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
6539         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
6540         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
6541         of netinet_in_.h. Add dependency.
6542         * lib/poll.in.h: Renamed from lib/poll_.h.
6543         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
6544         * lib/search.in.h: Renamed from lib/search_.h.
6545         * modules/search (Files, Makefile.am): Use search.in.h instead of
6546         search_.h.
6547         * lib/signal.in.h: Renamed from lib/signal_.h.
6548         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
6549         _signal.h.
6550         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
6551         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
6552         stdbool_.h.
6553         * lib/stdint.in.h: Renamed from lib/stdint_.h.
6554         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
6555         stdint_.h.
6556         * lib/stdio.in.h: Renamed from lib/stdio_.h.
6557         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
6558         stdio_.h.
6559         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
6560         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
6561         stdlib_.h.
6562         * lib/string.in.h: Renamed from lib/string_.h.
6563         * modules/string (Files, Makefile.am): Use string.in.h instead of
6564         string_.h.
6565         * doc/gnulib-tool.texi (Initial import): Update.
6566         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
6567         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
6568         of sys_select_.h. Add dependency.
6569         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
6570         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
6571         of sys_socket_.h.
6572         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
6573         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
6574         sys_stat_.h.
6575         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
6576         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
6577         sys_time_.h.
6578         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
6579         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
6580         sysexits_.h.
6581         * lib/time.in.h: Renamed from lib/time_.h.
6582         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
6583         * lib/unistd.in.h: Renamed from lib/unistd_.h.
6584         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
6585         unistd_.h.
6586         * lib/wchar.in.h: Renamed from lib/wchar_.h.
6587         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
6588         wchar_.h.
6589         * lib/wctype.in.h: Renamed from lib/wctype_.h.
6590         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
6591         wctype_.h.
6592         * build-aux/bootstrap (slurp): Update.
6593         * lib/.cppi-disable: Update.
6594
6595 2007-09-30  Bruno Haible  <bruno@clisp.org>
6596
6597         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
6598         Needed on BeOS.
6599
6600 2007-09-30  Bruno Haible  <bruno@clisp.org>
6601
6602         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
6603
6604 2007-09-29  Bruno Haible  <bruno@clisp.org>
6605
6606         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
6607
6608 2007-09-29  Bruno Haible  <bruno@clisp.org>
6609
6610         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
6611         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
6612         * build-aux/install-reloc: Compile also areadlink.c.
6613         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
6614
6615 2007-09-29  Bruno Haible  <bruno@clisp.org>
6616
6617         * gnulib-tool (func_emit_initmacro_done): Indentation.
6618
6619 2007-09-29  Bruno Haible  <bruno@clisp.org>
6620
6621         * README: Add CVS checkout update instructions.
6622         Info from Bob Proulx <bob@proulx.com>.
6623
6624 2007-09-28  Eric Blake  <ebb9@byu.net>
6625
6626         Provide move-if-change.
6627         * build-aux/move-if-change: New file, based on best practice
6628         rather than any canonical upstream location.
6629
6630 2007-09-28  Jim Meyering  <jim@meyering.net>
6631
6632         Fix canonicalize loop-detection corner case.
6633         Do not attempt to stat the symlink values stored via seen_triple.
6634         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
6635         on linux-2.6.18, (but not 2.6.22).
6636         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
6637         triple_compare.  The former compares dev,ino,filename, while the latter
6638         would actually stat dirname(filename) when dev and ino were equal.
6639         * lib/hash-triple.c: Install <string.h>.
6640         (STREQ): Define.
6641         (triple_compare_ino_str): New function.
6642         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
6643
6644 2007-09-28  Eric Blake  <ebb9@byu.net>
6645
6646         Enforce that AC_REPLACE_FUNCS files exist.
6647         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
6648         override check for typos.
6649
6650         Fix test-closein on Solaris 10.
6651         * tests/test-closein.c (main): Don't assume stdin can be inherited
6652         closed on all systems.
6653         * tests/test-closein.sh: Likewise.
6654         Reported by Piotr Tarnowski.
6655
6656 2007-09-28  Jim Meyering  <jim@meyering.net>
6657
6658         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
6659
6660 2007-09-27  Jim Meyering  <jim@meyering.net>
6661
6662         canonicalize: Avoid a false-positive cycle failure.
6663         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
6664         Sort.  Remove cycle-check.
6665         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
6666         not cycle-check.h.
6667         (seen_triple): New function.
6668         (canonicalize_filename_mode): Use it instead of cycle-check.
6669         * tests/test-canonicalize.c: Add a test for this bug.
6670         * tests/test-canonicalize.sh: Set up and run the test.
6671
6672         New module, file-set, from coreutils.
6673         * modules/file-set: Define it.
6674         * lib/file-set.c, lib/file-set.h: Implement.
6675
6676         New module, hash-triple, from coreutils.
6677         * modules/hash-triple: Define it.
6678         * lib/hash-triple.c, lib/hash-triple.h: Implement.
6679
6680 2007-09-25  Eric Blake  <ebb9@byu.net>
6681
6682         Fix strerror on Interix.
6683         * lib/string_.h (strerror): Declare replacement.
6684         * doc/functions/strerror.texi (strerror): Document the Interix
6685         shortcoming.
6686         * modules/string (Makefile.am): Support new hooks.
6687         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
6688         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
6689         gl_FUNC_STRERROR_SEPARATE.
6690         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
6691         * lib/strerror.c (rpl_strerror): Provide replacement.
6692         * modules/strerror (Depends-on): Add string.
6693         (configure.ac): Detect use of module.
6694         * tests/test-strerror.c: New file.
6695         * modules/strerror-tests: New test module.
6696         * modules/argp (Depends-on): Add strerror.
6697         * modules/error (Depends-on): Likewise.
6698         Reported by Martin Koeppe.
6699
6700 2007-09-24  Bruno Haible  <bruno@clisp.org>
6701
6702         * README: Update git instructions.
6703
6704 2007-09-24  Eric Blake  <ebb9@byu.net>
6705
6706         Revert fpending breakage from 2007-09-08.
6707         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
6708         __fpending.c.
6709
6710 2007-09-24  Jim Meyering  <jim@meyering.net>
6711
6712         filenamecat.c: Add a test.
6713         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
6714         showing how the function works when DIR is the empty string.
6715
6716 2007-09-21  Simon Josefsson  <simon@josefsson.org>
6717
6718         * tests/test-canonicalize.sh: Turn on executable bit.
6719
6720 2007-09-19  Eric Blake  <ebb9@byu.net>
6721
6722         * README: Update CVS instructions.
6723
6724 2007-09-18  Bruno Haible  <bruno@clisp.org>
6725
6726         * modules/areadlink: New file.
6727         * lib/areadlink.h (areadlink): New declaration.
6728         * lib/areadlink.c: New file, based on lib/xreadlink.c.
6729
6730 2007-09-17  Jim Meyering  <jim@meyering.net>
6731
6732         * lib/savewd.c (ESTALE) [!defined]: Define.
6733         Reported to be required on Interix by Martin Koeppe.
6734
6735 2007-09-17  Bruno Haible  <bruno@clisp.org>
6736
6737         * gnulib-tool (func_version): Use $version.
6738
6739 2007-09-16  Bruno Haible  <bruno@clisp.org>
6740
6741         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
6742         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
6743         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
6744         Reported by Greg Schafer <gschafer@zip.com.au>.
6745
6746 2007-09-15  Bruno Haible  <bruno@clisp.org>
6747
6748         * gnulib-tool (sed): Try a little harder to make bash understand the
6749         alias.
6750         Reported by Bruce Korb <bruce.korb@gmail.com>.
6751
6752 2007-09-13  Eric Blake  <ebb9@byu.net>
6753
6754         * ChangeLog: Remove conflict markers.
6755
6756 2007-09-13  Simon Josefsson  <simon@josefsson.org>
6757
6758         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
6759         Reported by Bruno Haible <bruno@clisp.org>.
6760
6761 2007-09-12  Bruno Haible  <bruno@clisp.org>
6762
6763         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
6764         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
6765         is not defined.
6766
6767 2007-09-12  Eric Blake  <ebb9@byu.net>
6768
6769         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
6770         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
6771         Autoconf definition.
6772         * modules/euidaccess (Depends-on): Add extensions, for
6773         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
6774         * modules/fnmatch (Depends-on): Likewise.
6775         * modules/getaddrinfo (Depends-on): Likewise.
6776         * modules/getdelim (Depends-on): Likewise.
6777         * modules/getline (Depends-on): Likewise.
6778         * modules/getsubopt (Depends-on): Likewise.
6779         * modules/gettext (Depends-on): Likewise.
6780         * modules/group-member (Depends-on): Likewise.
6781         * modules/mbchar (Depends-on): Likewise.
6782         * modules/memmem (Depends-on): Likewise.
6783         * modules/mempcpy (Depends-on): Likewise.
6784         * modules/memrchr (Depends-on): Likewise.
6785         * modules/pagealign_alloc (Depends-on): Likewise.
6786         * modules/readutmp (Depends-on): Likewise.
6787         * modules/stpcpy (Depends-on): Likewise.
6788         * modules/stpncpy (Depends-on): Likewise.
6789         * modules/strchrnul (Depends-on): Likewise.
6790         * modules/strndup (Depends-on): Likewise.
6791         * modules/strsep (Depends-on): Likewise.
6792         * modules/strverscmp (Depends-on): Likewise.
6793         * modules/vasprintf (Depends-on): Likewise.
6794         * modules/wcwidth (Depends-on): Likewise.
6795         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
6796         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
6797         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
6798         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
6799         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
6800         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
6801         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
6802         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
6803         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
6804         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
6805         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
6806         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
6807         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
6808         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
6809         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
6810         * m4/readutmp.m4 (gl_READUTMP): Likewise.
6811         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
6812         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
6813         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
6814         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
6815         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
6816         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
6817         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
6818         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
6819         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
6820         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
6821         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
6822         so that lock.m4 can be used in gettext without extensions module.
6823
6824 2007-09-11  Bruno Haible  <bruno@clisp.org>
6825
6826         * m4/isc-posix.m4: Remove file.
6827         Suggested by Eric Blake.
6828
6829 2007-09-11  Eric Blake  <ebb9@byu.net>
6830
6831         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
6832
6833 2007-09-10  Bruno Haible  <bruno@clisp.org>
6834
6835         * posix-modules: Fix typo in error message.
6836         Reported by Matt <mkraai@beckman.com>.
6837
6838 2007-09-09  Bruno Haible  <bruno@clisp.org>
6839
6840         * doc/functions/getdelim.texi: Update list of platforms lacking the
6841         function.
6842         * doc/functions/getline.texi: Likewise.
6843
6844 2007-09-09  Jim Meyering  <jim@meyering.net>
6845
6846         * lib/hash.c (hash_initialize): Detect calloc failure.
6847         Reported by Bruno Haible.
6848
6849 2007-09-09  Bruno Haible  <bruno@clisp.org>
6850
6851         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
6852         malloc or realloc fails.
6853
6854 2007-09-09  Bruno Haible  <bruno@clisp.org>
6855
6856         * modules/getcwd (Depends-on): Add malloc-posix.
6857         * modules/glob (Depends-on): Likewise.
6858         * modules/putenv (Depends-on): Likewise.
6859         * modules/strdup (Depends-on): Likewise.
6860         * modules/getdelim (Depends-on): Add realloc-posix.
6861         * modules/read-file (Depends-on): Likewise.
6862
6863 2007-09-09  Bruno Haible  <bruno@clisp.org>
6864
6865         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
6866         (gl_FUNC_MALLOC_POSIX): Require it.
6867         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
6868         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
6869         * modules/realloc (Files): Add m4/malloc.m4.
6870         * modules/calloc (Files): Likewise.
6871
6872 2007-09-09  Bruno Haible  <bruno@clisp.org>
6873
6874         * modules/malloc-posix: New file.
6875         * modules/malloc (Depends-on): Add malloc-posix.
6876         * lib/malloc.c: Include errno.h.
6877         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
6878         and a POSIX-compatible malloc into a single function. Set ENOMEM
6879         when returning NULL.
6880         * m4/malloc.m4: New file.
6881         * doc/functions/malloc.texi: Mention the malloc-posix module.
6882         * lib/stdlib_.h (malloc): New declaration.
6883         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
6884         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
6885         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
6886         and HAVE_MALLOC_POSIX.
6887
6888 2007-09-09  Bruno Haible  <bruno@clisp.org>
6889
6890         * modules/realloc-posix: New file.
6891         * modules/realloc (Depends-on): Add realloc-posix.
6892         * lib/realloc.c: Include errno.h.
6893         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
6894         and a POSIX-compatible realloc into a single function. Set ENOMEM
6895         when returning NULL.
6896         * m4/realloc.m4: New file.
6897         * doc/functions/realloc.texi: Mention the realloc-posix module.
6898         * lib/stdlib_.h (realloc): New declaration.
6899         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
6900         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
6901         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
6902         and HAVE_REALLOC_POSIX.
6903
6904 2007-09-09  Bruno Haible  <bruno@clisp.org>
6905
6906         * modules/calloc-posix: New file.
6907         * modules/calloc (Depends-on): Add calloc-posix.
6908         * lib/calloc.c: Include errno.h.
6909         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
6910         and a POSIX-compatible calloc into a single function. Set ENOMEM
6911         when returning NULL.
6912         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
6913         * doc/functions/calloc.texi: Mention the calloc-posix module.
6914         * lib/stdlib_.h (calloc): New declaration.
6915         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
6916         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
6917         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
6918         and HAVE_CALLOC_POSIX.
6919
6920 2007-09-09  Bruno Haible  <bruno@clisp.org>
6921
6922         Allow for modules to show an arbitrary notice.
6923         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
6924         * gnulib-tool: New option --extract-notice.
6925         (func_usage): Document it.
6926         (sed_extract_prog): Update.
6927         (func_get_notice): New function.
6928         (func_modules_notice): New function.
6929         (func_import, func_create_testdir): Invoke it.
6930         Suggested by Jim Meyering.
6931
6932 2007-09-09  Bruno Haible  <bruno@clisp.org>
6933
6934         * gnulib-tool: New options --verbose, --quiet.
6935         (func_usage): Document them.
6936         (verbose): New variable.
6937         (func_execute_command): New function.
6938         (func_import): Don't show the module list and the file list if
6939         $verbose < 0.
6940         (func_create_testdir): Likewise. Use func_execute_command.
6941         (func_create_megatestdir): Use func_execute_command.
6942
6943 2007-09-08  Bruno Haible  <bruno@clisp.org>
6944
6945         * gnulib-tool (func_import): Prefer rsync over wget when available,
6946         for fetching the PO files.
6947
6948 2007-09-08  Bruno Haible  <bruno@clisp.org>
6949
6950         * posix-modules: New file. Portions copied from gnulib-tool.
6951         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
6952
6953 2007-09-08  Jim Meyering  <jim@meyering.net>
6954
6955         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
6956         * lib/fpending.h: Rename from __fpending.h.
6957         * lib/fpending.c: Rename from __fpending.c.
6958         Include "fpending.h", not "__fpending.h".
6959         * lib/__fpending.h, lib/__fpending.c: Remove files.
6960         * modules/fpending (Files): Reflect new file names.
6961         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
6962
6963 2007-09-08  Bruno Haible  <bruno@clisp.org>
6964
6965         * m4/inttypes-h.m4: Remove stub file.
6966
6967 2007-09-07  Simon Josefsson  <simon@josefsson.org>
6968
6969         * doc/headers/stdint.texi: Discuss #include_next issue.
6970
6971 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
6972
6973         * build-aux/bootstrap: Remove obsolete comment about wget --help.
6974
6975 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
6976
6977         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
6978         in variable name.
6979
6980 2007-09-03  Jim Meyering  <jim@meyering.net>
6981
6982         New module: git-version-gen.
6983         * modules/git-version-gen: New file.
6984
6985         Import changes from coreutils for bootstrap script.
6986
6987         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
6988
6989         bootstrap: uses rsync to download the .po files
6990         * build-aux/bootstrap (po_download_command_format): New global.
6991         (download_po_files): Use rsync.
6992         (update_po_files): Don't remove .po files after download,
6993         so future rsync runs can take advantage of the copies.
6994
6995         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
6996
6997         Solve the unnecessary-.po-file-regeneration problem once and for all.
6998         * build-aux/bootstrap (download_po_files): New function, renamed from
6999         get_translations.  Now, downloads, but doesn't update LINGUAS.
7000         (update_po_files): New function.
7001
7002         bootstrap: Ignore more.
7003         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
7004         uniwidth to e.g., lib/.gitignore.
7005         (slurp): Handle the sys_stat_.h -> sys mapping, too.
7006
7007         * build-aux/bootstrap: New setting: vc_ignore.
7008         (insert_sorted_if_absent): Create $file if absent.
7009         Adapt to new, possibly empty, list: $vc_ignore.
7010
7011         bootstrap: generate more ignorable names
7012         * build-aux/bootstrap (slurp): When generating ignorable names,
7013         also map .sin to .sed, .gperf to .c, and .y to .c.
7014
7015 2007-09-03  Jim Meyering  <jim@meyering.net>
7016
7017         * build-aux/git-version-gen: New file, from coreutils.  For details, see
7018         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
7019
7020 2007-09-02  Bruno Haible  <bruno@clisp.org>
7021
7022         Fix mis-recognition of 'mcs' on QNX 6.
7023         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
7024         output contains the string "Mono".
7025         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
7026         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
7027
7028 2007-09-01  Bruno Haible  <bruno@clisp.org>
7029
7030         Fix collision between uniwidth/* and linebreak modules.
7031         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
7032         u32_width): Remove declarations.
7033         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
7034         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
7035         streq3, streq2, streq1, streq0): Remove functions.
7036         (STREQ): Remove macro.
7037         (is_cjk_encoding): Remove function.
7038         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
7039         (uc_width, u8_width, u16_width, u32_width): Remove functions.
7040         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
7041         * NEWS: Document the change.
7042
7043 2007-09-01  Bruno Haible  <bruno@clisp.org>
7044
7045         * lib/streq.h: Add double-inclusion guard.
7046
7047 2007-09-01  Karl Berry  <karl@gnu.org>
7048
7049         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
7050
7051 2007-08-28  Jim Meyering  <jim@meyering.net>
7052
7053         Rename mreadlink_with_size to areadlink_with_size.
7054         * NEWS: Document the change.
7055         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
7056         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
7057         * lib/mreadlink.h: Rename this to...
7058         * lib/areadlink.h: ...this.
7059         * modules/mreadlink-with-size: Rename this to...
7060         * modules/areadlink-with-size: ...this.
7061         * lib/canonicalize.c: Reflect the renaming.
7062         * modules/canonicalize: Likewise.
7063
7064 2007-08-26  Bruno Haible  <bruno@clisp.org>
7065
7066         * gnulib-tool (func_import): When deciding which files to remove,
7067         consider also dangling symbolic links.
7068         Reported by Eric Blake.
7069
7070 2007-08-26  Bruno Haible  <bruno@clisp.org>
7071
7072         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
7073
7074 2007-08-23  Simon Josefsson  <simon@josefsson.org>
7075
7076         * lib/readline.c: Don't include getline.h, the prototype is now
7077         found in stdio.h.
7078
7079 2007-08-23  Jim Meyering  <jim@meyering.net>
7080
7081         Getdelim touchup.
7082         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
7083         around the funlockfile call, since funlockfile never sets errno.
7084         Don't set errno upon failed realloc.
7085
7086 2007-08-22  Eric Blake  <ebb9@byu.net>
7087
7088         Getline touchups.
7089         * lib/getdelim.c (getdelim): Revert regression that required *n to
7090         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
7091         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
7092         getdelim, rather than whether implementation is missing.
7093         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
7094         * lib/stdio_.h (getline): Also declare if replacement is
7095         required.
7096         * doc/functions/getdelim.texi: New file.
7097         * doc/functions/getline.texi: Likewise.
7098         * doc/gnulib.texi (Function Substitutes): Add new files.
7099         Reported by Bruno Haible.
7100
7101 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
7102
7103         * users.txt: Add Guile.
7104
7105 2007-08-22  Eric Blake  <ebb9@byu.net>
7106
7107         * tests/test-getdelim.c (main): Use remove, not unlink.
7108         * tests/test-getline.c (main): Likewise.
7109
7110         Move getline and getdelim into stdio.h, per POSIX 200x.
7111         * modules/getline (Files): Remove getline.h.
7112         (Depends-on): Add stdio.
7113         (configure.ac): Add module indicator.
7114         * modules/getdelim (Files): Remove getdelim.h.
7115         (Depends-on): Add stdio.
7116         (configure.ac): Add module indicator.
7117         * modules/stdio (Makefile.am): Work with new indicators.
7118         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
7119         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
7120         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
7121         * lib/getdelim.h: Delete.
7122         * lib/getline.h: Delete.
7123         * lib/stdio_.h (getdelim, getline): Declare.
7124         * modules/getdelim-tests: New module.
7125         * modules/getline-tests: Likewise.
7126         * tests/test-getdelim.c: New file.
7127         * tests/test-getline.c: Likewise.
7128         * NEWS: Document the change.
7129         * lib/getline.c: Update choice of header.
7130         * lib/csharpcomp.c: Likewise.
7131         * lib/getpass.c: Likewise.
7132         * lib/javacomp.c: Likewise.
7133         * lib/javaversion.c: Likewise.
7134         * lib/yesno.c: Likewise.
7135         * lib/getdelim.c: Likewise.
7136         (getdelim): Set errno on failure, and avoid memory leak.
7137
7138 2007-08-19  Bruno Haible  <bruno@clisp.org>
7139
7140         * modules/closein (Depends-on): Add freadahead.
7141         * lib/closein.c: Include freadahead.h.
7142         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
7143         is zero.
7144
7145 2007-08-19  Bruno Haible  <bruno@clisp.org>
7146
7147         * modules/freadahead-tests: New file.
7148         * tests/test-freadahead.sh: New file.
7149         * tests/test-freadahead.c: New file.
7150
7151         * modules/freadahead: New file.
7152         * lib/freadahead.h: New file.
7153         * lib/freadahead.c: New file.
7154         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
7155         fbufmode, fpurge, freadable, fwritable.
7156
7157 2007-08-19  Eric Blake  <ebb9@byu.net>
7158
7159         Test yesno in combination with closein.
7160         * lib/yesno.c (yesno): Document use of stdin.
7161         * modules/yesno-tests (Files): New module.
7162         * tests/test-yesno.c (main): New file.
7163         * tests/test-yesno.sh: Likewise.
7164
7165 2007-08-19  Bruno Haible  <bruno@clisp.org>
7166
7167         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
7168         * lib/fseeko.c (rpl_fseeko): Likewise.
7169         * lib/fseterr.c (fseterr): Likewise.
7170
7171 2007-08-19  Bruno Haible  <bruno@clisp.org>
7172
7173         * tests/test-lseek.c (main): Disable a test for BeOS.
7174         * doc/functions/lseek.texi: Document the BeOS bug.
7175
7176 2007-08-19  Bruno Haible  <bruno@clisp.org>
7177             Eric Blake  <ebb9@byu.net>
7178
7179         * lib/lseek.c: Include <sys/stat.h>.
7180         (rpl_lseek): Add workaround code also for Unix platforms.
7181         Needed for BeOS.
7182         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
7183         * doc/functions/lseek.texi: Document BeOS definiency.
7184
7185 2007-08-18  Bruno Haible  <bruno@clisp.org>
7186
7187         * modules/fstrcmp-tests: New file.
7188         * tests/test-fstrcmp.c: New file.
7189
7190 2007-08-18  Bruno Haible  <bruno@clisp.org>
7191
7192         * modules/fstrcmp: New file, from GNU gettext with modifications.
7193         * lib/fstrcmp.h: New file, from GNU gettext.
7194         * lib/fstrcmp.c: New file, from GNU gettext.
7195         * MODULES.html.sh (String handling): Add fstrcmp.
7196
7197 2007-08-18  Bruno Haible  <bruno@clisp.org>
7198
7199         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
7200         'bool'.
7201         (diag, compareseq): Remove const from the ctxt argument.
7202         (USE_HEURISTIC): Undefine at the end.
7203
7204 2007-08-18  Jim Meyering  <jim@meyering.net>
7205
7206         New file: lib/idcache.h
7207         * NEWS: Mention the addition.
7208         * modules/idcache (Files): Add lib/idcache.h
7209         * lib/idcache.c: Include "idcache.h".
7210         Don't include <sys/types.h>.
7211         Add a FIXME comment.
7212         Move file-scoped "static" declarations to the top.
7213         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
7214
7215 2007-08-17  Bruno Haible  <bruno@clisp.org>
7216         and Paul Eggert  <eggert@cs.ucla.edu>
7217
7218         * MODULES.html.sh: Add diffseq.
7219         * modules/diffseq: New file.
7220         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
7221         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
7222
7223 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
7224
7225         Import changes from coreutils for bootstrap script.
7226
7227         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
7228
7229         * build-aux/bootstrap (slurp): Work even in environments where
7230         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
7231         current code does not slurp files whose names start with ".", and
7232         this looks like it might be a troublesome area.
7233
7234         2007-07-11  Jim Meyering  <jim@meyering.net>
7235
7236         If there's a GPL vN copyright comment, require that N == 3.
7237
7238         2007-07-08  Jim Meyering  <jim@meyering.net>
7239
7240         Run the coreutils-specific code only if tests/Makefile.am.in exists.
7241         * build-aux/bootstrap (mam_template): Move definition out of loop.
7242
7243         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
7244
7245         * build-aux/bootstrap (symlink_to_dir): Rename function from
7246         symlink_to_gnulib.  Add a directory parameter.  Update all
7247         callers.
7248         (cp_mark_as_generated): Also check for -- and link to -- files in
7249         gl/.
7250
7251         2007-07-08  Jim Meyering  <jim@meyering.net>
7252
7253         Adapt to deeper hierarchy in gnulib.
7254         * build-aux/bootstrap (symlink_to_dir): If the destination
7255         directory doesn't exist, create it. This is required at least for
7256         "lib/uniwidth/cjk.h".
7257
7258         2007-05-15  Jim Meyering  <jim@meyering.net>
7259
7260         * build-aux/bootstrap: Now that generated Makefile.am files
7261         are no longer under version control, they must be created at
7262         bootstrap time.
7263
7264 2007-08-14  Ben Pfaff  <blp@gnu.org>
7265
7266         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
7267
7268 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
7269
7270         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
7271         given the changes below.
7272         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
7273         even on hosts that have padding bits beyond the supported 64.
7274
7275 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
7276
7277         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
7278         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
7279         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
7280         depends on it.
7281         (xstrtol_error): Remove.
7282         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
7283         but with a different signature.
7284         (ATTRIBUTE_NORETURN, __attribute__): New macros.
7285         * lib/xstrtol-error.c: Include exitfail.h.
7286         (xstrtol_fatal): New function, with a different signature from the
7287         old xstrtol_error, so that the caller need not worry about passing
7288         in an exit status, or about storage management of the option argument.
7289         (xstrtol_error): Now a static function.  Redo signature to
7290         implement xstrtol_fatal.  Output the correct number of hyphens in
7291         front of the option so that the caller need not worry about
7292         storage management.
7293         (N_): New macro.
7294         (_): Remove; not used now.
7295         * modules/xstrtol: Depend on getopt.
7296         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
7297         of old STRTOL_FATAL_ERROR macro.
7298         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
7299         of test program.
7300         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
7301         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
7302
7303 2007-08-08  Eric Blake  <ebb9@byu.net>
7304
7305         * lib/xstrtol-error.c: Add missing include.
7306
7307         Move xstrtol messages into gnulib domain, when --pobase is used.
7308         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
7309         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
7310         * modules/xstrtol (Files): Distribute new file.
7311         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
7312         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
7313         * tests/test-xstrtol.c: ...into new file.
7314         * tests/test-xstrtoul.c: Also test xstrtoul.
7315         * tests/test-xstrtoimax.c: Also test xstrtoimax.
7316         * tests/test-xstrtoumax.c: Also test xstrtoumax.
7317         * tests/test-xstrtol.sh: Drive the tests.
7318         * tests/test-xstrtoimax.sh: Likewise.
7319         * tests/test-xstrtoumax.sh: Likewise.
7320         * modules/xstrtol-tests: New module.
7321         * modules/xstrtoimax-tests: Likewise.
7322         * modules/xstrtoumax-tests: Likewise.
7323
7324 2007-08-08  Jim Meyering  <jim@meyering.net>
7325
7326         New function: mfile_name_concat.
7327         * lib/filenamecat.c (mfile_name_concat): New function, just like
7328         file_name_concat, but return NULL upon failure rather than exiting
7329         with a diagnostic.
7330         * lib/filenamecat.h: Declare it.
7331
7332 2007-08-07  Bruno Haible  <bruno@clisp.org>
7333
7334         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
7335         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
7336         warning from gcc.
7337         Reported by Eric Blake.
7338
7339 2007-08-07  Simon Josefsson  <simon@josefsson.org>
7340
7341         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
7342         * modules/crypto/arcfour (License): Likewise.
7343         * modules/crypto/des-tests (License): Likewise.
7344         * modules/crypto/gc-arctwo-tests (License): Likewise.
7345         * modules/crypto/gc-des-tests (License): Likewise.
7346         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
7347         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
7348         * modules/crypto/gc-md2-tests (License): Likewise.
7349         * modules/crypto/gc-md4-tests (License): Likewise.
7350         * modules/crypto/gc-md5-tests (License): Likewise.
7351         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
7352         * modules/crypto/gc-rijndael-tests (License): Likewise.
7353         * modules/crypto/gc-sha1-tests (License): Likewise.
7354         * modules/crypto/gc-tests (License): Likewise.
7355         * modules/crypto/hmac-md5 (License): Likewise.
7356         * modules/crypto/hmac-sha1 (License): Likewise.
7357         * modules/crypto/md2-tests (License): Likewise.
7358         * modules/crypto/md4-tests (License): Likewise.
7359         * modules/crypto/md5 (License): Likewise.
7360         * modules/crypto/rijndael (License): Likewise.
7361         * modules/crypto/sha1 (License): Likewise.
7362         * modules/memxor (License): Likewise.
7363
7364 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
7365         and Bruno Haible  <bruno@clisp.org>
7366
7367         * NEWS: Describe interface changes to human, xstrtol.
7368         * lib/human.h: Include <xstrtol.h>.
7369         (human_options): Return enum strtol_error, not int.  Remove
7370         bool arg; take int * instead.
7371         * lib/human.c: Don't include "gettext.h".
7372         (_): Remove; no longer used.
7373         Don't include <xstrtol.h>, since human.h does it.
7374         (human_options): Adjust to abovementioned interface changes.
7375         Do not report error to stderr; that's now the caller's
7376         responsibility.
7377         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
7378         interface change.
7379         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
7380         Str, Argument_type_string.  All uses changed.  Put " argument"
7381         in diagnostics to make them clearer.  Change wording of suffix
7382         message for clarity.
7383         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
7384         Argument_type_string.
7385         (STRTOL_FATAL_WARN): Remove; no longer used.
7386         * modules/human (Depends-on): Remove gettext-h.
7387
7388 2007-08-06  Simon Josefsson  <simon@josefsson.org>
7389
7390         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
7391
7392 2007-07-31  Bruno Haible  <bruno@clisp.org>
7393
7394         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
7395         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
7396         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
7397
7398 2007-07-31  Bruno Haible  <bruno@clisp.org>
7399
7400         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
7401         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
7402
7403 2007-07-30  Bruno Haible  <bruno@clisp.org>
7404
7405         * modules/base64 (License): Use the synonymous term "LGPLv2+".
7406         * modules/c-ctype (License): Likewise.
7407         * modules/c-strcase (License): Likewise.
7408         * modules/check-version (License): Likewise.
7409         * modules/iconv (License): Likewise.
7410         * modules/iconv_open (License): Likewise.
7411         * modules/read-file (License): Likewise.
7412         * modules/striconv (License): Likewise.
7413         * modules/strverscmp (License): Likewise.
7414         * modules/vasprintf (License): Likewise.
7415         * modules/crypto/des (License): Likewise.
7416         * modules/crypto/gc (License): Likewise.
7417         * modules/crypto/gc-arcfour (License): Likewise.
7418         * modules/crypto/gc-arctwo (License): Likewise.
7419         * modules/crypto/gc-des (License): Likewise.
7420         * modules/crypto/gc-hmac-md5 (License): Likewise.
7421         * modules/crypto/gc-hmac-sha1 (License): Likewise.
7422         * modules/crypto/gc-md2 (License): Likewise.
7423         * modules/crypto/gc-md4 (License): Likewise.
7424         * modules/crypto/gc-md5 (License): Likewise.
7425         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
7426         * modules/crypto/gc-random (License): Likewise.
7427         * modules/crypto/gc-rijndael (License): Likewise.
7428         * modules/crypto/gc-sha1 (License): Likewise.
7429         * modules/crypto/md2 (License): Likewise.
7430         * modules/crypto/md4 (License): Likewise.
7431
7432 2007-07-30  Jim Meyering  <jim@meyering.net>
7433
7434         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
7435         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
7436         it has valid stat data.  This bug would cause du not to count the
7437         sizes of inaccessible directories.
7438         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
7439         in <http://bugzilla.redhat.com/250077>.
7440
7441 2007-07-25  Peter O'Gorman  <peter@pogma.com>
7442             Bruno Haible  <bruno@clisp.org>
7443
7444         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
7445         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
7446         #include_next, gives a diagnostic about it, but reports no error in
7447         the exit code.
7448         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
7449
7450 2007-07-24  Ben Pfaff  <blp@gnu.org>
7451
7452         Improve name: "count-one-bits" is better than "popcount".
7453         * MODULES.html.sh: Update name.
7454         * lib/popcount.h: Renamed lib/count-one-bits.h.
7455         (popcount): Renamed count_one_bits.
7456         (popcountl): Renamed count_one_bits_l.
7457         (popcountll): Renamed count_one_bits_ll.
7458         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
7459         * modules/popcount: Renamed module/count-one-bits.
7460         * modules/popcount-tests: Renamed module/count-one-bits-tests.
7461         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
7462
7463 2007-07-23  Ben Pfaff  <blp@gnu.org>
7464
7465         * lib/popcount.h (popcount32): Reduce size of constants, to allow
7466         better code generation, and add U to large constants to avoid
7467         warnings, in non-GCC case.
7468         Suggested by Bruno Haible.
7469
7470 2007-07-23  Ben Pfaff  <blp@gnu.org>
7471
7472         * lib/popcount.h: Use verify_true instead of if...abort.
7473         * modules/popcount: Depend on verify module.
7474         Suggested by Jim Meyering.
7475
7476 2007-07-23  Bruno Haible  <bruno@clisp.org>
7477
7478         * gnulib-tool (func_import): Create a .cvsignore file also when the
7479         directory is not yet in CVS but the toplevel directory is. When
7480         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
7481         Reported by Karl Berry.
7482
7483 2007-07-22  Ben Pfaff  <blp@gnu.org>
7484
7485         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
7486         case.
7487         Suggested by Eric Blake.
7488
7489 2007-07-22  Ben Pfaff  <blp@gnu.org>
7490
7491         New module: popcount.
7492         * MODULES.html.sh: Add popcount.
7493         * modules/popcount: New file.
7494         * modules/popcount-tests: New file.
7495         * tests/test-popcount.c: New file.
7496         * lib/popcount.h: New file.
7497         * m4/popcount.m4: New file.
7498
7499 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
7500
7501         * build-aux/announce-gen: Update to GPLv3.
7502
7503         * build-aux/config.guess: Update from config.
7504
7505 2007-07-21  Bruno Haible  <bruno@clisp.org>
7506
7507         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
7508         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
7509
7510 2007-07-20  Jim Meyering  <jim@meyering.net>
7511
7512         * check-module: Diagnose a self-dependency.
7513
7514 2007-07-19  Bruno Haible  <bruno@clisp.org>
7515
7516         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
7517         empty.
7518         Reported by Eric Blake.
7519
7520 2007-07-18  Bruno Haible  <bruno@clisp.org>
7521
7522         * gnulib-tool: New options --po-base, --po-domain.
7523         (func_usage): Document them.
7524         (pobase, po_domain): New variables.
7525         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
7526         DEFAULT_TEXT_DOMAIN.
7527         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
7528         (func_import): Consider pobase and po_domain. Create a po/ directory.
7529         (func_create_testdir): Set pobase and po_domain to empty.
7530         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
7531         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
7532
7533 2007-07-18  Bruno Haible  <bruno@clisp.org>
7534
7535         * gnulib-tool (func_get_automake_snippet): Synthesize also an
7536         EXTRA_DIST augmentation for files in build-aux/.
7537
7538 2007-07-16  Bruno Haible  <bruno@clisp.org>
7539
7540         * modules/lseek (License): Use the synonymous term "LGPLv2+".
7541         * modules/getdelim (License): Likewise.
7542
7543 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
7544
7545         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
7546         * modules/d-type (License): Likewise.
7547         * modules/extensions (License): Likewise.
7548         * modules/fnmatch (License): Likewise.
7549         * modules/fseeko (License): Likewise.
7550         * modules/getaddrinfo (License): Likewise.
7551         * modules/getline (License): Likewise.
7552         * modules/getlogin_r (License): Likewise.
7553         * modules/getpass (License): Likewise.
7554         * modules/gettimeofday (License): Likewise.
7555         * modules/glob (License): Likewise.
7556         * modules/inet_ntop (License): Likewise.
7557         * modules/malloc (License): Likewise.
7558         * modules/malloca (License): Likewise.
7559         * modules/memmem (License): Likewise.
7560         * modules/mempcpy (License): Likewise.
7561         * modules/memset (License): Likewise.
7562         * modules/minmax (License): Likewise.
7563         * modules/mktime (License): Likewise.
7564         * modules/netinet_in (License): Likewise.
7565         * modules/pathmax (License): Likewise.
7566         * modules/poll (License): Likewise.
7567         * modules/regex (License): Likewise.
7568         * modules/snprintf (License): Likewise.
7569         * modules/stdbool (License): Likewise.
7570         * modules/stdint (License): Likewise.
7571         * modules/stdio (License): Likewise.
7572         * modules/strcase (License): Likewise.
7573         * modules/strcasestr (License): Likewise.
7574         * modules/strdup (License): Likewise.
7575         * modules/string (License): Likewise.
7576         * modules/strndup (License): Likewise.
7577         * modules/strnlen (License): Likewise.
7578         * modules/strpbrk (License): Likewise.
7579         * modules/strptime (License): Likewise.
7580         * modules/strsep (License): Likewise.
7581         * modules/sys_select (License): Likewise.
7582         * modules/sys_socket (License): Likewise.
7583         * modules/sys_stat (License): Likewise.
7584         * modules/sys_time (License): Likewise.
7585         * modules/time (License): Likewise.
7586         * modules/time_r (License): Likewise.
7587         * modules/timegm (License): Likewise.
7588         * modules/unistd (License): Likewise.
7589         * modules/vsnprintf (License): Likewise.
7590         * modules/wctype (License): Likewise.
7591
7592 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7593
7594         * modules/argz (License): LGPLv2+.
7595
7596 2007-07-15  Karl Berry  <karl@gnu.org>
7597
7598         * doc/gnulib.texi: revise node structure per new fdl.texi.
7599
7600 2007-07-14  Bruno Haible  <bruno@clisp.org>
7601
7602         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
7603         the output file.
7604         * lib/uniname/uninames.h: Regenerated.
7605
7606 2007-07-14  Karl Berry  <karl@gnu.org>
7607
7608         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
7609         omitting sectioning and index commands.
7610
7611 2007-07-13  Bruno Haible  <bruno@clisp.org>
7612
7613         New gnulib-tool option --more-symlinks.
7614         * gnulib-tool (func_usage): Document --more-symlinks.
7615         (do_copyrights): New variable.
7616         Recognize option --more-symlinks.
7617         (func_import): Don't add a copyright notice transform to
7618         sed_transform_lib_file if do_copyrights is empty.
7619
7620 2007-07-13  Bruno Haible  <bruno@clisp.org>
7621
7622         * lib/vasnprintf.c (decimal_point_char): Define also if
7623         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
7624         && !NEED_PRINTF_DIRECTIVE_A.
7625         Reported by Clemens Koller <clemens.koller@anagramm.de> via
7626         Gary V. Vaughan <gary@gnu.org>.
7627
7628 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
7629
7630         * lib/inttypes_.h: Undo previous change, since it was fixed
7631         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
7632
7633 2007-07-13  Bruno Haible  <bruno@clisp.org>
7634
7635         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
7636         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
7637
7638 2007-07-13  Jim Meyering  <jim@meyering.net>
7639
7640         df: Don't fail for Tru64's "file-on-file mount".
7641         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
7642         so we fall through and use statfs instead.  Details here:
7643         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
7644         Reported by Albert Chin.
7645
7646 2007-07-13  Bruno Haible  <bruno@clisp.org>
7647
7648         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
7649         * modules/configmake (License): Likewise.
7650         * modules/gettext (License): Likewise.
7651         * modules/gettext-h (License): Likewise.
7652         * modules/include_next (License): Likewise.
7653         * modules/link-warning (License): Likewise.
7654         * modules/localcharset (License): Likewise.
7655         * modules/localename (License): Likewise.
7656         * modules/lock (License): Likewise.
7657         * modules/relocatable-lib-lgpl (License): Likewise.
7658         * modules/size_max (License): Likewise.
7659         * modules/vasnprintf (License): Likewise.
7660         * modules/wchar (License): Likewise.
7661         * modules/xsize (License): Likewise.
7662
7663 2007-07-13  Bruno Haible  <bruno@clisp.org>
7664
7665         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
7666         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
7667
7668 2007-07-12  Bruno Haible  <bruno@clisp.org>
7669
7670         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
7671         in the modules files.
7672
7673 2007-07-11  Karl Berry  <karl@gnu.org>
7674
7675         * MODULES.html.sh (func_module): use
7676          sed -e '\|^'"${includefile}"'$|d'
7677          instead of /.../d, to avoid errors on $includefile's containing /.
7678
7679 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
7680
7681         * gnulib-tool (func_import): Avoid duplication of --avoid
7682         statements
7683         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
7684         names to `_' in variable names.
7685
7686 2007-07-10  Eric Blake  <ebb9@byu.net>
7687
7688         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
7689         * NEWS: Document this change.
7690
7691 2007-07-08  Bruno Haible  <bruno@clisp.org>
7692
7693         Update to Unicode 5.0.
7694         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
7695         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
7696         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
7697         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
7698         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
7699         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
7700         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
7701         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
7702         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
7703         U+10A3F, U+1D242..U+1D244.
7704         (nonspacing_table_ind): Update.
7705         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
7706         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
7707
7708 2007-07-08  Bruno Haible  <bruno@clisp.org>
7709
7710         Update to Unicode 5.0.
7711         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
7712         code transform. Extend the name index field of unicode_name_to_code and
7713         unicode_code_to_name from 16 to 24 bits.
7714         * lib/uniname/uniname.c (unicode_character_name,
7715         unicode_name_character): Add the range 0x12xxx to the code transform.
7716         * lib/uniname/uninames.h: Regenerated.
7717         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
7718
7719 2007-07-07  Bruno Haible  <bruno@clisp.org>
7720
7721         * modules/wcwidth-tests: New file.
7722         * tests/test-wcwidth.c: New file.
7723
7724         Work around MacOS X wcwidth() bug.
7725         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
7726         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
7727         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
7728         original wcwidth in non-UTF-8 locales.
7729         * modules/wcwidth (Depends-on): Add localcharset, streq,
7730         uniwidth/width.
7731         * doc/functions/wcwidth.texi: Update.
7732
7733 2007-07-07  Bruno Haible  <bruno@clisp.org>
7734
7735         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
7736         (wcwidth): New declaration.
7737         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
7738         macros.
7739         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
7740         here. Prepare for creating <wchar.h> unconditionally.
7741         * modules/wchar (Depends-on): Add link-warning.
7742         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
7743         REPLACE_WCWIDTH, and GL_LINK_WARNING.
7744         * lib/wcwidth.h: Remove file.
7745         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
7746         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
7747         * modules/wcwidth (Files): Remove lib/wcwidth.h.
7748         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
7749         (Include): Replace wcwidth.h with <wchar.h>.
7750         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
7751         * lib/mbchar.h: Don't include wcwidth.h.
7752         * lib/mbswidth.c: Likewise.
7753         * NEWS: Mention the change.
7754
7755 2007-07-07  Bruno Haible  <bruno@clisp.org>
7756
7757         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
7758         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
7759         definition with an external declaration.
7760         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
7761         defined as a function. Remove AC_C_INLINE requirement.
7762         * modules/wcwidth (Files): Add lib/wcwidth.c.
7763         (Makefile.am): Remove redundant statement.
7764
7765 2007-07-07  Bruno Haible  <bruno@clisp.org>
7766
7767         * MODULES.html.sh (Unicode string functions): Add the new modules.
7768
7769         * tests/uniwidth/test-u32-strwidth.c: New file.
7770         * modules/uniwidth/u32-strwidth-tests: New file.
7771
7772         * lib/uniwidth/u32-strwidth.c: New file.
7773         * modules/uniwidth/u32-strwidth: New file.
7774
7775         * tests/uniwidth/test-u16-strwidth.c: New file.
7776         * modules/uniwidth/u16-strwidth-tests: New file.
7777
7778         * lib/uniwidth/u16-strwidth.c: New file.
7779         * modules/uniwidth/u16-strwidth: New file.
7780
7781         * tests/uniwidth/test-u8-strwidth.c: New file.
7782         * modules/uniwidth/u8-strwidth-tests: New file.
7783
7784         * lib/uniwidth/u8-strwidth.c: New file.
7785         * modules/uniwidth/u8-strwidth: New file.
7786
7787         * tests/uniwidth/test-u32-width.c: New file.
7788         * modules/uniwidth/u32-width-tests: New file.
7789
7790         * lib/uniwidth/u32-width.c: New file.
7791         * modules/uniwidth/u32-width: New file.
7792
7793         * tests/uniwidth/test-u16-width.c: New file.
7794         * modules/uniwidth/u16-width-tests: New file.
7795
7796         * lib/uniwidth/u16-width.c: New file.
7797         * modules/uniwidth/u16-width: New file.
7798
7799         * tests/uniwidth/test-u8-width.c: New file.
7800         * modules/uniwidth/u8-width-tests: New file.
7801
7802         * lib/uniwidth/u8-width.c: New file.
7803         * modules/uniwidth/u8-width: New file.
7804
7805         * tests/uniwidth/test-uc_width.c: New file.
7806         * modules/uniwidth/width-tests: New file.
7807
7808         * lib/uniwidth/width.c: New file, from GNU libiconv.
7809         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
7810         * modules/uniwidth/width: New file.
7811
7812         * lib/uniwidth.h: New file, from GNU libiconv.
7813         * modules/uniwidth/base: New file.
7814
7815 2007-07-07  Bruno Haible  <bruno@clisp.org>
7816
7817         * lib/uniname.h: New file, from GNU gettext.
7818         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
7819         * lib/uniname/uninames.h: New file, from GNU gettext.
7820         * lib/uniname/uniname.c: New file, from GNU gettext.
7821         * tests/uniname/test-uninames.sh: New file.
7822         * tests/uniname/test-uninames.c: New file, from GNU gettext.
7823         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
7824         * modules/uniname/base: New file.
7825         * modules/uniname/uniname: New file.
7826         * modules/uniname/uniname-tests: New file.
7827         * MODULES.html.sh (Unicode string functions): Add the new modules.
7828
7829 2007-07-06  Bruno Haible  <bruno@clisp.org>
7830
7831         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
7832
7833 2007-07-06  Bruno Haible  <bruno@clisp.org>
7834
7835         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
7836         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
7837         includes <cygwin/sys_time.h> which includes <sys/select.h> which
7838         include <sys/time.h>.
7839         Reported by Eric Blake.
7840
7841 2007-07-06  Eric Blake  <ebb9@byu.net>
7842
7843         Fix testing canonicalize on cygwin.
7844         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
7845         Revert patch from 2007-06-19.
7846         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
7847         canonicalize module is also in use.
7848         * tests/test-canonicalize.c: New file.
7849         * tests/test-canonicalize.sh: Likewise.
7850         * modules/canonicalize-tests: Likewise.
7851
7852 2007-07-06  Jim Meyering  <jim@meyering.net>
7853
7854         * lib/getugroups.c (getugroups): Detect getgrent failure.
7855         Adjust comment to reflect reality: this function may return -1.
7856
7857 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
7858
7859         * build-aux/bootstrap (TP_URL,get_translations): Update to use
7860         the new TP address.
7861         (usage): Fix typo
7862         (gnulib_mk): New variable.
7863
7864 2007-07-05  Jim Meyering  <jim@meyering.net>
7865
7866         Don't let endgrent clobber errno, no matter how improbable.
7867         * lib/getugroups.c (getugroups): Save and restore errno around
7868         endgrent call.
7869
7870         Close the group DB even when failing with 2^31 or more members.
7871         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
7872
7873 2007-07-04  Jim Meyering  <jim@meyering.net>
7874
7875         * lib/getugroups.h: New file.
7876         * lib/getugroups.c: Include "getugroups.h".
7877         Remove uses of "register" keyword.
7878         Move local variable, "cp", down into scope where used.
7879         Give "username" parameter the "const" attribute.
7880         * modules/getugroups (Files): Add lib/getugroups.h
7881
7882 2007-07-04  Karl Berry  <karl@gnu.org>
7883
7884         * MODULES.html.sh (func_all_modules): Complete rename of
7885         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
7886
7887 2007-07-02  Bruno Haible  <bruno@clisp.org>
7888
7889         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
7890         mode, when inttypes.h comes from gnulib.
7891         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
7892
7893 2007-07-02  Simon Josefsson  <simon@josefsson.org>
7894
7895         * NEWS: Mention lgpl module name change.
7896
7897         * modules/lgpl-2.1: Renamed from lgpl.
7898
7899         * NEWS: Mention gpl module name change.
7900
7901         * modules/gpl-3.0: New file, based on gpl-2.0.
7902
7903         * modules/gpl-2.0: Renamed from gpl.
7904
7905         * modules/gpl: Fix filename, doc/gpl.texi is now found at
7906         doc/gpl-2.0.texi.
7907
7908 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
7909
7910         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
7911         #define __STDC_LIMIT_MACROS temporarily while including
7912         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
7913         Problem reported by Joel E. Denny in
7914         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
7915
7916 2007-07-01  Bruno Haible  <bruno@clisp.org>
7917
7918         * lib/unistdio.h: New file.
7919         * lib/unistdio/u-asnprintf.h: New file.
7920         * lib/unistdio/u-asprintf.h: New file.
7921         * lib/unistdio/u-printf-args.c: New file.
7922         * lib/unistdio/u-printf-args.h: New file.
7923         * lib/unistdio/u-printf-parse.h: New file.
7924         * lib/unistdio/u-snprintf.h: New file.
7925         * lib/unistdio/u-sprintf.h: New file.
7926         * lib/unistdio/u-vasprintf.h: New file.
7927         * lib/unistdio/u-vsnprintf.h: New file.
7928         * lib/unistdio/u-vsprintf.h: New file.
7929         * lib/unistdio/ulc-asnprintf.c: New file.
7930         * lib/unistdio/ulc-asprintf.c: New file.
7931         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
7932         * lib/unistdio/ulc-printf-parse.c: New file.
7933         * lib/unistdio/ulc-snprintf.c: New file.
7934         * lib/unistdio/ulc-sprintf.c: New file.
7935         * lib/unistdio/ulc-vasnprintf.c: New file.
7936         * lib/unistdio/ulc-vasprintf.c: New file.
7937         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
7938         * lib/unistdio/ulc-vsnprintf.c: New file.
7939         * lib/unistdio/ulc-vsprintf.c: New file.
7940         * lib/unistdio/u8-asnprintf.c: New file.
7941         * lib/unistdio/u8-asprintf.c: New file.
7942         * lib/unistdio/u8-printf-parse.c: New file.
7943         * lib/unistdio/u8-snprintf.c: New file.
7944         * lib/unistdio/u8-sprintf.c: New file.
7945         * lib/unistdio/u8-vasnprintf.c: New file.
7946         * lib/unistdio/u8-vasprintf.c: New file.
7947         * lib/unistdio/u8-vsnprintf.c: New file.
7948         * lib/unistdio/u8-vsprintf.c: New file.
7949         * lib/unistdio/u8-u8-asnprintf.c: New file.
7950         * lib/unistdio/u8-u8-asprintf.c: New file.
7951         * lib/unistdio/u8-u8-snprintf.c: New file.
7952         * lib/unistdio/u8-u8-sprintf.c: New file.
7953         * lib/unistdio/u8-u8-vasnprintf.c: New file.
7954         * lib/unistdio/u8-u8-vasprintf.c: New file.
7955         * lib/unistdio/u8-u8-vsnprintf.c: New file.
7956         * lib/unistdio/u8-u8-vsprintf.c: New file.
7957         * lib/unistdio/u16-asnprintf.c: New file.
7958         * lib/unistdio/u16-asprintf.c: New file.
7959         * lib/unistdio/u16-printf-parse.c: New file.
7960         * lib/unistdio/u16-snprintf.c: New file.
7961         * lib/unistdio/u16-sprintf.c: New file.
7962         * lib/unistdio/u16-vasnprintf.c: New file.
7963         * lib/unistdio/u16-vasprintf.c: New file.
7964         * lib/unistdio/u16-vsnprintf.c: New file.
7965         * lib/unistdio/u16-vsprintf.c: New file.
7966         * lib/unistdio/u16-u16-asnprintf.c: New file.
7967         * lib/unistdio/u16-u16-asprintf.c: New file.
7968         * lib/unistdio/u16-u16-snprintf.c: New file.
7969         * lib/unistdio/u16-u16-sprintf.c: New file.
7970         * lib/unistdio/u16-u16-vasnprintf.c: New file.
7971         * lib/unistdio/u16-u16-vasprintf.c: New file.
7972         * lib/unistdio/u16-u16-vsnprintf.c: New file.
7973         * lib/unistdio/u16-u16-vsprintf.c: New file.
7974         * lib/unistdio/u32-asnprintf.c: New file.
7975         * lib/unistdio/u32-asprintf.c: New file.
7976         * lib/unistdio/u32-printf-parse.c: New file.
7977         * lib/unistdio/u32-snprintf.c: New file.
7978         * lib/unistdio/u32-sprintf.c: New file.
7979         * lib/unistdio/u32-vasnprintf.c: New file.
7980         * lib/unistdio/u32-vasprintf.c: New file.
7981         * lib/unistdio/u32-vsnprintf.c: New file.
7982         * lib/unistdio/u32-vsprintf.c: New file.
7983         * lib/unistdio/u32-u32-asnprintf.c: New file.
7984         * lib/unistdio/u32-u32-asprintf.c: New file.
7985         * lib/unistdio/u32-u32-snprintf.c: New file.
7986         * lib/unistdio/u32-u32-sprintf.c: New file.
7987         * lib/unistdio/u32-u32-vasnprintf.c: New file.
7988         * lib/unistdio/u32-u32-vasprintf.c: New file.
7989         * lib/unistdio/u32-u32-vsnprintf.c: New file.
7990         * lib/unistdio/u32-u32-vsprintf.c: New file.
7991         * tests/unistdio/test-ulc-asnprintf1.c: New file.
7992         * tests/unistdio/test-ulc-asnprintf1.h: New file.
7993         * tests/unistdio/test-ulc-printf1.h: New file.
7994         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
7995         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
7996         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
7997         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
7998         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
7999         * tests/unistdio/test-ulc-vasprintf1.c: New file.
8000         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
8001         * tests/unistdio/test-ulc-vsprintf1.c: New file.
8002         * tests/unistdio/test-u8-asnprintf1.c: New file.
8003         * tests/unistdio/test-u8-asnprintf1.h: New file.
8004         * tests/unistdio/test-u8-printf1.h: New file.
8005         * tests/unistdio/test-u8-vasnprintf1.c: New file.
8006         * tests/unistdio/test-u8-vasnprintf2.c: New file.
8007         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
8008         * tests/unistdio/test-u8-vasnprintf3.c: New file.
8009         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
8010         * tests/unistdio/test-u8-vasprintf1.c: New file.
8011         * tests/unistdio/test-u8-vsnprintf1.c: New file.
8012         * tests/unistdio/test-u8-vsprintf1.c: New file.
8013         * tests/unistdio/test-u16-asnprintf1.c: New file.
8014         * tests/unistdio/test-u16-asnprintf1.h: New file.
8015         * tests/unistdio/test-u16-printf1.h: New file.
8016         * tests/unistdio/test-u16-vasnprintf1.c: New file.
8017         * tests/unistdio/test-u16-vasnprintf2.c: New file.
8018         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
8019         * tests/unistdio/test-u16-vasnprintf3.c: New file.
8020         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
8021         * tests/unistdio/test-u16-vasprintf1.c: New file.
8022         * tests/unistdio/test-u16-vsnprintf1.c: New file.
8023         * tests/unistdio/test-u16-vsprintf1.c: New file.
8024         * tests/unistdio/test-u32-asnprintf1.c: New file.
8025         * tests/unistdio/test-u32-asnprintf1.h: New file.
8026         * tests/unistdio/test-u32-printf1.h: New file.
8027         * tests/unistdio/test-u32-vasnprintf1.c: New file.
8028         * tests/unistdio/test-u32-vasnprintf2.c: New file.
8029         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
8030         * tests/unistdio/test-u32-vasnprintf3.c: New file.
8031         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
8032         * tests/unistdio/test-u32-vasprintf1.c: New file.
8033         * tests/unistdio/test-u32-vsnprintf1.c: New file.
8034         * tests/unistdio/test-u32-vsprintf1.c: New file.
8035         * modules/unistdio/base: New file.
8036         * modules/unistdio/u-printf-args: New file.
8037         * modules/unistdio/ulc-asnprintf: New file.
8038         * modules/unistdio/ulc-asprintf: New file.
8039         * modules/unistdio/ulc-fprintf: New file.
8040         * modules/unistdio/ulc-printf-parse: New file.
8041         * modules/unistdio/ulc-snprintf: New file.
8042         * modules/unistdio/ulc-sprintf: New file.
8043         * modules/unistdio/ulc-vasnprintf: New file.
8044         * modules/unistdio/ulc-vasprintf: New file.
8045         * modules/unistdio/ulc-vfprintf: New file.
8046         * modules/unistdio/ulc-vsnprintf: New file.
8047         * modules/unistdio/ulc-vsprintf: New file.
8048         * modules/unistdio/u8-asnprintf: New file.
8049         * modules/unistdio/u8-asprintf: New file.
8050         * modules/unistdio/u8-printf-parse: New file.
8051         * modules/unistdio/u8-snprintf: New file.
8052         * modules/unistdio/u8-sprintf: New file.
8053         * modules/unistdio/u8-vasnprintf: New file.
8054         * modules/unistdio/u8-vasprintf: New file.
8055         * modules/unistdio/u8-vsnprintf: New file.
8056         * modules/unistdio/u8-vsprintf: New file.
8057         * modules/unistdio/u8-u8-asnprintf: New file.
8058         * modules/unistdio/u8-u8-asprintf: New file.
8059         * modules/unistdio/u8-u8-snprintf: New file.
8060         * modules/unistdio/u8-u8-sprintf: New file.
8061         * modules/unistdio/u8-u8-vasnprintf: New file.
8062         * modules/unistdio/u8-u8-vasprintf: New file.
8063         * modules/unistdio/u8-u8-vsnprintf: New file.
8064         * modules/unistdio/u8-u8-vsprintf: New file.
8065         * modules/unistdio/u16-asnprintf: New file.
8066         * modules/unistdio/u16-asprintf: New file.
8067         * modules/unistdio/u16-printf-parse: New file.
8068         * modules/unistdio/u16-snprintf: New file.
8069         * modules/unistdio/u16-sprintf: New file.
8070         * modules/unistdio/u16-vasnprintf: New file.
8071         * modules/unistdio/u16-vasprintf: New file.
8072         * modules/unistdio/u16-vsnprintf: New file.
8073         * modules/unistdio/u16-vsprintf: New file.
8074         * modules/unistdio/u16-u16-asnprintf: New file.
8075         * modules/unistdio/u16-u16-asprintf: New file.
8076         * modules/unistdio/u16-u16-snprintf: New file.
8077         * modules/unistdio/u16-u16-sprintf: New file.
8078         * modules/unistdio/u16-u16-vasnprintf: New file.
8079         * modules/unistdio/u16-u16-vasprintf: New file.
8080         * modules/unistdio/u16-u16-vsnprintf: New file.
8081         * modules/unistdio/u16-u16-vsprintf: New file.
8082         * modules/unistdio/u32-asnprintf: New file.
8083         * modules/unistdio/u32-asprintf: New file.
8084         * modules/unistdio/u32-printf-parse: New file.
8085         * modules/unistdio/u32-snprintf: New file.
8086         * modules/unistdio/u32-sprintf: New file.
8087         * modules/unistdio/u32-vasnprintf: New file.
8088         * modules/unistdio/u32-vasprintf: New file.
8089         * modules/unistdio/u32-vsnprintf: New file.
8090         * modules/unistdio/u32-vsprintf: New file.
8091         * modules/unistdio/u32-u32-asnprintf: New file.
8092         * modules/unistdio/u32-u32-asprintf: New file.
8093         * modules/unistdio/u32-u32-snprintf: New file.
8094         * modules/unistdio/u32-u32-sprintf: New file.
8095         * modules/unistdio/u32-u32-vasnprintf: New file.
8096         * modules/unistdio/u32-u32-vasprintf: New file.
8097         * modules/unistdio/u32-u32-vsnprintf: New file.
8098         * modules/unistdio/u32-u32-vsprintf: New file.
8099         * modules/unistdio/ulc-asnprintf-tests: New file.
8100         * modules/unistdio/ulc-vasnprintf-tests: New file.
8101         * modules/unistdio/ulc-vasprintf-tests: New file.
8102         * modules/unistdio/ulc-vsnprintf-tests: New file.
8103         * modules/unistdio/ulc-vsprintf-tests: New file.
8104         * modules/unistdio/u8-asnprintf-tests: New file.
8105         * modules/unistdio/u8-vasnprintf-tests: New file.
8106         * modules/unistdio/u8-vasprintf-tests: New file.
8107         * modules/unistdio/u8-vsnprintf-tests: New file.
8108         * modules/unistdio/u8-vsprintf-tests: New file.
8109         * modules/unistdio/u16-asnprintf-tests: New file.
8110         * modules/unistdio/u16-vasnprintf-tests: New file.
8111         * modules/unistdio/u16-vasprintf-tests: New file.
8112         * modules/unistdio/u16-vsnprintf-tests: New file.
8113         * modules/unistdio/u16-vsprintf-tests: New file.
8114         * modules/unistdio/u32-asnprintf-tests: New file.
8115         * modules/unistdio/u32-vasnprintf-tests: New file.
8116         * modules/unistdio/u32-vasprintf-tests: New file.
8117         * modules/unistdio/u32-vsnprintf-tests: New file.
8118         * modules/unistdio/u32-vsprintf-tests: New file.
8119         * MODULES.html.sh (Unicode string functions): Add the new modules.
8120
8121 2007-07-01  Bruno Haible  <bruno@clisp.org>
8122
8123         * lib/sprintf.c (sprintf): Limit the available length estimation,
8124         to avoid address wraparound.
8125         * lib/vsprintf.c (vsprintf): Likewise.
8126         * modules/sprintf-posix (Dependencies): Add stdint.
8127         * modules/vsprintf-posix (Dependencies): Likewise.
8128
8129 2007-07-01  Bruno Haible  <bruno@clisp.org>
8130
8131         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
8132         Windows PATH as well. Conservative double-quoting. Comments.
8133
8134 2007-07-01  Bruno Haible  <bruno@clisp.org>
8135             Eric Blake  <ebb9@byu.net>
8136             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8137
8138         * gnulib-tool (self_abspathname): Fix algorithm to cope with
8139         empty components in $PATH, denoting '.'.
8140
8141 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8142
8143         * gnulib-tool: Fix indentation.
8144         (func_create_megatestdir): Likewise.
8145         Report by Bruno Haible.
8146
8147 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8148
8149         Sync from Automake.
8150         * build-aux/gnupload: Fix shell portability issues with for loops.
8151         Report by Karl Berry.
8152
8153 2007-06-29  Simon Josefsson  <simon@josefsson.org>
8154
8155         * build-aux/maint.mk (POURL): Use translationproject.org.
8156
8157 2007-06-27  Simon Josefsson  <simon@josefsson.org>
8158             Bruno Haible  <bruno@clisp.org>
8159
8160         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
8161         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
8162         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
8163         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
8164         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
8165
8166 2007-06-27  Bruno Haible  <bruno@clisp.org>
8167
8168         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
8169         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
8170
8171 2007-06-26  Karl Berry  <karl@gnu.org>
8172
8173         * MODULES.html.sh: remove xreadlink-with-size.
8174
8175 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
8176
8177         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
8178         method that I hope also handles the double-include problem noted
8179         by Bruno Haible in
8180         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
8181
8182 2007-06-23  Bruno Haible  <bruno@clisp.org>
8183
8184         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
8185         Don't let the 'mostlyclean' target fail if the last subdirectory could
8186         not be removed.
8187         Reported by Karl Berry.
8188
8189 2007-06-23  Bruno Haible  <bruno@clisp.org>
8190
8191         * gnulib-tool (echo): Add a speedier workaround for ksh.
8192         * tests/test-echo.sh: Likewise.
8193
8194 2007-06-23  Bruno Haible  <bruno@clisp.org>
8195
8196         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
8197         * tests/test-echo.sh: Likewise.
8198
8199 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8200
8201         * gnulib-tool (IFS): Initialize early, so we don't set it to
8202         empty later.
8203         (self_abspathname): Rewrite algorithm to set it, reindent.
8204         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
8205         (func_create_megatestdir): Merge some sed scripts.
8206
8207 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
8208
8209         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
8210         exposed by Sun Studio 11 cc on Solaris 8.
8211
8212 2007-06-22  Bruno Haible  <bruno@clisp.org>
8213
8214         * gnulib-tool (echo): Ensure the echo primitive does not interpret
8215         backslashes.
8216         * tests/test-echo.sh: New file.
8217
8218 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8219
8220         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
8221         simplify `sed_replace_build_aux' scripts, they are portable but
8222         echoing them with `echo' is not.
8223         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
8224
8225 2007-06-21  Karl Berry  <karl@gnu.org>
8226
8227         * config/srclist.txt: guess we can't handle the licenses via
8228         srclist at the moment.
8229
8230 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
8231
8232         * MODULES.html.sh: Add include_next.
8233         * modules/include_next: New file.
8234
8235 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
8236
8237         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
8238         INCLUDE_NEXT.
8239         (gl_CHECK_NEXT_HEADERS): New macro.
8240         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
8241         the obsolescent gl_ABSOLUTE_HEADER.
8242         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
8243         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
8244         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
8245         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
8246         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
8247         * m4/math_h.m4 (gl_MATH_H): Likewise.
8248         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
8249         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
8250         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
8251         * m4/stdint.m4 (gl_STDINT_H): Likewise.
8252         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
8253         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
8254         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
8255         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
8256         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
8257         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
8258         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
8259         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
8260         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
8261         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
8262         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
8263         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
8264         * m4/inttypes.m4 (gl_INTTYPES_H): Define
8265         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
8266         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
8267         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
8268         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
8269         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
8270         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
8271         * lib/float_.h: Likewise.
8272         * lib/inttypes_.h: Likewise.
8273         * lib/math_.h: Likewise.
8274         * lib/search_.h: Likewise.
8275         * lib/signal_.h: Likewise.
8276         * lib/stdint_.h: Likewise.
8277         * lib/stdio_.h: Likewise.
8278         * lib/stdlib_.h: Likewise.
8279         * lib/string_.h: Likewise.
8280         * lib/sys_stat_.h: Likewise.
8281         * lib/sys_time_.h: Likewise.
8282         * lib/time_.h: Likewise.
8283         * lib/unistd_.h: Likewise.
8284         * lib/wchar_.h: Likewise.
8285         * lib/wctype_.h: Likewise.
8286         * lib/dirent_.h: Likewise.
8287         * lib/iconv_.h: Likewise.
8288         * lib/locale_.h: Likewise.
8289         * lib/netinet_in_.h: Likewise.
8290         * lib/sys_select_.h: Likewise.
8291         * lib/sys_socket_.h: Likewise.
8292         * lib/sysexits_.h: Likewise.
8293         * modules/fcntl (Depends-on): Depend on include_next, not
8294         absolute_header.
8295         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
8296         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
8297         * modules/fchdir: Likewise.
8298         * modules/float: Likewise.
8299         * modules/iconv_open: Likewise.
8300         * modules/inttypes: Likewise.
8301         * modules/locale: Likewise.
8302         * modules/math: Likewise.
8303         * modules/netinet_in: Likewise.
8304         * modules/search: Likewise.
8305         * modules/signal: Likewise.
8306         * modules/stdint: Likewise.
8307         * modules/stdio: Likewise.
8308         * modules/stdlib: Likewise.
8309         * modules/string: Likewise.
8310         * modules/sys_select: Likewise.
8311         * modules/sys_socket: Likewise.
8312         * modules/sys_stat: Likewise.
8313         * modules/sys_time: Likewise.
8314         * modules/sysexits: Likewise.
8315         * modules/time: Likewise.
8316         * modules/unistd: Likewise.
8317         * modules/wchar: Likewise.
8318         * modules/wctype: Likewise.
8319         * modules/sys_stat: Change maintainer to "all".
8320         * modules/unistd: Likewise.
8321
8322 2007-06-20  Karl Berry  <karl@gnu.org>
8323
8324         * config/srclist.txt: track www changes in license files.
8325
8326 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
8327
8328         * build-aux/bootstrap: Remove stray dot.
8329         Make sure build_aux settings are honored when linking
8330         gnulib_extra_files.
8331
8332 2007-06-19  Eric Blake  <ebb9@byu.net>
8333
8334         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
8335         Allow compilation on cygwin.
8336
8337 2007-06-19  Jim Meyering  <jim@meyering.net>
8338
8339         xreadlink-with-size: Remove module.  No longer used.
8340         Ex-callers now use xreadlink or mreadlink-with-size.
8341         * modules/xreadlink-with-size: Remove module.
8342         * lib/xreadlink-with-size.c: Remove file.
8343         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
8344         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
8345         just before the function definition *is* accurate.
8346
8347         Eliminate one way canonicalize_filename_mode could exit.
8348         * lib/canonicalize.c (canonicalize_filename_mode):
8349         Use mreadlink_with_size, not xreadlink_with_size.
8350
8351 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
8352
8353         Detect porting problems to FreeBSD/arm, which has time_t wider than
8354         long int.  Original problem reported for GNU diff by Xin Li in
8355         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
8356         * modules/getdate (Depends-on): Add intprops, verify.
8357         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
8358         is an integer type no wider than long int.
8359
8360 2007-06-18  Jim Meyering  <jim@meyering.net>
8361
8362         New module: mreadlink-with-size.
8363         * MODULES.html.sh: Add mreadlink-with-size.
8364         * modules/mreadlink-with-size: New module
8365         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
8366         not xreadlink-with-size.
8367         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
8368
8369 2007-06-16  Bruno Haible  <bruno@clisp.org>
8370
8371         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
8372         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
8373         Reported by Gary V. Vaughan <gary@gnu.org>.
8374
8375 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
8376
8377         Revamp lchown so that it lives in unistd.h where it belongs.
8378         * lib/lchown.h: Remove.
8379         * lib/dirchownmod.c: Don't include lib/lchown.h.
8380         * lib/fchownat.c: Likewise.
8381         * lib/openat.c: Likewise.
8382         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
8383         does not follow symlinks.
8384         (EOPNOTSUPP): Define if not defined.
8385         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
8386         is defined to 0.
8387         (lchown): New decl.
8388         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
8389         Do not check for lchown decl.
8390         Set REPLACE_LCHOWN.
8391         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
8392         REPLACE_LCHOWN.
8393         * modules/chown: Make it clear it follows symlinks.
8394         * modules/lchown: Make it clear it doesn't follow symlinks.
8395         (Files): Remove lib/lchown.h
8396         (Depends-on): Add unistd.
8397         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
8398         (Include): Include <unistd.h>, not "lchown.h".
8399         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
8400         REPLACE_LCHOWN.
8401
8402 2007-06-15  Jim Meyering  <jim@meyering.net>
8403
8404         Change license (GPL to LGPL) of fsusage and dependents.
8405         * modules/fsusage (License): Change to LGPL.
8406         * modules/full-read (License): Likewise.
8407         * modules/full-write (License): Likewise.
8408         * modules/safe-read (License): Likewise.
8409         * modules/safe-write (License): Likewise.
8410
8411 2007-06-14  Ben Pfaff  <blp@gnu.org>
8412
8413         Missing part of allocsa -> malloca transition.
8414         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
8415         gl_MALLOCA.
8416
8417 2007-06-12  Bruno Haible  <bruno@clisp.org>
8418
8419         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
8420         to ia64, x86_64, i386.
8421         Reported by Eric Blake.
8422
8423 2007-06-12  Bruno Haible  <bruno@clisp.org>
8424
8425         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
8426         cross-compiling to x86_64.
8427
8428 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
8429
8430         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
8431         glitch reported by Ralf Wildenhues in
8432         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
8433
8434         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
8435         Vin Shelton.
8436
8437 2007-06-11  Bruno Haible  <bruno@clisp.org>
8438
8439         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
8440         replacement string.
8441         Reported by Eric Blake.
8442
8443 2007-06-10  Bruno Haible  <bruno@clisp.org>
8444
8445         Prepare vasnprintf code for use with Unicode strings.
8446         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
8447         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
8448         TYPE_U32_STRING.
8449         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
8450         a_u32_string variants.
8451         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
8452         * lib/printf-args.c: Don't include config.h and the specification
8453         header if PRINTF_FETCHARGS is already defined.
8454         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
8455         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
8456         TYPE_U16_STRING, TYPE_U32_STRING.
8457         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
8458         u16_directive, u16_directives, u32_directive, u32_directives): New
8459         types.
8460         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
8461         New declarations.
8462         * lib/printf-parse.c: Don't include config.h and the specification
8463         header if PRINTF_PARSE is already defined. Eliminate the set of
8464         parameters for WIDE_CHAR_VERSION; the user of this file must provide
8465         them now. Include c-ctype.h.
8466         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
8467         directive and CHAR_T_ONLY_ASCII.
8468         * lib/vasnprintf.c: Don't include config.h and the specification header
8469         if VASNPRINTF is already defined.
8470         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
8471         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
8472         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
8473         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
8474         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
8475         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
8476         code accordingly.
8477         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
8478         pad_ourselves also in this case, with the 'c' and 's' directives, and
8479         with a different notion of "width".
8480         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
8481
8482 2007-06-10  Bruno Haible  <bruno@clisp.org>
8483
8484         * modules/unistr/u32-mbsnlen: New file.
8485         * lib/unistr/u32-mbsnlen.c: New file.
8486
8487         * modules/unistr/u16-mbsnlen: New file.
8488         * lib/unistr/u16-mbsnlen.c: New file.
8489
8490         * modules/unistr/u8-mbsnlen: New file.
8491         * lib/unistr/u8-mbsnlen.c: New file.
8492
8493         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
8494         declarations.
8495
8496 2007-06-10  Bruno Haible  <bruno@clisp.org>
8497
8498         * lib/string_.h (mbsnlen): New declaration.
8499         * lib/mbsnlen.c: New file.
8500         * m4/mbsnlen.m4: New file.
8501         * modules/mbsnlen: New file.
8502         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
8503         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
8504         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
8505
8506 2007-06-10  Bruno Haible  <bruno@clisp.org>
8507
8508         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
8509
8510 2007-06-10  Bruno Haible  <bruno@clisp.org>
8511
8512         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
8513         * lib/mbuiter.h: Likewise.
8514
8515 2007-06-10  Bruno Haible  <bruno@clisp.org>
8516
8517         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
8518         declaration.
8519
8520 2007-06-10  Karl Berry  <karl@gnu.org>
8521
8522         * config/srclist.txt: remove gettext entries, Bruno prefers
8523         to update individually.
8524
8525 2007-06-10  Bruno Haible  <bruno@clisp.org>
8526
8527         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
8528         'maxlen'. Ensure only length + width bytes are allocated, not
8529         length + 1 + width.
8530
8531 2007-06-09  Bruno Haible  <bruno@clisp.org>
8532
8533         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
8534         (CHAR_T): Remove macro.
8535         (VASNPRINTF): Update.
8536
8537 2007-06-09  Bruno Haible  <bruno@clisp.org>
8538
8539         * MODULES.html.sh (Unicode string functions): Add the new modules.
8540
8541         * modules/uniconv/u32-conv-to-enc: New file.
8542         * lib/uniconv/u32-conv-to-enc.c: New file.
8543         * modules/uniconv/u32-conv-to-enc-tests: New file.
8544         * tests/uniconv/test-u32-conv-to-enc.c: New file.
8545
8546         * modules/uniconv/u16-conv-to-enc: New file.
8547         * lib/uniconv/u16-conv-to-enc.c: New file.
8548         * lib/uniconv/u-conv-to-enc.h: New file.
8549         * modules/uniconv/u16-conv-to-enc-tests: New file.
8550         * tests/uniconv/test-u16-conv-to-enc.c: New file.
8551
8552         * modules/uniconv/u8-conv-to-enc: New file.
8553         * lib/uniconv/u8-conv-to-enc.c: New file.
8554         * modules/uniconv/u8-conv-to-enc-tests: New file.
8555         * tests/uniconv/test-u8-conv-to-enc.c: New file.
8556
8557         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
8558         u32_conv_to_encoding): New declarations.
8559
8560 2007-06-09  Bruno Haible  <bruno@clisp.org>
8561
8562         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
8563
8564 2007-06-09  Bruno Haible  <bruno@clisp.org>
8565
8566         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
8567         * modules/malloca: Renamed from modules/allocsa, updated.
8568         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
8569         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
8570         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
8571         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
8572         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
8573         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
8574         * modules/xmalloca: Renamed from modules/xallocsa, updated.
8575         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
8576         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
8577         * modules/c-strcasestr (Depends-on): Update.
8578         * lib/c-strcasestr.c: Update.
8579         * modules/c-strstr (Depends-on): Update.
8580         * lib/c-strstr.c: Update.
8581         * modules/canonicalize-lgpl (Depends-on): Update.
8582         * lib/canonicalize-lgpl.c: Update.
8583         * modules/clean-temp (Depends-on): Update.
8584         * lib/clean-temp.c: Update.
8585         * modules/csharpcomp (Depends-on): Update.
8586         * lib/csharpcomp.c: Update.
8587         * modules/csharpexec (Depends-on): Update.
8588         * lib/csharpexec.c: Update.
8589         * modules/javacomp (Depends-on): Update.
8590         * lib/javacomp.c: Update.
8591         * modules/javaexec (Depends-on): Update.
8592         * lib/javaexec.c: Update.
8593         * modules/mbscasestr (Depends-on): Update.
8594         * lib/mbscasestr.c: Update.
8595         * modules/mbsstr (Depends-on): Update.
8596         * lib/mbsstr.c: Update.
8597         * modules/setenv (Depends-on): Update.
8598         * lib/setenv.c: Update.
8599         * modules/strcasestr (Depends-on): Update.
8600         * lib/strcasestr.c: Update.
8601         * modules/striconveha (Depends-on): Update.
8602         * lib/striconveha.c: Update.
8603         * modules/relocatable-prog-wrapper (Files): Update.
8604         * lib/relocwrapper.c: Update.
8605         * build-aux/install-reloc: Update.
8606         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
8607
8608 2007-06-08  Bruno Haible  <bruno@clisp.org>
8609
8610         Port to uClibc.
8611         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
8612         * lib/fpurge.c (fpurge): Likewise.
8613         * lib/freading.c (freading): Likewise.
8614         * lib/fseeko.c (rpl_fseeko): Likewise.
8615         * lib/fseterr.c (fseterr): Likewise.
8616         * lib/fwriting.c (fwriting): Likewise.
8617         * tests/test-fflush.c (main): Avoid a failure on uClibc.
8618
8619 2007-06-08  Bruno Haible  <bruno@clisp.org>
8620
8621         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
8622         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
8623         * modules/gettext (Files): Add m4/intlmacosx.m4.
8624
8625 2007-06-07  Bruno Haible  <bruno@clisp.org>
8626
8627         * modules/localename-tests: New file.
8628         * tests/test-localename.c: New file.
8629
8630         New module 'localename'.
8631         * lib/localename.h: New file.
8632         * lib/localename.c: New file, from GNU gettext.
8633         * m4/localename.m4: New file.
8634         * modules/localename: New file.
8635
8636 2007-06-07  Bruno Haible  <bruno@clisp.org>
8637
8638         Work around the lack of <wchar.h> on some builds of uClibc.
8639         * doc/headers/wchar.texi: Update.
8640         * lib/wchar_.h: Include <wchar.h> only if it exists.
8641         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
8642         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
8643         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
8644         doesn't exist.
8645         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
8646         * modules/mbfile (Depends-on): Add wchar.
8647         * modules/mbiter (Depends-on): Likewise.
8648         * modules/mbuiter (Depends-on): Likewise.
8649         Reported by Simon Josefsson.
8650
8651 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
8652
8653         Work around problem reported by Steven M. Schweda in
8654         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
8655         Tru64 5.1B with the Compaq compiler environment installed declares
8656         an 'isblank' function but does not define it in the C library.
8657         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
8658         * lib/regex_internal.h (isblank): Likewise.
8659         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
8660         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
8661
8662 2007-06-05  Bruno Haible  <bruno@clisp.org>
8663
8664         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
8665         ia64.
8666         * modules/printf-safe: New file.
8667         * modules/fprintf-posix (Depends-on): Add printf-safe.
8668         * modules/printf-posix (Depends-on): Likewise.
8669         * modules/snprintf-posix (Depends-on): Likewise.
8670         * modules/sprintf-posix (Depends-on): Likewise.
8671         * modules/vasnprintf-posix (Depends-on): Likewise.
8672         * modules/vasprintf-posix (Depends-on): Likewise.
8673         * modules/vfprintf-posix (Depends-on): Likewise.
8674         * modules/vprintf-posix (Depends-on): Likewise.
8675         * modules/vsnprintf-posix (Depends-on): Likewise.
8676         * modules/vsprintf-posix (Depends-on): Likewise.
8677         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
8678         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
8679         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
8680         "no" on i386, x86_64, ia64.
8681         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
8682         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
8683         on i386, x86_64, ia64.
8684         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
8685         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
8686         on i386, x86_64, ia64.
8687         * tests/test-vasnprintf-posix.c: Include float.h.
8688         (LDBL80_WORDS): New macro.
8689         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
8690         on i386, x86_64, ia64.
8691         * tests/test-vasprintf-posix.c: Include float.h.
8692         (LDBL80_WORDS): New macro.
8693         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
8694         on i386, x86_64, ia64.
8695         * tests/test-snprintf-posix.c: Include float.h.
8696         * tests/test-sprintf-posix.c: Likewise.
8697         * tests/test-vsnprintf-posix.c: Likewise.
8698         * tests/test-vsprintf-posix.c: Likewise.
8699
8700 2007-06-05  Bruno Haible  <bruno@clisp.org>
8701
8702         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
8703         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
8704         non-IEEE numbers on i386, x86_64, ia64.
8705         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
8706         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
8707         * tests/test-isnanl.h: Include float.h.
8708         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
8709
8710 2007-06-05  Bruno Haible  <bruno@clisp.org>
8711
8712         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
8713         also the %a / %A. Handle the %a / %A code before this extra handling.
8714
8715 2007-06-05  Bruno Haible  <bruno@clisp.org>
8716
8717         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
8718         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
8719
8720 2007-06-05  Bruno Haible  <bruno@clisp.org>
8721
8722         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
8723         typo in variable name.
8724
8725 2007-06-05  Eric Blake  <ebb9@byu.net>
8726
8727         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
8728         Reported by Simon Josefsson.
8729
8730 2007-06-04  Bruno Haible  <bruno@clisp.org>
8731
8732         Avoid test failures on some PowerPC platforms.
8733         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
8734         Define differently for PowerPC.
8735         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
8736         Reported by Gary V. Vaughan <gary@gnu.org>.
8737
8738 2007-06-02  Bruno Haible  <bruno@clisp.org>
8739
8740         Fix test-stdint failure on FreeBSD/ia64.
8741         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
8742         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
8743         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
8744         * doc/headers/stdint.texi: Update.
8745
8746 2007-06-01  Bruno Haible  <bruno@clisp.org>
8747
8748         * tests/test-binary-io.c (main): Pass a third argument to open().
8749         Reported by Gary V. Vaughan <gary@gnu.org>.
8750
8751 2007-06-01  Bruno Haible  <bruno@clisp.org>
8752
8753         * doc/functions/frexpl.texi: Update for mingw.
8754
8755 2007-06-01  Bruno Haible  <bruno@clisp.org>
8756
8757         * tests/test-lseek.c (main): Disable test of errno for invalid third
8758         argument.
8759         * doc/functions/lseek.texi: Update.
8760         Reported by Gary V. Vaughan <gary@gnu.org>.
8761
8762 2007-05-28  Bruno Haible  <bruno@clisp.org>
8763
8764         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
8765
8766 2007-05-31  Eric Blake  <ebb9@byu.net>
8767
8768         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
8769         cross compiling.
8770
8771 2007-05-30  Eric Blake  <ebb9@byu.net>
8772         and Bruno Haible  <bruno@clisp.org>
8773
8774         Work around mingw test failures exposed by m4-1.4.9b.
8775         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
8776         * tests/test-unistd.c: Disable uid_t and git_t tests for the
8777         moment.
8778
8779 2007-05-30  Bruno Haible  <bruno@clisp.org>
8780
8781         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
8782         assuming that they are closed. Needed on HP-UX 11.
8783
8784 2007-05-29  Bruno Haible  <bruno@clisp.org>
8785
8786         Fix a problem with #include_next.
8787         * lib/dirent_.h: Split the double-inclusion guard.
8788         * lib/fcntl_.h: Likewise.
8789         * lib/float_.h: Likewise.
8790         * lib/iconv_.h: Likewise.
8791         * lib/inttypes_.h: Likewise.
8792         * lib/locale_.h: Likewise.
8793         * lib/math_.h: Likewise.
8794         * lib/netinet_in_.h: Likewise.
8795         * lib/search_.h: Likewise.
8796         * lib/signal_.h: Likewise.
8797         * lib/stdint_.h: Likewise.
8798         * lib/stdio_.h: Likewise.
8799         * lib/stdlib_.h: Likewise.
8800         * lib/string_.h: Likewise.
8801         * lib/sys_select_.h: Likewise.
8802         * lib/sys_socket_.h: Likewise.
8803         * lib/sys_stat_.h: Likewise.
8804         * lib/sys_time_.h: Likewise.
8805         * lib/sysexits_.h: Likewise.
8806         * lib/time_.h: Likewise.
8807         * lib/unistd_.h: Likewise.
8808         * lib/wchar_.h: Likewise.
8809         * lib/wctype_.h: Likewise.
8810
8811 2007-05-29  Bruno Haible  <bruno@clisp.org>
8812
8813         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
8814         for the moment.
8815
8816 2007-05-29  Bruno Haible  <bruno@clisp.org>
8817
8818         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
8819         invocation.
8820         Reported by Eric Blake.
8821
8822 2007-05-29  Bruno Haible  <bruno@clisp.org>
8823
8824         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
8825         compiling case.
8826
8827 2007-05-29  Eric Blake  <ebb9@byu.net>
8828             Bruno Haible  <bruno@clisp.org>
8829
8830         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
8831         cross compiles.
8832
8833 2007-05-28  Eric Blake  <ebb9@byu.net>
8834
8835         * modules/closein-tests (test_closein_LDADD): Support test on
8836         cygwin with libtool.
8837
8838 2007-05-28  Bruno Haible  <bruno@clisp.org>
8839
8840         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
8841         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
8842         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
8843         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
8844         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
8845         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
8846         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
8847         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
8848         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
8849
8850 2007-05-28  Eric Blake  <ebb9@byu.net>
8851
8852         Unconditionally include <config.h> in unit tests.
8853         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
8854         * tests/test-allocsa.c, tests/test-arcfour.c,
8855         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
8856         tests/test-array_list.c, tests/test-array_oset.c,
8857         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
8858         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
8859         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
8860         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
8861         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
8862         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
8863         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
8864         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
8865         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
8866         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
8867         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
8868         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
8869         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
8870         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
8871         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
8872         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
8873         test-md5.c, test-memmem.c, test-printf-posix.c,
8874         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
8875         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
8876         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
8877         test-strcasestr.c, test-striconv.c, test-striconveh.c,
8878         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
8879         test-vasnprintf-posix2.c, test-vasnprintf.c,
8880         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
8881         test-vfprintf-posix.c, test-vprintf-posix.c,
8882         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
8883         test-xvasprintf.c: Likewise.
8884
8885 2007-05-28  Bruno Haible  <bruno@clisp.org>
8886
8887         * gnulib-tool (func_import): Remember the --with-tests command-line
8888         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
8889         Reported by Eric Blake.
8890
8891 2007-05-28  Bruno Haible  <bruno@clisp.org>
8892
8893         * modules/ftell-tests: New file.
8894         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
8895         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
8896
8897         * lib/ftell.c: New file.
8898         * modules/ftell: New file.
8899         * m4/ftell.m4: New file.
8900         * doc/functions/ftell.texi: Update.
8901         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
8902         REPLACE_FTELL.
8903         * lib/stdio_.h (rpl_ftell): New declaration.
8904         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
8905         REPLACE_FTELL.
8906
8907 2007-05-28  Eric Blake  <ebb9@byu.net>
8908
8909         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
8910
8911 2007-05-28  Bruno Haible  <bruno@clisp.org>
8912
8913         * modules/fseek-tests: New file.
8914         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
8915         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
8916
8917         * lib/fseek.c: New file.
8918         * modules/fseek: New file.
8919         * m4/fseek.m4: New file.
8920         * doc/functions/fseek.texi: Update.
8921         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
8922         REPLACE_FSEEK.
8923         * lib/stdio_.h (rpl_fseek): New declaration.
8924         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
8925         REPLACE_FSEEK.
8926
8927 2007-05-28  Bruno Haible  <bruno@clisp.org>
8928
8929         * lib/stdio_.h (fflush): More comments.
8930
8931 2007-05-28  Bruno Haible  <bruno@clisp.org>
8932
8933         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
8934         runtime test.
8935
8936 2007-05-28  Eric Blake  <ebb9@byu.net>
8937
8938         Improve lseek module.
8939         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
8940         * lib/unistd_.h (lseek): Scale back link warning message.
8941         * tests/test-lseek.c: Beef up test.
8942         * tests/test-lseek.sh: Exercise more facets of lseek.
8943         Reported by Bruno Haible.
8944
8945 2007-05-28  Bruno Haible  <bruno@clisp.org>
8946
8947         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
8948         to define.
8949
8950 2007-05-27  Bruno Haible  <bruno@clisp.org>
8951
8952         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
8953
8954 2007-05-27  Bruno Haible  <bruno@clisp.org>
8955
8956         * modules/openmp: New file.
8957         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
8958         Noah Misch.
8959
8960 2007-05-26  Bruno Haible  <bruno@clisp.org>
8961
8962         * modules/chdir-long (Depends-on): Add fchdir.
8963         * modules/chdir-safer (Depends-on): Likewise.
8964         * modules/fts (Depends-on): Likewise.
8965         * modules/fts-lgpl (Depends-on): Likewise.
8966         * modules/openat (Depends-on): Likewise.
8967         * modules/savewd (Depends-on): Likewise.
8968
8969 2007-05-24  Eric Blake  <ebb9@byu.net>
8970
8971         Fix lseek on mingw.
8972         * modules/lseek: New module.
8973         * m4/lseek.m4: New file.
8974         * lib/lseek.c: New file.
8975         * modules/lseek-tests: New file.
8976         * tests/test-lseek.c: New file.
8977         * tests/test-lseek.sh: New file.
8978         * MODULES.html.sh: Document lseek module.
8979         * modules/fflush (Depends-on): Add lseek, fseeko.
8980         * modules/fseeko (Depends-on): Likewise.
8981         * modules/ftello (Depends-on): Likewise.
8982         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
8983         broken.
8984         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
8985         broken.
8986         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
8987         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
8988         * lib/ftello.c (rpl_ftello): Likewise.
8989         * tests/test-fseeko.c (main): Test this.
8990         * tests/test-fseeko.sh: Likewise.
8991         * tests/test-ftello.c (main): Likewise.
8992         * tests/test-ftello.sh: Likewise.
8993         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
8994         implies replacing fseek.
8995         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
8996         HAVE_FTELLO.
8997         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
8998         * modules/unistd (Makefile.am): Likewise.
8999         * lib/unistd_.h (lseek): Declare a replacement.
9000         * doc/functions/lseek.texi (lseek): Document this fix.
9001         * doc/functions/fseek.texi (fseek): Likewise.
9002         * doc/functions/ftell.texi (ftell): Likewise.
9003
9004 2007-05-24  Bruno Haible  <bruno@clisp.org>
9005
9006         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
9007         in the printed representation of a NaN.
9008         * tests/test-vasprintf-posix.c (test_function): Likewise.
9009         * tests/test-snprintf-posix.h (test_function): Likewise.
9010         * tests/test-sprintf-posix.h (test_function): Likewise.
9011         Reported by Eric Blake.
9012
9013 2007-05-23  Eric Blake  <ebb9@byu.net>
9014
9015         Fix fseeko/ftello on cygwin 1.5.24.
9016         * doc/functions/fseeko.texi (fseeko): Document the fix.
9017         * doc/functions/ftello.texi (ftello): Document the fix.
9018         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
9019         * doc/functions/stdout.text (stdout): New file.
9020         * doc/functions/stderr.text (stderr): New file.
9021         * doc/gnulib.texi (Function Substitutes): Use new files.
9022         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
9023         prior to 1.7.0.
9024         * tests/test-ftello.c (main): Likewise for ftello.
9025         * tests/test-fseeko.sh: New file.
9026         * tests/test-ftello.sh: New file.
9027         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
9028         with seekable stdin.
9029         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
9030         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
9031         (gl_REPLACE_FSEEKO): New macro.
9032         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
9033         * modules/fseeko (Files): Distribute fseeko.c.
9034         * modules/ftello (Files): Distribute ftello.c.
9035         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
9036         mode.
9037         * lib/ftello.c (rpl_ftello): New file.
9038         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
9039         fseeko, ftello.
9040         (gl_STDIN_LARGE_OFFSET): New macro.
9041         * modules/stdio (Makefile.am): Perform the replacement.
9042         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
9043
9044 2007-05-23  Bruno Haible  <bruno@clisp.org>
9045
9046         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
9047         GNULIB_POSIXCHECK is defined.
9048
9049 2007-05-21  Bruno Haible  <bruno@clisp.org>
9050
9051         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
9052         Check also the output for NaN arguments. When cross-compiling, guess
9053         no on IRIX.
9054         * lib/vasnprintf.c: Update comments.
9055         * tests/test-vasnprintf-posix.c (strisnan): New function.
9056         (test_function): Use it.
9057         * tests/test-vasprintf-posix.c (strisnan): New function.
9058         (test_function): Use it.
9059         * tests/test-snprintf-posix.h (strisnan): New function.
9060         (test_function): Use it.
9061         * tests/test-sprintf-posix.h (strisnan): New function.
9062         (test_function): Use it.
9063         Reported by Eric Blake.
9064
9065 2007-05-20  Bruno Haible  <bruno@clisp.org>
9066
9067         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
9068         numbers that fails on BeOS.
9069         * doc/functions/frexpl.texi: Update.
9070
9071 2007-05-20  Jim Meyering  <jim@meyering.net>
9072
9073         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
9074         forced upon us by glibc-2.6.
9075
9076 2007-05-20  Bruno Haible  <bruno@clisp.org>
9077
9078         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
9079         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
9080         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
9081         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
9082         NEED_PRINTF_INFINITE.
9083         (is_infinitel): New function.
9084         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
9085         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
9086         gl_PREREQ_VASNPRINTF_INFINITE.
9087         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
9088         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
9089         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
9090         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
9091         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
9092         gl_PREREQ_VASNPRINTF_INFINITE.
9093         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
9094         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
9095         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
9096         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
9097         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
9098         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
9099         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
9100         * doc/functions/fprintf.texi: Update.
9101         * doc/functions/printf.texi: Update.
9102         * doc/functions/snprintf.texi: Update.
9103         * doc/functions/sprintf.texi: Update.
9104         * doc/functions/vfprintf.texi: Update.
9105         * doc/functions/vprintf.texi: Update.
9106         * doc/functions/vsnprintf.texi: Update.
9107         * doc/functions/vsprintf.texi: Update.
9108
9109 2007-05-20  Bruno Haible  <bruno@clisp.org>
9110
9111         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
9112         was not found in libc.
9113         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
9114
9115 2007-05-20  Bruno Haible  <bruno@clisp.org>
9116
9117         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
9118         printed as "-nan" instead of "nan".
9119         * tests/test-vasprintf-posix.c (test_function): Likewise.
9120         * tests/test-snprintf-posix.h (test_function): Likewise.
9121         * tests/test-sprintf-posix.h (test_function): Likewise.
9122         Needed for HP-UX 11.
9123
9124 2007-05-20  Jim Meyering  <jim@meyering.net>
9125
9126         Fix buggy test for the fchownat-deref bug.
9127         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
9128         symlink required for the run-test.  Without it, this test would
9129         always declare that fchownat doesn't work, and client code would
9130         unnecessarily use the replacement function with fixed libc.
9131         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
9132         Reported by Greg Schafer.
9133
9134 2007-05-19  Bruno Haible  <bruno@clisp.org>
9135
9136         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
9137         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
9138         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
9139         Needed for IRIX 6.5 and Solaris 2.5.1.
9140
9141 2007-05-19  Bruno Haible  <bruno@clisp.org>
9142
9143         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
9144         (test_function): Skip tests involving -0.0 on platforms where
9145         -0.0 = 0.0.
9146         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
9147         (test_function): Skip tests involving -0.0 on platforms where
9148         -0.0 = 0.0.
9149         * tests/test-snprintf-posix.h (have_minus_zero): New function.
9150         (test_function): Skip tests involving -0.0 on platforms where
9151         -0.0 = 0.0.
9152         * tests/test-sprintf-posix.h (have_minus_zero): New function.
9153         (test_function): Skip tests involving -0.0 on platforms where
9154         -0.0 = 0.0.
9155         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
9156         tests.
9157         * tests/test-printf-posix.h (test_function): Likewise.
9158         * tests/test-printf-posix.output: Remove all -0.0 related results.
9159         Needed for IRIX 6.5.
9160
9161 2007-05-19  Bruno Haible  <bruno@clisp.org>
9162
9163         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
9164         printed as "nan0x7fffffff" instead of "nan".
9165         * tests/test-vasprintf-posix.c (test_function): Likewise.
9166         * tests/test-snprintf-posix.h (test_function): Likewise.
9167         * tests/test-sprintf-posix.h (test_function): Likewise.
9168         * tests/test-fprintf-posix.h (NaN): Remove macro.
9169         (test_function): Remove all NaN related tests.
9170         * tests/test-printf-posix.h (NaN): Remove macro.
9171         (test_function): Remove all NaN related tests.
9172         * tests/test-printf-posix.output: Remove all NaN related results.
9173         Needed for IRIX 6.5.
9174
9175 2007-05-19  Bruno Haible  <bruno@clisp.org>
9176
9177         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
9178         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
9179
9180 2007-05-19  Bruno Haible  <bruno@clisp.org>
9181
9182         * lib/float_.h: New file.
9183         * m4/float_h.m4: New file.
9184         * modules/float: New file.
9185         * modules/isnanl (Dependencies): Add float.
9186         * modules/isnanl-nolibm (Dependencies): Likewise.
9187         * modules/mathl (Dependencies): Likewise.
9188         * modules/printf-frexpl (Dependencies): Likewise.
9189         * modules/signbit (Dependencies): Likewise.
9190         * modules/vasnprintf (Dependencies): Likewise.
9191         * doc/headers/float.texi: Update.
9192
9193 2007-05-19  Jim Meyering  <jim@meyering.net>
9194
9195         * lib/utimens.c (gl_futimens): Rename from futimens,
9196         now that glibc-2.6 declares futimens.
9197         * lib/utimens.h: Likewise.
9198
9199 2007-05-19  Bruno Haible  <bruno@clisp.org>
9200
9201         Avoid test failures on mingw.
9202         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
9203         * tests/test-printf-posix.sh: Likewise.
9204         * tests/test-vfprintf-posix.sh: Likewise.
9205         * tests/test-vprintf-posix.sh: Likewise.
9206
9207 2007-05-19  Bruno Haible  <bruno@clisp.org>
9208
9209         Fix *printf result for NaN, Inf, -0.0 on mingw.
9210         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
9211         * lib/vasnprintf.c: Include math.h and isnan.h.
9212         (is_infinite_or_zero): New function.
9213         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
9214         values in the %f, %F, %e, %E, %g, %G directives.
9215         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
9216         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
9217         gl_PRINTF_INFINITE and test its result. Invoke
9218         gl_PREREQ_VASNPRINTF_INFINITE.
9219         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
9220         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
9221         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
9222         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
9223         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
9224         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
9225         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
9226         * doc/functions/fprintf.texi: Update.
9227         * doc/functions/printf.texi: Update.
9228         * doc/functions/snprintf.texi: Update.
9229         * doc/functions/sprintf.texi: Update.
9230         * doc/functions/vfprintf.texi: Update.
9231         * doc/functions/vprintf.texi: Update.
9232         * doc/functions/vsnprintf.texi: Update.
9233         * doc/functions/vsprintf.texi: Update.
9234
9235 2007-05-19  Bruno Haible  <bruno@clisp.org>
9236
9237         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
9238         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
9239         Instead of multiplying with 10^k, set extra_zeroes to k.
9240         (scale10_round_long_double): Remove function.
9241
9242 2007-05-18  Bruno Haible  <bruno@clisp.org>
9243
9244         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
9245         introduced on 2007-05-06.
9246
9247 2007-05-18  Bruno Haible  <bruno@clisp.org>
9248
9249         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
9250         %g directives.
9251         * tests/test-vasprintf-posix.c (test_function): Likewise.
9252         * tests/test-snprintf-posix.h (test_function): Likewise.
9253         * tests/test-sprintf-posix.h (test_function): Likewise.
9254
9255 2007-05-18  Bruno Haible  <bruno@clisp.org>
9256
9257         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
9258         (strmatch): New function.
9259         (test_function): Test the %f directive on numbers of various exponents.
9260         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
9261         (strmatch): New function.
9262         (test_function): Test the %f directive on numbers of various exponents.
9263         * tests/test-snprintf-posix.h (strmatch): New function.
9264         (test_function): Test the %f directive on numbers of various exponents.
9265         * tests/test-sprintf-posix.h (strmatch): New function.
9266         (test_function): Test the %f directive on numbers of various exponents.
9267         * tests/test-snprintf-posix.c (SIZEOF): New macro.
9268         * tests/test-sprintf-posix.c (SIZEOF): New macro.
9269         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
9270         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
9271
9272 2007-05-18  Bruno Haible  <bruno@clisp.org>
9273
9274         Add support for 'long double' number output.
9275         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
9276         * lib/vasnprintf.c: Include math.h and float+.h.
9277         (mp_limb_t): New type.
9278         (GMP_LIMB_BITS): New macro.
9279         (mp_twolimb_t): New type.
9280         (GMP_TWOLIMB_BITS): New macro.
9281         (mpn_t): New type.
9282         (multiply, divide, convert_to_decimal, decode_long_double,
9283         scale10_round_long_double, scale10_round_decimal_long_double,
9284         floorlog10l): New functions.
9285         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
9286         for the %f, %F, %e, %E, %g, %G directives.
9287         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
9288         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
9289         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
9290         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
9291         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
9292         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
9293         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
9294         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
9295         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
9296         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
9297         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
9298         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
9299         * modules/snprintf-posix (Depends-on): Likewise.
9300         * modules/sprintf-posix (Depends-on): Likewise.
9301         * modules/vasnprintf-posix (Depends-on): Likewise.
9302         * modules/vasprintf-posix (Depends-on): Likewise.
9303         * modules/vfprintf-posix (Depends-on): Likewise.
9304         * modules/vsnprintf-posix (Depends-on): Likewise.
9305         * modules/vsprintf-posix (Depends-on): Likewise.
9306         * modules/vasnprintf (Files): Add lib/float+.h.
9307         * doc/functions/fprintf.texi: Update.
9308         * doc/functions/printf.texi: Update.
9309         * doc/functions/snprintf.texi: Update.
9310         * doc/functions/sprintf.texi: Update.
9311         * doc/functions/vfprintf.texi: Update.
9312         * doc/functions/vprintf.texi: Update.
9313         * doc/functions/vsnprintf.texi: Update.
9314         * doc/functions/vsprintf.texi: Update.
9315
9316 2007-05-18  Bruno Haible  <bruno@clisp.org>
9317
9318         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
9319
9320 2007-05-18  Bruno Haible  <bruno@clisp.org>
9321
9322         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
9323         for printing 64-bit integers. Needed for mingw.
9324
9325 2007-05-18  Bruno Haible  <bruno@clisp.org>
9326
9327         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
9328         gl_FUNC_FREXPL_WORKS.
9329         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
9330
9331 2007-05-18  Bruno Haible  <bruno@clisp.org>
9332
9333         * modules/frexpl-nolibm-tests: New file.
9334
9335         * modules/frexpl-nolibm: New file.
9336         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
9337
9338 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
9339
9340         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
9341         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
9342         GCC 4.2, which otherwise issues a lot of warnings.
9343         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
9344         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
9345         Likewise.
9346         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
9347         * modules/iconv_open (iconv.h): Likewise.
9348         * modules/locale (locale.h): Likewise.
9349         * modules/netinet_in (netinet/in.h): Likewise.
9350         * modules/sys_select (sys_select.h): Likewise.
9351         * modules/sys_socket (sys/socket.h): Likewise.
9352         * modules/sys_stat (sys/stat.h): Likewise.
9353         * modules/sysexits (sysexits.h): Likewise.
9354         * modules/unistd (unistd.h): Likewise.
9355
9356 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9357
9358         * modules/closein-tests (Makefile.am): Distribute
9359         `test-closein.sh'.
9360
9361 2007-05-17  Bruno Haible  <bruno@clisp.org>
9362
9363         * tests/test-printf-posix.output: Renamed from
9364         tests/test-fprintf-posix.out.
9365         * modules/fprintf-posix-tests: Update.
9366         * modules/printf-posix-tests: Update.
9367         * modules/vfprintf-posix-tests: Update.
9368         * modules/vprintf-posix-tests: Update.
9369         * tests/test-fprintf-posix.sh: Update.
9370         * tests/test-printf-posix.sh: Update.
9371         * tests/test-vfprintf-posix.sh: Update.
9372         * tests/test-vprintf-posix.sh: Update.
9373         Reported by Ralf Wildenhues.
9374
9375 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
9376
9377         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
9378         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
9379         GCC 4.2, which otherwise issues a lot of warnings.
9380         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
9381         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
9382         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
9383         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
9384         it should no longer be needed.
9385         * lib/string_.h: Likewise.
9386         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
9387         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
9388         * modules/inttypes (inttypes.h): Likewise.
9389         * modules/math (math.h): Likewise.
9390         * modules/search (search.h): Likewise.
9391         * modules/signal (signal.h): Likewise.
9392         * modules/stdint (stdint.h): Likewise.
9393         * modules/stdio (stdio.h): Likewise.
9394         * modules/stdlib (stdlib.h): Likewise.
9395         * modules/string (string.h): Likewise.
9396         * modules/sys_time (sys/time.h): Likewise.
9397         * modules/time (time.h): Likewise.
9398         * modules/wchar (wchar.h): Likewise.
9399         * modules/wctype (wtype.h): Likewise.
9400
9401 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
9402
9403         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
9404
9405 2007-05-13  Bruno Haible  <bruno@clisp.org>
9406
9407         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
9408         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
9409         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
9410         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
9411         (gl_PREREQ_STRTOK_R): Don't require it here.
9412
9413 2007-05-13  Bruno Haible  <bruno@clisp.org>
9414
9415         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
9416         when used in C++ mode.
9417
9418 2007-05-12  Bruno Haible  <bruno@clisp.org>
9419
9420         * lib/linebuffer.h: Tweak doc.
9421         * lib/linebuffer.c: Likewise.
9422
9423 2007-05-12  James Youngman  <jay@gnu.org>
9424
9425         * lib/linebuffer.c (readlinebuffer_delim): New function,
9426         like readlinebuffer, but use a caller-specified delimiter.
9427         (readlinebuffer): Just call readlinebuffer_delim with '\n'
9428         as the delimiter.
9429         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
9430
9431 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
9432
9433         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
9434         * modules/openat (Files): Remove openat-die.c.
9435         (Depends-on): Add openat-die.
9436         * modules/openat-die: New module.
9437
9438 2007-05-06  Bruno Haible  <bruno@clisp.org>
9439
9440         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
9441         Update with info about Cygwin.
9442         * doc/functions/fprintf.texi: Update.
9443         * doc/functions/printf.texi: Update.
9444         * doc/functions/snprintf.texi: Update.
9445         * doc/functions/sprintf.texi: Update.
9446         * doc/functions/vfprintf.texi: Update.
9447         * doc/functions/vprintf.texi: Update.
9448         * doc/functions/vsnprintf.texi: Update.
9449         * doc/functions/vsprintf.texi: Update.
9450         Reported by Eric Blake.
9451
9452 2007-05-06  Bruno Haible  <bruno@clisp.org>
9453
9454         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
9455         padding ourselves for the floating-point directives.
9456         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
9457         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
9458         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
9459         gl_PRINTF_FLAG_ZERO and test its result. Invoke
9460         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
9461         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
9462         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
9463         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
9464         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
9465         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
9466         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
9467         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
9468         * tests/test-snprintf-posix.h (test_function): Also check the width
9469         and some flags in the %f directive.
9470         * tests/test-sprintf-posix.h (test_function): Likewise.
9471         * tests/test-vasnprintf-posix.c (test_function): Likewise.
9472         * tests/test-vasprintf-posix.c (test_function): Likewise.
9473         * doc/functions/fprintf.texi: Update.
9474         * doc/functions/printf.texi: Update.
9475         * doc/functions/snprintf.texi: Update.
9476         * doc/functions/sprintf.texi: Update.
9477         * doc/functions/vfprintf.texi: Update.
9478         * doc/functions/vprintf.texi: Update.
9479         * doc/functions/vsnprintf.texi: Update.
9480         * doc/functions/vsprintf.texi: Update.
9481
9482 2007-05-06  Bruno Haible  <bruno@clisp.org>
9483
9484         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
9485         pass the ' flag character to sprintf or snprintf.
9486         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
9487         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
9488         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
9489         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
9490         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
9491         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
9492         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
9493         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
9494         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
9495         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
9496         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
9497         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
9498         * tests/test-snprintf-posix.h (test_function): Also check the grouping
9499         flag.
9500         * tests/test-sprintf-posix.h (test_function): Likewise.
9501         * tests/test-vasnprintf-posix.c (test_function): Likewise.
9502         * tests/test-vasprintf-posix.c (test_function): Likewise.
9503         * doc/functions/fprintf.texi: Update.
9504         * doc/functions/printf.texi: Update.
9505         * doc/functions/snprintf.texi: Update.
9506         * doc/functions/sprintf.texi: Update.
9507         * doc/functions/vfprintf.texi: Update.
9508         * doc/functions/vprintf.texi: Update.
9509         * doc/functions/vsnprintf.texi: Update.
9510         * doc/functions/vsprintf.texi: Update.
9511
9512 2007-05-01  Bruno Haible  <bruno@clisp.org>
9513
9514         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
9515
9516 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
9517
9518         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
9519         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
9520
9521 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
9522
9523         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
9524         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
9525         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
9526
9527 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
9528
9529         * lib/argp-help.c (struct hol_entry): New member `ord'.
9530         (HOL_ENTRY_PTRCMP): Use ord for comparison
9531         (hol_sort): Initialize ord.
9532
9533 2007-05-01  Bruno Haible  <bruno@clisp.org>
9534
9535         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
9536         Reported by Eric Blake.
9537         * doc/gnulib.texi (Function Substitutes): Update.
9538
9539 2007-05-01  Bruno Haible  <bruno@clisp.org>
9540
9541         * doc/functions.texi: Remove file, now redundant through
9542         doc/functions/*.texi.
9543
9544 2007-05-01  Bruno Haible  <bruno@clisp.org>
9545
9546         * modules/argp (Depends-on): Add sleep.
9547
9548 2007-05-01  Bruno Haible  <bruno@clisp.org>
9549
9550         * modules/sleep-tests: New file.
9551         * tests/test-sleep.c: New file.
9552
9553         * modules/sleep: New file.
9554         * lib/sleep.c: New file.
9555         * m4/sleep.m4: New file.
9556         * lib/unistd_.h (sleep): New declaration.
9557         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
9558         HAVE_SLEEP.
9559         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
9560         * doc/functions/sleep.texi: Document the sleep module.
9561
9562 2007-05-01  Bruno Haible  <bruno@clisp.org>
9563
9564         * lib/sigprocmask.h: Remove file.
9565         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
9566         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
9567         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
9568         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
9569         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
9570         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
9571         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
9572         HAVE_SIGSET_T as a shell variable.
9573         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
9574         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
9575         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
9576         (Depends-on): Add signal. Remove verify.
9577         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
9578         (Include): Mention <signal.h> instead of sigprocmask.h.
9579         * NEWS: Mention the change.
9580         * lib/fatal-signal.c: Don't include sigprocmask.h.
9581
9582 2007-05-01  Bruno Haible  <bruno@clisp.org>
9583
9584         * modules/signal: New file.
9585         * lib/signal_.h: New file.
9586         * m4/signal_h.m4: New file.
9587
9588 2007-05-01  Bruno Haible  <bruno@clisp.org>
9589
9590         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
9591         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
9592         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
9593         HAVE_WCTYPE_CTMP_BUG into wctype.h.
9594
9595 2007-05-01  Bruno Haible  <bruno@clisp.org>
9596
9597         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
9598         configure time.
9599         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
9600         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
9601         * modules/sys_stat (Makefile.am): Substitute their values into
9602         sys/stat.h.
9603
9604 2007-05-01  Bruno Haible  <bruno@clisp.org>
9605
9606         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
9607         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
9608         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
9609
9610 2007-05-01  Bruno Haible  <bruno@clisp.org>
9611
9612         * doc/header/assert.texi: Undo last change: don't mention the gnulib
9613         'assert' module here.
9614
9615 2007-05-01  Bruno Haible  <bruno@clisp.org>
9616
9617         * doc/functions/*.texi: New files.
9618         * doc/functions/google-ranking.txt: New file.
9619         * doc/gnulib.texi (Function Substitutes): New chapter.
9620         (ctime, inet_ntoa): Remove sections.
9621         * doc/ctime.texi: Remove file.
9622         * doc/inet_ntoa.texi: Remove file.
9623         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
9624         dependencies.
9625         (%.info): New rule, specifying a --reference-limit.
9626
9627 2007-05-01  Bruno Haible  <bruno@clisp.org>
9628
9629         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
9630
9631 2007-05-01  Bruno Haible  <bruno@clisp.org>
9632
9633         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
9634         the portability of 'mkdir' to mingw systems.
9635
9636 2007-05-01  Bruno Haible  <bruno@clisp.org>
9637
9638         * doc/headers/google-ranking.txt: New file.
9639
9640 2007-04-30  Eric Blake  <ebb9@byu.net>
9641
9642         Prefer fseeko to fseek.
9643         * modules/getpass (Depends-on): Add fseeko.
9644         * lib/getpass.c (getpass): Use fseeko, not fseek.
9645
9646 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
9647
9648         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
9649         assumes the sorting is stable, while most qsort implementations
9650         are not.  Use argument addresses to ensure they never compare as
9651         equal.
9652
9653         * tests/test-argp-2.sh (usage-indent test): Fix output
9654         (func_compare): Restore diff options
9655         * tests/test-argp.c: Restore #include "progname.h"
9656
9657 2007-04-29  Bruno Haible  <bruno@clisp.org>
9658
9659         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
9660         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
9661         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
9662         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
9663         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
9664         (configure.ac): Define CHECK_SNPRINTF_POSIX.
9665         (TESTS, check_PROGRAMS): Add test-snprintf.
9666         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
9667         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
9668         (TESTS, check_PROGRAMS): Add test-vsnprintf.
9669         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
9670         assertions that fail on HP-UX, OSF/1, or IRIX.
9671         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
9672
9673 2007-04-29  Bruno Haible  <bruno@clisp.org>
9674
9675         * MODULES.html.sh (posix_functions): Remove 'contents'.
9676
9677 2007-04-29  Karl Berry  <karl@gnu.org>
9678
9679         * config/srclist.txt (gendocs_template_min): new entry.
9680
9681 2007-04-29  Bruno Haible  <bruno@clisp.org>
9682
9683         Work around fpurge bug on BSD systems.
9684         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
9685         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
9686         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
9687         fpurge to rpl_fpurge if the system already has this function.
9688         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
9689         the case where the system already has this function. Correct invariants
9690         on BSD systems.
9691         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
9692         BSD systems.
9693
9694 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
9695
9696         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
9697         proposed by Sven Verdoolaege.
9698
9699         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
9700         options.
9701         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
9702         (usage and help tests): Update
9703
9704 2007-04-29  Bruno Haible  <bruno@clisp.org>
9705
9706         * tests/test-fflush.c (main): Use a file of size 17, not 10.
9707         Print more information in case of failure. Disable a test on BeOS.
9708
9709 2007-04-29  Bruno Haible  <bruno@clisp.org>
9710
9711         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
9712         This helps debugging on systems on which no gdb is available.
9713
9714 2007-04-29  Bruno Haible  <bruno@clisp.org>
9715
9716         * lib/freading.h: Improve comments.
9717         * lib/fwriting.h: Likewise.
9718         * tests/test-freading.c (main): Don't check freading immediately after
9719         repositioning. Needed for glibc.
9720
9721 2007-04-29  Bruno Haible  <bruno@clisp.org>
9722
9723         * lib/freading.c (freading): Trivial simplification.
9724
9725 2007-04-28  Bruno Haible  <bruno@clisp.org>
9726
9727         * tests/test-fwriting.c (main): Also test the interaction between
9728         fflush and fwriting.
9729         * modules/fwriting-tests (Depends-on): Add fflush.
9730
9731         * tests/test-freading.c (main): Also test the interaction between
9732         fflush and freading.
9733         * modules/freading-tests (Depends-on): Add fflush.
9734
9735 2007-04-28  Bruno Haible  <bruno@clisp.org>
9736
9737         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
9738         fseeko and ftello.
9739         Suggested by Eric Blake.
9740
9741 2007-04-28  Jim Meyering  <jim@meyering.net>
9742
9743         Avoid false-negative in gl_STDINT_H's C99 conformance test.
9744         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
9745         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
9746
9747 2007-04-27  Eric Blake  <ebb9@byu.net>
9748
9749         * doc/headers/assert.texi (assert.h): Document assert module use.
9750
9751 2007-04-27  Bruno Haible  <bruno@clisp.org>
9752
9753         * doc/headers/*.texi: New files.
9754         * doc/gnulib.texi (Header File Substitutes): New chapter.
9755         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
9756         dependencies.
9757         (standards.info ,standards.html, standards.dvi): Update dependencies.
9758         (mostlyclean, clean): New targets.
9759
9760 2007-04-27  Bruno Haible  <bruno@clisp.org>
9761
9762         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
9763         * modules/sysexits (Files, Makefile.am): Update.
9764
9765         * lib/sys_socket_.h: Renamed from lib/socket_.h.
9766         * modules/sys_socket (Files, Makefile.am): Update.
9767
9768         * lib/sys_stat_.h: Renamed from lib/stat_.h.
9769         * modules/sys_stat (Files, Makefile.am): Update.
9770
9771 2007-04-27  Eric Blake  <ebb9@byu.net>
9772
9773         * lib/freading.h: Improve comments.
9774         * lib/fwriting.h: Likewise.
9775         * lib/fflush.c: Likewise.
9776
9777         Fix closein for mingw.
9778         * modules/closein-tests: Add tests for closein.
9779         * tests/test-closein.c: New file.
9780         * tests/test-closein.sh: Likewise.
9781         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
9782         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
9783
9784 2007-04-27  Bruno Haible  <bruno@clisp.org>
9785
9786         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
9787         version is < 6.
9788         * lib/math_.h [__DECC]: Likewise.
9789         * lib/stdio_.h [__DECC]: Likewise.
9790         * lib/stdlib_.h [__DECC]: Likewise.
9791         * lib/string_.h [__DECC]: Likewise.
9792         * lib/time_.h [__DECC]: Likewise.
9793         * lib/wchar_.h [__DECC]: Likewise.
9794         * lib/wctype_.h [__DECC]: Likewise.
9795
9796 2007-04-27  Bruno Haible  <bruno@clisp.org>
9797
9798         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
9799
9800 2007-04-27  Bruno Haible  <bruno@clisp.org>
9801
9802         * lib/fflush.c: Add comments.
9803         * modules/fpurge-tests (Depends-on): Add fflush.
9804         * modules/freadable-tests (Depends-on): Likewise.
9805         * modules/fwritable-tests (Depends-on): Likewise.
9806
9807 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
9808
9809         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
9810         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
9811         Report by Bruno Haible <bruno@clisp.org>.
9812
9813 2007-04-26  Eric Blake  <ebb9@byu.net>
9814
9815         Fix fflush on mingw.
9816         * modules/fflush (Depends-on): Add freading.
9817         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
9818         but unread data.
9819
9820 2007-04-26  Eric Blake  <ebb9@byu.net>
9821         and Bruno Haible  <bruno@clisp.org>
9822
9823         Implement freading and fwriting.
9824         * lib/freading.c: New file.
9825         * lib/freading.h: Likewise.
9826         * m4/freading.m4: Likewise.
9827         * modules/freading: Likewise.
9828         * modules/freading-tests: Likewise.
9829         * tests/test-freading.c: Likewise.
9830         * lib/fwriting.c: New file.
9831         * lib/fwriting.h: Likewise.
9832         * m4/fwriting.m4: Likewise.
9833         * modules/fwriting: Likewise.
9834         * modules/fwriting-tests: Likewise.
9835         * tests/test-fwriting.c: Likewise.
9836         * MODULES.html.sh (File stream based Input/Output): Mention them.
9837
9838 2007-04-26  Bruno Haible  <bruno@clisp.org>
9839
9840         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
9841         'long' when we assume it.
9842         Suggested by Eric Blake.
9843
9844 2007-04-26  Bruno Haible  <bruno@clisp.org>
9845
9846         Ensure fseeko, ftello are declared on glibc systems.
9847         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
9848         * modules/fseeko (configure.ac-early): Likewise.
9849         * modules/ftello (configure.ac-early): Likewise.
9850         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
9851         AC_FUNC_FSEEKO for this.
9852         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
9853         (gl_CHECK_FSEEKO): Remove macro.
9854
9855 2007-04-26  Bruno Haible  <bruno@clisp.org>
9856
9857         * tests/test-fflush.c (main): Also check the ftell result after
9858         fflush and fseek/fseeko.
9859         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
9860         file descriptor position cache in the stream.
9861         * lib/fseeko.c (rpl_fseeko): Likewise.
9862
9863 2007-04-26  Bruno Haible  <bruno@clisp.org>
9864
9865         * modules/fflush-tests (Depends-on): Add fseeko.
9866
9867 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
9868             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9869
9870         * lib/argz_.h: ensure error_t definition is obtained in same
9871         mechanism system argz.h would have.
9872         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
9873         argz facilities are known bad.  Err on the side of caution if
9874         cross-compiling.
9875
9876 2007-04-25  Eric Blake  <ebb9@byu.net>
9877
9878         * lib/fpurge.c (includes): Use stdlib.h for free.
9879         * tests/test-fflush.c (main): Also test fflush-fseeko.
9880
9881 2007-04-25  Bruno Haible  <bruno@clisp.org>
9882
9883         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
9884         * lib/fseeko.c: New file.
9885         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
9886         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
9887         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
9888         gl_FUNC_FSEEKO.
9889         (gl_FUNC_FSEEKO): Invoke it.
9890         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
9891         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
9892         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
9893
9894 2007-04-25  Bruno Haible  <bruno@clisp.org>
9895
9896         * modules/fflush (Depends-on): Add ftello.
9897
9898 2007-04-25  Bruno Haible  <bruno@clisp.org>
9899
9900         * modules/ftello-tests: New file.
9901         * tests/test-ftello.c: New file.
9902
9903         * modules/ftello: New file.
9904         * m4/ftello.m4: New file.
9905         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
9906         HAVE_FTELLO.
9907         * lib/stdio_.h (ftello): New declaration.
9908         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
9909         HAVE_FTELLO.
9910
9911 2007-04-25  Bruno Haible  <bruno@clisp.org>
9912
9913         * modules/fseeko-tests: New file.
9914         * tests/test-fseeko.c: New file.
9915
9916         * modules/fseeko: New file.
9917         * m4/fseeko.m4: New file.
9918         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
9919         HAVE_FSEEKO.
9920         * lib/stdio_.h (fseeko): New declaration.
9921         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
9922         HAVE_FSEEKO.
9923
9924 2007-04-25  Bruno Haible  <bruno@clisp.org>
9925
9926         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
9927
9928 2007-04-25  Bruno Haible  <bruno@clisp.org>
9929
9930         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
9931         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
9932         * tests/test-unistd.c: Likewise.
9933         * tests/test-fcntl.c: Likewise.
9934
9935 2007-04-23  Eric Blake  <ebb9@byu.net>
9936
9937         * lib/fflush.c: Fix missing include.
9938         Reported by Bruno Haible.
9939
9940 2007-04-23  Bruno Haible  <bruno@clisp.org>
9941
9942         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
9943         Reported by Eric Blake.
9944
9945 2007-04-23  Bruno Haible  <bruno@clisp.org>
9946
9947         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
9948
9949 2007-04-23  Bruno Haible  <bruno@clisp.org>
9950
9951         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
9952
9953 2007-04-23  Bruno Haible  <bruno@clisp.org>
9954
9955         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
9956         Needed on HP-UX 11.
9957
9958 2007-04-16  Eric Blake  <ebb9@byu.net>
9959
9960         Make fflush rely on fpurge.
9961         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
9962         open coding all variants.
9963         * modules/fflush (Depends-on): Add fpurge and unistd.
9964         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
9965         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
9966
9967         Fix --with-tests compilation on cygwin.
9968         * modules/argmatch-tests (Makefile.am): List gnulib library first
9969         in LDADD.
9970         * modules/argp-tests (Makefile.am): Likewise.
9971         * modules/array-list-tests (Makefile.am): Likewise.
9972         * modules/array-oset-tests (Makefile.am): Likewise.
9973         * modules/avltree-list-tests (Makefile.am): Likewise.
9974         * modules/avltree-oset-tests (Makefile.am): Likewise.
9975         * modules/avltreehash-list-tests (Makefile.am): Likewise.
9976         * modules/carray-list-tests (Makefile.am): Likewise.
9977         * modules/dirname-tests (Makefile.am): Likewise.
9978         * modules/frexp-tests (Makefile.am): Likewise.
9979         * modules/isnanl-tests (Makefile.am): Likewise.
9980         * modules/linked-list-tests (Makefile.am): Likewise.
9981         * modules/linkedhash-list-tests (Makefile.am): Likewise.
9982         * modules/lock-tests (Makefile.am): Likewise.
9983         * modules/rbtree-list-tests (Makefile.am): Likewise.
9984         * modules/rbtree-oset-tests (Makefile.am): Likewise.
9985         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
9986         * modules/tls-tests (Makefile.am): Likewise.
9987         * modules/tsearch-tests (Makefile.am): Likewise.
9988         * modules/xvasprintf-tests (Makefile.am): Likewise.
9989
9990         Fix fpurge for cygwin.
9991         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
9992         value.
9993         * modules/fpurge-tests (Depends-on): Clean up trash.
9994
9995 2007-04-16  Simon Josefsson  <simon@josefsson.org>
9996
9997         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
9998
9999         * m4/autobuild.m4: Re-indent.
10000
10001 2007-04-13  Bruno Haible  <bruno@clisp.org>
10002
10003         * modules/fpurge-tests: New file.
10004         * tests/test-fpurge.c: New file.
10005
10006         * modules/fpurge: New file.
10007         * lib/fpurge.h: New file.
10008         * lib/fpurge.c: New file.
10009         * m4/fpurge.m4: New file.
10010
10011 2007-04-13  Bruno Haible  <bruno@clisp.org>
10012
10013         * modules/fbufmode-tests: New file.
10014         * tests/test-fbufmode.c: New file.
10015
10016         * modules/fbufmode: New file.
10017         * lib/fbufmode.h: New file.
10018         * lib/fbufmode.c: New file.
10019         * m4/fbufmode.m4: New file.
10020
10021 2007-04-13  Bruno Haible  <bruno@clisp.org>
10022
10023         * modules/fwritable-tests: New file.
10024         * tests/test-fwritable.c: New file.
10025
10026         * modules/fwritable: New file.
10027         * lib/fwritable.h: New file.
10028         * lib/fwritable.c: New file.
10029         * m4/fwritable.m4: New file.
10030
10031 2007-04-13  Bruno Haible  <bruno@clisp.org>
10032
10033         * modules/freadable-tests: New file.
10034         * tests/test-freadable.c: New file.
10035
10036         * modules/freadable: New file.
10037         * lib/freadable.h: New file.
10038         * lib/freadable.c: New file.
10039         * m4/freadable.m4: New file.
10040
10041 2007-04-13  Bruno Haible  <bruno@clisp.org>
10042
10043         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
10044         MOSTLYCLEANFILES.
10045
10046 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
10047
10048         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
10049         gzip bootstrap.conf to avoid dragging in i18n machinery.
10050         (gnulib_tool_option): Use it.
10051
10052 2007-04-13  Bruno Haible  <bruno@clisp.org>
10053
10054         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
10055         %F directives.
10056         * tests/test-vasprintf-posix.c (test_function): Likewise.
10057         * tests/test-snprintf-posix.h (test_function): Likewise.
10058         * tests/test-sprintf-posix.h (test_function): Likewise.
10059         * tests/test-fprintf-posix.h (test_function): Likewise.
10060         * tests/test-printf-posix.h (test_function): Likewise.
10061         * tests/test-fprintf-posix.out: Likewise.
10062
10063 2007-04-13  Bruno Haible  <bruno@clisp.org>
10064
10065         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
10066         * modules/tls-tests (configure.ac): Likewise.
10067         Reported by Arto C. Nirkko <anirkko@insel.ch>.
10068
10069 2007-04-13  Bruno Haible  <bruno@clisp.org>
10070
10071         * lib/tls.c (glthread_tls_get): Fix return type.
10072         Patch by Arto C. Nirkko <anirkko@insel.ch>.
10073
10074 2007-04-12  Eric Blake  <ebb9@byu.net>
10075
10076         * modules/gettime (Depends-on): Remove gettime.
10077         Reported by Dmitry V. Levin.
10078
10079 2007-04-12  Bruno Haible  <bruno@clisp.org>
10080
10081         * modules/fflush (Include): Mention <stdio.h>.
10082         * modules/strtoimax (Include): Mention <inttypes.h>.
10083         * modules/strtoumax (Include): Likewise.
10084
10085 2007-04-12  Eric Blake  <ebb9@byu.net>
10086
10087         * .cvsignore: New file.
10088         * .gitignore: Likewise.
10089
10090 2007-04-12  Bruno Haible  <bruno@clisp.org>
10091
10092         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
10093         not before, since $(LDADD) often contains libgnu.a.
10094         * modules/striconv-tests (test_striconv_LDADD): Likewise.
10095         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
10096         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
10097         Needed on Cygwin.
10098
10099 2007-04-12  Eric Blake  <ebb9@byu.net>
10100
10101         Work around glibc's failure to flush stdin on fclose.
10102         * lib/closein.c (close_stdin): Flush stdin before closing.
10103
10104         Work around glibc's failure to reset seekable stdin on exit.
10105         * modules/closein: New module.
10106         * lib/closein.c: New file.
10107         * lib/closein.h: Likewise.
10108         * m4/closein.m4: Likewise.
10109         * MODULES.html.sh (File stream based Input/Output): Document it.
10110
10111 2007-04-12  Simon Josefsson  <simon@josefsson.org>
10112
10113         * gnulib-tool: Rename generated 'autobuild' script to
10114         'do-autobuild' in --create-megatestdir output.
10115
10116         * doc/gnulib.texi (Build robot for gnulib): Fix.
10117
10118 2007-04-12  Simon Josefsson  <simon@josefsson.org>
10119
10120         * modules/sysexits (Depends-on): Add absolute-header.
10121
10122 2007-04-12  Eric Blake  <ebb9@byu.net>
10123
10124         No need to preserve errno on success.
10125         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
10126         Reported by Bruno Haible.
10127
10128 2007-04-12  Simon Josefsson  <simon@josefsson.org>
10129
10130         * MODULES.html.sh (Support for maintaining and releasing
10131         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
10132
10133 2007-04-12  Simon Josefsson  <simon@josefsson.org>
10134
10135         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
10136
10137 2007-04-12  Simon Josefsson  <simon@josefsson.org>
10138
10139         * modules/autobuild: New module.
10140
10141         * m4/autobuild.m4: New file.
10142
10143 2007-04-11  Bruno Haible  <bruno@clisp.org>
10144
10145         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
10146         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
10147         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
10148         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
10149         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
10150         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
10151         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
10152         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
10153         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
10154         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
10155         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
10156         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
10157         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
10158         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
10159         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
10160         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
10161         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
10162         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
10163         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
10164         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
10165         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
10166         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
10167         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
10168         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
10169         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
10170         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
10171         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
10172         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
10173         Reported by Eric Blake.
10174
10175 2007-04-11  Bruno Haible  <bruno@clisp.org>
10176
10177         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
10178
10179 2007-04-10  Bruno Haible  <bruno@clisp.org>
10180
10181         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
10182         for NaN and Infinity. Needed on FreeBSD 6.1.
10183         * tests/test-vasnprintf-posix.c (test_function): Undo last change
10184         regarding results for "%010a" of Infinity and NaN.
10185         * tests/test-vasprintf-posix.c (test_function): Likewise.
10186         * tests/test-snprintf-posix.h (test_function): Likewise.
10187         * tests/test-sprintf-posix.h (test_function): Likewise.
10188         * tests/test-fprintf-posix.h (test_function): Likewise.
10189         * tests/test-printf-posix.h (test_function): Likewise.
10190         * tests/test-fprintf-posix.out: Likewise.
10191
10192 2007-04-10  Bruno Haible  <bruno@clisp.org>
10193
10194         * modules/locale-tests: New file.
10195         * tests/test-locale.c: New file.
10196
10197         * modules/locale: New file.
10198         * lib/locale_.h: New file.
10199         * m4/locale_h.m4: New file.
10200
10201 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
10202             Bruno Haible  <bruno@clisp.org>
10203
10204         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
10205         be determined, test for availability of the copysignf, copysign,
10206         copysignl functions.
10207         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
10208         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
10209         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
10210
10211 2007-04-09  Eric Blake  <ebb9@byu.net>
10212
10213         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
10214         * modules/stdio (Makefile.am): Support fflush.
10215         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
10216         * modules/fflush: New file.
10217         * lib/fflush.c: Likewise.
10218         * m4/fflush.m4: Likewise.
10219         * modules/fflush-tests: New test.
10220         * tests/test-fflush.c: Likewise.
10221         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
10222
10223 2007-04-06  Bruno Haible  <bruno@clisp.org>
10224
10225         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
10226         (VASNPRINTF): Use signbit for faster determination whether to print a
10227         minus sign.
10228         * modules/vasnprintf (Files): Remove lib/float+.h.
10229         * modules/fprintf-posix (Depends-on): Add signbit.
10230         * modules/snprintf-posix (Depends-on): Likewise.
10231         * modules/sprintf-posix (Depends-on): Likewise.
10232         * modules/vasnprintf-posix (Depends-on): Likewise.
10233         * modules/vasprintf-posix (Depends-on): Likewise.
10234         * modules/vfprintf-posix (Depends-on): Likewise.
10235         * modules/vsnprintf-posix (Depends-on): Likewise.
10236         * modules/vsprintf-posix (Depends-on): Likewise.
10237
10238 2007-04-06  Bruno Haible  <bruno@clisp.org>
10239
10240         * tests/test-frexp.c (main): Test also the sign bit of zero results.
10241         * tests/test-frexpl.c (main): Likewise.
10242         * tests/test-ldexpl.c (main): Likewise.
10243         * modules/frexp-tests (Depends-on): Add signbit.
10244         * modules/frexpl-tests (Depdends-on): Likewise.
10245         * modules/ldexpl-tests (Depdends-on): Likewise.
10246
10247 2007-04-06  Bruno Haible  <bruno@clisp.org>
10248
10249         * modules/signbit-tests: New file.
10250         * tests/test-signbit.c: New file.
10251
10252         * modules/signbit: New file.
10253         * lib/signbitf.c: New file.
10254         * lib/signbitd.c: New file.
10255         * lib/signbitl.c: New file.
10256         * m4/signbit.m4: New file.
10257         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
10258         (signbit): New macro.
10259         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
10260         REPLACE_SIGNBIT.
10261         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
10262         REPLACE_FREXPL into math.h.
10263
10264 2007-04-06  Bruno Haible  <bruno@clisp.org>
10265
10266         * modules/isnanf-nolibm-tests: New file.
10267         * tests/test-isnanf.c: New file.
10268
10269         * modules/isnanf-nolibm: New file.
10270         * lib/isnanf.h: New file.
10271         * lib/isnanf.c: New file.
10272         * lib/isnan.c: Consider the USE_FLOAT macro.
10273         * m4/isnanf.m4: New file.
10274
10275 2007-04-06  Bruno Haible  <bruno@clisp.org>
10276
10277         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
10278         (Link): New section.
10279
10280         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
10281
10282 2007-04-06  Bruno Haible  <bruno@clisp.org>
10283
10284         Assume the 'long double' type.
10285         * m4/longdouble.m4: Remove file.
10286         * config/srclist.txt: Don't mention longdouble.m4.
10287         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
10288         * lib/float+.h: Likewise.
10289         * lib/frexp.c: Likewise.
10290         * lib/printf-args.h: Likewise.
10291         * lib/printf-args.c: Likewise.
10292         * lib/printf-frexp.c: Likewise.
10293         * lib/printf-parse.c: Likewise.
10294         * lib/vasnprintf.c: Likewise.
10295         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
10296         * m4/intl.m4: Likewise.
10297         * m4/isnanl.m4: Likewise.
10298         * m4/printf.m4: Likewise.
10299         * m4/printf-frexpl.m4: Likewise.
10300         * m4/vasnprintf.m4: Likewise.
10301         * modules/allocsa (Files): Remove m4/longdouble.m4.
10302         * modules/gettext (Files): Likewise.
10303         * modules/relocatable-prog-wrapper (Files): Likewise.
10304         * modules/vasnprintf (Files): Likewise.
10305         * modules/isnanl (Files): Likewise.
10306         (Include): Simplify.
10307         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
10308         (Include): Simplify.
10309         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
10310         (Include): Simplify.
10311         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
10312         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
10313         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
10314         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
10315         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
10316         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
10317         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
10318         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
10319         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
10320         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
10321         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
10322         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
10323         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
10324         * tests/test-isnanl.c: Likewise.
10325         * tests/test-snprintf-posix.h: Likewise.
10326         * tests/test-sprintf-posix.h: Likewise.
10327         * tests/test-vasnprintf-posix.c: Likewise.
10328         * tests/test-vasnprintf-posix2.c: Likewise.
10329         * tests/test-vasprintf-posix.c: Likewise.
10330
10331 2007-04-06  Bruno Haible  <bruno@clisp.org>
10332
10333         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
10334         * lib/math_.h [__DECC]: Include the overridden include file through
10335         #include_next, outside the double-inclusion guard.
10336         * lib/stdio_.h [__DECC]: Likewise.
10337         * lib/stdlib_.h [__DECC]: Likewise.
10338         * lib/string_.h [__DECC]: Likewise.
10339         * lib/time_.h [__DECC]: Likewise.
10340         * lib/wchar_.h [__DECC]: Likewise.
10341         * lib/wctype_.h [__DECC]: Likewise.
10342         * lib/inttypes_.h [__DECC]: Likewise.
10343         Reported by Albert Chin <china@thewrittenword.com> in
10344         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
10345
10346 2007-04-04  Eric Blake  <ebb9@byu.net>
10347
10348         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
10349         1.5.x.
10350
10351 2007-04-04  Bruno Haible  <bruno@clisp.org>
10352
10353         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
10354         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
10355
10356 2007-04-04  Bruno Haible  <bruno@clisp.org>
10357
10358         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
10359         results for "%010a" of Infinity and NaN.
10360         * tests/test-vasprintf-posix.c (test_function): Likewise.
10361         * tests/test-snprintf-posix.h (test_function): Likewise.
10362         * tests/test-sprintf-posix.h (test_function): Likewise.
10363         * tests/test-fprintf-posix.h (test_function): Remove these tests.
10364         * tests/test-printf-posix.h (test_function): Likewise.
10365         * tests/test-fprintf-posix.out: Update.
10366         Needed for FreeBSD 6.1.
10367
10368 2007-04-04  Bruno Haible  <bruno@clisp.org>
10369
10370         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
10371         directly used by the gnulib modules nor by gnulib-tool.
10372
10373 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
10374
10375         * DEPENDENCIES: Give overall description of version dependency
10376         desirability.  Use more-typical names for apps.
10377         Add shell, coreutils, diffutils, grep, tar, gzip.
10378
10379 2007-04-04  Simon Josefsson  <simon@josefsson.org>
10380
10381         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
10382
10383 2007-04-04  Karl Berry  <karl@gnu.org>
10384
10385         * MODULES.html.sh (func_module): missing '.
10386
10387 2007-04-03  Bruno Haible  <bruno@clisp.org>
10388
10389         * modules/argmatch-tests (Makefile.am): New variable
10390         test_argmatch_LDADD.
10391         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
10392         * modules/array-list-tests (Makefile.am): New variable
10393         test_array_list_LDADD.
10394         * modules/array-oset-tests (Makefile.am): New variable
10395         test_array_oset_LDADD.
10396         * modules/avltree-list-tests (Makefile.am): New variable
10397         test_avltree_list_LDADD.
10398         * modules/avltree-oset-tests (Makefile.am): New variable
10399         test_avltree_oset_LDADD.
10400         * modules/avltreehash-list-tests (Makefile.am): New variable
10401         test_avltreehash_list_LDADD.
10402         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
10403         test_canonicalize_lgpl_LDADD.
10404         * modules/carray-list-tests (Makefile.am): New variable
10405         test_carray_list_LDADD.
10406         * modules/dirname-tests (Makefile.am): New variable
10407         test_dirname_LDADD.
10408         * modules/linked-list-tests (Makefile.am): New variable
10409         test_linked_list_LDADD.
10410         * modules/linkedhash-list-tests (Makefile.am): New variable
10411         test_linkedhash_list_LDADD.
10412         * modules/rbtree-list-tests (Makefile.am): New variable
10413         test_rbtree_list_LDADD.
10414         * modules/rbtree-oset-tests (Makefile.am): New variable
10415         test_rbtree_oset_LDADD.
10416         * modules/rbtreehash-list-tests (Makefile.am): New variable
10417         test_rbtreehash_list_LDADD.
10418         * modules/xvasprintf-tests (Makefile.am): New variable
10419         test_xvasprintf_LDADD.
10420         Reported by Eric Blake.
10421
10422 2007-04-03  Eric Blake  <ebb9@byu.net>
10423
10424         * DEPENDENCIES: Weaken m4 requirements.
10425
10426 2007-04-03  Bruno Haible  <bruno@clisp.org>
10427
10428         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
10429         * modules/isnanl-tests (configure.ac): Likewise.
10430
10431 2007-04-03  Ben Pfaff  <blp@gnu.org>
10432
10433         * modules/iconv_open: Add $(srcdir)/ to source directory
10434         references in Makefile fragments that call gperf, to fix VPATH
10435         builds.
10436
10437 2007-04-03  Bruno Haible  <bruno@clisp.org>
10438
10439         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
10440         * lib/ldexpl.c: Undo last change.
10441
10442 2007-04-03  Bruno Haible  <bruno@clisp.org>
10443
10444         * modules/printf-frexpl (Depends-on): Undo last change.
10445         (Files): Add m4/ldexpl.m4.
10446
10447 2007-04-03  Bruno Haible  <bruno@clisp.org>
10448
10449         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
10450         * modules/isnanl (Link): New section.
10451
10452         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
10453         * modules/frexp (Link): New section.
10454
10455         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
10456         * modules/frexpl (Link): New section.
10457
10458         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
10459         * modules/ldexpl (Link): New section.
10460
10461 2007-04-03  Bruno Haible  <bruno@clisp.org>
10462
10463         * modules/TEMPLATE-EXTENDED: New file.
10464         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
10465
10466 2007-04-03  Bruno Haible  <bruno@clisp.org>
10467
10468         * DEPENDENCIES: New file.
10469         Suggested by Simon Josefsson.
10470
10471 2007-04-03  Bruno Haible  <bruno@clisp.org>
10472
10473         * doc/gnulib.texi: Escape @.
10474
10475 2007-04-03  James Youngman  <jay@gnu.org>
10476         and Paul Eggert  <eggert@cs.ucla.edu>
10477
10478         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
10479         birthtime on all systems that have birthtime, not just those which
10480         use st_birthtimensec rather than st_birthtim.  Putting zero in
10481         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
10482         that the birth time is not available for files on an NFS mount.
10483
10484 2007-04-03  Simon Josefsson  <simon@josefsson.org>
10485
10486         * modules/memxor: Move back from crypto/, suggested by Bruno.
10487         * modules/crypto/hmac-sha1: Fix memxor dependency.
10488
10489         * modules/crypto/gc: Moved from ../.
10490
10491 2007-04-02  Eric Blake  <ebb9@byu.net>
10492
10493         * lib/ldexpl.c (includes): Avoid libm.
10494
10495         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
10496
10497 2007-04-02  Bruno Haible  <bruno@clisp.org>
10498
10499         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
10500         on IRIX.
10501
10502 2007-04-02  Bruno Haible  <bruno@clisp.org>
10503
10504         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
10505         x86 or x86_64 platforms running MacOS X.
10506         Reported by Ryan Schmidt <@ryandesign.com>.
10507
10508 2007-04-02  Bruno Haible  <bruno@clisp.org>
10509
10510         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
10511         i386.
10512
10513 2007-04-01  Simon Josefsson  <simon@josefsson.org>
10514
10515         * modules/crypto/arcfour: Moved from ../.
10516         * modules/crypto/arcfour-tests: Moved from ../.
10517         * modules/crypto/arctwo: Moved from ../.
10518         * modules/crypto/arctwo-tests: Moved from ../.
10519         * modules/crypto/des: Moved from ../.
10520         * modules/crypto/des-tests: Moved from ../.
10521         * modules/crypto/gc-arcfour: Moved from ../.
10522         * modules/crypto/gc-arcfour-tests: Moved from ../.
10523         * modules/crypto/gc-arctwo: Moved from ../.
10524         * modules/crypto/gc-arctwo-tests: Moved from ../.
10525         * modules/crypto/gc-des: Moved from ../.
10526         * modules/crypto/gc-des-tests: Moved from ../.
10527         * modules/crypto/gc-hmac-md5: Moved from ../.
10528         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
10529         * modules/crypto/gc-hmac-sha1: Moved from ../.
10530         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
10531         * modules/crypto/gc-md2: Moved from ../.
10532         * modules/crypto/gc-md2-tests: Moved from ../.
10533         * modules/crypto/gc-md4: Moved from ../.
10534         * modules/crypto/gc-md4-tests: Moved from ../.
10535         * modules/crypto/gc-md5: Moved from ../.
10536         * modules/crypto/gc-md5-tests: Moved from ../.
10537         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
10538         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
10539         * modules/crypto/gc-random: Moved from ../.
10540         * modules/crypto/gc-rijndael: Moved from ../.
10541         * modules/crypto/gc-rijndael-tests: Moved from ../.
10542         * modules/crypto/gc-sha1: Moved from ../.
10543         * modules/crypto/gc-sha1-tests: Moved from ../.
10544         * modules/crypto/gc-tests: Moved from ../.
10545         * modules/crypto/hmac-md5: Moved from ../.
10546         * modules/crypto/hmac-md5-tests: Moved from ../.
10547         * modules/crypto/hmac-sha1: Moved from ../.
10548         * modules/crypto/hmac-sha1-tests: Moved from ../.
10549         * modules/crypto/md2: Moved from ../.
10550         * modules/crypto/md2-tests: Moved from ../.
10551         * modules/crypto/md4: Moved from ../.
10552         * modules/crypto/md4-tests: Moved from ../.
10553         * modules/crypto/md5: Moved from ../.
10554         * modules/crypto/md5-tests: Moved from ../.
10555         * modules/crypto/memxor: Moved from ../.
10556         * modules/crypto/rijndael: Moved from ../.
10557         * modules/crypto/rijndael-tests: Moved from ../.
10558         * modules/crypto/sha1: Moved from ../.
10559
10560 2007-03-30  James Youngman  <jay@gnu.org>
10561
10562         * tests/test-stat-time.c (prepare_test): use chmod() rather than
10563         rename() to change the ctime of a file (because ctime is unaffected
10564         by rename on jfs2 on AIX 5.1).
10565         (main): Start by doing cleanup, in case a previous run failed leaving
10566         test files behind.
10567
10568 2007-03-31  Bruno Haible  <bruno@clisp.org>
10569
10570         Support old proprietary implementations of iconv.
10571         * modules/iconv_open: New file.
10572         * lib/iconv_.h: New file.
10573         * m4/iconv_h.m4: New file.
10574         * lib/iconv_open.c: New file.
10575         * lib/iconv_open-aix.gperf: New file.
10576         * lib/iconv_open-hpux.gperf: New file.
10577         * lib/iconv_open-irix.gperf: New file.
10578         * lib/iconv_open-osf.gperf: New file.
10579         * m4/iconv_open.m4: New file.
10580         * modules/linebreak (Depends-on): Add iconv_open.
10581         * modules/striconv (Depends-on): Likewise.
10582         * modules/striconveh (Depends-on): Likewise.
10583         * modules/unicodeio (Depends-on): Likewise.
10584         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
10585         (iconv_t)(-1).
10586         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
10587         conversion if cd is (iconv_t)(-1).
10588         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
10589         is not possible.
10590
10591 2007-03-31  Bruno Haible  <bruno@clisp.org>
10592
10593         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
10594         work on Solaris either. Protect also second use of "autodetect_jp".
10595
10596 2007-03-31  Bruno Haible  <bruno@clisp.org>
10597
10598         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
10599         the function is not present.
10600
10601 2007-03-31  Bruno Haible  <bruno@clisp.org>
10602
10603         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
10604         the function is not present.
10605
10606 2007-03-31  Bruno Haible  <bruno@clisp.org>
10607
10608         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
10609         a bug in HP-UX iconv_open().
10610
10611 2007-03-31  Bruno Haible  <bruno@clisp.org>
10612
10613         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
10614         (Mathematics <math.h>): New section, add fpieee.
10615         (Input/output <stdio.h>): Add fseterr.
10616         (Mathematics <math.h>): New section, add printf-frexp.
10617         (Container data structures): Add sublist.
10618         (Core language properties): Add fpucw, inline.
10619         (Functions for greatest-width integer types <inttypes.h>): Add
10620         imaxabs, imaxdiv, inttypes.
10621         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
10622         isnanl-nolibm, ldexp.
10623         (Mathematics <math.h>): New section, add printf-frexpl.
10624         (Support for systems lacking POSIX:2001): Add fprintf-posix,
10625         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
10626         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
10627         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
10628         (Unicode string functions): Add unistr/u*-mbtoucr.
10629         (Java): Add javacomp-script, javaexec-script.
10630         (C#): Add csharpcomp-script, csharpexec-script.
10631         (Support for building libraries and executables): Add havelib,
10632         relocatable-*.
10633         (Support for maintaining and releasing projects): Renamed from
10634         'Support for maintaining and release projects'. Add announce-gen.
10635
10636 2007-03-31  Bruno Haible  <bruno@clisp.org>
10637
10638         * README: Talk primarily about git.
10639         (git and CVS): Renamed from CVS.
10640         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
10641         gnulib is available through git.
10642         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
10643
10644 2007-03-30  Bruno Haible  <bruno@clisp.org>
10645
10646         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
10647         * lib/poll_.h: Likewise.
10648         * lib/stat_.h: Likewise.
10649         * lib/sys_time_.h: Likewise.
10650         * lib/sysexit_.h: Likewise.
10651         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
10652         * lib/stdbool_.h: Likewise.
10653         * lib/byteswap_.h: Add double-inclusion guard.
10654
10655 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
10656
10657         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
10658
10659 2007-03-30  Karl Berry  <karl@gnu.org>
10660
10661         * config/srclist-update: double space after USA in the license
10662         substitution, since that's how it's usually (?) written.
10663
10664 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
10665
10666         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
10667         reported by Bruno Haible.
10668
10669 2007-03-29  Bruno Haible  <bruno@clisp.org>
10670
10671         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
10672         a bug in AIX iconv().
10673
10674 2007-03-29  Bruno Haible  <bruno@clisp.org>
10675
10676         * modules/ldexpl-tests: New file.
10677         * tests/test-ldexpl.c: New file.
10678
10679 2007-03-29  Bruno Haible  <bruno@clisp.org>
10680
10681         * lib/ldexpl.c: Include fpucw.h.
10682         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
10683         multiplication.
10684         * modules/ldexpl (Depends-on): Add fpucw.
10685
10686 2007-03-29  Bruno Haible  <bruno@clisp.org>
10687
10688         * modules/ldexpl: New file.
10689         * m4/ldexpl.m4: New file.
10690         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
10691         set.
10692         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
10693         REPLACE_LDEXPL.
10694         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
10695         REPLACE_LDEXPL.
10696         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
10697         gl_FUNC_LDEXPL_WORKS.
10698         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
10699         * modules/mathl (Files): Remove lib/ldexpl.c.
10700         (Depends-on): Add ldexpl.
10701
10702 2007-03-29  Bruno Haible  <bruno@clisp.org>
10703
10704         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
10705
10706 2007-03-29  Bruno Haible  <bruno@clisp.org>
10707
10708         * tests/test-striconveh.c (main): Don't assume that a direct conversion
10709         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
10710         and possibly also HP-UX.
10711         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
10712         work on AIX, IRIX, HP-UX, OSF/1.
10713         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
10714         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
10715         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
10716         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
10717         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
10718         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
10719
10720 2007-03-29  Bruno Haible  <bruno@clisp.org>
10721
10722         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
10723
10724 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
10725
10726         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
10727         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
10728
10729 2007-03-29  Eric Blake  <ebb9@byu.net>
10730
10731         * lib/acl-internal.h: Remove redundant include.
10732         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
10733         Cygwin when a file is locked.
10734
10735 2007-03-29  Bruno Haible  <bruno@clisp.org>
10736
10737         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
10738         file.
10739         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
10740
10741 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
10742
10743         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
10744         try to remove a parent directory if the child couldn't be removed
10745         (except for the first rmdir, which could fail because the child
10746         doesn't exist).  Problem reported by Jeff Blaine in
10747         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
10748
10749 2007-03-28  Bruno Haible  <bruno@clisp.org>
10750
10751         * lib/striconveh.c (utf8conv_carefully): New function.
10752         (mem_cd_iconveh_internal): Invoke it.
10753
10754 2007-03-28  Bruno Haible  <bruno@clisp.org>
10755
10756         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
10757         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
10758         input.
10759         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
10760         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
10761         unistr/u8-uctomb.
10762
10763 2007-03-28  Bruno Haible  <bruno@clisp.org>
10764
10765         * modules/unistr/u8-mbtoucr: New file.
10766         * lib/unistr/u8-mbtoucr.c: New file.
10767         * modules/unistr/u16-mbtoucr: New file.
10768         * lib/unistr/u16-mbtoucr.c: New file.
10769         * modules/unistr/u16-mbtoucr: New file.
10770         * lib/unistr/u16-mbtoucr.c: New file.
10771         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
10772
10773 2007-03-27  Simon Josefsson  <simon@josefsson.org>
10774             Bruno Haible  <bruno@clisp.org>
10775
10776         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
10777         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
10778         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
10779
10780         * m4/stdio_h.m4: Add stubs for vasprintf too.
10781
10782         * modules/stdio: Support vasprintf in sed command.
10783
10784         * modules/vasprintf: Depend on stdio for prototypes.  Remove
10785         vasprintf.h.  Add stdio module indicator.
10786
10787         * lib/stdio_.h: Declare asprintf and vasprintf, based on
10788         vasprintf.h.
10789
10790         * lib/vasprintf.h: File removed.
10791
10792         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
10793         * lib/vasprintf.c: Ditto.
10794         * lib/xvasprintf.c: Ditto.
10795         * tests/test-vasprintf-posix.c: Ditto.
10796         * tests/test-vasprintf.c: Ditto.
10797
10798 2007-03-27  Bruno Haible  <bruno@clisp.org>
10799
10800         Make vasnprintf multithread-safe.
10801         * lib/vasnprintf.c (decimal_point_char): New function.
10802         (VASNPRINTF): Use it.
10803         Suggested by Simon Josefsson.
10804
10805 2007-03-27  Eric Blake  <ebb9@byu.net>
10806
10807         Support sub-second birthtime on cygwin.
10808         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
10809         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
10810         (get_stat_birthtime): Also work with st_birthtim.
10811
10812 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
10813
10814         * lib/stat-time.h (USE_BIRTHTIME): Remove.
10815         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
10816         (get_stat_birthtime_ns): Do not try to use "spare" fields.
10817         (get_stat_birthtime_ns): Simplify compile-time tests.
10818         (get_stat_birthtime): Change the API to look like
10819         get_stat_mtime etc., except return a negative tv_nsec on error.
10820         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
10821         Don't check for "spare" fields.
10822         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
10823         or for struct stat.st_birthtime, as these tests aren't used.
10824         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
10825
10826 2007-03-27  Bruno Haible  <bruno@clisp.org>
10827
10828         * lib/stat-time.h: Include <sys/stat.h>.
10829
10830 2007-03-27  James Youngman  <jay@gnu.org>
10831
10832         * lib/stat-time.h (get_stat_birthtime): New function for
10833           retrieving st_birthtime as provided by UFS2 (hence *BSD).
10834         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
10835           and its variants.
10836         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
10837         * modules/stat-time-test: New file.
10838         * tests/test-stat-time.c: New test, devised by Bruno Haible.
10839
10840 2007-03-26  Bruno Haible  <bruno@clisp.org>
10841
10842         Better support of signalling NaNs.
10843         * lib/atanl.c: Include isnanl.h.
10844         (atanl): Perform test for NaN at the beginning of the function and
10845         through a call to isnanl.
10846         * lib/cosl.c: Include isnanl.h.
10847         (cosl): Perform test for NaN at the beginning of the function and
10848         through a call to isnanl.
10849         * lib/ldexpl.c: Include isnanl.h.
10850         (ldexpl): Perform test for NaN through a call to isnanl.
10851         * lib/logl.c: Include isnanl.h.
10852         (logl): Perform test for NaN at the beginning of the function and
10853         through a call to isnanl.
10854         * lib/sinl.c: Include isnanl.h.
10855         (sinl): Perform test for NaN at the beginning of the function and
10856         through a call to isnanl.
10857         * lib/sqrtl.c: Include isnanl.h.
10858         (sqrtl): Perform test for NaN at the beginning of the function and
10859         through a call to isnanl.
10860         * lib/tanl.c: Include isnanl.h.
10861         (tanl): Perform test for NaN at the beginning of the function and
10862         through a call to isnanl.
10863         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
10864         * modules/mathl (Depends-on): Add isnanl.
10865
10866 2007-03-26  Eric Blake  <ebb9@byu.net>
10867
10868         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
10869         regression in logic sense of previous patch.
10870
10871 2007-03-26  Bruno Haible  <bruno@clisp.org>
10872
10873         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
10874         unportable shell command "if ! ...".
10875         Reported by Ralf Wildenhues.
10876
10877 2007-03-25  Bruno Haible  <bruno@clisp.org>
10878
10879         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
10880         <sysexits.h> file, and only add EX_CONFIG.
10881         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
10882         absolute file name and whether it is sufficient. Substitute also
10883         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
10884         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
10885         ABSOLUTE_SYSEXITS_H into sysexits.h.
10886
10887 2007-03-25  Bruno Haible  <bruno@clisp.org>
10888
10889         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
10890         hints is NULL.
10891
10892 2007-03-25  Bruno Haible  <bruno@clisp.org>
10893
10894         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
10895         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
10896
10897 2007-03-25  Bruno Haible  <bruno@clisp.org>
10898
10899         * lib/vasnprintf.c: Include langinfo.h.
10900         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
10901         multithread-safe.
10902         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
10903         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
10904         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
10905         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
10906         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
10907         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
10908         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
10909         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
10910         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
10911         Reported by Simon Josefsson.
10912
10913 2007-03-25  Bruno Haible  <bruno@clisp.org>
10914
10915         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
10916         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
10917         * modules/vasnprintf (Depends-on): Add stdint.
10918
10919 2007-03-25  Bruno Haible  <bruno@clisp.org>
10920
10921         * modules/fpieee: New file.
10922         * m4/fpieee.m4: New file.
10923         * modules/isnan-nolibm (Depends-on): Add fpieee.
10924         * modules/isnanl-nolibm (Depends-on): Add fpieee.
10925         * modules/isnanl (Depends-on): Add fpieee.
10926
10927 2007-03-25  Bruno Haible  <bruno@clisp.org>
10928
10929         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
10930
10931 2007-03-25  Bruno Haible  <bruno@clisp.org>
10932
10933         Avoid test failures on IRIX 6.5.
10934         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
10935         (main): Use it.
10936         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
10937         macros.
10938         (main): Use them.
10939
10940 2007-03-25  Bruno Haible  <bruno@clisp.org>
10941
10942         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
10943         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
10944         exists but doesn't work.
10945         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
10946         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
10947         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
10948         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
10949
10950 2007-03-25  Bruno Haible  <bruno@clisp.org>
10951
10952         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
10953         returns inf. Needed on IRIX 6.5.
10954
10955 2007-03-25  Bruno Haible  <bruno@clisp.org>
10956
10957         * tests/test-frexpl.c: Include isnanl-nolibm.h.
10958         (main): Use isnanl instead of x != x idiom.
10959         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
10960
10961         * tests/test-frexp.c: Include isnan.h.
10962         (main): Use isnan instead of x != x idiom.
10963         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
10964
10965 2007-03-25  Bruno Haible  <bruno@clisp.org>
10966
10967         * tests/test-frexp.c (NaN): New function/macro.
10968         (main): Use it instead of 0.0 / 0.0.
10969         * tests/test-isnan.c (NaN): New function/macro.
10970         (main): Use it instead of 0.0 / 0.0.
10971         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
10972         (test_function): Use it instead of 0.0 / 0.0.
10973         * tests/test-vasprintf-posix.c (NaN): New function/macro.
10974         (test_function): Use it instead of 0.0 / 0.0.
10975         * tests/test-snprintf-posix.h (NaN): New function/macro.
10976         (test_function): Use it instead of 0.0 / 0.0.
10977         * tests/test-sprintf-posix.h (NaN): New function/macro.
10978         (test_function): Use it instead of 0.0 / 0.0.
10979         * tests/test-fprintf-posix.h (NaN): New function/macro.
10980         (test_function): Use it instead of 0.0 / 0.0.
10981         * tests/test-printf-posix.h (NaN): New function/macro.
10982         (test_function): Use it instead of 0.0 / 0.0.
10983
10984         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
10985
10986 2007-03-25  Bruno Haible  <bruno@clisp.org>
10987
10988         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
10989
10990 2007-03-25  Bruno Haible  <bruno@clisp.org>
10991
10992         * lib/regexec.c (merge_state_with_log): Make static.
10993
10994 2007-03-25  Bruno Haible  <bruno@clisp.org>
10995
10996         * lib/trigl.c (kernel_rem_pio2): Make static.
10997
10998 2007-03-25  Bruno Haible  <bruno@clisp.org>
10999
11000         * lib/sincosl.c (sincosl_table): Make static.
11001
11002 2007-03-25  Bruno Haible  <bruno@clisp.org>
11003
11004         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
11005         if the compiler does not support C99.
11006
11007 2007-03-25  Bruno Haible  <bruno@clisp.org>
11008
11009         * modules/time (Makefile.am): Ensure all rule action lines start with a
11010         tab.
11011
11012 2007-03-24  Bruno Haible  <bruno@clisp.org>
11013
11014         * modules/tsearch-tests: New file.
11015         * tests/test-tsearch.sh: New file.
11016         * tests/test-tsearch.c: New file, mostly copied from glibc.
11017
11018         * modules/search-tests: New file.
11019         * tests/test-search.c: New file.
11020
11021         * modules/search: New file.
11022         * lib/search_.h: New file, incorporating lib/tsearch.h.
11023         * m4/search_h.m4: New file.
11024         * lib/tsearch.h: Remove file.
11025         * lib/tsearch.c: Include search.h instead of tsearch.h.
11026         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
11027         HAVE_TSEARCH.
11028         * modules/tsearch (Files): Remove lib/tsearch.h.
11029         (Depends-on): Add search.
11030         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
11031         (Include): Change tsearch.h into search.h.
11032
11033 2007-03-24  Bruno Haible  <bruno@clisp.org>
11034
11035         * modules/fpucw: New file.
11036         * lib/fpucw.h: New file.
11037         * lib/frexp.c: Include fpucw.h.
11038         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
11039         (FUNC): Use them.
11040         * lib/printf-frexp.c: Include fpucw.h.
11041         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
11042         (FUNC): Use them.
11043         * lib/vasnprintf.c: Include fpucw.h.
11044         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
11045         'long double' calculations.
11046         * tests/test-frexpl.c: Include fpucw.h.
11047         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
11048         * tests/test-printf-frexpl.c: Include fpucw.h.
11049         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
11050         * modules/frexpl (Depends-on): Add fpucw.
11051         * modules/printf-frexpl (Depends-on): Likewise.
11052         * modules/fprintf-posix (Depends-on): Likewise.
11053         * modules/snprintf-posix (Depends-on): Likewise.
11054         * modules/sprintf-posix (Depends-on): Likewise.
11055         * modules/vasnprintf-posix (Depends-on): Likewise.
11056         * modules/vasprintf-posix (Depends-on): Likewise.
11057         * modules/vfprintf-posix (Depends-on): Likewise.
11058         * modules/vsnprintf-posix (Depends-on): Likewise.
11059         * modules/vsprintf-posix (Depends-on): Likewise.
11060         * modules/frexpl-tests (Depends-on): Likewise.
11061         * modules/printf-frexpl-tests (Depends-on): Likewise.
11062
11063 2007-03-24  Bruno Haible  <bruno@clisp.org>
11064
11065         * lib/float+.h: New file.
11066         * lib/isnan.c: Include float+.h.
11067         (SIZE): New macro.
11068         (FUNC): Compare only SIZE bytes of the value.
11069         * lib/vasnprintf.c: Include float+.h.
11070         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
11071         SIZEOF_LDBL or SIZEOF_DBL bytes.
11072         * modules/isnan-nolibm (Files): Add lib/float+.h.
11073         * modules/isnanl-nolibm (Files): Add lib/float+.h.
11074         * modules/isnanl (Files): Add lib/float+.h.
11075         * modules/vasnprintf (Files): Add lib/float+.h.
11076
11077 2007-03-24  Bruno Haible  <bruno@clisp.org>
11078
11079         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
11080         include isnanl-nolibm.h.
11081
11082 2007-03-24  Bruno Haible  <bruno@clisp.org>
11083
11084         * tests/test-read-file.c (main): Don't produce spurious output for
11085         expected situations. Make the test fail if it encountered unexpected
11086         results.
11087
11088 2007-03-24  Bruno Haible  <bruno@clisp.org>
11089
11090         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
11091         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
11092
11093 2007-03-24  Bruno Haible  <bruno@clisp.org>
11094
11095         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
11096
11097 2007-03-24  Bruno Haible  <bruno@clisp.org>
11098
11099         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
11100         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
11101
11102         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
11103         * modules/utf8-ucs4: Turn into a symbolic link to module
11104         unistr/u8-mbtouc.
11105
11106         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
11107         utf8-ucs4-unsafe.
11108         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
11109         unistr/u8-mbtouc-unsafe.
11110
11111         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
11112         * modules/utf16-ucs4: Turn into a symbolic link to module
11113         unistr/u16-mbtouc.
11114
11115         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
11116         utf16-ucs4-unsafe.
11117         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
11118         unistr/u16-mbtouc-unsafe.
11119
11120         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
11121         * modules/ucs4-utf8: Turn into a symbolic link to module
11122         unistr/u8-ubtomb.
11123
11124         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
11125         * modules/ucs4-utf16: Turn into a symbolic link to module
11126         unistr/u16-ubtomb.
11127
11128 2007-03-24  Bruno Haible  <bruno@clisp.org>
11129
11130         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
11131         Enable the function only if HAVE_INLINE.
11132         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
11133         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
11134         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
11135         Enable the function only if HAVE_INLINE.
11136         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
11137         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
11138         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
11139         Enable the function only if HAVE_INLINE.
11140         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
11141         Enable the function only if HAVE_INLINE.
11142         * modules/utf8-ucs4: Update.
11143         * modules/utf8-ucs4-unsafe: Update.
11144         * modules/utf16-ucs4: Update.
11145         * modules/utf16-ucs4-unsafe: Update.
11146         * modules/ucs4-utf8: Update.
11147         * modules/ucs4-utf16: Update.
11148
11149 2007-03-24  Bruno Haible  <bruno@clisp.org>
11150
11151         * lib/utf8-ucs4.h: Remove file.
11152         * lib/utf8-ucs4-unsafe.h: Remove file.
11153         * lib/utf16-ucs4.h: Remove file.
11154         * lib/utf16-ucs4-unsafe.h: Remove file.
11155         * lib/ucs4-utf8.h: Remove file.
11156         * lib/ucs4-utf16.h: Remove file.
11157         * lib/unistr.h: Include their previous contents.
11158         * m4/utf-ucs4.m4: Remove file.
11159         * m4/ucs4-utf.m4: Remove file.
11160         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
11161         (Depends-on): Add unistr/base.
11162         (configure.ac): Remove gl_UTF_UCS4.
11163         (Makefile.am): Update.
11164         (Include): Change to unistr.h.
11165         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
11166         (Depends-on): Add unistr/base.
11167         (configure.ac): Remove gl_UTF_UCS4.
11168         (Makefile.am): Update.
11169         (Include): Change to unistr.h.
11170         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
11171         (Depends-on): Add unistr/base.
11172         (configure.ac): Remove gl_UTF_UCS4.
11173         (Makefile.am): Update.
11174         (Include): Change to unistr.h.
11175         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
11176         (Depends-on): Add unistr/base.
11177         (configure.ac): Remove gl_UTF_UCS4.
11178         (Makefile.am): Update.
11179         (Include): Change to unistr.h.
11180         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
11181         (Depends-on): Add unistr/base.
11182         (configure.ac): Remove gl_UCS4_UTF.
11183         (Makefile.am): Update.
11184         (Include): Change to unistr.h.
11185         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
11186         (Depends-on): Add unistr/base.
11187         (configure.ac): Remove gl_UCS4_UTF.
11188         (Makefile.am): Update.
11189         (Include): Change to unistr.h.
11190         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
11191         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
11192         utf8-ucs4-unsafe.h.
11193         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
11194         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
11195         utf16-ucs4-unsafe.h.
11196         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
11197         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
11198         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
11199         * lib/unistr/u8-strchr.c: Likewise.
11200         * lib/unistr/u8-strrchr.c: Likewise.
11201         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
11202         * lib/unistr/u16-strchr.c: Likewise.
11203         * lib/unistr/u16-strrchr.c: Likewise.
11204         * lib/striconveh.c: Update.
11205         * lib/linebreak.c: Update.
11206
11207 2007-03-24  Bruno Haible  <bruno@clisp.org>
11208
11209         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
11210         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
11211
11212 2007-03-22  Bruno Haible  <bruno@clisp.org>
11213
11214         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
11215
11216 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
11217
11218         * MODULES.html.sh (File system functions): New module write-any-file.
11219         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
11220         * m4/write-any-file.m4: New files.
11221
11222 2007-03-23  Eric Blake  <ebb9@byu.net>
11223
11224         * gnulib-tool: Rearrange space-tab sequences, since some editors
11225         like to eat them.
11226
11227 2007-03-23  Eric Blake  <ebb9@byu.net>
11228
11229         * lib/version-etc.c (version_etc_va): Update license wording to
11230         be more concise.  Recommended by Richard Stallman.
11231
11232 2007-03-22  Bruno Haible  <bruno@clisp.org>
11233
11234         * lib/poll.c (MSG_PEEK): New fallback definition.
11235
11236 2007-03-22  Bruno Haible  <bruno@clisp.org>
11237
11238         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
11239         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
11240         (main): Update.
11241         Fixes a compilation error on BeOS.
11242
11243 2007-03-22  Bruno Haible  <bruno@clisp.org>
11244
11245         * modules/frexpl-tests: New file.
11246         * tests/test-frexpl.c: New file.
11247
11248         * modules/frexpl: New file.
11249         * m4/frexpl.m4: New file.
11250         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
11251         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
11252         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
11253         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
11254         (Depends-on): Add frexpl. Remove isnanl-nolibm.
11255         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
11256
11257 2007-03-22  Bruno Haible  <bruno@clisp.org>
11258
11259         * lib/frexpl.c: Share code with lib/frexp.c.
11260         * modules/mathl (Files): Add lib/frexp.c.
11261         (Depends-on): Add isnanl-nolibm.
11262
11263 2007-03-22  Bruno Haible  <bruno@clisp.org>
11264
11265         * modules/printf-frexp (Files): Add m4/frexp.m4.
11266         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
11267         only if the found frexp function actually works.
11268
11269 2007-03-22  Bruno Haible  <bruno@clisp.org>
11270
11271         * lib/frexp.c: Remove older implementation that uses divisions.
11272
11273 2007-03-21  Bruno Haible  <bruno@clisp.org>
11274
11275         * modules/frexp-tests: New file.
11276         * tests/test-frexp.c: New file.
11277
11278         * modules/frexp: New file.
11279         * lib/frexp.c: New file.
11280         * m4/frexp.m4: New file.
11281         * lib/math_.h (frexp): New declaration.
11282         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
11283         REPLACE_FREXP.
11284         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
11285
11286 2007-03-21  Bruno Haible  <bruno@clisp.org>
11287
11288         * modules/isnanl-tests: New file.
11289         * tests/test-isnanl.c: New file.
11290
11291         * modules/isnanl: New file.
11292         * lib/isnanl.h: New file.
11293         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
11294         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
11295         gl_FUNC_ISNANL_WORKS.
11296         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
11297         New macros.
11298
11299 2007-03-21  Bruno Haible  <bruno@clisp.org>
11300
11301         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
11302         lib/isnanl.h.
11303         (Include): Update.
11304         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
11305         * lib/vasnprintf.c: Update.
11306         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
11307         tests/test-isnanl.h, remove tests/test-isnanl.c.
11308         (Makefile.am): Update.
11309         * tests/test-isnanl-nolibm.c: New file.
11310         * tests/test-isnanl.h: New file.
11311         * tests/test-isnanl.c: Remove file.
11312
11313 2007-03-21  Jim Meyering  <jim@meyering.net>
11314
11315         When trying to open ".", treat ESTALE like EACCES.
11316         * lib/savewd.c (savewd_save): Resort to forking not just upon
11317         failure with EACCES, but also when errno is ESTALE.
11318
11319 2007-03-20  Bruno Haible  <bruno@clisp.org>
11320
11321         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
11322         Needed on AIX 5.1. Reported by Matthew Woehlke.
11323
11324 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
11325
11326         Suggestions by Bruno Haible:
11327         * lib/acl-internal.h: Include "gettext.h" rather than rolling
11328         our own.
11329         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
11330         * modules/acl (Depends-on): Add gettext.
11331
11332 2007-03-19  Bruno Haible  <bruno@clisp.org>
11333
11334         * modules/iconvme: Remove file.
11335         * lib/iconvme.h: Remove file.
11336         * lib/iconvme.c: Remove file.
11337         * m4/iconvme.m4: Remove file.
11338
11339 2007-03-19  Bruno Haible  <bruno@clisp.org>
11340
11341         * doc/relocatable-maint.texi: Break long shell script line.
11342         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
11343
11344 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
11345
11346         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
11347         handle file_has_acl.
11348         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
11349         * lib/acl.c: Move header inclusions and related macro defns into
11350         lib/acl-internal.h.
11351         (S_ISLNK): Remove defn, since that's now done for us.
11352         (file_has_acl): Move to lib/file-has-acl.c.
11353         Call acl_trivial if available.  This is the crucial part of the fix.
11354         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
11355         shared within the library.  Rewrite a bit, partly to make it compatible
11356         with the GNU coding style.
11357         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
11358         Remove unnecessary double-quotes.
11359         Don't test for acl_to_text; the build will catch that.
11360         Replace acl_entries if it doesn't exist and it is needed.
11361         Check for -lsec and acl_trivial (as used on Solaris 10).
11362         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
11363         lib/file-has-acl.c.
11364         (Depends-on): Add sys_stat, for S_ISLNK.
11365
11366 2007-03-19  Ben Pfaff  <blp@gnu.org>
11367
11368         * doc/gnulib.texi: Fix typos.
11369         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
11370
11371 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
11372
11373         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
11374         If size is zero here, buf must be zero.
11375
11376 2007-03-19  Simon Josefsson  <simon@josefsson.org>
11377
11378         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
11379         <bruno@clisp.org>.
11380
11381 2007-03-18  Bruno Haible  <bruno@clisp.org>
11382
11383         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
11384         Suggested by Eric Blake.
11385
11386 2007-03-18  Ben Pfaff  <blp@gnu.org>
11387
11388         * doc/relocatable.texi: Recommend using as prefix a directory
11389         that does not exist and will never be created.  Based on
11390         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
11391         and others.
11392
11393 2007-03-17  Bruno Haible  <bruno@clisp.org>
11394
11395         * lib/fchownat.c: Include lchown.h.
11396
11397 2007-03-17  Bruno Haible  <bruno@clisp.org>
11398
11399         Fix endless loop when the given allocated size was > INT_MAX.
11400         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
11401         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
11402         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
11403         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
11404         * lib/sprintf.c (sprintf): Likewise.
11405
11406 2007-03-17  Bruno Haible  <bruno@clisp.org>
11407
11408         * tests/test-argp-2.sh (func_compare): Output a context diff.
11409
11410 2007-03-17  Bruno Haible  <bruno@clisp.org>
11411
11412         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
11413         locale's decimal-point character.
11414
11415 2007-03-17  Bruno Haible  <bruno@clisp.org>
11416
11417         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
11418         before comparing it. Needed because on some platforms (e.g. x86) a
11419         'long double' occupies less bytes than sizeof (long double).
11420
11421 2007-03-17  Bruno Haible  <bruno@clisp.org>
11422
11423         * tests/test-crc.c (main): Make printf statements 64-bit clean.
11424         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
11425         * tests/test-getaddrinfo.c (simple): Likewise.
11426         * tests/test-read-file.c (main): Likewise.
11427
11428 2007-03-17  Bruno Haible  <bruno@clisp.org>
11429
11430         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
11431
11432 2007-03-17  Bruno Haible  <bruno@clisp.org>
11433
11434         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
11435         unused variable.
11436
11437 2007-03-17  Bruno Haible  <bruno@clisp.org>
11438
11439         * tests/test-c-strcasecmp.c: Include c-strcase.h.
11440         * tests/test-c-strncasecmp.c: Likewise.
11441
11442 2007-03-17  Bruno Haible  <bruno@clisp.org>
11443
11444         * modules/stdlib (Depends-on): Add unistd.
11445         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
11446         Needed for MacOS X 10.3.
11447
11448 2007-03-17  Bruno Haible  <bruno@clisp.org>
11449
11450         * lib/unistr/u-strdup.h: Include <stdlib.h>.
11451
11452 2007-03-17  Bruno Haible  <bruno@clisp.org>
11453
11454         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
11455
11456 2007-03-17  Bruno Haible  <bruno@clisp.org>
11457
11458         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
11459         to reflect files copied from gnulib (with or without modifications).
11460         Suggested by Jim Meyering.
11461
11462 2007-03-17  Eric Blake  <ebb9@byu.net>
11463
11464         * NEWS: Document stdlib change from 2007-02-18.
11465
11466 2007-03-17  Jim Meyering  <jim@meyering.net>
11467
11468         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
11469         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
11470         someone uses a name containing shell meta-characters.
11471         Reported by Alfred M. Szmidt.
11472
11473         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
11474
11475 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
11476
11477         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
11478         and copy gettext configuration files only if configure.ac contains
11479         a use of AM_GNU_GETTEXT_VERSION.
11480
11481 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
11482
11483         * build-aux/bootstrap (gnulib_name): New variable.
11484         (gnulib_tool_options): Use it.
11485
11486 2007-03-13  Simon Josefsson  <simon@josefsson.org>
11487
11488         * tests/test-des.c: Use new namespace.
11489
11490 2007-03-15  Bruno Haible  <bruno@clisp.org>
11491
11492         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
11493         Reported by James Youngman <jay@gnu.org>.
11494
11495 2007-03-15  Bruno Haible  <bruno@clisp.org>
11496
11497         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
11498         declared prototype. Needed with cc on OSF/1 5.1.
11499
11500 2007-03-15  Bruno Haible  <bruno@clisp.org>
11501
11502         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
11503         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
11504         (struct gl_list_implementation): Add dispose_fn argument to the
11505         'create_empty', 'create' methods.
11506         (struct gl_list_impl_base): Add field 'dispose_fn'.
11507         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
11508         argument.
11509         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
11510         dispose_fn argument.
11511         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
11512         dispose_fn on the dropped values.
11513         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
11514         dispose_fn argument.
11515         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
11516         dropped values.
11517         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
11518         (gl_tree_remove_node): Call dispose_fn on the dropped value.
11519         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
11520         (gl_tree_remove_node): Call dispose_fn on the dropped value.
11521         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
11522         argument.
11523         (gl_tree_list_free): Call dispose_fn on the dropped values.
11524         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
11525         the dropped values.
11526         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
11527         Add dispose_fn argument.
11528         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
11529         Call dispose_fn on the dropped values.
11530         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
11531         Add dispose_fn argument.
11532         (gl_sublist_create): Initialize the 'dispose_fn' field.
11533         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
11534         * tests/test-array_list.c (main): Update.
11535         * tests/test-carray_list.c (main): Update.
11536         * tests/test-avltree_list.c (main): Update.
11537         * tests/test-rbtree_list.c (main): Update.
11538         * tests/test-avltreehash_list.c (main): Update.
11539         * tests/test-rbtreehash_list.c (main): Update.
11540         * tests/test-linked_list.c (main): Update.
11541         * tests/test-linkedhash_list.c (main): Update.
11542         * tests/test-array_oset.c (main): Update.
11543
11544 2007-03-15  Bruno Haible  <bruno@clisp.org>
11545
11546         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
11547         (gl_oset_create_empty): Add dispose_fn argument.
11548         (struct gl_oset_implementation): Add dispose_fn argument to
11549         'create_empty' method.
11550         (struct gl_oset_impl_base): Add dispose_fn field.
11551         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
11552         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
11553         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
11554         values.
11555         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
11556         (gl_tree_oset_free): Call dispose_fn on the dropped values.
11557         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
11558         dropped value.
11559         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
11560         dropped value.
11561         * tests/test-array_oset.c (main): Update.
11562         * tests/test-avltree_oset.c (main): Update.
11563         * tests/test-rbtree_oset.c (main): Update.
11564         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
11565
11566 2007-03-13  Bruno Haible  <bruno@clisp.org>
11567
11568         * tests/test-stdbool.c (i): Update after last patch.
11569
11570 2007-03-12  Bruno Haible  <bruno@clisp.org>
11571
11572         * lib/quotearg.c: Include <wctype.h> early, before the definition of
11573         the iswprint macro. Needed on Solaris 2.5.1.
11574
11575 2007-03-12  Bruno Haible  <bruno@clisp.org>
11576
11577         * tests/test-printf-frexp.c (main): Declare x as volatile.
11578
11579 2007-03-12  Simon Josefsson  <simon@josefsson.org>
11580
11581         * doc/gnulib.texi (Build robot for gnulib): New section.
11582
11583 2007-03-12  Jim Meyering  <jim@meyering.net>
11584
11585         * build-aux/bootstrap: New file.
11586         * build-aux/bootstrap.conf: New file, from coreutils.
11587
11588 2007-03-11  Bruno Haible  <bruno@clisp.org>
11589
11590         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
11591
11592 2007-03-12  Simon Josefsson  <simon@josefsson.org>
11593
11594         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
11595         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
11596         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
11597
11598 2007-03-11  Bruno Haible  <bruno@clisp.org>
11599
11600         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
11601         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
11602
11603 2007-03-11  Bruno Haible  <bruno@clisp.org>
11604
11605         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
11606         formula. Needed for SunPRO C 5.0.
11607
11608 2007-03-11  Bruno Haible  <bruno@clisp.org>
11609
11610         * modules/long-options (Depends-on): Add getopt.
11611
11612 2007-03-11  Bruno Haible  <bruno@clisp.org>
11613
11614         * modules/modechange (Depends-on): Add stdbool.
11615
11616 2007-03-11  Bruno Haible  <bruno@clisp.org>
11617
11618         * modules/i-ring (Depends-on): Add stdbool.
11619
11620 2007-03-11  Bruno Haible  <bruno@clisp.org>
11621
11622         * modules/gc-des (Depends-on): Add stdbool.
11623
11624 2007-03-11  Bruno Haible  <bruno@clisp.org>
11625
11626         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
11627
11628 2007-03-11  Bruno Haible  <bruno@clisp.org>
11629
11630         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
11631
11632 2007-03-11  Bruno Haible  <bruno@clisp.org>
11633
11634         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
11635
11636 2007-03-11  Bruno Haible  <bruno@clisp.org>
11637
11638         * lib/vasnprintf.c (sprintf): Undefine.
11639
11640 2007-03-11  Bruno Haible  <bruno@clisp.org>
11641
11642         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
11643         initializers in SunPRO C and Compaq C compilers.
11644
11645 2007-03-11  Bruno Haible  <bruno@clisp.org>
11646
11647         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
11648         decrementing code ANSI C compliant.
11649
11650 2007-03-11  Bruno Haible  <bruno@clisp.org>
11651
11652         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
11653         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
11654
11655 2007-03-11  Bruno Haible  <bruno@clisp.org>
11656
11657         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
11658         <stdbool.h> substitute doesn't pass.
11659
11660 2007-03-11  Bruno Haible  <bruno@clisp.org>
11661
11662         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
11663
11664 2007-03-11  Bruno Haible  <bruno@clisp.org>
11665
11666         * gnulib-tool (func_create_megatestdir): Create also an autobuild
11667         script, for submission to autobuild.josefsson.org.
11668
11669 2007-03-10  Bruno Haible  <bruno@clisp.org>
11670
11671         * modules/canonicalize-lgpl-tests: New file.
11672         * tests/test-canonicalize-lgpl.sh: New file.
11673         * tests/test-canonicalize-lgpl.c: New file.
11674
11675         * modules/c-strcase-tests: New file.
11676         * tests/test-c-strcase.sh: New file.
11677         * tests/test-c-strcasecmp.c: New file.
11678         * tests/test-c-strncasecmp.c: New file.
11679
11680         * modules/atexit-tests: New file.
11681         * tests/test-atexit.sh: New file.
11682         * tests/test-atexit.c: New file.
11683
11684 2007-03-10  Bruno Haible  <bruno@clisp.org>
11685
11686         * tests/test-binary-io.sh: Use temporary filenames that are not so
11687         likely to clash with those of other tests (in a parallel make).
11688         * tests/test-binary-io.c: Likewise.
11689
11690 2007-03-10  Bruno Haible  <bruno@clisp.org>
11691
11692         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
11693         fallback; use #error instead.
11694         Suggested by Simon Josefsson.
11695
11696 2007-03-10  Bruno Haible  <bruno@clisp.org>
11697
11698         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
11699         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
11700         first and the last.
11701
11702 2007-03-10  Bruno Haible  <bruno@clisp.org>
11703
11704         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
11705
11706 2007-03-10  Bruno Haible  <bruno@clisp.org>
11707
11708         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
11709         "make distcheck".
11710         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
11711         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
11712         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
11713
11714 2007-03-10  Bruno Haible  <bruno@clisp.org>
11715
11716         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
11717         variable.
11718         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
11719         variable.
11720
11721 2007-03-09  Eric Blake  <ebb9@byu.net>
11722         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
11723
11724         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
11725         types are not being provided by gnulib.
11726         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
11727         types are supported.
11728
11729 2007-03-10  Bruno Haible  <bruno@clisp.org>
11730
11731         * lib/stdio_.h (__attribute__): New macro.
11732         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
11733         vsprintf): Specify __attribute__ __format__ for GCC.
11734         Suggested by Eric Blake.
11735
11736 2007-03-09  Bruno Haible  <bruno@clisp.org>
11737
11738         * modules/printf-posix-tests: New file.
11739         * tests/test-printf-posix.sh: New file.
11740         * tests/test-printf-posix.c: New file.
11741
11742         * modules/printf-posix: New file.
11743         * lib/printf.c: New file.
11744         * m4/printf-posix-rpl.m4: New file.
11745         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
11746         REPLACE_PRINTF.
11747         * lib/stdio_.h (printf): New declaration.
11748         (format, __format__, ____printf____, ____scanf____, ____strftime____,
11749         ____strfmon____): New macros.
11750         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
11751         REPLACE_PRINTF.
11752
11753 2007-03-09  Bruno Haible  <bruno@clisp.org>
11754
11755         * tests/test-vasnprintf-posix2.sh: New file.
11756         * tests/test-vasnprintf-posix2.c: New file.
11757         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
11758         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
11759         (Makefile.am): Activate test-vasnprintf-posix2.sh.
11760
11761         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
11762         a locale dependent decimal point, rather than always '.'.
11763
11764 2007-03-09  Eric Blake  <ebb9@byu.net>
11765
11766         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
11767         spite of platforms like Tandem/NSK that define it to -1.
11768
11769 2007-03-08  Bruno Haible  <bruno@clisp.org>
11770
11771         * modules/vprintf-posix-tests: New file.
11772         * tests/test-vprintf-posix.sh: New file.
11773         * tests/test-vprintf-posix.c: New file.
11774         * tests/test-printf-posix.h: New file.
11775
11776         * modules/vprintf-posix: New file.
11777         * lib/vprintf.c: New file.
11778         * m4/vprintf-posix.m4: New file.
11779         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
11780         REPLACE_VPRINTF.
11781         * lib/stdio_.h (vprintf): New declaration.
11782         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
11783         REPLACE_VPRINTF.
11784
11785 2007-03-08  Bruno Haible  <bruno@clisp.org>
11786
11787         * modules/fprintf-posix-tests: New file.
11788         * tests/test-fprintf-posix.sh: New file.
11789         * tests/test-fprintf-posix.c: New file.
11790
11791         * modules/fprintf-posix: New file.
11792         * lib/fprintf.c: New file.
11793         * m4/fprintf-posix.m4: New file.
11794         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
11795         REPLACE_FPRINTF.
11796         * lib/stdio_.h (fprintf): New declaration.
11797         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
11798         REPLACE_FPRINTF.
11799
11800 2007-03-08  Bruno Haible  <bruno@clisp.org>
11801
11802         * modules/vfprintf-posix-tests: New file.
11803         * tests/test-vfprintf-posix.sh: New file.
11804         * tests/test-vfprintf-posix.c: New file.
11805         * tests/test-fprintf-posix.h: New file.
11806         * tests/test-fprintf-posix.out: New file.
11807
11808         * modules/vfprintf-posix: New file.
11809         * lib/vfprintf.c: New file.
11810         * m4/vfprintf-posix.m4: New file.
11811         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
11812         REPLACE_VFPRINTF.
11813         * lib/stdio_.h (vfprintf): New declaration.
11814         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
11815         REPLACE_VFPRINTF.
11816
11817 2007-03-08  Bruno Haible  <bruno@clisp.org>
11818
11819         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
11820
11821 2007-03-08  Bruno Haible  <bruno@clisp.org>
11822
11823         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
11824         instead of 'expr' invocations.
11825         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
11826         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
11827         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
11828         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
11829         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
11830         Suggested by Paul Eggert.
11831
11832 2007-03-08  Bruno Haible  <bruno@clisp.org>
11833
11834         * modules/fseterr-tests: New file.
11835         * tests/test-fseterr.c: New file.
11836
11837         * modules/fseterr: New file.
11838         * lib/fseterr.h: New file.
11839         * lib/fseterr.c: New file.
11840
11841 2007-03-08  Bruno Haible  <bruno@clisp.org>
11842
11843         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
11844         * lib/getopt_.h: Likewise.
11845         * lib/mbswidth.h: Likewise.
11846         * lib/setenv.h: Likewise.
11847         * lib/vasnprintf.h: Likewise.
11848         * lib/vasprintf.h: Likewise.
11849         * lib/verror.h: Likewise.
11850         * lib/xsetenv.h: Likewise.
11851         * lib/xvasprintf.h: Likewise.
11852
11853 2007-03-08  Jim Meyering  <jim@meyering.net>
11854
11855         * users.txt: Add parted.
11856
11857         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
11858
11859 2007-03-07  Bruno Haible  <bruno@clisp.org>
11860
11861         * m4/printf.m4: Make the shell script snippets copy&pastable.
11862
11863 2007-03-02  Bruno Haible  <bruno@clisp.org>
11864
11865         * lib/netinet_in_.h: New file.
11866         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
11867         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
11868         * modules/netinet_in (Files): Add lib/netinet_in_.h.
11869         (Depends-on): Add absolute-header.
11870         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
11871         into netinet/in.h.
11872
11873 2007-03-03  Bruno Haible  <bruno@clisp.org>
11874
11875         * lib/sys_select_.h: New file.
11876         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
11877         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
11878         * modules/sys_select (Files): Add lib/sys_select_.h.
11879         (Depends-on): Add absolute-header.
11880         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
11881         into sys/select.h.
11882
11883 2007-03-02  Bruno Haible  <bruno@clisp.org>
11884
11885         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
11886         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
11887         values.
11888         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
11889         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
11890         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
11891         * modules/sys_socket (Depends-on): Add absolute-header.
11892         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
11893         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
11894         (Include): Remove requirement of inclusion of <sys/types.h>.
11895
11896 2007-03-02  Bruno Haible  <bruno@clisp.org>
11897
11898         * lib/byteswap_.h (bswap_32): Fix formula.
11899
11900 2007-03-06  Bruno Haible  <bruno@clisp.org>
11901
11902         * modules/sprintf-posix-tests: New file.
11903         * tests/test-sprintf-posix.c: New file.
11904
11905         * modules/sprintf-posix: New file.
11906         * lib/sprintf.c: New file.
11907         * m4/sprintf-posix.m4: New file.
11908         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
11909         REPLACE_SPRINTF.
11910         * lib/stdio_.h (sprintf): New declaration.
11911         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
11912         REPLACE_SPRINTF.
11913
11914 2007-03-06  Bruno Haible  <bruno@clisp.org>
11915
11916         * modules/vsprintf-posix-tests: New file.
11917         * tests/test-vsprintf-posix.c: New file.
11918         * tests/test-sprintf-posix.h: New file.
11919
11920         * modules/vsprintf-posix: New file.
11921         * lib/vsprintf.c: New file.
11922         * m4/vsprintf-posix.m4: New file.
11923         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
11924         REPLACE_VSPRINTF.
11925         * lib/stdio_.h (vsprintf): New declaration.
11926         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
11927         REPLACE_VSPRINTF.
11928
11929 2007-03-06  Bruno Haible  <bruno@clisp.org>
11930
11931         * modules/vsnprintf (Depend-on): Remove minmax.
11932
11933 2007-03-06  Bruno Haible  <bruno@clisp.org>
11934
11935         * modules/snprintf-posix-tests: New file.
11936         * tests/test-snprintf-posix.c: New file.
11937
11938         * modules/snprintf-posix: New file.
11939         * m4/snprintf-posix.m4: New file.
11940         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
11941         gl_FUNC_SNPRINTF.
11942         (gl_FUNC_SNPRINTF): Invoke it.
11943         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
11944         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
11945         is set.
11946         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
11947
11948 2007-03-06  Bruno Haible  <bruno@clisp.org>
11949
11950         * modules/vsnprintf-posix-tests: New file.
11951         * tests/test-vsnprintf-posix.c: New file.
11952         * tests/test-snprintf-posix.h: New file.
11953
11954         * modules/vsnprintf-posix: New file.
11955         * m4/vsnprintf-posix.m4: New file.
11956         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
11957         gl_FUNC_VSNPRINTF.
11958         (gl_FUNC_VSNPRINTF): Invoke it.
11959         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
11960         * lib/stdio_.h (vsnprintf): Define as a replacement if
11961         REPLACE_VSNPRINTF is set.
11962         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
11963
11964 2007-03-06  Bruno Haible  <bruno@clisp.org>
11965
11966         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
11967         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
11968
11969 2007-03-06  Bruno Haible  <bruno@clisp.org>
11970
11971         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
11972         (asinl): Declare also if HAVE_DECL_ASINL is set.
11973         (atanl): Declare also if HAVE_DECL_ATANL is set.
11974         (ceill): Declare also if HAVE_DECL_CEILL is set.
11975         (cosl): Declare also if HAVE_DECL_COSL is set.
11976         (expl): Declare also if HAVE_DECL_EXPL is set.
11977         (floorl): Declare also if HAVE_DECL_FLOORL is set.
11978         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
11979         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
11980         (logl): Declare also if HAVE_DECL_LOGL is set.
11981         (sinl): Declare also if HAVE_DECL_SINL is set.
11982         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
11983         (tanl): Declare also if HAVE_DECL_TANL is set.
11984         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
11985         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
11986         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
11987         declaration of frexpl, ldexpl.
11988         * modules/printf-frexpl (Depends-on): Add math.
11989         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
11990
11991 2007-03-05  Bruno Haible  <bruno@clisp.org>
11992
11993         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
11994         frexpl and ldexpl are declared.
11995         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
11996
11997 2007-03-05  Bruno Haible  <bruno@clisp.org>
11998
11999         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
12000         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
12001
12002 2007-03-05  Bruno Haible  <bruno@clisp.org>
12003
12004         * lib/stdio_.h: Include <stddef.h>.
12005
12006 2007-03-05  Bruno Haible  <bruno@clisp.org>
12007
12008         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
12009
12010 2007-03-05  Bruno Haible  <bruno@clisp.org>
12011
12012         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
12013         NetBSD 4, from Ralf Wildenhues.
12014
12015 2007-03-04  Bruno Haible  <bruno@clisp.org>
12016
12017         * lib/vasprintf.h: Update #if logic for the case when the functions
12018         exist but are overridden.
12019
12020 2007-03-04  Bruno Haible  <bruno@clisp.org>
12021
12022         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
12023         implementations: glibc-2.4 and MacOS X 10.3.
12024         * tests/test-vasnprintf-posix.c (test_function): Test also the case
12025         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
12026         * tests/test-vasprintf-posix.c (test_function): Likewise.
12027
12028 2007-03-04  Bruno Haible  <bruno@clisp.org>
12029
12030         * modules/vasprintf-posix-tests: New file.
12031         * tests/test-vasprintf-posix.c: New file.
12032
12033         * modules/vasprintf-posix: New file.
12034         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
12035         defined.
12036         * m4/vasprintf-posix.m4: New file.
12037         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
12038         gl_FUNC_VASPRINTF.
12039         (gl_FUNC_VASPRINTF): Invoke it.
12040         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
12041         here.
12042         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
12043
12044 2007-03-04  Bruno Haible  <bruno@clisp.org>
12045
12046         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
12047         REPLACE_GETTIMEOFDAY.
12048         * modules/sys_time (Makefile.am): Likewise.
12049         * m4/sys_time_h.m4: Likewise.
12050         * m4/gettimeofday.m4: Likewise.
12051
12052 2007-03-04  Bruno Haible  <bruno@clisp.org>
12053
12054         * modules/vasnprintf-posix-tests: New file.
12055         * tests/test-vasnprintf-posix.c: New file.
12056
12057         * modules/vasnprintf-posix: New file.
12058         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
12059         printf-frexpl.h.
12060         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
12061         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
12062         REPLACE_VASNPRINTF is defined.
12063         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
12064         gl_FUNC_VASNPRINTF.
12065         (gl_FUNC_VASNPRINTF): Invoke it.
12066         * m4/vasnprintf-posix.m4: New file.
12067         * m4/printf.m4: New file.
12068
12069 2007-03-04  Bruno Haible  <bruno@clisp.org>
12070
12071         Compile progreloc.c only if --enable-relocatable is specified.
12072         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
12073         if --enable-relocatable was specified.
12074         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
12075         lib_SOURCES.
12076
12077 2007-03-04  Jim Meyering  <jim@meyering.net>
12078
12079         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
12080         Use it consistently, rather than enumerating errno constants.
12081
12082 2007-03-04  Bruno Haible  <bruno@clisp.org>
12083
12084         * modules/xvasprintf-tests: New file.
12085         * tests/test-xvasprintf.c: New file.
12086
12087         * modules/vasprintf-tests: New file.
12088         * tests/test-vasprintf.c: New file.
12089
12090         * modules/vasnprintf-tests: New file.
12091         * tests/test-vasnprintf.c: New file.
12092
12093         * modules/vsnprintf-tests: New file.
12094         * tests/test-vsnprintf.c: New file.
12095
12096         * modules/snprintf-tests: New file.
12097         * tests/test-snprintf.c: New file.
12098
12099 2007-03-04  Bruno Haible  <bruno@clisp.org>
12100
12101         Compile relocatable.c only if --enable-relocatable is specified.
12102         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
12103         gl_RELOCATABLE_LIBRARY.
12104         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
12105         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
12106         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
12107         gl_RELOCATABLE_LIBRARY.
12108         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
12109         (Makefile.am): Remove lib_SOURCES.
12110         * modules/relocatable-lib-lgpl (configure.ac): Invoke
12111         gl_RELOCATABLE_LIBRARY.
12112         (Makefile.am): Remove lib_SOURCES.
12113         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
12114         always.
12115         * modules/relocatable-prog-wrapper (configure.ac): Invoke
12116         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
12117
12118 2007-03-04  Bruno Haible  <bruno@clisp.org>
12119
12120         * modules/argmatch-tests: New file.
12121         * tests/test-argmatch.c: New file.
12122
12123         * tests/test-allocsa.c (main): Halve the number of loop runs.
12124
12125         * modules/alloca-opt-tests: New file.
12126         * tests/test-alloca-opt.c: New file.
12127
12128 2007-03-04  Jim Meyering  <jim@meyering.net>
12129
12130         Work around difference between Linux ACLs and Solaris 10 ZFS.
12131         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
12132         for EINVAL.
12133
12134 2007-03-03  Bruno Haible  <bruno@clisp.org>
12135
12136         * modules/relocatable-prog (Depends-on): Add back progreloc's
12137         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
12138
12139 2007-03-03  Bruno Haible  <bruno@clisp.org>
12140
12141         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
12142         * modules/relocatable-lib: New file.
12143
12144 2007-03-03  Bruno Haible  <bruno@clisp.org>
12145
12146         * modules/relocatable-prog: Renamed from modules/relocatable.
12147         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
12148
12149 2007-03-03  Bruno Haible  <bruno@clisp.org>
12150
12151         * modules/relocatable-script (Files): Add doc/relocatable.texi,
12152         m4/relocatable-lib.m4.
12153         (Depends-on): Remove 'relocatable'.
12154         (configure.ac): Add gl_RELOCATABLE_NOP.
12155
12156 2007-03-03  Bruno Haible  <bruno@clisp.org>
12157
12158         * modules/relocatable-prog-wrapper: New file.
12159         * modules/relocatable (Depends-on): Add it. Remove all other
12160         dependencies except progname.
12161         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
12162
12163         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
12164         (gl_FUNC_STRERROR): Nop.
12165         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
12166
12167         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
12168         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
12169
12170         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
12171         (gl_FUNC_READLINK): Update.
12172
12173         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
12174
12175 2007-03-03  Bruno Haible  <bruno@clisp.org>
12176
12177         * lib/xreadlink.c: Include <unistd.h> unconditionally.
12178         * modules/xreadlink (Depends-on): Add unistd.
12179         * modules/xreadlink-with-size (Depends-on): Likewise.
12180
12181 2007-03-03  Bruno Haible  <bruno@clisp.org>
12182
12183         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
12184         extracted from gt_FUNC_SETENV.
12185         (gt_FUNC_SETENV): Remove macro.
12186         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
12187         remove gt_FUNC_SETENV.
12188
12189 2007-03-03  Bruno Haible  <bruno@clisp.org>
12190
12191         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
12192         ENABLE_RELOCATABLE here.
12193         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
12194
12195 2007-03-03  Bruno Haible  <bruno@clisp.org>
12196
12197         * modules/rbtreehash-list-tests (Depends-on): Add progname.
12198         * tests/test-rbtreehash_list.c: Include progname.h.
12199         (main): Call set_program_name.
12200
12201         * modules/rbtree-oset-tests (Depends-on): Add progname.
12202         * tests/test-rbtree_oset.c: Include progname.h.
12203         (main): Call set_program_name.
12204
12205         * modules/rbtree-list-tests (Depends-on): Add progname.
12206         * tests/test-rbtree_list.c: Include progname.h.
12207         (main): Call set_program_name.
12208
12209         * modules/linked-list-tests (Depends-on): Add progname.
12210         * tests/test-linked_list.c: Include progname.h.
12211         (main): Call set_program_name.
12212
12213 2007-03-03  Bruno Haible  <bruno@clisp.org>
12214
12215         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
12216         All uses of __restrict changed to _Restrict_.
12217         * lib/glob_.h (__restrict): Remove macro.
12218
12219 2007-03-02  Bruno Haible  <bruno@clisp.org>
12220
12221         * modules/gettext (configure.ac): Require gettext infrastructure
12222         from version 0.16.1.
12223
12224 2007-03-02  Bruno Haible  <bruno@clisp.org>
12225
12226         * modules/linkedhash-list-tests (Depends-on): Add progname.
12227         * tests/test-linkedhash_list.c: Include progname.h.
12228         (main): Call set_program_name.
12229
12230         * modules/carray-list-tests (Depends-on): Add progname.
12231         * tests/test-carray_list.c: Include progname.h.
12232         (main): Call set_program_name.
12233
12234         * modules/avltreehash-list-tests (Depends-on): Add progname.
12235         * tests/test-avltreehash_list.c: Include progname.h.
12236         (main): Call set_program_name.
12237
12238         * modules/avltree-oset-tests (Depends-on): Add progname.
12239         * tests/test-avltree_oset.c: Include progname.h.
12240         (main): Call set_program_name.
12241
12242         * modules/avltree-list-tests (Depends-on): Add progname.
12243         * tests/test-avltree_list.c: Include progname.h.
12244         (main): Call set_program_name.
12245
12246         * modules/array-oset-tests (Depends-on): Add progname.
12247         * tests/test-array_oset.c: Include progname.h.
12248         (main): Call set_program_name.
12249
12250         * modules/array-list-tests (Depends-on): Add progname.
12251         * tests/test-array_list.c: Include progname.h.
12252         (main): Call set_program_name.
12253
12254         * modules/argp-tests (Depends-on): Add progname.
12255         * tests/test-argp.c: Include argp.h first. Include progname.h.
12256         (main): Call set_program_name.
12257
12258 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
12259
12260         * doc/gnulib-tool.texi (Initial import): Reword description of
12261         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
12262         limited effect even if defined after the first system include.
12263
12264 2007-03-01  Bruno Haible  <bruno@clisp.org>
12265
12266         * build-aux/config.libpath: Update to libtool-1.5.22.
12267         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
12268
12269 2007-03-01  Bruno Haible  <bruno@clisp.org>
12270
12271         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
12272         foo_CFLAGS.
12273         Reported by Ralf Wildenhues.
12274
12275 2007-03-01  Bruno Haible  <bruno@clisp.org>
12276
12277         * build-aux/install-reloc: Remove object files left over by some
12278         compilers.
12279         Reported by Ralf Wildenhues.
12280
12281 2007-03-01  Bruno Haible  <bruno@clisp.org>
12282
12283         * build-aux/install-reloc: Break long lines.
12284
12285 2007-03-01  Bruno Haible  <bruno@clisp.org>
12286
12287         * doc/relocatable.texi: Document that it may not work on OpenBSD.
12288         Reported by Ralf Wildenhues.
12289
12290 2007-03-01  Bruno Haible  <bruno@clisp.org>
12291
12292         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
12293         include ordering constraints.
12294
12295 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
12296
12297         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
12298         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
12299         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
12300         as another example.
12301         * lib/time_.h: Fix misspelling.
12302         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
12303         Require gl_HEADER_TIME_H_DEFAULTS.
12304         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
12305         * m4/time_r.m4 (gl_TIME_R): Likewise.
12306         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
12307
12308 2007-03-01  Bruno Haible  <bruno@clisp.org>
12309
12310         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
12311         * m4/utimens.m4 (gl_UTIMENS): Likewise.
12312
12313 2007-03-01  Jim Meyering  <jim@meyering.net>
12314
12315         * modules/xreadlink (Maintainer): Add my name.
12316         * modules/xreadlink-with-size (Depends-on): Alphabetize.
12317
12318 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
12319             Bruno Haible  <bruno@clisp.org>
12320
12321         * build-aux/install-reloc: Compile also c-ctype.c.
12322         * build-aux/relocatable.sh.in: New file.
12323         * doc/relocatable.texi: New file.
12324         * doc/relocatable-maint.texi: New file.
12325         * doc/gnulib.texi: Include relocatable-maint.texi.
12326         * lib/progreloc.c: Include unistd.h unconditionally.
12327         * lib/relocwrapper.c: Include unistd.h unconditionally.
12328         Include c-ctype.h.
12329         (add_dotbin): Use c_tolower.
12330         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
12331         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
12332         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
12333         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
12334         to m4/relocatable-lib.m4.
12335         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
12336         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
12337         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
12338         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
12339         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
12340         * modules/relocatable: New file.
12341         * modules/relocatable-lib: New file.
12342         * modules/relocatable-script: New file.
12343
12344 2007-02-28  Bruno Haible  <bruno@clisp.org>
12345
12346         Import --enable-relocatable infrastructure.
12347         * build-aux/config.libpath: New file, from GNU gettext.
12348         * build-aux/install-reloc: New file, from GNU gettext.
12349         * build-aux/reloc-ldflags: New file, from GNU gettext.
12350         * lib/relocatable.h: New file, from GNU gettext.
12351         * lib/relocatable.c: New file, from GNU gettext.
12352         * lib/relocwrapper.c: New file, from GNU gettext.
12353         * m4/relocatable.m4: New file, from GNU gettext.
12354
12355 2007-02-28  Bruno Haible  <bruno@clisp.org>
12356
12357         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
12358
12359         * modules/xreadlink: New file, from GNU gettext with modifications.
12360         * lib/xreadlink.c: New file, from GNU gettext.
12361         * lib/xreadlink.h: Add comments.
12362         (xreadlink): New declaration.
12363
12364         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
12365         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
12366         lib/xreadlink-with-size.c.
12367         (configure.ac): Remove gl_XREADLINK invocation.
12368         (Makefile.am): Augment lib_SOURCES.
12369         * m4/xreadlink.m4: Remove file.
12370         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
12371         (xreadlink_with_size): Renamed from xreadink.
12372         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
12373         * modules/canonicalize (Depends-on): Replace xreadlink with
12374         xreadlink-with-size.
12375         * lib/canonicalize.c (canonicalize_filename_mode): Update.
12376
12377 2007-02-25  Jim Meyering  <jim@meyering.net>
12378
12379         * build-aux/announce-gen: When complaining about excess arguments,
12380         list them.
12381
12382 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
12383
12384         * README: Document signed integer overflow situation more
12385         accurately.
12386
12387 2007-02-25  Bruno Haible  <bruno@clisp.org>
12388
12389         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
12390         'a' or 'A' conversion.
12391
12392 2007-02-25  Bruno Haible  <bruno@clisp.org>
12393
12394         * modules/filename: Renamed from modules/pathname.
12395         (Files): Replace lib/pathname.h with lib/filename.h. Replace
12396         lib/concatpath.c with lib/concat-filename.c.
12397         (Makefile.am): Update.
12398         (Include): Replace pathname.h with filename.h.
12399         * lib/filename.h: Renamed from lib/pathname.h.
12400         (concatenated_filename): Renamed from concatenated_pathname.
12401         * lib/concat-filename.c: Renamed from lib/concatpath.c.
12402         (concatenated_filename): Renamed from concatenated_pathname.
12403         * lib/findprog.c: Include filename.h instead of pathname.h.
12404         (find_in_path): Update.
12405         * lib/javacomp.c: Include filename.h instead of pathname.h.
12406         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
12407         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
12408         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
12409         is_oldgcj_14_13_usable, is_javac_usable): Update.
12410         * lib/javaexec.c: Include filename.h instead of pathname.h.
12411         (execute_java_class): Update.
12412         * modules/findprog: Update.
12413         * modules/javacomp: Update.
12414         * modules/javaexec: Update.
12415         * MODULES.html.sh (File system functions): Add 'filename', remove
12416         'pathname'.
12417
12418 2007-02-25  Bruno Haible  <bruno@clisp.org>
12419
12420         * modules/printf-frexpl-tests: New file.
12421         * tests/test-printf-frexpl.c: New file.
12422
12423         * modules/printf-frexpl: New file.
12424         * lib/printf-frexpl.h: New file.
12425         * lib/printf-frexpl.c: New file.
12426         * m4/printf-frexpl.m4: New file.
12427
12428 2007-02-25  Bruno Haible  <bruno@clisp.org>
12429
12430         * modules/printf-frexp-tests: New file.
12431         * tests/test-printf-frexp.c: New file.
12432
12433         * modules/printf-frexp: New file.
12434         * lib/printf-frexp.h: New file.
12435         * lib/printf-frexp.c: New file.
12436         * m4/printf-frexp.m4: New file.
12437
12438 2007-02-25  Bruno Haible  <bruno@clisp.org>
12439
12440         Assume automake >= 1.10 for the tests.
12441         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
12442         * modules/arctwo-tests: Likewise.
12443         * modules/argp-tests: Likewise.
12444         * modules/avltree-list-tests: Likewise.
12445         * modules/avltree-oset-tests: Likewise.
12446         * modules/avltreehash-list-tests: Likewise.
12447         * modules/carray-list-tests: Likewise.
12448         * modules/crc-tests: Likewise.
12449         * modules/des-tests: Likewise.
12450         * modules/gc-arcfour-tests: Likewise.
12451         * modules/gc-arctwo-tests: Likewise.
12452         * modules/gc-des-tests: Likewise.
12453         * modules/gc-hmac-md5-tests: Likewise.
12454         * modules/gc-hmac-sha1-tests: Likewise.
12455         * modules/gc-md2-tests: Likewise.
12456         * modules/gc-md4-tests: Likewise.
12457         * modules/gc-md5-tests: Likewise.
12458         * modules/gc-pbkdf2-sha1-tests: Likewise.
12459         * modules/gc-rijndael-tests: Likewise.
12460         * modules/gc-sha1-tests: Likewise.
12461         * modules/gc-tests: Likewise.
12462         * modules/getaddrinfo-tests: Likewise.
12463         * modules/hmac-md5-tests: Likewise.
12464         * modules/hmac-sha1-tests: Likewise.
12465         * modules/linked-list-tests: Likewise.
12466         * modules/linkedhash-list-tests: Likewise.
12467         * modules/lock-tests: Likewise.
12468         * modules/md2-tests: Likewise.
12469         * modules/md4-tests: Likewise.
12470         * modules/md5-tests: Likewise.
12471         * modules/rbtree-list-tests: Likewise.
12472         * modules/rbtree-oset-tests: Likewise.
12473         * modules/rbtreehash-list-tests: Likewise.
12474         * modules/read-file-tests: Likewise.
12475         * modules/rijndael-tests: Likewise.
12476         * modules/stdint-tests: Likewise.
12477         * modules/tls-tests: Likewise.
12478
12479 2007-02-24  Bruno Haible  <bruno@clisp.org>
12480
12481         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
12482         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
12483         function; instead check whether isnan with a double argument links.
12484         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
12485         function; instead check whether isnan with a 'long double' argument
12486         links.
12487         Reported by Eric Blake <ebb9@byu.net>.
12488
12489 2007-02-24  Bruno Haible  <bruno@clisp.org>
12490
12491         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
12492         defined.
12493         * lib/isnanl.c: Remove all code. Just include isnan.c.
12494         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
12495
12496 2007-02-25  Jim Meyering  <jim@meyering.net>
12497
12498         Avoid conflicting types for 'unsetenv' on FreeBSD.
12499         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
12500         conflicting with FreeBSD's (5.0 and 6.1) function declaration
12501         in stdlib.h.
12502
12503 2007-02-24  Bruno Haible  <bruno@clisp.org>
12504
12505         * modules/isnanl-nolibm-tests: New file.
12506         * tests/test-isnanl.c: New file.
12507
12508         * modules/isnanl-nolibm: New file.
12509         * lib/isnanl.h: New file.
12510         * lib/isnanl.c: New file.
12511         * m4/isnanl.m4: New file.
12512
12513 2007-02-24  Bruno Haible  <bruno@clisp.org>
12514
12515         * modules/isnan-nolibm-tests: New file.
12516         * tests/test-isnan.c: New file.
12517
12518         * modules/isnan-nolibm: New file.
12519         * lib/isnan.h: New file.
12520         * lib/isnan.c: New file.
12521         * m4/isnan.m4: New file.
12522
12523 2007-02-24  Bruno Haible  <bruno@clisp.org>
12524
12525         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
12526         assume that an exponent fits in 20 bits.
12527
12528 2007-02-24  Jim Meyering  <jim@meyering.net>
12529
12530         * m4/regex.m4: Update the description of the configure-time option,
12531         --without-included-regex, to state accurately what the defaults are,
12532         and perhaps to give people an idea why using this option is risky.
12533
12534 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
12535
12536         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
12537         loops on small arguments.  This attempts to avoid the problem
12538         Bruno Haible reported for AIX 4.3.2 in
12539         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
12540
12541 2007-02-23  Bruno Haible  <bruno@clisp.org>
12542
12543         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
12544         Needed for help2man.
12545
12546 2007-02-23  Karl Berry  <karl@gnu.org>
12547
12548         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
12549         exists, foo.h should be cvs-ignored, not committed.
12550
12551 2007-02-23  Eric Blake  <ebb9@byu.net>
12552
12553         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
12554         * lib/stat-time.h (includes): Likewise.
12555         * lib/utimecmp.c (includes): Likewise.
12556         * lib/utimens.h (includes): Likewise.
12557         * lib/getdate.y (includes): Also include "timespec.h" for use
12558         internal to the module.
12559         * modules/utimens (Depends-on): Revert yesterday's patch.
12560         * modules/nanosleep (Depends-on): Add missing dependency.
12561
12562 2007-02-22  Bruno Haible  <bruno@clisp.org>
12563
12564         * lib/glob.c: Don't include getlogin_r.h.
12565
12566 2007-02-22  Jim Meyering  <jim@meyering.net>
12567
12568         * modules/utimens (Depends-on): Add timespec, required for
12569         utimens.h's inclusion of timespec.h.
12570
12571 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
12572
12573         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
12574         long unreadable paths in GNU/Linux.  Problem reported by Andreas
12575         Schwab in
12576         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
12577         I'll try to think of a better way to fix the Solaris problem.
12578
12579         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
12580         like glibc; on Solaris 10, it fails with errno == EINVAL.
12581         POSIX says the behavior is unspecified if the first argument is NULL,
12582         so play it safe and never pass NULL to the system getcwd.
12583
12584 2007-02-21  Jim Meyering  <jim@meyering.net>
12585
12586         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
12587         of gettimeofday.  It would conflict with the one now always
12588         provided via sys_time_.h.  Reported by Matthew Woehlke, as
12589         an IRIX 6.5 build failure.
12590
12591 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
12592
12593         Minor fixups to port to Solaris 10 with Sun C 5.8.
12594         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
12595         * modules/getcwd (Depends-on): Add dirfd.
12596         * lib/putenv.c (putenv): #undef it.
12597         (rpl_putenv): New decl.
12598         (malloc, free): Include <stdlib.h> rather than prototyping separately.
12599
12600 2007-02-20  Bruno Haible  <bruno@clisp.org>
12601
12602         * modules/stdio-tests: New file.
12603         * tests/test-stdio.c: New file.
12604
12605         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
12606         (Depends-on): Add stdio.
12607         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
12608         (Include): Use <stdio.h> instead of vsnprintf.h.
12609         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
12610         HAVE_DECL_VSNPRINTF.
12611         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
12612
12613         * modules/snprintf (Files): Remove lib/snprintf.h.
12614         (Depends-on): Add stdio.
12615         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
12616         (Include): Use <stdio.h> instead of snprintf.h.
12617         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
12618         HAVE_DECL_SNPRINTF.
12619         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
12620         * lib/getaddrinfo.c: Likewise.
12621
12622         * modules/stdio: New file.
12623         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
12624         * lib/snprintf.h: Remove file.
12625         * lib/vsnprintf.h: Remove file.
12626         * lib/.cppi-disable: Remove snprintf.h.
12627         * m4/stdio_h.m4: New file.
12628         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
12629
12630 2007-02-20  Jim Meyering  <jim@meyering.net>
12631
12632         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
12633         used by e.g., mingw.  From Bruno Haible.
12634
12635 2007-02-19  Bruno Haible  <bruno@clisp.org>
12636
12637         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
12638         warnings.
12639         Reported by Ben Pfaff <blp@cs.stanford.edu>.
12640
12641 2007-02-19  Bruno Haible  <bruno@clisp.org>
12642
12643         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
12644         from mingw users.
12645
12646 2007-02-19  Bruno Haible  <bruno@clisp.org>
12647
12648         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
12649         warnings.
12650         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
12651
12652 2007-02-19  Jim Meyering  <jim@meyering.net>
12653
12654         Don't use FD after a successful "fdopendir (fd)".
12655         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
12656         Reset it by calling dirfd on the just-obtained DIR*.
12657
12658         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
12659         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
12660
12661 2007-02-18  Bruno Haible  <bruno@clisp.org>
12662
12663         * lib/readlink.c: Include <unistd.h>.
12664         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
12665         HAVE_READLINK.
12666         * modules/readlink (Depends-on): Add unistd.
12667         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
12668         (Include): Add <unistd.h>.
12669
12670         * lib/getlogin_r.h: Remove file.
12671         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
12672         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
12673         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
12674         HAVE_DECL_GETLOGIN_R.
12675         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
12676         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
12677         (Include): Use <unistd.h> instead of getlogin_r.h.
12678
12679         * lib/getcwd.h: Remove file.
12680         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
12681         * lib/xgetcwd.c: Likewise.
12682         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
12683         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
12684         * modules/getcwd (Files): Remove lib/getcwd.h.
12685         (Depends-on): Add unistd.
12686         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
12687         (Include): Use <unistd.h> instad of getcwd.h.
12688
12689         * lib/ftruncate.c: Include <unistd.h> first.
12690         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
12691         Set HAVE_FTRUNCATE.
12692         * modules/ftruncate (Depends-on): Add unistd.
12693         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
12694
12695         * lib/fchdir.c: Include <unistd.h> first.
12696         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
12697         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
12698         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
12699         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
12700         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
12701
12702         * lib/dup2.c: Include <unistd.h> first.
12703         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
12704         HAVE_DUP2.
12705         * modules/dup2 (Depends-on): Add unistd.
12706         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
12707
12708         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
12709         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
12710         REPLACE_CHOWN. Don't define chown as a macro here.
12711         * modules/chown (Depends-on): Add unistd.
12712         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
12713
12714         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
12715         Add definition for GL_LINK_WARNING.
12716         (chown, dup2): New declarations.
12717         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
12718         link warning.
12719         (ftruncate): New declaration.
12720         (getcwd): New declaration, taken from old getcwd.h.
12721         (getlogin_r): New declaration, taken from old getlogin_r.h.
12722         (readlink): New declaration.
12723         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
12724         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
12725         (gl_PREREQ_UNISTD): Remove macro.
12726         (gl_UNISTD_MODULE_INDICATOR): New macro.
12727         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
12728         many new variables. Don't set UNISTD_H.
12729         * modules/unistd (Description): Change.
12730         (Depends-on): Add link-warning.
12731         (configure.ac): Update.
12732         (Makefile.am): Create unistd.h always. Substitute many new variables
12733         into it.
12734
12735 2007-02-18  Bruno Haible  <bruno@clisp.org>
12736
12737         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
12738         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
12739         HAVE_GETSUBOPT.
12740         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
12741         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
12742         * lib/getsubopt.h: Remove file.
12743         * modules/getsubopt (Files): Remove lib/getsubopt.h.
12744         (Depends-on): Add stdlib.
12745         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
12746         (Includes): Use <stdlib.h> instead of getsubopt.h.
12747         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
12748         Set HAVE_GETSUBOPT.
12749         * lib/getsubopt.c: Don't include getsubopt.h.
12750
12751 2007-02-18  Bruno Haible  <bruno@clisp.org>
12752
12753         * modules/fchdir (Depends-on): Add dup2.
12754
12755 2007-02-18  Bruno Haible  <bruno@clisp.org>
12756
12757         * lib/stdlib_.h: Handle glibc's special invocation convention
12758         specially.
12759
12760 2007-02-18  Bruno Haible  <bruno@clisp.org>
12761
12762         * modules/stdlib-tests: New file.
12763         * tests/test-stdlib.c: New file.
12764
12765         * modules/mkstemp (Files): Remove lib/mkstemp.h.
12766         (Depends-on): Add stdlib.
12767         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
12768         (Includes): Use <stdlib.h> instead of mkstemp.h.
12769         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
12770         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
12771         * lib/mkstemp.c: Don't include mkstemp.h.
12772         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
12773         * lib/stdlib--.h: Don't include mkstemp.h.
12774
12775         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
12776         (Depends-on): Add stdlib.
12777         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
12778         (Includes): Use <stdlib.h> instead of mkdtemp.h.
12779         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
12780         HAVE_MKDTEMP.
12781         * lib/mkdtemp.c: Don't include mkdtemp.h.
12782         * lib/clean-temp.c: Don't include mkdtemp.h.
12783
12784         * modules/exit (Files): Remove lib/exit.h.
12785         (Depends-on): Add stdlib.
12786         (Makefile.am): Remove lib_SOURCES.
12787         (Include): Use <stdlib.h> instead of exit.h.
12788         * lib/argmatch.c: Don't include exit.h.
12789         * lib/execute.c: Likewise.
12790         * lib/pagealign_alloc.c: Likewise.
12791         * lib/pipe.c: Likewise.
12792         * lib/wait-process.c: Likewise.
12793         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
12794         * lib/exitfail.c: Likewise.
12795         * lib/savewd.c: Likewise.
12796         * lib/xsetenv.c: Likewise.
12797
12798         * modules/stdlib: New file.
12799         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
12800         and extra comments about mkstemp().
12801         * lib/exit.h: Remove file.
12802         * lib/mkdtemp.h: Remove file.
12803         * lib/mkstemp.h: Remove file.
12804         * m4/stdlib_h.m4: New file.
12805         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
12806
12807 2007-02-18  Bruno Haible  <bruno@clisp.org>
12808
12809         * modules/math-tests: New file.
12810         * tests/test-math.c: New file.
12811
12812         * modules/math: New file.
12813         * modules/mathl (Files): Remove lib/mathl.h.
12814         (Depends-on): Add math.
12815         (Makefile.am): Don't mention mathl.h.
12816         (Include): Use <math.h> instead of mathl.h.
12817         * lib/math_.h: New file.
12818         * lib/mathl.h: Remove file.
12819         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
12820         mathl.h.
12821         * lib/asinl.c: Likewise.
12822         * lib/atanl.c: Likewise.
12823         * lib/ceill.c: Likewise.
12824         * lib/cosl.c: Likewise.
12825         * lib/expl.c: Likewise.
12826         * lib/floorl.c: Likewise.
12827         * lib/frexpl.c: Likewise.
12828         * lib/ldexpl.c: Likewise.
12829         * lib/logl.c: Likewise.
12830         * lib/sincosl.c: Likewise.
12831         * lib/sinl.c: Likewise.
12832         * lib/sqrtl.c: Likewise.
12833         * lib/tanl.c: Likewise.
12834         * lib/trigl.c: Likewise.
12835         * m4/math_h.m4: New file.
12836         * MODULES.html.sh (Mathematics): Add math.
12837
12838 2007-02-17  Bruno Haible  <bruno@clisp.org>
12839
12840         * modules/wctype-tests: New file.
12841         * tests/test-wctype.c: New file.
12842
12843         * modules/wchar-tests: New file.
12844         * tests/test-wchar.c: New file.
12845
12846         * modules/unistd-tests: New file.
12847         * tests/test-unistd.c: New file.
12848
12849         * modules/time-tests: New file.
12850         * tests/test-time.c: New file.
12851
12852         * modules/sysexits-tests: New file.
12853         * tests/test-sysexits.c: New file.
12854
12855         * modules/sys_time-tests: New file.
12856         * tests/test-sys_time.c: New file.
12857
12858         * modules/sys_stat-tests: New file.
12859         * tests/test-sys_stat.c: New file.
12860
12861         * modules/sys_socket-tests: New file.
12862         * tests/test-sys_socket.c: New file.
12863
12864         * modules/sys_select-tests: New file.
12865         * tests/test-sys_select.c: New file.
12866
12867         * modules/string-tests: New file.
12868         * tests/test-string.c: New file.
12869
12870         * modules/stdbool-tests: New file.
12871         * tests/test-stdbool.c: New file.
12872
12873         * modules/netinet_in-tests: New file.
12874         * tests/test-netinet_in.c: New file.
12875
12876         * modules/inttypes-tests: New file.
12877         * tests/test-inttypes.c: New file.
12878
12879         * modules/fcntl-tests: New file.
12880         * tests/test-fcntl.c: New file.
12881
12882         * modules/byteswap-tests: New file.
12883         * tests/test-byteswap.c: New file.
12884
12885         * modules/arpa_inet-tests: New file.
12886         * tests/test-arpa_inet.c: New file.
12887
12888 2007-02-17  Bruno Haible  <bruno@clisp.org>
12889
12890         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
12891         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
12892         if the corresponding module is not enabled. Emit link warnings if
12893         the function is used nevertheless.
12894         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
12895         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
12896         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
12897         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
12898         * modules/inttypes (Depends-on): Add link-warning.
12899         (Makefile.am): Copy the contents of build-aux/link-warning.h into
12900         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
12901         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
12902         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
12903         * modules/imaxdiv (configure.ac): Likewise.
12904         * modules/strtoimax (configure.ac): Likewise.
12905         * modules/strtoumax (configure.ac): Likewise.
12906
12907 2007-02-17  Bruno Haible  <bruno@clisp.org>
12908
12909         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
12910         gl_STRING_MODULE_INDICATOR_DEFAULTS.
12911         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
12912         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
12913
12914 2007-02-17  Bruno Haible  <bruno@clisp.org>
12915
12916         * modules/link-warning: New file.
12917         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
12918         * lib/string_.h (GL_LINK_WARNING): Remove definition.
12919         * modules/string (Depends-on): Add link-warning.
12920         (Makefile.am): Copy the contents of build-aux/link-warning.h into
12921         string.h.
12922         * MODULES.html.sh (Support for building libraries and executables): Add
12923         link-warning.
12924
12925 2007-02-17  Bruno Haible  <bruno@clisp.org>
12926
12927         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
12928         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
12929         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
12930         long lines.
12931
12932 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
12933             Bruno Haible  <bruno@clisp.org>
12934
12935         * modules/tmpfile: New file.
12936         * lib/tmpfile.c: New file.
12937         * m4/tmpfile.m4: New file.
12938         * MODULES.html.sh (func_all_modules): New section "Input/output".
12939
12940 2007-02-15  Bruno Haible  <bruno@clisp.org>
12941
12942         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
12943         (supports_delete_on_close): New function.
12944         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
12945
12946 2007-02-14  Bruno Haible  <bruno@clisp.org>
12947
12948         * modules/mbspcasecmp-tests: New file.
12949         * tests/test-mbspcasecmp.sh: New file.
12950         * tests/test-mbspcasecmp.c: New file.
12951
12952         New module mbspcasecmp.
12953         * modules/mbspcasecmp: New file.
12954         * lib/mbspcasecmp.c: New file.
12955         * lib/string_.h (strncasecmp): Change warning message.
12956         (mbspcasecmp): New declaration.
12957         * m4/mbspcasecmp.m4: New file.
12958         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
12959         GNULIB_MBSPCASECMP.
12960         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
12961         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
12962
12963 2007-02-14  Bruno Haible  <bruno@clisp.org>
12964
12965         * modules/mbsncasecmp-tests: New file.
12966         * tests/test-mbsncasecmp.sh: New file.
12967         * tests/test-mbsncasecmp.c: New file.
12968
12969         New module mbsncasecmp.
12970         * modules/mbsncasecmp: New file.
12971         * lib/mbsncasecmp.c: New file.
12972         * lib/string_.h (mbsncasecmp): New declaration.
12973         * m4/mbsncasecmp.m4: New file.
12974         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
12975         GNULIB_MBSNCASECMP.
12976         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
12977         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
12978
12979 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
12980
12981         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
12982         Verify that it doesn't overlap with our flags.
12983         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
12984         do not have the desired effect in multibyte locales; instead, use
12985         mbscasecmp.
12986         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
12987         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
12988         we don't require GNU fnmatch ourselves (if our users require it, they
12989         should do so explicitly).
12990
12991         Fix regex code so it doesn't rely on strcasecmp.
12992         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
12993         Otherwise, include gnulib's langinfo.h.
12994         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
12995         undesirable behavior in non-C locales.  Instead, rely on localecharset.
12996         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
12997         * modules/regex (FILES): Remove m4/codeset.m4.
12998         (Depends-on): Add localcharset.  Remove strcase.
12999
13000 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13001
13002         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
13003         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
13004
13005 2007-02-13  Bruno Haible  <bruno@clisp.org>
13006
13007         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
13008         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13009
13010 2007-02-12  Bruno Haible  <bruno@clisp.org>
13011
13012         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
13013         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
13014         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
13015         time warning rather than a link error.
13016
13017 2007-02-12  Bruno Haible  <bruno@clisp.org>
13018
13019         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
13020         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
13021         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13022
13023 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
13024
13025         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
13026         args, not 2.
13027
13028 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
13029
13030         New module 'time', so that apps can include <time.h> as per
13031         POSIX and GNU instead of separate include files like time_r.h
13032         and timegm.h.  This implementation tries out a simpler approach
13033         for replacing decls in standard include files (as compared to
13034         the string module), somewhat as an experiment.
13035
13036         * config/srclist.txt: Comment out mktime.c for now.
13037         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
13038         since it doesn't apply any more.  Use generic wording instead.
13039         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
13040         'time'.
13041         * lib/time_.h, m4/time_h.m4, modules/time: New files.
13042         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
13043         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
13044         Don't include <sys/types.h>; no longer needed since we assume C89.
13045         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
13046         * lib/strftime.c: Likewise.
13047         * lib/time_r.c: Likewise.
13048         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
13049         * lib/nanosleep.c: Include <time.h> first, to check interface.
13050         * lib/strptime.c: Likewise.
13051         * lib/time_r.c: Likewise.
13052         * lib/timegm.c: Likewise.
13053         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
13054         needed.
13055         * lib/timegm.c: Don't include timegm.h; no longer needed.
13056         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
13057         time.h now handles any problems in that area.
13058         (struct timespec, nanosleep): Remove; time.h now arranges for these.
13059         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
13060         that time.h defines struct timespec.
13061         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
13062         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
13063         handles that.
13064         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
13065         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
13066         needed.  Set REPLACE_LOCALTIME.
13067         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
13068         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
13069         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
13070         nanosleep; time_h.m4 now does that.  Don't require
13071         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
13072         module handles this now.
13073         * modules/getdate (Depends-on): Remove timespec.  Add time.
13074         * modules/nanosleep (Depends-on): Likewise.
13075         * modules/stat-time (Depends-on): Likewise.
13076         * modules/nanosleep (Include): Include time.h, not timespec.h.
13077         * modules/strptime (Files): Remove lib/strptime.h.
13078         (Depends-on): Add extensions, time.
13079         (Include): Include time.h, not strptime.h.
13080         * modules/time_r (Files): Remove lib/time_r.h.
13081         (Depends-on): Add time.
13082         (Include): Include time.h, not time_r.h.
13083         * modules/timegm: Likewise.
13084         * modules/timespec (Description): Now does timespec-related decls
13085         of our own, instead of struct timespec itself.
13086         (Depends-on): Add time; remove extensions.
13087         (Maintainer): Add self.
13088         * modules/utimecmp (Depends-on): Add time; remove timespec.
13089         * modules/utimens (Depends-on): Likewise.
13090         * modules/xnanosleep (Depends-on): Likewise.
13091
13092 2007-02-11  Bruno Haible  <bruno@clisp.org>
13093
13094         * lib/c-strstr.c: Include allocsa.h.
13095         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
13096         * lib/c-strcasestr.c: Include allocsa.h.
13097         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
13098         * lib/strcasestr.c: Include allocsa.h.
13099         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
13100         * lib/mbsstr.c: Include allocsa.h.
13101         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
13102         allocsa/freesa instead of malloc/free.
13103         * lib/mbscasestr.c: Include allocsa.h.
13104         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
13105         allocsa/freesa instead of malloc/free.
13106         * modules/c-strstr (Depends-on): Add allocsa.
13107         * modules/c-strcasestr (Depends-on): Likewise.
13108         * modules/strcasestr (Depends-on): Likewise.
13109         * modules/mbsstr (Depends-on): Likewise.
13110         * modules/mbscasestr (Depends-on): Likewise.
13111
13112 2007-02-11  Bruno Haible  <bruno@clisp.org>
13113
13114         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
13115
13116         * modules/mbsspn-tests: New file.
13117         * tests/test-mbsspn.sh: New file.
13118         * tests/test-mbsspn.c: New file.
13119
13120 2007-02-11  Bruno Haible  <bruno@clisp.org>
13121
13122         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
13123
13124         * modules/mbspbrk-tests: New file.
13125         * tests/test-mbspbrk.sh: New file.
13126         * tests/test-mbspbrk.c: New file.
13127
13128 2007-02-11  Bruno Haible  <bruno@clisp.org>
13129
13130         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
13131         unneeded cast.
13132
13133         * modules/mbscspn-tests: New file.
13134         * tests/test-mbscspn.sh: New file.
13135         * tests/test-mbscspn.c: New file.
13136
13137 2007-02-11  Bruno Haible  <bruno@clisp.org>
13138
13139         * modules/mbscasecmp-tests: New file.
13140         * tests/test-mbscasecmp.sh: New file.
13141         * tests/test-mbscasecmp.c: New file.
13142
13143 2007-02-11  Bruno Haible  <bruno@clisp.org>
13144
13145         Ensure O(n) worst-case complexity of mbscasestr.
13146         * lib/mbscasestr.c: Include stdbool.h.
13147         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
13148         functions.
13149         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
13150         the bookkeeping indicates that it's worth it.
13151         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
13152
13153         * modules/mbscasestr-tests: New file.
13154         * tests/test-mbscasestr1.c: New file.
13155         * tests/test-mbscasestr2.sh: New file.
13156         * tests/test-mbscasestr2.c: New file.
13157         * tests/test-mbscasestr3.sh: New file.
13158         * tests/test-mbscasestr3.c: New file.
13159         * tests/test-mbscasestr4.sh: New file.
13160         * tests/test-mbscasestr4.c: New file.
13161         * m4/locale-tr.m4: New file.
13162
13163 2007-02-11  Bruno Haible  <bruno@clisp.org>
13164
13165         Ensure O(n) worst-case complexity of mbsstr.
13166         * lib/mbsstr.c: Include stdbool.h.
13167         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
13168         functions.
13169         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
13170         bookkeeping indicates that it's worth it.
13171         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
13172
13173         * modules/mbsstr-tests: New file.
13174         * tests/test-mbsstr1.c: New file.
13175         * tests/test-mbsstr2.sh: New file.
13176         * tests/test-mbsstr2.c: New file.
13177         * tests/test-mbsstr3.sh: New file.
13178         * tests/test-mbsstr3.c: New file.
13179         * m4/locale-fr.m4: New file.
13180
13181 2007-02-11  Bruno Haible  <bruno@clisp.org>
13182
13183         * lib/mbsrchr.c (mbsrchr): Fix bug.
13184
13185         * modules/mbsrchr-tests: New file.
13186         * tests/test-mbsrchr.sh: New file.
13187         * tests/test-mbsrchr.c: New file.
13188
13189 2007-02-11  Bruno Haible  <bruno@clisp.org>
13190
13191         * lib/mbschr.c (mbschr): Fix bug.
13192
13193         * modules/mbschr-tests: New file.
13194         * tests/test-mbschr.sh: New file.
13195         * tests/test-mbschr.c: New file.
13196         * m4/locale-zh.m4: New file.
13197
13198 2007-02-11  Bruno Haible  <bruno@clisp.org>
13199
13200         Support for copying multibyte string iterators.
13201         * lib/mbiter.h: Include <string.h>.
13202         (mbiter_multi_copy): New function.
13203         (mbi_copy): New macro.
13204         * lib/mbuiter.h: Include <string.h>.
13205         (mbuiter_multi_copy): New function.
13206         (mbui_copy): New macro.
13207
13208 2007-02-11  Bruno Haible  <bruno@clisp.org>
13209
13210         New module mbslen.
13211         * modules/mbslen: New file.
13212         * lib/mbslen.c: New file.
13213         * lib/string_.h (mbslen): New declaration.
13214         * m4/mbslen.m4: New file.
13215         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
13216         GNULIB_MBSLEN.
13217         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
13218         * MODULES.html.sh (Internationalization functions): Add mbslen.
13219
13220 2007-02-11  Bruno Haible  <bruno@clisp.org>
13221
13222         Ensure O(n) worst-case complexity of strcasestr substitute.
13223         * lib/strcasestr.c: Include stdbool.h.
13224         (knuth_morris_pratt): New function.
13225         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
13226         bookkeeping indicates that it's worth it.
13227         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
13228
13229         * modules/strcasestr-tests: New file.
13230         * tests/test-strcasestr.c: New file.
13231
13232 2007-02-11  Bruno Haible  <bruno@clisp.org>
13233
13234         Ensure O(n) worst-case complexity of c_strcasestr.
13235         * lib/c-strcasestr.c: Include stdbool.h, string.h.
13236         (knuth_morris_pratt): New function.
13237         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
13238         the bookkeeping indicates that it's worth it.
13239         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
13240
13241         * modules/c-strcasestr-tests: New file.
13242         * tests/test-c-strcasestr.c: New file.
13243
13244 2007-02-11  Bruno Haible  <bruno@clisp.org>
13245
13246         Ensure O(n) worst-case complexity of c_strstr.
13247         * lib/c-strstr.c: Include stdbool.h, string.h.
13248         (knuth_morris_pratt): New function.
13249         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
13250         bookkeeping indicates that it's worth it.
13251         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
13252
13253         * lib/c-strstr.c: Complete rewrite for maintainability.
13254
13255         * modules/c-strstr-tests: New file.
13256         * tests/test-c-strstr.c: New file.
13257
13258 2007-02-11  Bruno Haible  <bruno@clisp.org>
13259
13260         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
13261         5.2.1 and earlier, whereby \055 was treated just like the range
13262         delimiter '-'.
13263         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
13264
13265 2007-02-08  Bruno Haible  <bruno@clisp.org>
13266
13267         * modules/regex (Depends-on): Add stdbool.
13268         Reported by Dalibor Topic <robilad@kaffe.org>.
13269
13270 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
13271
13272         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
13273         Prefer returning from main to exiting from it.
13274         Remove unnecessary parens after sizeof.
13275
13276 2007-02-05  Bruno Haible  <bruno@clisp.org>
13277
13278         New module mbssep.
13279         * modules/mbssep: New file.
13280         * lib/mbssep.c: New file.
13281         * lib/string_.h (strsep): Add a conditional link warning.
13282         (mbssep): New declaration.
13283         * m4/mbssep.m4: New file.
13284         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
13285         GNULIB_MBSSEP.
13286         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
13287         * MODULES.html.sh (Internationalization functions): Add mbssep.
13288
13289 2007-02-05  Bruno Haible  <bruno@clisp.org>
13290
13291         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
13292         Optimize search in case of 1 delimiter.
13293
13294 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
13295
13296         * lib/acl.h: Include sys/types.h before sys/acl.h.
13297
13298 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
13299
13300         Merge upstream fix for glibc bugzilla #3957:
13301
13302         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
13303
13304         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
13305         bit for RE_HAT_LISTS_NOT_NEWLINE.
13306         (build_charclass_op): Remove bogus comment.
13307
13308 2007-02-05  Simon Josefsson  <simon@josefsson.org>
13309
13310         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
13311
13312 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
13313
13314         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
13315         * lib/memmem.c [!defined _LIBC]: Include config.h.
13316
13317 2007-02-04  Bruno Haible  <bruno@clisp.org>
13318
13319         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
13320         warning message.
13321
13322 2007-02-04  Bruno Haible  <bruno@clisp.org>
13323
13324         New module mbstok_r.
13325         * modules/mbstok_r: New file.
13326         * lib/mbstok_r.c: New file.
13327         * lib/string_.h (strtok_r): Change argument names to match the
13328         comments. Add a conditional link warning.
13329         (mbstok_r): New declaration.
13330         * m4/mbstok_r.m4: New file.
13331         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
13332         GNULIB_MBSTOK_R.
13333         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
13334         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
13335
13336 2007-02-04  Bruno Haible  <bruno@clisp.org>
13337
13338         New module mbsspn.
13339         * modules/mbsspn: New file.
13340         * lib/mbsspn.c: New file.
13341         * lib/string_.h (strspn): Add a conditional link warning.
13342         (mbsspn): New declaration.
13343         * m4/mbsspn.m4: New file.
13344         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
13345         GNULIB_MBSSPN.
13346         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
13347         * MODULES.html.sh (Internationalization functions): Add mbsspn.
13348
13349 2007-02-04  Bruno Haible  <bruno@clisp.org>
13350
13351         New module mbspbrk.
13352         * modules/mbspbrk: New file.
13353         * lib/mbspbrk.c: New file.
13354         * lib/string_.h (strpbrk): Add a conditional link warning.
13355         (mbspbrk): New declaration.
13356         * m4/mbspbrk.m4: New file.
13357         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
13358         GNULIB_MBSPBRK.
13359         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
13360         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
13361
13362 2007-02-04  Bruno Haible  <bruno@clisp.org>
13363
13364         New module mbscspn.
13365         * modules/mbscspn: New file.
13366         * lib/mbscspn.c: New file.
13367         * lib/string_.h (strcspn): Add a conditional link warning.
13368         (mbscspn): New declaration.
13369         * m4/mbscspn.m4: New file.
13370         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
13371         GNULIB_MBSCSPN.
13372         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
13373         * MODULES.html.sh (Internationalization functions): Add mbscspn.
13374
13375 2007-02-04  Bruno Haible  <bruno@clisp.org>
13376
13377         New module mbscasestr, reduced goal of strcasestr.
13378         * modules/mbscasestr: New file.
13379         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
13380         (mbscasestr): Renamed from strcasestr.
13381         * lib/strcasestr.c: Don't include mbuiter.h.
13382         (strcasestr): Remove support for multibyte locales.
13383         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
13384         Change the conditional link warning.
13385         (mbscasestr): New declaration.
13386         * m4/mbscasestr.m4: New file.
13387         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
13388         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
13389         REPLACE_STRCASESTR.
13390         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
13391         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
13392         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
13393         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
13394         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
13395         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
13396         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
13397         (Depends-on): Remove mbuiter.
13398         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
13399
13400 2007-02-04  Bruno Haible  <bruno@clisp.org>
13401
13402         Simplify handling of strncasecmp.
13403         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
13404         the conditional link warning.
13405         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
13406         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
13407         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
13408         * modules/strcase (configure.ac): Don't invoke
13409         gl_STRING_MODULE_INDICATOR.
13410         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
13411
13412 2007-02-04  Bruno Haible  <bruno@clisp.org>
13413
13414         New module mbscasecmp, reduced goal of strcasecmp.
13415         * modules/mbscasecmp: New file.
13416         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
13417         (mbscasecmp): Renamed from strcasecmp.
13418         * lib/strcasecmp.c: Don't include mbuiter.h.
13419         (strcasecmp): Remove support for multibyte locales.
13420         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
13421         Change the conditional link warning.
13422         (mbscasecmp): New declaration.
13423         * m4/mbscasecmp.m4: New file.
13424         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
13425         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
13426         REPLACE_STRCASECMP.
13427         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
13428         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
13429         GNULIB_MBSCASECMP.
13430         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
13431         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
13432         * modules/strcase (Files): Remove m4/mbrtowc.m4.
13433         (Depends-on): Remove mbuiter.
13434         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
13435
13436 2007-02-04  Bruno Haible  <bruno@clisp.org>
13437
13438         New module mbsstr. Remove module strstr.
13439         * modules/mbsstr: New file.
13440         * modules/strstr: Remove file.
13441         * lib/mbsstr.c: Renamed from lib/strstr.c.
13442         (mbsstr): Renamed from strstr.
13443         * lib/string_.h (strstr): Remove declaration. Change the conditional
13444         link warning.
13445         (mbsstr): New declaration.
13446         * m4/mbsstr.m4: New file.
13447         * m4/strstr.m4: Remove file.
13448         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
13449         REPLACE_STRSTR.
13450         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
13451         Don't initialize GNULIB_STRSTR.
13452         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
13453         substitute GNULIB_STRSTR and REPLACE_STRSTR.
13454         * MODULES.html.sh (Internationalization functions): Add mbsstr.
13455         (Support for systems lacking ANSI C 89): Remove strstr.
13456
13457 2007-02-04  Bruno Haible  <bruno@clisp.org>
13458
13459         New module mbsrchr.
13460         * modules/mbsrchr: New file.
13461         * lib/mbsrchr.c: New file.
13462         * lib/string_.h (strrchr): Add a conditional link warning.
13463         (mbsrchr): New declaration.
13464         * m4/mbsrchr.m4: New file.
13465         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
13466         GNULIB_MBSRCHR.
13467         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
13468         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
13469
13470 2007-02-04  Bruno Haible  <bruno@clisp.org>
13471
13472         New module mbschr.
13473         * modules/mbschr: New file.
13474         * lib/mbschr.c: New file.
13475         * lib/string_.h (strchr): Add a conditional link warning.
13476         (mbschr): New declaration.
13477         * m4/mbschr.m4: New file.
13478         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
13479         GNULIB_MBSCHR.
13480         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
13481         * MODULES.html.sh (Internationalization functions): Add mbschr.
13482
13483 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
13484
13485         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
13486
13487         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
13488
13489 2007-02-04  Bruno Haible  <bruno@clisp.org>
13490
13491         New module description section 'configure.ac-early'.
13492         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
13493         (func_get_autoconf_early_snippet): New function.
13494         (func_import, func_create_testdir): Use it. Remove special cases for
13495         modules 'extensions' and 'lock'.
13496         * modules/extensions (configure.ac-early): Require
13497         gl_USE_SYSTEM_EXTENSIONS.
13498         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
13499
13500 2007-02-04  Bruno Haible  <bruno@clisp.org>
13501
13502         Make use of gcj-4.3's -fsource and -ftarget option.
13503         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
13504         and if so try the options -fsource and -ftarget.
13505         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
13506         source_version, ftarget_option, target_version arguments.
13507         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
13508         (is_envjavac_oldgcj_14_14_usable): Renamed from
13509         is_envjavac_gcj_14_14_usable.
13510         (is_envjavac_oldgcj_14_13_usable): Renamed from
13511         is_envjavac_gcj_14_13_usable.
13512         (is_gcj_present): Update.
13513         (is_gcj_43, is_gcj43_usable): New functions.
13514         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
13515         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
13516         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
13517         try the options -fsource and -ftarget.
13518
13519 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
13520
13521         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
13522         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
13523         larger value.
13524
13525 2007-02-03  Jim Meyering  <jim@meyering.net>
13526
13527         Give tools a better chance to allocate space for very large buffers.
13528         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
13529
13530         Make pwd and readlink work also when run with an unreadable parent dir
13531         on systems with openat support.
13532         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
13533         provided getcwd function, even when we have openat support.
13534         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
13535
13536 2007-02-02  Bruno Haible  <bruno@clisp.org>
13537
13538         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
13539         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
13540         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
13541         portability problems if one of these functions is only used on specific
13542         platforms.
13543         Reported by Paul Eggert.
13544
13545 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
13546
13547         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
13548         is causing more trouble than it's curing.
13549         * lib/regex_internal.h (__mempcpy): Remove.
13550         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
13551         (and make the code a tad smaller to boot).
13552         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
13553
13554 2007-02-02  Jim Meyering  <jim@meyering.net>
13555
13556         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
13557         section, not in the Makefile.am: one.
13558
13559 2007-02-02  Eric Blake  <ebb9@byu.net>
13560
13561         * lib/strchrnul.c: Always include config.h first.
13562
13563         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
13564         gnulib strstr is not necessary here.
13565
13566 2007-02-02  Simon Josefsson  <simon@josefsson.org>
13567
13568         * m4/socklen.m4: Fix typo.
13569
13570 2007-02-02  Eric Blake  <ebb9@byu.net>
13571
13572         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
13573         * modules/netinet_in (Makefile.am): Likewise.
13574
13575 2007-02-01  Bruno Haible  <bruno@clisp.org>
13576
13577         * lib/string_.h (GL_LINK_WARNING): New macro.
13578         (strcasecmp, strstr, strcasestr): If provided by the system,
13579         conditionally define as a macro that leads to a warning instead of to
13580         an error.
13581         (strncasecmp): Conditionally define as a macro that leads to a warning.
13582
13583 2007-02-01  Karl Berry  <karl@gnu.org>
13584
13585         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
13586
13587 2007-02-01  Bruno Haible  <bruno@clisp.org>
13588
13589         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
13590         renamings.
13591
13592 2007-02-01  Eric Blake  <ebb9@byu.net>
13593
13594         * modules/regex (Depends-on): Revert dependence on mempcpy.
13595         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
13596         module's definition of mempcpy.
13597         Reported by Paul Eggert.
13598
13599 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
13600
13601         * lib/string_.h: If the gnulib module XYZ is not present, undefine
13602         the symbol XYZ before redefining it.  This fixes a problem with
13603         programs that don't use XYZ, when compiled on systems that define
13604         XYZ to something else.
13605
13606 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
13607
13608         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
13609         occurs when "mkdir -m foo" creates a setgid directory that is (1)
13610         writeable to group or other and (2) is intended to have a special
13611         mode bit that is set or cleared.  In such a case, the directory
13612         should be neither group- nor other-writeable until the special
13613         mode bits are right.
13614
13615 2007-01-31  Eric Blake  <ebb9@byu.net>
13616
13617         * modules/mountlist (Depends-on): Add strstr.
13618
13619         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
13620         bug.
13621         * modules/string (Makefile.am): Remove redundant replacement.
13622         * modules/regex (Depends-on): Add mempcpy.
13623
13624 2007-01-31  Bruno Haible  <bruno@clisp.org>
13625
13626         New module description field 'Link'.
13627         * gnulib-tool (func_usage): Document --extract-link-directive.
13628         (sed_extract_prog): Recognize 'Link' directive.
13629         (func_get_link_directive): New function.
13630         (func_import): Show summary of link directives.
13631         Handle --extract-link-directive option.
13632         * modules/acl (Link): New section.
13633         * modules/clock-time (Link): New section.
13634         * modules/euidaccess (Link): New section.
13635         * modules/gettext (Link): New section.
13636         * modules/iconv (Link): New section.
13637         * modules/lock (Link): New section.
13638         * modules/nanosleep (Link): New section.
13639         * modules/readline (Link): New section.
13640
13641 2007-01-27  Bruno Haible  <bruno@clisp.org>
13642
13643         Enforce the use of gnulib modules for unportable <string.h> functions.
13644         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
13645         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
13646         (gl_HEADER_STRING_H_BODY): Require it.
13647         * lib/string_.h: If the gnulib module XYZ is not present, redefine
13648         the symbol XYZ to one that gives a link error.
13649         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
13650         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
13651         * modules/mempcpy (configure.ac): Likewise.
13652         * modules/memrchr (configure.ac): Likewise.
13653         * modules/stpcpy (configure.ac): Likewise.
13654         * modules/stpncpy (configure.ac): Likewise.
13655         * modules/strcase (configure.ac): Likewise.
13656         * modules/strcasestr (configure.ac): Likewise.
13657         * modules/strchrnul (configure.ac): Likewise.
13658         * modules/strdup (configure.ac): Likewise.
13659         * modules/strndup (configure.ac): Likewise.
13660         * modules/strnlen (configure.ac): Likewise.
13661         * modules/strpbrk (configure.ac): Likewise.
13662         * modules/strsep (configure.ac): Likewise.
13663         * modules/strstr (configure.ac): Likewise.
13664         * modules/strtok_r (configure.ac): Likewise.
13665
13666 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
13667
13668         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
13669
13670 2007-01-30  Jim Meyering  <jim@meyering.net>
13671
13672         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
13673
13674 2007-01-29  Bruno Haible  <bruno@clisp.org>
13675
13676         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
13677         * lib/execute.c: Likewise.
13678         * lib/pipe.c: Likewise.
13679         * lib/printf-args.h: Likewise.
13680         * lib/printf-args.c: Likewise.
13681         * lib/printf-parse.c: Likewise.
13682         * lib/vasnprintf.c: Likewise.
13683
13684 2007-01-29  Eric Blake  <ebb9@byu.net>
13685
13686         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
13687         declaration.
13688
13689 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
13690
13691         * lib/strptime.h (strptime): Use 'restrict' for args where
13692         POSIX requires this.
13693         * lib/strptime.c (strptime): Likewise.
13694         Change license notice from LGPL to GPL, since gnulib-tool will
13695         change this as needed.
13696         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
13697         defined.
13698         Include "strptime.h" first, to check interface.
13699         Do not #undef _LIBC and _NL_CURRENT.
13700         Do not include <stdlib.h>; no longer needed.
13701         Include "time_r.h" and declare ptime_locale_status
13702         only if _LIBC is not defined.
13703         (__P): Remove unused macro.
13704         (match_string): Bring back glibc version, but use it only if _LIBC
13705         is defined.
13706         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
13707         Remove unnecessary assertion and abort() call.
13708         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
13709         * m4/strptime.m4: Fix serial number comment.
13710         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
13711         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
13712         (Depends-on): Add time_r.
13713
13714 2007-01-29  Bruno Haible  <bruno@clisp.org>
13715
13716         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
13717         strptime.
13718         * modules/strptime (Depends-on): Add stdbool.
13719         * lib/strptime.h: Include <time.h> always. Add comments.
13720
13721 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
13722
13723         * modules/strptime: New file.
13724         * lib/strptime.h: New file.
13725         * lib/strptime.c: New file.
13726         * m4/strptime.m4: New file.
13727
13728 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
13729
13730         * MODULES.html.sh: New module mpsort.
13731         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
13732
13733         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
13734         a circularity problem with HP-UX ia64 reported by Bob Proulx in
13735         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
13736         All uses changed.
13737         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
13738         All uses changed.
13739         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
13740         to _Restrict_.
13741         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
13742         the parameter matches the prototype.
13743
13744 2007-01-28  Jim Meyering  <jim@meyering.net>
13745
13746         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
13747         sys/time.h here, reverting that part of the previous patch:
13748         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
13749
13750 2007-01-28  Bruno Haible  <bruno@clisp.org>
13751
13752         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
13753         value of $(SYS_TIME_H).
13754         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
13755         remove it conditionally, too. [added by Jim Meyering]
13756         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
13757         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
13758         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
13759         GETTIMEOFDAY_REPLACEMENT to 1.
13760
13761 2007-01-28  Bruno Haible  <bruno@clisp.org>
13762
13763         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
13764         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
13765         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
13766         Set UNISTD_H instead of UNISTD_H2.
13767         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
13768
13769 2007-01-28  Bruno Haible  <bruno@clisp.org>
13770
13771         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
13772         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
13773
13774 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13775
13776         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
13777         (func_create_testdir): Ensure C locale for `grep' and `tr'
13778         character ranges.
13779         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
13780         ACLOCAL_AMFLAGS parsing state machine.
13781
13782 2007-01-27  Bruno Haible  <bruno@clisp.org>
13783
13784         * modules/unistr/base: Update.
13785
13786 2007-01-27  Bruno Haible  <bruno@clisp.org>
13787
13788         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
13789         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
13790         * modules/unistr/u32-mbtouc-unsafe: Renamed from
13791         modules/unistr/u32-mbtouc.
13792         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
13793         * lib/unistr.h: Update.
13794         * lib/linebreak.c: Update.
13795         * modules/unistr/u32-mbtouc: Renamed from
13796         modules/unistr/u32-mbtouc-safe.
13797         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
13798         * lib/unistr.h: Update.
13799         * lib/unistr/u32-to-u8.c: Update.
13800         * lib/unistr/u32-to-u16.c: Update.
13801
13802 2007-01-27  Bruno Haible  <bruno@clisp.org>
13803
13804         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
13805         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
13806         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
13807         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
13808         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
13809         * modules/unistr/u16-mbtouc-unsafe: Renamed from
13810         modules/unistr/u16-mbtouc.
13811         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
13812         * lib/unistr.h: Update.
13813         * lib/linebreak.c: Update.
13814         * modules/linebreak: Update.
13815         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
13816         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
13817         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
13818         * modules/unistr/u16-mbtouc: Renamed from
13819         modules/unistr/u16-mbtouc-safe.
13820         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
13821         * lib/unistr.h: Update.
13822         * lib/unistr/u16-to-u8.c: Update.
13823         * modules/unistr/u16-to-u8: Update.
13824         * lib/unistr/u16-to-u32.c: Update.
13825         * modules/unistr/u16-to-u32: Update.
13826
13827 2007-01-27  Bruno Haible  <bruno@clisp.org>
13828
13829         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
13830         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
13831         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
13832         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
13833         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
13834         * modules/unistr/u8-mbtouc-unsafe: Renamed from
13835         modules/unistr/u8-mbtouc.
13836         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
13837         * lib/unistr.h: Update.
13838         * lib/striconveh.c: Update.
13839         * modules/striconveh: Update.
13840         * lib/linebreak.c: Update.
13841         * modules/linebreak: Update.
13842         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
13843         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
13844         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
13845         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
13846         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
13847         * lib/unistr.h: Update.
13848         * lib/striconveh.c: Update.
13849         * modules/striconveh: Update.
13850         * lib/unistr/u8-to-u16.c: Update.
13851         * modules/unistr/u8-to-u16: Update.
13852         * lib/unistr/u8-to-u32.c: Update.
13853         * modules/unistr/u8-to-u32: Update.
13854
13855 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13856
13857         Sync from Libtool.
13858         * lib/argz.c: Do not include strings.h nor memory.h, include
13859         string.h unconditionally.  Patch by Simon Josefsson.
13860
13861 2007-01-27  Bruno Haible  <bruno@clisp.org>
13862
13863         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
13864         from gl_HEADER_STRING_H_BODY.
13865         (gl_HEADER_STRING_H_BODY): Require it.
13866         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
13867         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
13868         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
13869         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
13870         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
13871         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
13872         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
13873         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
13874         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
13875         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
13876         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
13877         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
13878         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
13879         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
13880         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
13881
13882 2007-01-27  Bruno Haible  <bruno@clisp.org>
13883
13884         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
13885         check_PROGRAMS into noinst_PROGRAMS.
13886         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
13887         check_PROGRAMS in this case.
13888         (func_import): Set for_test to false.
13889         (func_create_testdir): Set for_test to true.
13890
13891 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
13892             Bruno Haible  <bruno@clisp.org>
13893
13894         * modules/strcasestr (Files): Remove lib/strcasestr.h.
13895         (Depends-on): Add string.
13896         (Includes): Use <string.h> instead of strcasestr.h.
13897         * modules/string (Makefile.am): Also substitute the value of
13898         REPLACE_STRCASESTR.
13899         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
13900         assume strcasestr is declared in <string.h> not <strings.h>. Also
13901         set REPLACE_STRCASESTR.
13902         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
13903         REPLACE_STRCASESTR.
13904         * lib/strcasestr.h: Remove file.
13905         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
13906         * lib/string_.h (strcasestr): New declaration.
13907
13908 2007-01-27  Bruno Haible  <bruno@clisp.org>
13909
13910         * lib/string_.h: Use 'extern'.
13911
13912 2007-01-27  Jim Meyering  <jim@meyering.net>
13913
13914         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
13915         of set-but-not-used local, "q".
13916
13917         * lib/mempcpy.c: Include <config.h> before <string.h>.
13918         This fixes a compilation error on HP-UX, due to the system's
13919         "restrict"-using mempcpy prototype.
13920
13921 2007-01-26  Bruno Haible  <bruno@clisp.org>
13922
13923         Small optimization.
13924         * lib/javacomp.c: Include c-strstr.h.
13925          (is_envjavac_gcj): Use c_strstr instead of strstr.
13926         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
13927
13928 2007-01-26  Bruno Haible  <bruno@clisp.org>
13929
13930         * MODULES.html.sh (Unicode string functions): Add the new modules.
13931
13932         * modules/uniconv/u32-strconv-to-locale: New file.
13933         * lib/uniconv/u32-strconv-to-locale.c: New file.
13934
13935         * modules/uniconv/u16-strconv-to-locale: New file.
13936         * lib/uniconv/u16-strconv-to-locale.c: New file.
13937
13938         * modules/uniconv/u8-strconv-to-locale: New file.
13939         * lib/uniconv/u8-strconv-to-locale.c: New file.
13940
13941         * modules/uniconv/u32-strconv-from-locale: New file.
13942         * lib/uniconv/u32-strconv-from-locale.c: New file.
13943
13944         * modules/uniconv/u16-strconv-from-locale: New file.
13945         * lib/uniconv/u16-strconv-from-locale.c: New file.
13946
13947         * modules/uniconv/u8-strconv-from-locale: New file.
13948         * lib/uniconv/u8-strconv-from-locale.c: New file.
13949
13950         * modules/uniconv/u32-strconv-to-enc: New file.
13951         * lib/uniconv/u32-strconv-to-enc.c: New file.
13952         * modules/uniconv/u32-strconv-to-enc-tests: New file.
13953         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
13954
13955         * modules/uniconv/u16-strconv-to-enc: New file.
13956         * lib/uniconv/u16-strconv-to-enc.c: New file.
13957         * lib/uniconv/u-strconv-to-enc.h: New file.
13958         * modules/uniconv/u16-strconv-to-enc-tests: New file.
13959         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
13960
13961         * modules/uniconv/u8-strconv-to-enc: New file.
13962         * lib/uniconv/u8-strconv-to-enc.c: New file.
13963         * modules/uniconv/u8-strconv-to-enc-tests: New file.
13964         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
13965
13966         * modules/uniconv/u32-strconv-from-enc: New file.
13967         * lib/uniconv/u32-strconv-from-enc.c: New file.
13968         * modules/uniconv/u32-strconv-from-enc-tests: New file.
13969         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
13970
13971         * modules/uniconv/u16-strconv-from-enc: New file.
13972         * lib/uniconv/u16-strconv-from-enc.c: New file.
13973         * modules/uniconv/u16-strconv-from-enc-tests: New file.
13974         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
13975
13976         * modules/uniconv/u8-strconv-from-enc: New file.
13977         * lib/uniconv/u8-strconv-from-enc.c: New file.
13978         * lib/uniconv/u-strconv-from-enc.h: New file.
13979         * modules/uniconv/u8-strconv-from-enc-tests: New file.
13980         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
13981
13982         * modules/uniconv/u32-conv-from-enc: New file.
13983         * lib/uniconv/u32-conv-from-enc.c: New file.
13984         * modules/uniconv/u32-conv-from-enc-tests: New file.
13985         * tests/uniconv/test-u32-conv-from-enc.c: New file.
13986
13987         * modules/uniconv/u16-conv-from-enc: New file.
13988         * lib/uniconv/u16-conv-from-enc.c: New file.
13989         * lib/uniconv/u-conv-from-enc.h: New file.
13990         * modules/uniconv/u16-conv-from-enc-tests: New file.
13991         * tests/uniconv/test-u16-conv-from-enc.c: New file.
13992
13993         * modules/uniconv/u8-conv-from-enc: New file.
13994         * lib/uniconv/u8-conv-from-enc.c: New file.
13995         * modules/uniconv/u8-conv-from-enc-tests: New file.
13996         * tests/uniconv/test-u8-conv-from-enc.c: New file.
13997
13998         * modules/uniconv/base: New file.
13999         * lib/uniconv.h: New file.
14000
14001 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
14002
14003         * doc/gnulib-tool.texi (Initial import): Update to match current
14004         behavior with strdup module.
14005         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
14006         * lib/memmem.h: Remove; all uses removed.  This is now done
14007         by <string.h>.
14008         * lib/mempcpy.h: Likewise.
14009         * lib/memrchr.h: Likewise.
14010         * lib/stpcpy.h: Likewise.
14011         * lib/stpncpy.h: Likewise.
14012         * lib/strcase.h: Likewise.
14013         * lib/strchrnul.h: Likewise.
14014         * lib/strdup.h: Likewise.
14015         * lib/strndup.h: Likewise.
14016         * lib/strnlen.h: Likewise.
14017         * lib/strpbrk.h: Likewise.
14018         * lib/strsep.h: Likewise.
14019         * lib/strstr.h: Likewise.
14020         * lib/strtok_r.h: Likewise.
14021         * lib/string_.h: New file.
14022         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
14023         Rely on <string.h> instead.
14024         * lib/canon-host.c: Likewise.
14025         * lib/chdir-long.c: Likewise.
14026         * lib/concatpath.c: Likewise.
14027         * lib/exclude.c: Likewise.
14028         * lib/fchdir.c: Likewise.
14029         * lib/getaddrinfo.c: Likewise.
14030         * lib/getcwd.c: Likewise.
14031         * lib/getsubopt.c: Likewise.
14032         * lib/glob.c: Likewise.
14033         * lib/hard-locale.c: Likewise.
14034         * lib/iconvme.c: Likewise.
14035         * lib/javacomp.c: Likewise.
14036         * lib/mempcpy.c: Likewise.
14037         * lib/memrchr.c: Likewise.
14038         * lib/regex_internal.h: Likewise.
14039         * lib/stpncpy.c: Likewise.
14040         * lib/strcasecmp.c: Likewise.
14041         * lib/strchrnul.c: Likewise.
14042         * lib/strdup.c: Likewise.
14043         * lib/striconv.c: Likewise.
14044         * lib/striconveh.c: Likewise.
14045         * lib/striconveha.c: Likewise.
14046         * lib/strncasecmp.c: Likewise.
14047         * lib/strndup.c: Likewise.
14048         * lib/strnlen.c: Likewise.
14049         * lib/strsep.c: Likewise.
14050         * lib/strstr.c: Likewise.
14051         * lib/strtok_r.c: Likewise.
14052         * lib/userspec.c: Likewise.
14053         * lib/w32spawn.h: Likewise.
14054         * lib/xstrndup.c: Likewise.
14055         * lib/mountlist.c (strstr): Remove decl.
14056         * m4/string_h.m4: New file.
14057         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
14058         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
14059         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
14060         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
14061         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
14062         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
14063         Set REPLACE_STRCASECMP if necessary.
14064         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
14065         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
14066         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
14067         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
14068         HAVE_DECL_STRDUP if necessary.
14069         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
14070         since gl_FUNC_STRNDUP does that now.
14071         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
14072         Check for decl here...
14073         (gl_PREREQ_STRNLEN): ... not here.
14074         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
14075         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
14076         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
14077         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
14078         necessary.
14079         * modules/string: New file.
14080         * modules/memmem (Files): Remove special-purpose include file.
14081         (Depends-on): Add string.
14082         (Include): Include <string.h>, not the removed file.
14083         * modules/mempcpy: Likewise.
14084         * modules/memrchr: Likewise.
14085         * modules/stpcpy: Likewise.
14086         * modules/stpncpy: Likewise.
14087         * modules/strcase: Likewise.
14088         * modules/strchrnul: Likewise.
14089         * modules/strdup: Likewise.
14090         * modules/strndup: Likewise.
14091         * modules/strnlen: Likewise.
14092         * modules/strpbrk: Likewise.
14093         * modules/strsep: Likewise.
14094         * modules/strstr: Likewise.
14095         * modules/strtok_r: Likewise.
14096         * tests/test-dirname.c: Don't include "strdup.h", since
14097         <string.h> now suffices.
14098         * tests/test-memmem.c: Don't include "memmem.h", since
14099         <string.h> now suffices.
14100
14101 2007-01-25  Bruno Haible  <bruno@clisp.org>
14102
14103         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
14104         *resultp is 0.
14105
14106         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
14107         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
14108         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
14109         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
14110
14111         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
14112         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
14113         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
14114         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
14115         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
14116         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
14117
14118 2007-01-24  Bruno Haible  <bruno@clisp.org>
14119
14120         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
14121         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
14122         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
14123         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
14124         gl_FUNC_FTS_CORE.
14125         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
14126         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
14127         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
14128         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
14129         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
14130         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
14131         gl_FUNC_FCHOWNAT.
14132         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
14133         gl_FUNC_STRFTIME.
14134         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
14135         Reported by Ralf Wildenhues.
14136
14137 2007-01-24  Bruno Haible  <bruno@clisp.org>
14138
14139         Drop AC_REQUIRE calls that are redundant with the module dependencies.
14140         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
14141         gl_GETADDRINFO.
14142         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
14143         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
14144         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
14145
14146 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
14147
14148         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
14149         Don't use 'exit'; just return from 'main'.
14150         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
14151
14152         * lib/fnmatch_.h: Readjust white space and comments to match
14153         glibc, to avoid spurious diffs.
14154
14155 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
14156
14157         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
14158         2004-12-01 change by Jakub Jelinek, since this code won't compile
14159         if !LIBC.  Problem reported by Bob Proulx.
14160
14161 2007-01-23  Bruno Haible  <bruno@clisp.org>
14162
14163         * lib/striconveh.c: Include c-strcaseeq.h.
14164         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
14165         * modules/striconveh (Depends-on): Add c-strcaseeq.
14166
14167 2007-01-23  Bruno Haible  <bruno@clisp.org>
14168
14169         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
14170
14171         * modules/c-strcaseeq: New file.
14172         * lib/c-strcaseeq.h: New file.
14173
14174         * modules/streq: New file.
14175         * lib/streq.h: New file.
14176
14177 2007-01-23  Bruno Haible  <bruno@clisp.org>
14178
14179         * modules/striconveha-tests: New file.
14180         * tests/test-striconveha.c: New file.
14181
14182         * lib/striconveha.h: Include <stdbool.h>.
14183         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
14184         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
14185         (mem_iconveha_notranslit): Renamed from mem_iconveha.
14186         (mem_iconveha): New function.
14187         (str_iconveha_notranslit): Renamed from str_iconveha.
14188         (str_iconveha): New function.
14189         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
14190         c-strcase.
14191
14192 2007-01-23  Bruno Haible  <bruno@clisp.org>
14193
14194         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
14195         encodings without forgiving before trying any encoding with handler.
14196         (str_iconveha): Try all encodings without forgiving before trying any
14197         encoding with handler.
14198
14199 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
14200
14201         Import the following changes from libc.
14202
14203         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
14204
14205         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
14206
14207         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
14208
14209         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
14210         normal_bracket label.
14211
14212         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
14213
14214         [BZ #361]
14215         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
14216         to normal_bracket after fetching the next character.
14217
14218 2007-01-22  Bruno Haible  <bruno@clisp.org>
14219
14220         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
14221         argument.
14222         * lib/striconveh.c (iconv_carefully_1): New function.
14223         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
14224         argument.
14225         (str_cd_iconveh): Update.
14226         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
14227         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
14228         * tests/test-striconveh.c (MAGIC): New macro.
14229         (new_offsets): New function.
14230         (main): Test call with and without offsets.
14231
14232 2007-01-22  Bruno Haible  <bruno@clisp.org>
14233
14234         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
14235         * modules/sys_select (Makefile.am): Likewise.
14236         * modules/sys_socket (Makefile.am): Likewise.
14237         * modules/sys_time (Makefile.am): Likewise.
14238
14239 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
14240
14241         * modules/gettimeofday (License): Change from GPL to LGPL, since
14242         gettimeofday is a library function.
14243
14244 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
14245
14246         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
14247
14248 2007-01-21  Bruno Haible  <bruno@clisp.org>
14249
14250         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
14251
14252 2007-01-21  Bruno Haible  <bruno@clisp.org>
14253
14254         * modules/striconveha: New file.
14255         * lib/striconveha.h: New file.
14256         * lib/striconveha.c: New file.
14257         * MODULES.html.sh (Internationalization functions): Add striconveha.
14258         * lib/striconv.c (str_iconv): Optimize the case of an empty input
14259         string.
14260         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
14261
14262 2007-01-21  Bruno Haible  <bruno@clisp.org>
14263
14264         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
14265         * lib/striconveh.c (str_iconveh): Likewise.
14266
14267 2007-01-21  Bruno Haible  <bruno@clisp.org>
14268
14269         * lib/striconveh.h (mem_iconveh): New declaration.
14270         * lib/striconveh.c (mem_iconveh): New function.
14271         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
14272
14273 2007-01-21  Bruno Haible  <bruno@clisp.org>
14274
14275         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
14276
14277         * lib/striconveh.h (mem_cd_iconveh): Change specification.
14278         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
14279         original result buffer.
14280         (str_cd_iconveh): Update.
14281         * tests/test-striconveh.c (main): Update.
14282
14283         * lib/striconv.h (mem_cd_iconv): Change specification.
14284         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
14285         result buffer.
14286         (str_cd_iconv): Update.
14287         * tests/test-striconv.c (main): Update.
14288
14289 2007-01-21  Bruno Haible  <bruno@clisp.org>
14290
14291         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
14292
14293 2007-01-20  Jim Meyering  <jim@meyering.net>
14294
14295         * lib/userspec.c (parse_with_separator): If a user or group string
14296         starts with "+", skip the corresponding name-to-ID look-up, since
14297         such a look-up must fail: user and group names may not include "+".
14298
14299 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
14300
14301         * lib/poll.c: Include sys/time.h and time.h unconditionally,
14302         since we now assume the sys_time module.
14303         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
14304         check for sys/time.h; no longer needed.
14305         * modules/poll (Depends-on): Depend on sys_time.
14306
14307 2007-01-18  Bruno Haible  <bruno@clisp.org>
14308
14309         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
14310         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
14311
14312         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
14313         gettimeofday.
14314
14315         * tests/test-gettimeofday.c: Include <time.h>.
14316         (dummy): Remove variable.
14317
14318         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
14319         gl_HEADER_SYS_TIME_H.
14320         (gl_HEADER_SYS_TIME_H): New macro.
14321
14322         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
14323         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
14324         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
14325         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
14326         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
14327         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
14328         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
14329         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
14330         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
14331         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
14332         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
14333
14334         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
14335         last change; it caused a compilation error when cross-compiling to
14336         Cygwin.
14337
14338 2007-01-18  Jim Meyering  <jim@meyering.net>
14339
14340         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
14341         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
14342         than the race-prone "test -d sys || mkdir sys".
14343         (configure.ac): Use AC_PROG_MKDIR_P.
14344         * modules/sys_select: Likewise.
14345         * modules/sys_socket: Likewise.
14346         * modules/sys_time: Likewise.
14347
14348 2007-01-18  Eric Blake  <ebb9@byu.net>
14349
14350         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
14351         replace gettimeofday.
14352         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
14353         name, to avoid infinite recursion.
14354
14355 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
14356
14357         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
14358         module sys_time.
14359         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
14360         assume timespec.h defines struct timeval.
14361         * lib/settime.c: Likewise.
14362         * lib/utimens.c: Likewise.
14363         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
14364         since we now assume the gettimeofday module.
14365         * lib/tempname.c (__gen_tempname): Likewise.
14366         * lib/gettimeofday.h: Remove.
14367         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
14368         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
14369         Include <time.h>, for 'time()'.
14370         (localtime_buffer_addr): Also use this workaround if
14371         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
14372         to simplify the uses.  All uses changed.
14373         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
14374         that #undef is inside {}, and 'const' follows type name consistently.
14375         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
14376         (gettimeofday): Do not use the maximum possible value for
14377         tv->tv_usec, since that might break usages other than ls.c.
14378         Instead, we'll leave ls.c alone.  This undoes today's patch
14379         by Bruno.  Add a compile-time warning for 1s-clock resolution;
14380         we've never observed the problem but might as well keep the
14381         canary.
14382         * lib/nanosleep.c: Include timespec.h first, for interface check.
14383         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
14384         now assume the sys_time module.
14385         * lib/tempname.c: Likewise.
14386         * lib/timespec.h: Likewise.
14387         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
14388         needed.
14389         * lib/strftime.c: Likewise.
14390         * lib/timespec.h: Likewise.
14391         * lib/posixtm.c: Include posixtm.h first, for interface check.
14392         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
14393         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
14394         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
14395         * lib/sys_time_.h: New file.
14396         * lib/timespec.h (struct timespec): Use long int, not long.
14397         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
14398         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
14399         Remove obsolescent call to AC_HEADER_TIME.
14400         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
14401         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
14402         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
14403         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
14404         Likewise.
14405         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
14406         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
14407         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
14408         into the sys_time module.  Check for gettimeofday just once.
14409         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
14410         for gettimeofday signature to just check the signature.  Merely
14411         compile it, since linking doesn't test signature.  Improve test for
14412         whether gettimeofday.o is actually needed.
14413         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
14414         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
14415         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
14416         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
14417         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
14418         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
14419         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
14420         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
14421         than worrying about sys/time.h.
14422         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
14423         Don't bother worrying about TIME_WITH_SYS_TIME.
14424         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
14425         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
14426         * m4/sys_time_h.m4: New file.
14427         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
14428         Don't include sys/time.h.  Return from main rather than exiting.
14429         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
14430         all uses changed.
14431         * modules/gethrxtime (Depends-on): Add sys_time.
14432         * modules/gettime (Depends-on): Likewise.
14433         * modules/gettimeofday (Depends-on): Likewise.
14434         * modules/nanosleep (Depends-on): Likewise.
14435         * modules/settime (Depends-on): Likewise.
14436         * modules/tempname (Depends-on): Likewise.
14437         * modules/utimens (Depends-on): Likewise.
14438         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
14439         (Include:) Change back to <sys/time.h>.
14440         (Maintainer:) Add self.
14441         * modules/sys_time: New file.
14442         * modules/tempname (Depends-on): Add gettimeofday.
14443         * tests/test-gettimeofday.c: Include <sys/time.h>
14444         rather than gettimeofday.h.
14445
14446 2007-01-17  Bruno Haible  <bruno@clisp.org>
14447
14448         * gnulib-tool (func_get_license): Revert last patch. Instead, let
14449         the license default to GPL.
14450         (func_create_testdir): Don't complain if a module is LGPL and its
14451         tests module depends on GPLed modules.
14452
14453 2007-01-17  Bruno Haible  <bruno@clisp.org>
14454
14455         * lib/gettimeofday.c (gettimeofday): Add code for the case
14456         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
14457         maximum possible value for tv->tv_usec, rather than the minimum one.
14458
14459 2005-10-08  Martin Lambers  <marlam@marlam.de>
14460 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
14461 2007-01-16  Bruno Haible  <bruno@clisp.org>
14462
14463         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
14464         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
14465         gl_FUNC_GETTIMEOFDAY.
14466         (Include): Add gettimeofday.h.
14467         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
14468         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
14469         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
14470         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
14471         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
14472         * lib/gettimeofday.h: New file.
14473         * lib/gettimeofday.c: Include <sys/timeb.h>.
14474         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
14475         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
14476         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
14477         fall back on time().
14478
14479         * tests/test-gettimeofday.c: New file.
14480         * modules/gettimeofday-tests: New file.
14481
14482 2007-01-16  Eric Blake  <ebb9@byu.net>
14483
14484         * modules/fnmatch (Depends-on): Depend on wchar.
14485         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
14486         * m4/fnmatch.m4: Likewise.
14487         * modules/mbchar (Makefile.am): Assume <wchar.h>.
14488         * m4/mbchar.m4: Likewise.
14489         * modules/mbswidth (Depends-on): Depend on wchar.
14490         * lib/mbswidth.c: Assume <wchar.h>.
14491         * m4/mbswidth.m4: Likewise.
14492         * modules/quotearg (Depends-on): Depend on wchar.
14493         * lib/quotearg.c: Assume <wchar.h>.
14494         * m4/quotearg.m4: Likewise.
14495         * modules/regex (Depends-on): Depend on wchar.
14496         * lib/regex_internal.h: Assume <wchar.h>.
14497         * m4/regex.m4: Likewise.
14498         * modules/stdint (Depends-on): Depend on wchar.
14499         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
14500         * m4/stdint.m4: Likewise.
14501         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
14502         * modules/strftime (Depends-on): Depend on wchar.
14503         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
14504         * modules/strtol (Depends-on): Depend on wchar.
14505         * lib/strtol.c: Assume <wchar.h>.
14506         * modules/wcwidth (Depends-on): Depend on wchar.
14507         * lib/wcwidth.h: Assume <wchar.h>.
14508         * m4/wcwidth.m4: Likewise.
14509
14510 2007-01-16  Bruno Haible  <bruno@clisp.org>
14511
14512         * modules/csharpexec-script: New, created from...
14513         * modules/csharpexec: ... this.
14514
14515 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
14516
14517         * modules/javaexec-script: New, created from...
14518         * modules/javaexec: ... this.
14519
14520 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
14521
14522         * modules/poll (Dependencies): Add sys_select.
14523
14524 2007-01-15  Jim Meyering  <jim@meyering.net>
14525
14526         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
14527         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
14528         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
14529         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
14530
14531 2007-01-15  Bruno Haible  <bruno@clisp.org>
14532
14533         * modules/striconveh: New file.
14534         * lib/striconveh.h: New file.
14535         * lib/striconveh.c: New file.
14536         * MODULES.html.sh (Internationalization functions): Add striconveh.
14537
14538         * modules/striconveh-tests: New file.
14539         * tests/test-striconveh.c: New file.
14540
14541 2007-01-15  Bruno Haible  <bruno@clisp.org>
14542
14543         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
14544         not from GNU libiconv or GNU libc.
14545
14546 2007-01-15  Bruno Haible  <bruno@clisp.org>
14547
14548         * doc/gnulib-intro.texi (Copyright): Explain the different license
14549         terms for module descriptions, autoconf macros, tests, documentation.
14550
14551 2007-01-14  Bruno Haible  <bruno@clisp.org>
14552
14553         * modules/striconv-tests: New file.
14554         * tests/test-striconv.c: New file.
14555
14556 2007-01-14  Bruno Haible  <bruno@clisp.org>
14557
14558         * modules/iconv-tests: New file.
14559         * tests/test-iconv.c: New file.
14560
14561 2007-01-14  Bruno Haible  <bruno@clisp.org>
14562
14563         * gnulib-tool (func_get_license): For test modules, use the license of
14564         the main module.
14565
14566 2007-01-14  Bruno Haible  <bruno@clisp.org>
14567
14568         * modules/iconv (Include): Clarify that <iconv.h> can only be included
14569         if iconv is found to exist.
14570
14571 2007-01-14  Bruno Haible  <bruno@clisp.org>
14572
14573         * modules/c-ctype-tests: New file.
14574         * tests/test-c-ctype.c: New file.
14575
14576 2007-01-14  Bruno Haible  <bruno@clisp.org>
14577
14578         * modules/binary-io-tests: New file.
14579         * tests/test-binary-io.sh: New file.
14580         * tests/test-binary-io.c: New file.
14581
14582 2007-01-14  Bruno Haible  <bruno@clisp.org>
14583
14584         * modules/array-oset-tests: New file.
14585         * tests/test-array_oset.c: New file.
14586
14587 2007-01-14  Bruno Haible  <bruno@clisp.org>
14588
14589         * modules/array-list-tests: New file.
14590         * tests/test-array_list.c: New file.
14591
14592 2007-01-14  Bruno Haible  <bruno@clisp.org>
14593
14594         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
14595         and make.
14596         Reported by Simon Josefsson in
14597         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
14598
14599 2007-01-14  Bruno Haible  <bruno@clisp.org>
14600
14601         * modules/allocsa-tests: New file.
14602         * tests/test-allocsa.c: New file.
14603
14604 2007-01-14  Bruno Haible  <bruno@clisp.org>
14605
14606         * modules/fchdir (Depends-on): Add absolute-header.
14607         * modules/unistd (Depends-on): Likewise.
14608
14609 2006-12-30  Bruno Haible  <bruno@clisp.org>
14610
14611         * modules/fchdir: New file.
14612         * modules/unistd (Files): Add lib/unistd_.h.
14613         (Makefile.am): Generate unistd.h from unistd_.h.
14614         * lib/fchdir.c: New file.
14615         * lib/dirent_.h: New file.
14616         * lib/unistd_.h: New file.
14617         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
14618         * m4/fchdir.m4: New file.
14619         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
14620         (gl_HEADER_UNISTD): Invoke it.
14621         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
14622         function.
14623         * lib/backupfile.c (opendir, closedir): Undefine.
14624         * lib/chown.c (open, close): Undefine.
14625         * lib/clean-temp.c (open, close): Undefine.
14626         * lib/copy-file.c (open, close): Undefine.
14627         * lib/execute.c (open, close): Undefine.
14628         * lib/fsusage.c (open, close): Undefine.
14629         * lib/gc-gnulib.c (open, close): Undefine.
14630         * lib/getcwd.c (opendir, closedir): Undefine.
14631         * lib/glob.c (opendir, closedir): Undefine.
14632         * lib/javacomp.c (open, close): Undefine.
14633         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
14634         * lib/openat-proc.c (open, close): Undefine.
14635         * lib/pagealign_alloc.c (open, close): Undefine.
14636         * lib/pipe.c (open, close): Undefine.
14637         * lib/progreloc.c (open, close): Undefine.
14638         * lib/savedir.c (opendir, closedir): Undefine.
14639         * lib/utime.c (open, close): Undefine.
14640         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
14641
14642 2007-01-10  Bruno Haible  <bruno@clisp.org>
14643
14644         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
14645
14646 2007-01-12  Eric Blake  <ebb9@byu.net>
14647
14648         Provide a robust <wchar.h>.  Further simplifications are now
14649         possible in other modules, but not included here.
14650         * modules/wchar: New module.
14651         * m4/wchar.m4: New file.
14652         * lib/wchar_.h: Likewise.
14653         * modules/mbchar (Depends-on): Depend on wchar, as the first use
14654         of the new module.
14655         * MODULES.html.sh (Extended multibyte and wide character utilities):
14656         New section.
14657
14658 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
14659
14660         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
14661         to a reasonable default for memory allocation.
14662         (xreadlink): Don't allocate a huge buffer, to work around a buggy
14663         file system that reports garbage st_size values for symlinks.
14664         Problem reported by Liyang Hu.
14665
14666 2007-01-11  Simon Josefsson  <simon@josefsson.org>
14667
14668         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
14669         Emacs .#* auto-save files).
14670
14671 2007-01-11  Bruno Haible  <bruno@clisp.org>
14672
14673         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
14674         directory.
14675
14676 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
14677
14678         Use @...@ consistently in lib/wctype_.h.
14679         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
14680         on it being set to 1 or 0.
14681         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
14682         go back to AC_SUBSTing it.
14683         * modules/wctype (Makefile.am): Undo previous change.
14684
14685 2007-01-10  Eric Blake  <ebb9@byu.net>
14686
14687         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
14688         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
14689         * modules/wctype (Makefile.am): Likewise.
14690         Reported by Chris McGuire.
14691
14692 2007-01-10  Jim Meyering  <jim@meyering.net>
14693
14694         fts.c: a small readability/maintainability improvement
14695         * lib/fts.c (fts_read): Make this code slightly more readable and
14696         maintainable by hoisting the "sp->fts_cur = p" assignments to
14697         immediately follow the statements that set P.  Derived from
14698         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
14699
14700 2007-01-10  Eric Blake  <ebb9@byu.net>
14701
14702         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
14703         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
14704         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
14705         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
14706         Reported by Chris McGuire.
14707
14708 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14709
14710         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
14711         in sed script.
14712
14713 2007-01-09  Bruno Haible  <bruno@clisp.org>
14714
14715         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
14716         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
14717         variables.
14718         (func_module): Use them.
14719
14720 2007-01-09  Bruno Haible  <bruno@clisp.org>
14721
14722         * modules/unistr/base: New file.
14723         * lib/unistr.h: New file.
14724
14725         * modules/unistr/u8-to-u16: New file.
14726         * lib/unistr/u8-to-u16.c: New file.
14727
14728         * modules/unistr/u8-to-u32: New file.
14729         * lib/unistr/u8-to-u32.c: New file.
14730
14731         * modules/unistr/u16-to-u8: New file.
14732         * lib/unistr/u16-to-u8.c: New file.
14733
14734         * modules/unistr/u16-to-u32: New file.
14735         * lib/unistr/u16-to-u32.c: New file.
14736
14737         * modules/unistr/u32-to-u8: New file.
14738         * lib/unistr/u32-to-u8.c: New file.
14739
14740         * modules/unistr/u32-to-u16: New file.
14741         * lib/unistr/u32-to-u16.c: New file.
14742
14743         * modules/unistr/u8-check: New file.
14744         * modules/unistr/u16-check: New file.
14745         * modules/unistr/u32-check: New file.
14746         * lib/unistr/u8-check.c: New file.
14747         * lib/unistr/u16-check.c: New file.
14748         * lib/unistr/u32-check.c: New file.
14749
14750         * modules/unistr/u8-chr: New file.
14751         * modules/unistr/u16-chr: New file.
14752         * modules/unistr/u32-chr: New file.
14753         * lib/unistr/u8-chr.c: New file.
14754         * lib/unistr/u16-chr.c: New file.
14755         * lib/unistr/u32-chr.c: New file.
14756
14757         * modules/unistr/u8-cmp: New file.
14758         * modules/unistr/u16-cmp: New file.
14759         * modules/unistr/u32-cmp: New file.
14760         * lib/unistr/u8-cmp.c: New file.
14761         * lib/unistr/u16-cmp.c: New file.
14762         * lib/unistr/u32-cmp.c: New file.
14763
14764         * modules/unistr/u8-cpy: New file.
14765         * modules/unistr/u16-cpy: New file.
14766         * modules/unistr/u32-cpy: New file.
14767         * lib/unistr/u8-cpy.c: New file.
14768         * lib/unistr/u16-cpy.c: New file.
14769         * lib/unistr/u32-cpy.c: New file.
14770         * lib/unistr/u-cpy.h: New file.
14771
14772         * modules/unistr/u8-cpy-alloc: New file.
14773         * modules/unistr/u16-cpy-alloc: New file.
14774         * modules/unistr/u32-cpy-alloc: New file.
14775         * lib/unistr/u8-cpy-alloc.c: New file.
14776         * lib/unistr/u16-cpy-alloc.c: New file.
14777         * lib/unistr/u32-cpy-alloc.c: New file.
14778         * lib/unistr/u-cpy-alloc.h: New file.
14779
14780         * modules/unistr/u8-endswith: New file.
14781         * modules/unistr/u16-endswith: New file.
14782         * modules/unistr/u32-endswith: New file.
14783         * lib/unistr/u8-endswith.c: New file.
14784         * lib/unistr/u16-endswith.c: New file.
14785         * lib/unistr/u32-endswith.c: New file.
14786         * lib/unistr/u-endswith.h: New file.
14787
14788         * modules/unistr/u8-mblen: New file.
14789         * modules/unistr/u16-mblen: New file.
14790         * modules/unistr/u32-mblen: New file.
14791         * lib/unistr/u8-mblen.c: New file.
14792         * lib/unistr/u16-mblen.c: New file.
14793         * lib/unistr/u32-mblen.c: New file.
14794
14795         * modules/unistr/u8-mbtouc: New file.
14796         * modules/unistr/u16-mbtouc: New file.
14797         * modules/unistr/u32-mbtouc: New file.
14798         * lib/unistr/u8-mbtouc.c: New file.
14799         * lib/unistr/u16-mbtouc.c: New file.
14800         * lib/unistr/u32-mbtouc.c: New file.
14801
14802         * modules/unistr/u8-mbtouc-safe: New file.
14803         * modules/unistr/u16-mbtouc-safe: New file.
14804         * modules/unistr/u32-mbtouc-safe: New file.
14805         * lib/unistr/u8-mbtouc-safe.c: New file.
14806         * lib/unistr/u16-mbtouc-safe.c: New file.
14807         * lib/unistr/u32-mbtouc-safe.c: New file.
14808
14809         * modules/unistr/u8-move: New file.
14810         * modules/unistr/u16-move: New file.
14811         * modules/unistr/u32-move: New file.
14812         * lib/unistr/u8-move.c: New file.
14813         * lib/unistr/u16-move.c: New file.
14814         * lib/unistr/u32-move.c: New file.
14815         * lib/unistr/u-move.h: New file.
14816
14817         * modules/unistr/u8-next: New file.
14818         * modules/unistr/u16-next: New file.
14819         * modules/unistr/u32-next: New file.
14820         * lib/unistr/u8-next.c: New file.
14821         * lib/unistr/u16-next.c: New file.
14822         * lib/unistr/u32-next.c: New file.
14823
14824         * modules/unistr/u8-prev: New file.
14825         * modules/unistr/u16-prev: New file.
14826         * modules/unistr/u32-prev: New file.
14827         * lib/unistr/u8-prev.c: New file.
14828         * lib/unistr/u16-prev.c: New file.
14829         * lib/unistr/u32-prev.c: New file.
14830
14831         * modules/unistr/u8-set: New file.
14832         * modules/unistr/u16-set: New file.
14833         * modules/unistr/u32-set: New file.
14834         * lib/unistr/u8-set.c: New file.
14835         * lib/unistr/u16-set.c: New file.
14836         * lib/unistr/u32-set.c: New file.
14837         * lib/unistr/u-set.h: New file.
14838
14839         * modules/unistr/u8-startswith: New file.
14840         * modules/unistr/u16-startswith: New file.
14841         * modules/unistr/u32-startswith: New file.
14842         * lib/unistr/u8-startswith.c: New file.
14843         * lib/unistr/u16-startswith.c: New file.
14844         * lib/unistr/u32-startswith.c: New file.
14845         * lib/unistr/u-startswith.h: New file.
14846
14847         * modules/unistr/u8-stpcpy: New file.
14848         * modules/unistr/u16-stpcpy: New file.
14849         * modules/unistr/u32-stpcpy: New file.
14850         * lib/unistr/u8-stpcpy.c: New file.
14851         * lib/unistr/u16-stpcpy.c: New file.
14852         * lib/unistr/u32-stpcpy.c: New file.
14853         * lib/unistr/u-stpcpy.h: New file.
14854
14855         * modules/unistr/u8-stpncpy: New file.
14856         * modules/unistr/u16-stpncpy: New file.
14857         * modules/unistr/u32-stpncpy: New file.
14858         * lib/unistr/u8-stpncpy.c: New file.
14859         * lib/unistr/u16-stpncpy.c: New file.
14860         * lib/unistr/u32-stpncpy.c: New file.
14861         * lib/unistr/u-stpncpy.h: New file.
14862
14863         * modules/unistr/u8-strcat: New file.
14864         * modules/unistr/u16-strcat: New file.
14865         * modules/unistr/u32-strcat: New file.
14866         * lib/unistr/u8-strcat.c: New file.
14867         * lib/unistr/u16-strcat.c: New file.
14868         * lib/unistr/u32-strcat.c: New file.
14869         * lib/unistr/u-strcat.h: New file.
14870
14871         * modules/unistr/u8-strchr: New file.
14872         * modules/unistr/u16-strchr: New file.
14873         * modules/unistr/u32-strchr: New file.
14874         * lib/unistr/u8-strchr.c: New file.
14875         * lib/unistr/u16-strchr.c: New file.
14876         * lib/unistr/u32-strchr.c: New file.
14877
14878         * modules/unistr/u8-strcmp: New file.
14879         * modules/unistr/u16-strcmp: New file.
14880         * modules/unistr/u32-strcmp: New file.
14881         * lib/unistr/u8-strcmp.c: New file.
14882         * lib/unistr/u16-strcmp.c: New file.
14883         * lib/unistr/u32-strcmp.c: New file.
14884
14885         * modules/unistr/u8-strcpy: New file.
14886         * modules/unistr/u16-strcpy: New file.
14887         * modules/unistr/u32-strcpy: New file.
14888         * lib/unistr/u8-strcpy.c: New file.
14889         * lib/unistr/u16-strcpy.c: New file.
14890         * lib/unistr/u32-strcpy.c: New file.
14891         * lib/unistr/u-strcpy.h: New file.
14892
14893         * modules/unistr/u8-strcspn: New file.
14894         * modules/unistr/u16-strcspn: New file.
14895         * modules/unistr/u32-strcspn: New file.
14896         * lib/unistr/u8-strcspn.c: New file.
14897         * lib/unistr/u16-strcspn.c: New file.
14898         * lib/unistr/u32-strcspn.c: New file.
14899         * lib/unistr/u-strcspn.h: New file.
14900
14901         * modules/unistr/u8-strdup: New file.
14902         * modules/unistr/u16-strdup: New file.
14903         * modules/unistr/u32-strdup: New file.
14904         * lib/unistr/u8-strdup.c: New file.
14905         * lib/unistr/u16-strdup.c: New file.
14906         * lib/unistr/u32-strdup.c: New file.
14907         * lib/unistr/u-strdup.h: New file.
14908
14909         * modules/unistr/u8-strlen: New file.
14910         * modules/unistr/u16-strlen: New file.
14911         * modules/unistr/u32-strlen: New file.
14912         * lib/unistr/u8-strlen.c: New file.
14913         * lib/unistr/u16-strlen.c: New file.
14914         * lib/unistr/u32-strlen.c: New file.
14915         * lib/unistr/u-strlen.h: New file.
14916
14917         * modules/unistr/u8-strmblen: New file.
14918         * modules/unistr/u16-strmblen: New file.
14919         * modules/unistr/u32-strmblen: New file.
14920         * lib/unistr/u8-strmblen.c: New file.
14921         * lib/unistr/u16-strmblen.c: New file.
14922         * lib/unistr/u32-strmblen.c: New file.
14923
14924         * modules/unistr/u8-strmbtouc: New file.
14925         * modules/unistr/u16-strmbtouc: New file.
14926         * modules/unistr/u32-strmbtouc: New file.
14927         * lib/unistr/u8-strmbtouc.c: New file.
14928         * lib/unistr/u16-strmbtouc.c: New file.
14929         * lib/unistr/u32-strmbtouc.c: New file.
14930
14931         * modules/unistr/u8-strncat: New file.
14932         * modules/unistr/u16-strncat: New file.
14933         * modules/unistr/u32-strncat: New file.
14934         * lib/unistr/u8-strncat.c: New file.
14935         * lib/unistr/u16-strncat.c: New file.
14936         * lib/unistr/u32-strncat.c: New file.
14937         * lib/unistr/u-strncat.h: New file.
14938
14939         * modules/unistr/u8-strncmp: New file.
14940         * modules/unistr/u16-strncmp: New file.
14941         * modules/unistr/u32-strncmp: New file.
14942         * lib/unistr/u8-strncmp.c: New file.
14943         * lib/unistr/u16-strncmp.c: New file.
14944         * lib/unistr/u32-strncmp.c: New file.
14945
14946         * modules/unistr/u8-strncpy: New file.
14947         * modules/unistr/u16-strncpy: New file.
14948         * modules/unistr/u32-strncpy: New file.
14949         * lib/unistr/u8-strncpy.c: New file.
14950         * lib/unistr/u16-strncpy.c: New file.
14951         * lib/unistr/u32-strncpy.c: New file.
14952         * lib/unistr/u-strncpy.h: New file.
14953
14954         * modules/unistr/u8-strnlen: New file.
14955         * modules/unistr/u16-strnlen: New file.
14956         * modules/unistr/u32-strnlen: New file.
14957         * lib/unistr/u8-strnlen.c: New file.
14958         * lib/unistr/u16-strnlen.c: New file.
14959         * lib/unistr/u32-strnlen.c: New file.
14960         * lib/unistr/u-strnlen.h: New file.
14961
14962         * modules/unistr/u8-strpbrk: New file.
14963         * modules/unistr/u16-strpbrk: New file.
14964         * modules/unistr/u32-strpbrk: New file.
14965         * lib/unistr/u8-strpbrk.c: New file.
14966         * lib/unistr/u16-strpbrk.c: New file.
14967         * lib/unistr/u32-strpbrk.c: New file.
14968         * lib/unistr/u-strpbrk.h: New file.
14969
14970         * modules/unistr/u8-strrchr: New file.
14971         * modules/unistr/u16-strrchr: New file.
14972         * modules/unistr/u32-strrchr: New file.
14973         * lib/unistr/u8-strrchr.c: New file.
14974         * lib/unistr/u16-strrchr.c: New file.
14975         * lib/unistr/u32-strrchr.c: New file.
14976
14977         * modules/unistr/u8-strspn: New file.
14978         * modules/unistr/u16-strspn: New file.
14979         * modules/unistr/u32-strspn: New file.
14980         * lib/unistr/u8-strspn.c: New file.
14981         * lib/unistr/u16-strspn.c: New file.
14982         * lib/unistr/u32-strspn.c: New file.
14983         * lib/unistr/u-strspn.h: New file.
14984
14985         * modules/unistr/u8-strstr: New file.
14986         * modules/unistr/u16-strstr: New file.
14987         * modules/unistr/u32-strstr: New file.
14988         * lib/unistr/u8-strstr.c: New file.
14989         * lib/unistr/u16-strstr.c: New file.
14990         * lib/unistr/u32-strstr.c: New file.
14991         * lib/unistr/u-strstr.h: New file.
14992
14993         * modules/unistr/u8-strtok: New file.
14994         * modules/unistr/u16-strtok: New file.
14995         * modules/unistr/u32-strtok: New file.
14996         * lib/unistr/u8-strtok.c: New file.
14997         * lib/unistr/u16-strtok.c: New file.
14998         * lib/unistr/u32-strtok.c: New file.
14999         * lib/unistr/u-strtok.h: New file.
15000
15001         * modules/unistr/u8-uctomb: New file.
15002         * modules/unistr/u16-uctomb: New file.
15003         * modules/unistr/u32-uctomb: New file.
15004         * lib/unistr/u8-uctomb.c: New file.
15005         * lib/unistr/u16-uctomb.c: New file.
15006         * lib/unistr/u32-uctomb.c: New file.
15007
15008         * MODULES.html.sh (Unicode string functions): Add the new modules.
15009
15010 2007-01-08  Bruno Haible  <bruno@clisp.org>
15011
15012         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
15013         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
15014         subdirectories.
15015
15016 2007-01-08  Karl Berry  <karl@gnu.org>
15017
15018         * doc/error.texi: mention that main() fns must set program_name
15019         when progname is used.
15020
15021 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
15022
15023         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
15024         WCTYPE_H is empty, for the benefit of builds from non-distclean
15025         directories.  Problem reported by Eric Blake in
15026         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
15027
15028 2007-01-08  Bruno Haible  <bruno@clisp.org>
15029
15030         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
15031         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
15032         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
15033         PROVIDE_CANONICALIZE_FILENAME_MODE.
15034         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
15035
15036 2007-01-08  Bruno Haible  <bruno@clisp.org>
15037
15038         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
15039         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
15040         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
15041         * lib/fts.c: Likewise.
15042         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
15043
15044 2006-12-25  Bruno Haible  <bruno@clisp.org>
15045
15046         * modules/utf8-ucs4-safe: New file.
15047         * lib/utf8-ucs4-safe.h: New file.
15048         * lib/unistr/utf8-ucs4-safe.c: New file.
15049
15050         * modules/utf16-ucs4-safe: New file.
15051         * lib/utf16-ucs4-safe.h: New file.
15052         * lib/unistr/utf16-ucs4-safe.c: New file.
15053
15054         * MODULES.html.sh (Unicode string functions): Add the new modules.
15055
15056 2007-01-08  Bruno Haible  <bruno@clisp.org>
15057
15058         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
15059         (Depends-on): Add unitypes.
15060         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
15061         (u8_mbtouc_aux): Move out to separate file.
15062         (u8_mbtouc): Use ucs4_t, uint8_t types.
15063         * lib/unistr/utf8-ucs4.c: New file.
15064
15065         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
15066         (Depends-on): Add unitypes.
15067         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
15068         (u16_mbtouc_aux): Move out to separate file.
15069         (u16_mbtouc): Use ucs4_t, uint16_t types.
15070         * lib/unistr/utf16-ucs4.c: New file.
15071
15072         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
15073         (Depends-on): Add unitypes.
15074         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
15075         (u8_uctomb_aux): Move out to separate file.
15076         (u8_uctomb): Use ucs4_t, uint8_t types.
15077         * lib/unistr/ucs4-utf8.c: New file.
15078
15079         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
15080         (Depends-on): Add unitypes.
15081         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
15082         (u16_uctomb_aux): Move out to separate file.
15083         (u16_uctomb): Use ucs4_t, uint16_t types.
15084         * lib/unistr/ucs4-utf16.c: New file.
15085
15086 2006-12-25  Bruno Haible  <bruno@clisp.org>
15087
15088         * modules/unitypes: New file.
15089         * lib/unitypes.h: New file.
15090         * MODULES.html.sh (func_all_modules): New section "Unicode string
15091         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
15092         this section. Add unitypes.
15093
15094 2007-01-08  Bruno Haible  <bruno@clisp.org>
15095
15096         Avoid variable names that conflict with those from libtool.
15097         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
15098         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
15099         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
15100         library_names_spec to acl_library_names_spec, hardcode_* to
15101         acl_hardcode_*.
15102         Reported by Ralf Wildenhues.
15103
15104 2007-01-08  Bruno Haible  <bruno@clisp.org>
15105
15106         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
15107         definition.
15108         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
15109         definition.
15110         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
15111         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
15112         definition.
15113         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
15114         definition.
15115         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
15116         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
15117         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
15118         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
15119         definition.
15120         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
15121         definition.
15122         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
15123         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
15124         GC_USE_<algorithm>.
15125         * lib/gc-libgcrypt.c: Likewise.
15126         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
15127         * modules/gc-arctwo (configure.ac): Likewise.
15128         * modules/gc-des (configure.ac): Likewise.
15129         * modules/gc-hmac-md5 (configure.ac): Likewise.
15130         * modules/gc-hmac-sha1 (configure.ac): Likewise.
15131         * modules/gc-md2 (configure.ac): Likewise.
15132         * modules/gc-md4 (configure.ac): Likewise.
15133         * modules/gc-md5 (configure.ac): Likewise.
15134         * modules/gc-random (configure.ac): Likewise.
15135         * modules/gc-rijndael (configure.ac): Likewise.
15136         * modules/gc-sha1 (configure.ac): Likewise.
15137
15138 2007-01-08  Bruno Haible  <bruno@clisp.org>
15139
15140         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
15141         macro definition.
15142         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
15143         definition.
15144         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
15145         definition.
15146         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
15147         * modules/fcntl-safer (configure.ac): Likewise.
15148         * modules/fopen-safer (configure.ac): Likewise.
15149         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
15150         GNULIB_FWRITEERROR macro definition.
15151
15152 2007-01-08  Bruno Haible  <bruno@clisp.org>
15153
15154         * m4/gnulib-common.m4: New file.
15155         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
15156         (func_get_filelist): Add m4/gnulib-common.m4.
15157
15158 2007-01-08  Bruno Haible  <bruno@clisp.org>
15159
15160         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
15161         command.
15162
15163 2007-01-08  Jim Meyering  <jim@meyering.net>
15164
15165         Use a more robust test for a "can't happen" condition.
15166         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
15167         narrowed the st_size value.  Presuming the "can't happen" condition
15168         is true, that narrowing could conceivably convert an invalid st_size
15169         value into a valid one.  Instead, use a change based on Matthew
15170         Woehlke's original patch.
15171
15172         Slight readability improvement: use an assert-like macro
15173         in place of literal "abort ()" uses.
15174         * lib/fts.c (fts_assert): Define.
15175         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
15176         Use this macro instead of a bare 'abort'.
15177
15178 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
15179
15180         Don't worry about using IRIX 5.3's wctype.h broken definitions;
15181         simply work around them.
15182         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
15183         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
15184         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
15185         declaring.
15186         Don't bother to define as macros, since the standard doesn't require it.
15187         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
15188         longer worry about IRIX 5.3.
15189         (HAVE_WCTYPE_CTMP_BUG): Remove.
15190
15191 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
15192
15193         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
15194         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
15195         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
15196         Problems reported by Georg Schwarz for IRIX 5.3.
15197
15198         * gnulib-tool (autoconf_minversion): Take the maximum version number
15199         found, not the minimum.  Problem reported by James Youngman.
15200
15201 2007-01-03  Karl Berry  <karl@gnu.org>
15202
15203         * doc/error.texi: new file, explaining interaction with progname.
15204         * doc/gnulib.texi: include it.  Update copyright.
15205
15206 2007-01-03  Simon Josefsson  <simon@josefsson.org>
15207
15208         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
15209         AC_CANONICAL_HOST, to improve autobuild outputs.
15210
15211 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
15212             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
15213
15214         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
15215         sockets, server sockets, and other file descriptors.  Count errors
15216         to compute the return value.  Reorder the code a bit to be easier
15217         to follow.  Don't set event bits that were not requested (except
15218         POLLERR and POLLHUP).
15219
15220 2007-01-01  Bruno Haible  <bruno@clisp.org>
15221
15222         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
15223
15224 2007-01-03  Jim Meyering  <jim@meyering.net>
15225
15226         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
15227
15228 2007-01-02  Bruno Haible  <bruno@clisp.org>
15229
15230         * modules/settime (Include): Require timespec.h.
15231         * modules/nanosleep (Include): Likewise.
15232
15233 2007-01-01  Bruno Haible  <bruno@clisp.org>
15234
15235         * gnulib-tool (func_emit_copyright_notice): Bump year.
15236         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
15237
15238 2007-01-01  Bruno Haible  <bruno@clisp.org>
15239
15240         Improve support for OpenBSD.
15241         * build-aux/config.rpath (libname_spec): Export.
15242         (library_names_spec): New variable. Export.
15243         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
15244         library_names_spec from the config.rpath output. Locate shared library
15245         through the name pattern in library_names_spec.
15246
15247 2007-01-01  Eric Blake  <ebb9@byu.net>
15248
15249         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
15250
15251 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
15252
15253         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
15254         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
15255         assume the C locale, and avoid an "eval" that could cause trouble.
15256         Problem with SORT reported by Bob Proulx.
15257
15258         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
15259         Define.  Trivial patch from Henning Nielsen Lund, originally
15260         sent to bug-grep@gnu.org today.
15261
15262 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
15263
15264         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
15265         struct stat.  Problem reported by Henning Nielsen Lund.
15266         * lib/acl.c: Include acl.h first, to check interface.  Don't
15267         bother to include sys/types.h and sys/stat.h again.
15268
15269 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
15270
15271         Import the following change from libc; problem reported by
15272         Sven Verdoolaege.
15273
15274         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
15275
15276         [BZ #1373]
15277         * lib/argp.h: Remove __NTH for __argp_usage inline function.
15278
15279 2006-12-28  Jim Meyering  <jim@meyering.net>
15280
15281         * build-aux/announce-gen: Do not assume that the package
15282         builds any of tar.gz, tar.bz2, and .xdelta files.
15283         Suggestion from Simon Josefsson.
15284
15285 2006-12-28  Simon Josefsson  <simon@josefsson.org>
15286
15287         * modules/announce-gen: New file.
15288
15289 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
15290
15291         * lib/mbchar.h: Just include <wctype.h>; the wctype module
15292         handles its gotchas now.
15293         * lib/mbswidth.c: Likewise.
15294         * lib/wcwidth.h: Likewise.
15295         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
15296         and iswcntrl; the wctype module does this stuff now.
15297         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
15298         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
15299         * modules/mbchar (Depends-on): Add wctype.
15300         * modules/mbswidth (Depends-on): Likewise.
15301         * modules/wcwidth (Depends-on): Likewise.
15302
15303 2006-12-27  Eric Blake  <ebb9@byu.net>
15304
15305         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
15306         module uses more than what <wctype.h> is required to provide.
15307
15308 2006-12-26  Eric Blake  <ebb9@byu.net>
15309
15310         * gnulib-tool (sed_extract_prog): Avoid space-tab.
15311
15312 2006-12-26  Eric Blake  <ebb9@byu.net>
15313
15314         * modules/absolute-header: New module.
15315         * modules/fcntl (Depends-on): Depend on it.
15316         * modules/inttypes (Depends-on): Likewise.
15317         * modules/stdint (Depends-on): Likewise.
15318         * modules/sys_stat (Depends-on): Likewise.
15319         * modules/wctype (Depends-on): Likewise.
15320         * MODULES.html.sh (Support for building libraries and
15321         executables): Document it.
15322
15323 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
15324
15325         * gnulib-tool (SED): Remove, undoing previous change.
15326         The problem was that it broke coreutils on Solaris, because
15327         "sed --posix" leaked into a makefile.
15328         (sed): New alias, if 'alias' and GNU sed.
15329
15330 2006-12-24  Jim Meyering  <jim@meyering.net>
15331
15332         Work around an fchownat bug in glibc-2.4:
15333         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
15334         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
15335         in spite of the -P option.
15336         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
15337         New macros.
15338         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
15339         * modules/openat (Files): Add lib/fchownat.c.
15340         * lib/openat.c (fchownat): Don't define here.  Move to...
15341         * lib/fchownat.c: ...this new file.
15342
15343 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
15344
15345         Fix bug reported by Bruno Haible in
15346         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
15347         where quotearg.c didn't compile on Mac OS X 10.2 because it
15348         lacks <wchar.h> and wint_t.
15349         * lib/wctype_.h (__wctype_wint_t): New type.
15350         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
15351         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
15352         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
15353         Arg is now of type __wctype_wint_t, not wint_t.
15354         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
15355         substitute HAVE_WINT_T.
15356         * modules/wctype (Files): Add m4/wint_t.m4.
15357         (wctype.h): Substitute HAVE_WINT_T.
15358
15359 2006-12-23  Bruno Haible  <bruno@clisp.org>
15360
15361         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
15362
15363 2006-12-23  Bruno Haible  <bruno@clisp.org>
15364
15365         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
15366         S_ISLNK.
15367         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
15368         mingw.
15369
15370 2006-12-22  Bruno Haible  <bruno@clisp.org>
15371
15372         * lib/copy-file.c: Include acl.h.
15373         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
15374         Close the file descriptors only after being done with copy_acl.
15375         * modules/copy-file (Depends-on): Add acl.
15376
15377 2006-12-22  Bruno Haible  <bruno@clisp.org>
15378
15379         * gnulib-tool (SED): New variable.
15380         Use $SED instead of sed everywhere.
15381
15382 2006-12-22  Bruno Haible  <bruno@clisp.org>
15383
15384         * modules/no-c++: New file.
15385         * m4/no-c++.m4: New file.
15386         * MODULES.html.sh (Support for building libraries and executables):
15387         Add no-c++.
15388
15389 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
15390
15391         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
15392         Include <limits.h>, and use its INT_MAX to rewrite the
15393         j loop so that it does not overflow 'int'.  Problem reported by
15394         Ralf Wildenhues in
15395         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
15396         Play it safe by shifting left by 1 rather than multiplying by 2,
15397         as GCC is less likely to optimize this away when the value
15398         is signed (when it assumes overflow leads to undefined behavior).
15399         Also, don't assume time_t uses two's complement.
15400
15401 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
15402
15403         * MODULES.html.sh: New module wctype.
15404         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
15405         * lib/fnmatch.c: Don't bother to include <wchar.h> before
15406         <wctype.h>, since the new wctype module should fix this.
15407         * lib/quotearg.c: Include <wctype.h> unconditionally, since
15408         the wctype module should arrange for it.
15409         * lib/regex_internal.h: Likewise.
15410         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
15411         since the wctype module should handle this now.
15412         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
15413         * modules/fnmatch (Depends-on): Add wctype.
15414         * modules/quotearg (Depends-on): Likewise.
15415         * modules/regex (Depends-on): Likewise.
15416
15417 2006-12-19  Bruno Haible  <bruno@clisp.org>
15418
15419         * lib/strdup.h [C++]: Wrap definitions in extern "C".
15420         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
15421
15422 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15423
15424         * modules/savewd (Depends-on): Fix dependency on fcntl.
15425
15426 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
15427
15428         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
15429         conforms to C99, rather than relying on the user's environment
15430         setting of STDINT_H.
15431
15432 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
15433         and Eric Blake  <ebb9@byu.net>
15434
15435         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
15436         This is more consistent with the other defines here.
15437         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
15438         Port to z/OS.  Problem reported by Paul Gilmartin.
15439         Change local vars to use gl_ prefix rather than ac_.
15440         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
15441         with other defines.
15442         * modules/double-slash-root: New module.
15443         * modules/dirname (Files): Remove m4/double-slash-root.m4.
15444         (Depends-on): Add double-slash-root.
15445         * MODULES.html.sh (File system functions): Mention new module.
15446
15447 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
15448
15449         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
15450         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
15451         This is for the benefit of gzip, which doesn't do i18n.
15452
15453 2006-12-12  Jim Meyering  <jim@meyering.net>
15454
15455         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
15456         Reported by Andreas Schwab <schwab@suse.de>.
15457
15458 2006-12-12  Bruno Haible  <bruno@clisp.org>
15459
15460         Merge these changes.
15461         2006-09-05  Bruno Haible  <bruno@clisp.org>
15462         * lib/iconvme.c (iconv_string): No need to save and restore errno when
15463         iconv_alloc succeeded.
15464         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
15465         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
15466         test for " && dest " at the end - dest is always != NULL there. Call
15467         iconv with 4xNULL arguments initially, to reset the state. Call iconv
15468         with 2xNULL arguments, also to flush the state storage. Handle the
15469         IRIX iconv behaviour. Realloc the final result, to throw away unused
15470         memory.
15471
15472 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
15473
15474         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
15475         and fchmodat unconditionally, since glibc 2.4 has them.
15476         Problem reported by Arkadiusz Miskiewicz.
15477
15478 2006-12-10  Bruno Haible  <bruno@clisp.org>
15479
15480         * gnulib-tool (func_import): Show the include files only for those
15481         modules that are copied and specified.
15482         Reported by Karl Berry.
15483
15484 2006-12-08  Jim Meyering  <jim@meyering.net>
15485
15486         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
15487         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
15488
15489         * build-aux/announce-gen: Add two new options, both optional:
15490         --bootstrap-tools=TOOL_LIST
15491               a comma-separated list of tools, e.g.,
15492               autoconf,automake,bison,gnulib
15493         --gnulib-snapshot-date=DATE
15494               if gnulib is in the bootstrap tool list,
15495               then report this as the snapshot date.
15496               If not specified, use the current date/time.
15497               If you specify a date here, be sure it's UTC.
15498
15499 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15500
15501         * tests/test-argp-2.sh: Fix test to match actual output.
15502         (func_compare): Fix sed script to be portable.
15503
15504 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
15505
15506         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
15507         workaround for this case.  It is not autoconfigured now; offhand
15508         it's hard to see how to autoconfigure it.
15509
15510 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
15511
15512         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
15513         a directory that is about to be chowned.  Such a directory's
15514         initial file permissions should permit the owner only and this
15515         should not be changed until after the chown, since the group and
15516         other bits would be incorrect if they granted permission before
15517         the chown.
15518
15519         Fix porting problem for iswctype reported by Georg Schwarz in:
15520         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
15521         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
15522         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
15523         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
15524         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
15525
15526 2006-12-03  Jim Meyering  <jim@meyering.net>
15527
15528         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
15529         p->fts_statp may not yet be defined.
15530         (fts_read): Instead, set it in the caller, once p->fts_statp is
15531         sure to be defined, and corresponds to a top-level directory.
15532         This bug made du -x fail.  Here's the coreutils test case:
15533         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
15534         Reported by Mike Frysinger.
15535
15536 2006-12-01  Jim Meyering  <jim@meyering.net>
15537
15538         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
15539         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
15540         Reported by Simon Josefsson.
15541
15542 2006-11-30  Jim Meyering  <jim@meyering.net>
15543
15544         * m4/warning.m4: Use the all-permissive copyright notice
15545         recommended by RMS (rather than LGPL).
15546         * m4/vararrays.m4: Likewise.
15547         * m4/flexmember.m4: Likewise.
15548
15549 2006-11-29  Bruno Haible  <bruno@clisp.org>
15550
15551         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
15552         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
15553         using +=.
15554         Reported by Simon Josefsson <simon@josefsson.org>.
15555
15556 2006-11-28  James Youngman <jay@gnu.org>
15557
15558         * README: Advise users that they might find the bug-gnulib@gnu.org
15559         and autotools-announce@gnu.org mailing lists useful.
15560
15561 2006-11-28  Bruno Haible  <bruno@clisp.org>
15562
15563         * m4/ptrdiff_max.m4: Remove file.
15564
15565 2006-11-21  Bruno Haible  <bruno@clisp.org>
15566
15567         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
15568         _AC_COMPUTE_INT.
15569         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
15570         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
15571         _AC_COMPUTE_INT.
15572         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
15573         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
15574         _AC_COMPUTE_INT.
15575         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
15576
15577 2006-11-28  Jim Meyering  <jim@meyering.net>
15578
15579         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
15580         warning from "gcc -Wshadow" about shadowing the builtin.
15581
15582 2006-11-27  Bruno Haible  <bruno@clisp.org>
15583
15584         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
15585         _AC_COMPUTE_INT.
15586         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
15587
15588 2006-11-27  Bruno Haible  <bruno@clisp.org>
15589             Paul Eggert  <eggert@cs.ucla.edu>
15590
15591         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
15592
15593 2006-11-26  Bruno Haible  <bruno@clisp.org>
15594
15595         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
15596         noinst_LTLIBRARIES.
15597
15598 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
15599             Bruno Haible  <bruno@clisp.org>
15600
15601         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
15602         if compiling with "gcc -ansi".
15603
15604 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
15605
15606         Fix some incompatibilities with gcc -ansi -pedantic.
15607         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
15608         if compiling pedantically with GCC, unless it's C99 or later.
15609         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
15610         it mishandles gcc -ansi -pedantic as well.
15611         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
15612         if gcc -pedantic.
15613         * lib/regexec.c (check_node_accept_bytes): Don't use auto
15614         initializers for struct if -pedantic, unless it's C99 or later.
15615
15616 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
15617
15618         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
15619         Don't close an fd more than once. Identical atimes indicate
15620         success, not failure.
15621
15622 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
15623
15624         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
15625
15626 2006-11-23  Jim Meyering  <jim@meyering.net>
15627
15628         * build-aux/announce-gen: New file.  From coreutils.
15629
15630 2006-11-22  Jim Meyering  <jim@meyering.net>
15631
15632         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
15633         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
15634         (fts_read): Use a temporary to narrow the overused st_size member
15635         before using it in a switch statement.  Reported by Matthew Woehlke.
15636
15637         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
15638         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
15639
15640 2006-11-20  Bruno Haible  <bruno@clisp.org>
15641
15642         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
15643         changequote instead of pairs of brackets.
15644         Reported by Andreas Schwab <schwab@suse.de>.
15645
15646 2006-11-21  Jim Meyering  <jim@meyering.net>
15647
15648         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
15649         so as to remain compatible with older compilers.
15650         Patch from Michael Deutschmann.
15651
15652 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
15653
15654         * MODULES.html.sh (File system functions): Add openat.
15655
15656         * lib/openat.h (rpl_fstatat): New macro, if
15657         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
15658         (fstatat): Define to rpl_fstatat under the same conditions,
15659         unless COMPILING_FSTATAT.
15660         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
15661         seems to have the bug.
15662         * lib/fstatat.c: New file.
15663         * modules/openat (Files): Add it.
15664
15665 2006-11-20  Bruno Haible  <bruno@clisp.org>
15666
15667         * Makefile: New file.
15668
15669 2006-11-20  Jim Meyering  <jim@meyering.net>
15670
15671         The beginnings of syntax-related checks for gnulib.
15672         * lib/Makefile: New file.
15673         * lib/t-idcache: New script.  Ensure that the two halves of
15674         idcache.c stay in sync.
15675
15676         * lib/idcache.c: Adjust comments in user- and group- portions to
15677         be more accurate, and to be consistent with one another.
15678
15679 2006-11-20  Jim Meyering  <jim@meyering.net>
15680
15681         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
15682         continue using the flexible array member (thus, this module performs
15683         half as many malloc calls), with the addition that...
15684         (getgroup, getuser): Consistently record a non-match via an empty
15685         "name" string, and map an empty string match to a NULL return value.
15686         * modules/idcache (Depends-on): Re-add flexmember.
15687
15688         * lib/idcache.c (getuser): Remove all uses of the register keyword.
15689         (getuidbyname, getgroup, getgidbyname): Likewise.
15690
15691         Use cleaner syntax: NULL rather than 0.
15692         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
15693
15694 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
15695
15696         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
15697         It mishandled the case where the group was missing.
15698         Problem reported by Greg Schafer.
15699         * modules/idcache: Likewise.
15700
15701 2006-11-18  Jim Meyering  <jim@meyering.net>
15702
15703         * check-module (%exempt_header): Add exception for some
15704         conditionally-included headers.
15705
15706         * modules/i-ring (Depends-on): Add verify.
15707         (License): Change to LGPL.
15708
15709 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
15710
15711         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
15712         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
15713         and inttostr.h.  Use snprintf rather than uinttostr, so that
15714         LGPLed code doesn't depend on GPLed.
15715
15716 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
15717
15718         * modules/inline (License): Change from GPL to LGPL.
15719
15720 2006-11-17  Jim Meyering  <jim@meyering.net>
15721
15722         * modules/d-type (License): Switch to LGPL.
15723
15724 2006-11-15  Bruno Haible  <bruno@clisp.org>
15725
15726         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
15727
15728 2006-11-15  Eric Blake  <ebb9@byu.net>
15729
15730         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
15731         the module dependency.
15732
15733 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
15734             Bruno Haible  <bruno@clisp.org>
15735
15736         * gnulib-tool (func_create_testdir): Add license consistency check.
15737
15738 2006-11-15  Eric Blake  <ebb9@byu.net>
15739
15740         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
15741         random "(cached)" in configure output.
15742
15743 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15744
15745         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
15746         test for conforming inttypes.h is both announced and cached.
15747
15748         * MODULES.html.sh (seen_modules, seen_files): New variables.
15749         (func_module): Rewrite to use a few less gnulib-tool and sed
15750         invocations.  Avoid a couple of quadratic algorithms for ...
15751         (missed_modules, missed_files): ... these, with ...
15752         (func_append, func_tmpdir): ... these new functions, from
15753         gnulib-tool.  Analogously, install traps for cleanup.
15754
15755         * tests/test-gc.c (main): Remove unused variables.
15756         * tests/test-read-file.c: Include stdlib.h, for 'free'.
15757
15758 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
15759
15760         * modules/inttostr (License): Change to LGPL.
15761
15762 2006-11-14  Eric Blake  <ebb9@byu.net>
15763
15764         * modules/tempname (License): Change to LGPL.
15765
15766 2006-11-14  Eric Blake  <ebb9@byu.net>
15767
15768         * doc/functions.texi (Function Portability): *printf functions on
15769         Cygwin now understand all POSIX size specifiers.
15770
15771 2006-11-14  Bruno Haible  <bruno@clisp.org>
15772
15773         * modules/c-ctype (License): Change to LGPL.
15774
15775 2006-11-12  Bruno Haible  <bruno@clisp.org>
15776
15777         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
15778         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
15779         for GNOME libraries, for which the include files are installed in
15780         subdirectories of $prefix/include.
15781
15782 2006-11-12  Bruno Haible  <bruno@clisp.org>
15783
15784         * m4/lib-link.m4: Require at least autoconf-2.54.
15785         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
15786         name to underscores for the --with option.
15787
15788 2006-11-13  Bruno Haible  <bruno@clisp.org>
15789
15790         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
15791         the tests directory.
15792         Reported by Ralf Wildenhues.
15793
15794 2006-11-13  Bruno Haible  <bruno@clisp.org>
15795
15796         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
15797         (func_emit_initmacro_end): Undo the override here.
15798         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
15799         Works around the famous automake error in coreutils.
15800
15801 2006-11-13  Eric Blake  <ebb9@byu.net>
15802
15803         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
15804         element, not its node.
15805
15806 2006-11-12  Bruno Haible  <bruno@clisp.org>
15807
15808         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
15809         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
15810
15811 2006-11-12  Bruno Haible  <bruno@clisp.org>
15812
15813         * gnulib-tool: New option --local-symlink.
15814         (func_usage): Document it.
15815         (lsymbolic): New variable.
15816         (func_import, func_create_testdir): If --symlink was not specified,
15817         test whether --local-symlink was specified and the file comes from
15818         the local_gnulib_dir.
15819
15820 2006-11-12  Bruno Haible  <bruno@clisp.org>
15821
15822         * gnulib-tool (func_ln): New function.
15823         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
15824
15825 2006-11-12  Bruno Haible  <bruno@clisp.org>
15826
15827         Finish support for source files in subdirectories.
15828         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
15829         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
15830         AUTOMAKE_OPTIONS.
15831         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
15832
15833 2006-11-12  Bruno Haible  <bruno@clisp.org>
15834
15835         * gnulib-tool (func_get_automake_snippet): Synthesize also an
15836         EXTRA_lib_SOURCES augmentation.
15837         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
15838
15839 2006-11-12  Jim Meyering  <jim@meyering.net>
15840
15841         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
15842         file descriptors.  This also averts a failure on systems with
15843         native openat support when a traversed directory lacks "x" access.
15844         * lib/fts_.h: Include "i-ring.h"
15845         (struct FTS) [fts_fd_ring]: New member.
15846         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
15847         (FCHDIR): Add parentheses.
15848         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
15849         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
15850         When descending, rather than simply closing the previous
15851         fts_cwd_fd value, push that file descriptor onto the ring.
15852         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
15853         (fts_open): Initialize the new fd_ring member.
15854         (fts_close): Clear the ring.
15855         (fts_safe_changedir): When possible, use our new fd_ring to skip
15856         the diropen and fstat and dev/ino comparison that would normally
15857         accompany a virtual `chdir ("..")'.
15858
15859         * modules/fts (Depends-on): Add i-ring.
15860         * modules/i-ring: New module.
15861         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
15862         * m4/i-ring.m4: New file.
15863
15864 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15865
15866         * gnulib-tool (func_create_testdir): Fix replacement of
15867         `build-aux' in configure.ac.  Run autotools in gltests
15868         subdirectory.
15869         (func_create_testdir, func_create_megatestdir, test): There is
15870         no need for '--force' in most autotool invocations in a new
15871         tree.  Actually fail the whole test if any of the tools, or the
15872         configure or make stages fail.
15873
15874         Sync from Automake.
15875         * build-aux/gnupload: Revert last change.  Add pointer to upload
15876         instructions of the GNU Maintenance Instructions.
15877         Suggestion by Karl Berry.
15878
15879 2006-11-10  Jim Meyering  <jim@meyering.net>
15880
15881         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
15882
15883 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
15884
15885         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
15886         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
15887         (bind_textdomain_codeset) [! ENABLE_NLS]:
15888         Evaluate all the arguments.  That way, callers get compatible behavior
15889         if the arguments have side effects.  Also, it avoids some GCC
15890         diagnostics in some cases; Joel E. Denny reported problems when Bison
15891         was configured with --enable-gcc-warnigs.
15892
15893 2006-11-10  Jim Meyering  <jim@meyering.net>
15894
15895         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
15896         relevant options in CFLAGS (like -O, -fno-inline) are taken into
15897         account.
15898
15899 2006-11-10  Jim Meyering  <jim@meyering.net>
15900
15901         * modules/inline: New file/module.
15902         * modules/xalloc (Files): Remove m4/inline.m4.
15903         (Depends-on): Add inline, instead.
15904         * modules/oset: Likewise.
15905         * modules/list: Likewise.
15906
15907 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
15908
15909         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
15910         Problem reported by Matthew Woehlke.
15911
15912 2006-11-09  Bruno Haible  <bruno@clisp.org>
15913
15914         * lib/tempname.c (gen_tempname): Remove variant that invokes
15915         __gen_tempname.
15916         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
15917         __gen_tempname.
15918
15919 2006-11-08  Bruno Haible  <bruno@clisp.org>
15920
15921         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
15922         to 'yes' instead of 'cross-compiling'.
15923
15924 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
15925
15926         * lib/quotearg.h (quotearg_free): New decl.
15927         * lib/quotearg.c (quotearg_free): New function.
15928         (slot0, nslots, slotvec0, slotvec):
15929         Now file-scope so that quotearg_free can get at them.
15930
15931 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15932
15933         Sync from Automake.
15934         * build-aux/gnupload: Add missing 'gnu' to example URL.
15935         Report by Karl Berry.
15936
15937 2006-11-08  Bruno Haible  <bruno@clisp.org>
15938
15939         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
15940         Suggested by Paul Eggert.
15941
15942 2006-11-08  Jim Meyering  <jim@meyering.net>
15943
15944         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
15945         It's already included if !_LIBC.
15946         (fts_safe_changedir): Add a comment.
15947
15948 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
15949
15950         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
15951         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
15952         Matthew Woehlke.
15953
15954         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
15955         definitions up, to avoid colliding with change below.
15956         (static_inline) [HAVE_INLINE]: New macro.
15957         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
15958         Provide extern decls when !HAVE_INLINE.  Do not define unless
15959         static_inline is defined, either by us or by xmalloc.c.  Use
15960         static_inline rather than static inline.
15961         (XCALLOC): Optimize sizeof(T) = 1 case.
15962         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
15963
15964 2006-11-07  Bruno Haible  <bruno@clisp.org>
15965
15966         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
15967         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
15968         AC_C_INLINE.
15969         * modules/xalloc (Files): Add m4/inline.m4.
15970
15971 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15972
15973         * README: Fix typo.
15974         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
15975         (Miscellanous Notes): ...from this.
15976
15977 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
15978
15979         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
15980         Mention that offsetof should be used instead of sizeof.
15981         From Bruno Haible.
15982
15983 2006-11-07  Bruno Haible  <bruno@clisp.org>
15984
15985         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
15986
15987 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
15988
15989         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
15990         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
15991         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
15992         (gl_tree_add_before, gl_tree_add_after):
15993         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
15994         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
15995         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
15996         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
15997         (gl_linked_add_after, gl_linked_add_at): Likewise.
15998         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
15999         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
16000         (gl_tree_add_before, gl_tree_add_after): Likewise.
16001         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
16002         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
16003         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
16004
16005 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16006
16007         * lib/gl_oset.h: Use C comment style, not C++ comment style.
16008
16009 2006-11-06  Bruno Haible  <bruno@clisp.org>
16010
16011         * m4/inline.m4: New file.
16012         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
16013         * modules/list (Files): Add m4/inline.m4.
16014         * modules/oset (Files): Likewise.
16015
16016 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
16017
16018         * lib/idcache.c: Include <stddef.h>, for offsetof.
16019         (struct userid.name): Change from char * to a flexible array member.
16020         All uses changed.
16021         * modules/idcache (Depends-on): Add flexmember.
16022
16023         * MODULES.html.sh (Core language properties): New module flexmember.
16024         * modules/flexmember, m4/flexmember.m4: New files.
16025
16026         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
16027         inline functions that are identical with the old xnmalloc_inline,
16028         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
16029         that we can avoid some unnecessary integer multiplications and
16030         divisions in the common case where the element size is known at
16031         compile time.
16032         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
16033         needed.
16034         (xnboundedmalloc): Remove.
16035         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
16036         arguments, for consistency with rest of this header.
16037         (xcharalloc): Rewrite using XNMALLOC.
16038         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
16039         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
16040         versions have been moved to lib/xalloc.h and renamed to be the
16041         non-*_inline versions.
16042         (xmalloc, xrealloc): Implement without reference to the xnmalloc
16043         and xnrealloc functions, since those functions are now inline and
16044         now call us.
16045         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
16046         renaming described above.
16047         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
16048         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
16049         captures the dependency in AC_C_INLINE.
16050
16051         New module canonicalize-lgpl, proposed by Charles Wilson in
16052         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
16053         with a few small changes afterwards.
16054         * MODULES.html.sh (File system functions): New module
16055         canonicalize-lgpl.
16056         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
16057         and canonicalize_file_name.
16058         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
16059         * modules/canonicalize-lgpl: New files.
16060
16061 2006-11-05  Bruno Haible  <bruno@clisp.org>
16062
16063         * gnulib-tool (func_import, func_create_testdir): Create directories
16064         also for files in subdirectories of lib/.
16065
16066 2006-11-05  Bruno Haible  <bruno@clisp.org>
16067
16068         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
16069         ANSI C compliant.
16070
16071 2006-11-03  Bruno Haible  <bruno@clisp.org>
16072
16073         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
16074         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
16075         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
16076         (xnboundedmalloc): New inline function.
16077         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
16078         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
16079         xmalloc.
16080         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
16081         xmalloc.
16082         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
16083         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
16084         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
16085         xmalloc.
16086         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
16087         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
16088         xmalloc.
16089         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
16090         gl_tree_add_after): Use XMALLOC instead of xmalloc.
16091         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
16092         xmalloc.
16093         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
16094         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
16095         gl_tree_add_after): Use XMALLOC instead of xmalloc.
16096         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
16097         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
16098         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
16099         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
16100
16101 2006-11-03  Bruno Haible  <bruno@clisp.org>
16102
16103         * lib/c-ctype.h [C++]: Define functions without name mangling.
16104         * lib/fwriteerror.h [C++]: Likewise.
16105         * lib/gcd.h [C++]: Likewise.
16106         * lib/linebreak.h [C++]: Likewise.
16107
16108 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
16109
16110         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
16111         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
16112         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
16113         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
16114         Check for functions and headers just once.
16115         Check for declaration of canonicalize_file_name.
16116         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
16117
16118 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
16119
16120         * gnulib-tool (func_import): Fix typo in actioncmd.
16121
16122 2006-11-02  Bruno Haible  <bruno@clisp.org>
16123
16124         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
16125         newline sequence in the Makefile.am snippet as a space, like "make"
16126         does.
16127         Reported by Roger Persson <perrog@gmail.com>.
16128
16129 2006-11-01  Bruno Haible  <bruno@clisp.org>
16130
16131         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
16132         already declared in <string.h>.
16133         * lib/strcase.h (strncasecmp): Don't declare it if yes.
16134
16135 2006-11-01  Bruno Haible  <bruno@clisp.org>
16136
16137         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
16138         * lib/strcase.h: Include <string.h>.
16139         (strcasecmp): Define to rpl_strcasecmp here.
16140
16141 2006-11-01  Bruno Haible  <bruno@clisp.org>
16142
16143         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
16144
16145 2006-11-01  Eric Blake  <ebb9@byu.net>
16146
16147         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
16148
16149         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
16150
16151 2006-10-29  Bruno Haible  <bruno@clisp.org>
16152
16153         Make it compile in C++ mode.
16154         * lib/full-write.c (full_rw): Add a cast.
16155
16156 2006-11-01  Bruno Haible  <bruno@clisp.org>
16157
16158         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
16159         be POSIX compliant.
16160         Reported by Roger Persson <perrog@gmail.com>.
16161
16162 2006-11-01  Eric Blake  <ebb9@byu.net>
16163
16164         * lib/getopt_.h: Fix comments.
16165
16166 2006-10-31  Eric Blake  <ebb9@byu.net>
16167
16168         * modules/tmpdir (Depends-on): Add sys_stat.
16169         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
16170         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
16171         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
16172         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
16173         tempname.
16174
16175 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
16176
16177         Avoid some C++ diagnostics reported by Bruno Haible.
16178         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
16179         xmalloc.
16180         (quotearg_alloc): Use xcharalloc rather than xmalloc.
16181         (struct slotvec): Move to top level.
16182         (quotearg_n_options): Rewrite to avoid xmalloc.
16183         * lib/xalloc.h (xcharalloc): New function.
16184         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
16185         [defined __cplusplus]: Add function template that provides result
16186         type propagation.  This part of the change is from Bruno Haible.
16187
16188 2006-10-29  Bruno Haible  <bruno@clisp.org>
16189
16190         Make it compile in C++ mode.
16191         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
16192         * lib/strnlen1.c (strnlen1): Cast memchr result.
16193         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
16194         * lib/clean-temp.c (string_equals, string_hash): Add casts.
16195         (create_temp_dir): Rename local variable 'template'.
16196         (compile_csharp_using_sscli): Add cast.
16197         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
16198         * lib/findprog.c (find_in_path): Likewise.
16199         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
16200         * lib/wait-process.c (register_slave_subprocess): Likewise.
16201
16202 2006-10-22  Bruno Haible  <bruno@clisp.org>
16203
16204         * modules/tsearch: New file.
16205         * lib/tsearch.h: New file.
16206         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
16207         * m4/tsearch.m4: New file.
16208         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
16209
16210 2006-10-29  Eric Blake  <ebb9@byu.net>
16211
16212         * lib/arcfour.c: Assume config.h.
16213         * lib/arctwo.c: Likewise.
16214         * lib/base64.c: Likewise.
16215         * lib/check-version.c: Likewise.
16216         * lib/crc.c: Likewise.
16217         * lib/des.c: Likewise.
16218         * lib/gc-gnulib.c: Likewise.
16219         * lib/gc-libgcrypt.c: Likewise.
16220         * lib/gc-pbkdf2-sha1.c: Likewise.
16221         * lib/getaddrinfo.c: Likewise.
16222         * lib/getdelim.c: Likewise.
16223         * lib/getline.c: Likewise.
16224         * lib/hmac-md5.c: Likewise.
16225         * lib/hmac-sha1.c: Likewise.
16226         * lib/iconvme.c: Likewise.
16227         * lib/md2.c: Likewise.
16228         * lib/md4.c: Likewise.
16229         * lib/memxor.c: Likewise.
16230         * lib/read-file.c: Likewise.
16231         * lib/readline.c: Likewise.
16232         * lib/rijndael-alg-fst.c: Likewise.
16233         * lib/rijndael-api-fst.c: Likewise.
16234         * lib/xgetdomainname.c: Likewise.
16235
16236 2006-10-28  Eric Blake  <ebb9@byu.net>
16237
16238         * lib/xstrndup.c: Assume config.h.
16239
16240 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
16241
16242         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
16243         stat-macros.h is now for our own macros, whereas stat_h is for
16244         macros in the <sys/stat.h> name space.
16245         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
16246         (STAT_MACROS_H): Remove.
16247         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
16248         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
16249         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
16250         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
16251         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
16252         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
16253         Move these macros to ...
16254         * lib/stat_.h: here.  Don't include stat-macros.h.
16255         * lib/canonicalize.c: Don't include stat-macros.h.
16256         * lib/chown.c: Likewise.
16257         * lib/euidaccess.c: Likewise.
16258         * lib/file-type.c: Likewise.
16259         * lib/filemode.c: Likewise.
16260         * lib/glob.c: Likewise.
16261         * lib/isapipe.c: Likewise.
16262         * lib/lchown.c: Likewise.
16263         * lib/lstat.c: Likewise.
16264         * lib/mkdir-p.c: Likewise.
16265         * lib/rmdir.c: Likewise.
16266         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
16267         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
16268         unless mkdir isn't declared, to speed up 'configure'.
16269         Always create sys/stat.h, since it's unlikely any real sys/stat.h
16270         would define all the S_* symbols.
16271         * modules/canonicalize (Depends-on):
16272         Depend on sys_stat, not stat-macros.
16273         * modules/chown: Likewise.
16274         * modules/euidaccess: Likewise.
16275         * modules/filemode: Likewise.
16276         * modules/file-type: Likewise.
16277         * modules/glob: Likewise.
16278         * modules/isapipe: Likewise.
16279         * modules/lchown: Likewise.
16280         * modules/lstat: Likewise.
16281         * modules/mkancesdirs: Likewise.
16282         * modules/rmdir: Likewise.
16283         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
16284         * modules/modechange: Likewise.
16285         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
16286         (configure.ac): Remove gl_STAT_MACROS.
16287         * modules/sys_stat (Depends-on): Remove stat-macros.
16288
16289 2006-10-27  Bruno Haible  <bruno@clisp.org>
16290
16291         * m4/signed.m4: Remove file.
16292         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
16293         invocation.
16294         * modules/vasnprintf (Files): Remove m4/signed.m4.
16295
16296 2006-10-27  Bruno Haible  <bruno@clisp.org>
16297
16298         Update to GNU gettext 0.16.
16299         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
16300         m4/inttypes-h.m4, m4/signed.m4.
16301         * m4/gettext.m4: Update to GNU gettext 0.16.
16302         * m4/intl.m4: New file, from GNU gettext.
16303         * m4/intldir.m4: New file, from GNU gettext.
16304         * config/srclist.txt: Update
16305
16306 2006-10-27  Eric Blake  <ebb9@byu.net>
16307
16308         * MODULES.html.sh: Document tempname.
16309         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
16310         dependencies.
16311         (Files): Move lib/tempname.c...
16312         * modules/tempname: ...to this new module.
16313         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
16314         (gl_PREREQ_TEMPNAME): Move...
16315         * m4/tempname.m4: ...to this new file.
16316         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
16317         * modules/sys_stat (Depends-on): Add stat-macros.
16318         * lib/stat_.h (includes): Pick up stat macros.
16319         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
16320         if stat macros are broken.
16321         * lib/tempname.c (includes): No need to include "stat-macros.h".
16322         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
16323         (direxists, __path_search) [!_LIBC]: Don't compile these in
16324         gnulib; the tmpdir module covers that.
16325         * lib/tempname.h: New file.
16326
16327 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
16328
16329         * COPYING: Explain how gnulib-tool converts licence headers.
16330         Almost all wording by Eric Blake.
16331
16332 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
16333
16334         * lib/mbchar.h (is_basic_table): Make read-only.
16335         * lib/mbchar.c (is_basic_table): Likewise.
16336         Reported by John Darrington.
16337
16338 2006-10-25  Bruno Haible  <bruno@clisp.org>
16339
16340         * lib/progname.h (set_program_name): Undefine before defining.
16341
16342 2006-10-25  Bruno Haible  <bruno@clisp.org>
16343
16344         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
16345         false for non-gcc C++ compilers.
16346         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
16347
16348 2006-10-24  Bruno Haible  <bruno@clisp.org>
16349
16350         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
16351         iconv implementations like Irix iconv.
16352
16353 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
16354
16355         * modules/vararrays: New file.
16356         * m4/vararrays.m4: New file, taken from diffutils.
16357         * MODULES.html.sh: New module vararrays.
16358
16359 2006-10-24  Karl Berry  <karl@gnu.org>
16360
16361         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
16362         Don't call GNU Unix.
16363
16364 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16365
16366         * users.txt: Add Libtool.
16367
16368         Sync from Libtool:
16369
16370         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
16371
16372         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
16373         to gnulib's policy of including config.h unconditionally.
16374
16375 2006-10-24  Bruno Haible  <bruno@clisp.org>
16376
16377         * modules/wcwidth (Files): Add m4/wint_t.m4.
16378         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
16379         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
16380
16381 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
16382
16383         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
16384         to pacify GCC with some -W flags enabled.  Problem reported by
16385         Bruno Haible.
16386
16387 2006-10-24  Jim Meyering  <jim@meyering.net>
16388
16389         * MODULES.html.sh: Remove uinttostr.  It's not a module.
16390         Reported by Karl Berry.
16391
16392 2006-10-23  Bruno Haible  <bruno@clisp.org>
16393
16394         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
16395
16396 2006-10-24  Bruno Haible  <bruno@clisp.org>
16397
16398         * lib/gl_list.h: Use C comment style, not C++ comment style.
16399
16400 2006-10-23  Eric Blake  <ebb9@byu.net>
16401
16402         * lib/getaddrinfo.c (includes): Add missing include.
16403
16404 2006-10-23  Bruno Haible  <bruno@clisp.org>
16405             Paul Eggert  <eggert@cs.ucla.edu>
16406
16407         Ability to rename obstack_free.
16408         * lib/obstack.h (__obstack_free): New macro. Declare instead of
16409         obstack_free.
16410         (obstack_free): Invoke the __obstack_free macro.
16411         * lib/obstack.c (obstack_free): Use __obstack_free macro.
16412
16413 2006-10-23  Bruno Haible  <bruno@clisp.org>
16414             Paul Eggert  <eggert@cs.ucla.edu>
16415
16416         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
16417         __argc, __argv from the declaration. (They are defined as macros on
16418         mingw.)
16419
16420 2006-10-22  Bruno Haible  <bruno@clisp.org>
16421
16422         * doc/gnulib-intro.texi: New file.
16423         * doc/gnulib.texi: Include it.
16424
16425 2006-10-21  Bruno Haible  <bruno@clisp.org>
16426
16427         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
16428         "Introduction", "Miscellanous Notes", "Particular Modules".
16429
16430 2006-10-21  Bruno Haible  <bruno@clisp.org>
16431
16432         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
16433         Change mostlyclean-local rule to avoid sh syntax error from bash
16434         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
16435
16436 2006-10-23  Jim Meyering  <jim@meyering.net>
16437
16438         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
16439         in place of snprintf.
16440
16441         * modules/inttostr (Files): Add lib/uinttostr.c.
16442         * lib/uinttostr.c (inttostr): New file/function.
16443         * lib/inttostr.h (uinttostr): Declare.
16444         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
16445         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
16446         Add uinttostr.
16447         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
16448
16449 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
16450
16451         * lib/canonicalize.c (ELOOP): Define if not already defined.
16452         Problem reported by Bruno Haible in
16453         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
16454
16455 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
16456
16457         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
16458         Problem reported by Perry Smith and Ville Laurikari.
16459
16460         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
16461         uses.
16462
16463 2006-10-19  Bruno Haible  <bruno@clisp.org>
16464
16465         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
16466         for mingw.
16467
16468 2006-10-19  Bruno Haible  <bruno@clisp.org>
16469
16470         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
16471         Needed for mingw.
16472
16473 2006-10-19  Bruno Haible  <bruno@clisp.org>
16474
16475         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
16476
16477 2006-10-19  Bruno Haible  <bruno@clisp.org>
16478
16479         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
16480         it.
16481
16482 2006-10-19  Bruno Haible  <bruno@clisp.org>
16483
16484         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
16485         invocation.
16486
16487 2006-10-19  Bruno Haible  <bruno@clisp.org>
16488
16489         * gnulib-tool (func_create_testdir): Don't include ftruncate and
16490         mountlist by default.
16491
16492 2006-10-16  Bruno Haible  <bruno@clisp.org>
16493
16494         * lib/c-strstr.c: Include c-strstr.h.
16495
16496 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
16497
16498         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
16499         in a slash.
16500
16501 2006-10-18  Bruno Haible  <bruno@clisp.org>
16502
16503         * lib/lock.h [C++]: Wrap definitions in extern "C".
16504
16505 2006-10-18  Bruno Haible  <bruno@clisp.org>
16506
16507         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
16508         gl_LIBOBJS list.
16509
16510 2006-10-18  Bruno Haible  <bruno@clisp.org>
16511
16512         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
16513
16514 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
16515
16516         * lib/xstrtol.h: Include gettext.h.
16517         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
16518         Problem reported by Eric Blake.
16519         * modules/xstrtol (Depends-on): Add gettext-h.
16520
16521 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
16522
16523         * lib/strftime.c (advance): New macro.
16524         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
16525         incomplete type, so you can't add 0 to it.  Problem and patch
16526         reported by Eelco Dolstra for dietlibc.
16527
16528 2006-10-18  Jim Meyering  <jim@meyering.net>
16529
16530         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
16531         type for a local, and rename it: s/up/user_proc/.
16532
16533 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
16534
16535         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
16536         READ_UTMP_USER_PROCESS.
16537         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
16538
16539 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
16540
16541         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
16542         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
16543
16544 2006-10-17  Eric Blake  <ebb9@byu.net>
16545
16546         * lib/sigprocmask.c (sigprocmask): Fix typo.
16547
16548         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
16549
16550         * modules/clean-temp (Makefile.am): Don't add to make output...
16551         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
16552         config.h.
16553
16554 2006-10-17  Bruno Haible  <bruno@clisp.org>
16555
16556         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
16557         differently if DEFAULT_TEXT_DOMAIN is set.
16558
16559 2006-10-16  Bruno Haible  <bruno@clisp.org>
16560
16561         * lib/clean-temp.c: Include fwriteerror.h.
16562
16563 2006-10-16  Bruno Haible  <bruno@clisp.org>
16564
16565         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
16566
16567 2006-10-16  Bruno Haible  <bruno@clisp.org>
16568
16569         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
16570         * lib/sigprocmask.h: Include <sys/types.h>.
16571         (sigset_t): Use the system's definition if present.
16572
16573 2006-10-17  Eric Blake  <ebb9@byu.net>
16574
16575         * lib/xvasprintf.c (includes): Assume config.h.
16576         * lib/xasprintf.c (includes): Likewise.
16577
16578 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
16579
16580         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
16581         at least as wide as intmax_t.
16582
16583 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
16584
16585         (Imported from Automake.)
16586         * build-aux/gnupload: Update to version 1.1 of directive file.
16587
16588 2006-10-16  Eric Blake  <ebb9@byu.net>
16589
16590         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
16591         match Automake 1.10a.
16592
16593 2006-10-14  Bruno Haible  <bruno@clisp.org>
16594
16595         * modules/sigprocmask: New file.
16596         * lib/sigprocmask.h: New file.
16597         * lib/sigprocmask.c: New file.
16598         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
16599         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
16600         request sigprocmask.o.
16601         (gl_PREREQ_SIGPROCMASK): New macro.
16602         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
16603         (Depends-on): Add sigprocmask.
16604         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
16605         gt_SIGNALBLOCKING. Test for 'raise' only once.
16606         * lib/fatal-signal.c: Include sigprocmask.h.
16607         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
16608         unblock_fatal_signals): Define always.
16609         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
16610         sigprocmask.
16611
16612 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
16613
16614         Sync from Automake.
16615         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
16616         which incorrectly sets the mode of an existing destination
16617         directory.  In some cases the unpatched install-sh could do the
16618         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
16619         system.  We hope this is rare in practice, but it's clearly worth
16620         fixing.  Problem reported by Alex Unleashed in
16621         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
16622         Also, don't bother to check for -m bugs unless we're using -m;
16623         suggested by Stepan Kasal.
16624
16625 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16626
16627         Sync from Automake.
16628         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
16629         `-c' flag, so they appear at the same position as in %FASTDEP%
16630         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
16631         which ignores unknown options only after the first non-option.
16632         Bug report against M4 by Nelson H. F. Beebe.
16633
16634 2006-10-13  Jim Meyering  <jim@meyering.net>
16635
16636         Fix a bug in yesterday's change.
16637         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
16638         p->fts_statp->st_dev would be used uninitialized.
16639         Ensures that we always call fts_stat on the very first entry.
16640         Miklos Szeredi reported that find -xdev stopped working.
16641
16642 2006-10-12  Bruno Haible  <bruno@clisp.org>
16643
16644         * gnulib-tool (func_get_automake_snippet): Append an automatically
16645         computed EXTRA_DIST augmentation.
16646         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
16647         * modules/alloca-opt (Makefile.am): Likewise.
16648         * modules/allocsa (Makefile.am): Likewise.
16649         * modules/arcfour (Makefile.am): Likewise.
16650         * modules/arctwo (Makefile.am): Likewise.
16651         * modules/argmatch (Makefile.am): Likewise.
16652         * modules/argz (Makefile.am): Likewise.
16653         * modules/atexit (Makefile.am): Likewise.
16654         * modules/backupfile (Makefile.am): Likewise.
16655         * modules/byteswap (Makefile.am): Likewise.
16656         * modules/c-strtod (Makefile.am): Likewise.
16657         * modules/c-strtold (Makefile.am): Likewise.
16658         * modules/calloc (Makefile.am): Likewise.
16659         * modules/canon-host (Makefile.am): Likewise.
16660         * modules/canonicalize (Makefile.am): Likewise.
16661         * modules/chdir-long (Makefile.am): Likewise.
16662         * modules/chdir-safer (Makefile.am): Likewise.
16663         * modules/check-version (Makefile.am): Likewise.
16664         * modules/chown (Makefile.am): Likewise.
16665         * modules/cloexec (Makefile.am): Likewise.
16666         * modules/close-stream (Makefile.am): Likewise.
16667         * modules/closeout (Makefile.am): Likewise.
16668         * modules/crc (Makefile.am): Likewise.
16669         * modules/csharpexec (Makefile.am): Likewise.
16670         * modules/cycle-check (Makefile.am): Likewise.
16671         * modules/des (Makefile.am): Likewise.
16672         * modules/dev-ino (Makefile.am): Likewise.
16673         * modules/dirfd (Makefile.am): Likewise.
16674         * modules/dirname (Makefile.am): Likewise.
16675         * modules/dup2 (Makefile.am): Likewise.
16676         * modules/eealloc (Makefile.am): Likewise.
16677         * modules/error (Makefile.am): Likewise.
16678         * modules/euidaccess (Makefile.am): Likewise.
16679         * modules/exclude (Makefile.am): Likewise.
16680         * modules/exitfail (Makefile.am): Likewise.
16681         * modules/fcntl-safer (Makefile.am): Likewise.
16682         * modules/fcntl (Makefile.am): Likewise.
16683         * modules/file-type (Makefile.am): Likewise.
16684         * modules/fileblocks (Makefile.am): Likewise.
16685         * modules/filemode (Makefile.am): Likewise.
16686         * modules/filenamecat (Makefile.am): Likewise.
16687         * modules/fnmatch (Makefile.am): Likewise.
16688         * modules/fopen-safer (Makefile.am): Likewise.
16689         * modules/fpending (Makefile.am): Likewise.
16690         * modules/fprintftime (Makefile.am): Likewise.
16691         * modules/free (Makefile.am): Likewise.
16692         * modules/fsusage (Makefile.am): Likewise.
16693         * modules/ftruncate (Makefile.am): Likewise.
16694         * modules/fts (Makefile.am): Likewise.
16695         * modules/gc-arcfour (Makefile.am): Likewise.
16696         * modules/gc-des (Makefile.am): Likewise.
16697         * modules/gc-hmac-md5 (Makefile.am): Likewise.
16698         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
16699         * modules/gc-md4 (Makefile.am): Likewise.
16700         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
16701         * modules/gc-sha1 (Makefile.am): Likewise.
16702         * modules/gc (Makefile.am): Likewise.
16703         * modules/getaddrinfo (Makefile.am): Likewise.
16704         * modules/getcwd (Makefile.am): Likewise.
16705         * modules/getdelim (Makefile.am): Likewise.
16706         * modules/getdomainname (Makefile.am): Likewise.
16707         * modules/getgroups (Makefile.am): Likewise.
16708         * modules/gethostname (Makefile.am): Likewise.
16709         * modules/gethrxtime (Makefile.am): Likewise.
16710         * modules/getline (Makefile.am): Likewise.
16711         * modules/getloadavg (Makefile.am): Likewise.
16712         * modules/getlogin_r (Makefile.am): Likewise.
16713         * modules/getndelim2 (Makefile.am): Likewise.
16714         * modules/getopt (Makefile.am): Likewise.
16715         * modules/getpagesize (Makefile.am): Likewise.
16716         * modules/getpass-gnu (Makefile.am): Likewise.
16717         * modules/getpass (Makefile.am): Likewise.
16718         * modules/getsubopt (Makefile.am): Likewise.
16719         * modules/gettime (Makefile.am): Likewise.
16720         * modules/gettimeofday (Makefile.am): Likewise.
16721         * modules/getugroups (Makefile.am): Likewise.
16722         * modules/getusershell (Makefile.am): Likewise.
16723         * modules/glob (Makefile.am): Likewise.
16724         * modules/group-member (Makefile.am): Likewise.
16725         * modules/hard-locale (Makefile.am): Likewise.
16726         * modules/hash (Makefile.am): Likewise.
16727         * modules/hmac-md5 (Makefile.am): Likewise.
16728         * modules/hmac-sha1 (Makefile.am): Likewise.
16729         * modules/human (Makefile.am): Likewise.
16730         * modules/idcache (Makefile.am): Likewise.
16731         * modules/imaxabs (Makefile.am): Likewise.
16732         * modules/imaxdiv (Makefile.am): Likewise.
16733         * modules/inet_ntop (Makefile.am): Likewise.
16734         * modules/inet_pton (Makefile.am): Likewise.
16735         * modules/intprops (Makefile.am): Likewise.
16736         * modules/inttostr (Makefile.am): Likewise.
16737         * modules/inttypes (Makefile.am): Likewise.
16738         * modules/isapipe (Makefile.am): Likewise.
16739         * modules/javaversion (Makefile.am): Likewise.
16740         * modules/lchmod (Makefile.am): Likewise.
16741         * modules/lchown (Makefile.am): Likewise.
16742         * modules/localcharset (Makefile.am): Likewise.
16743         * modules/long-options (Makefile.am): Likewise.
16744         * modules/lstat (Makefile.am): Likewise.
16745         * modules/malloc (Makefile.am): Likewise.
16746         * modules/mathl (Makefile.am): Likewise.
16747         * modules/mbchar (Makefile.am): Likewise.
16748         * modules/md2 (Makefile.am): Likewise.
16749         * modules/md4 (Makefile.am): Likewise.
16750         * modules/md5 (Makefile.am): Likewise.
16751         * modules/memcasecmp (Makefile.am): Likewise.
16752         * modules/memchr (Makefile.am): Likewise.
16753         * modules/memcmp (Makefile.am): Likewise.
16754         * modules/memcoll (Makefile.am): Likewise.
16755         * modules/memcpy (Makefile.am): Likewise.
16756         * modules/memmem (Makefile.am): Likewise.
16757         * modules/memmove (Makefile.am): Likewise.
16758         * modules/mempcpy (Makefile.am): Likewise.
16759         * modules/memrchr (Makefile.am): Likewise.
16760         * modules/memset (Makefile.am): Likewise.
16761         * modules/memxor (Makefile.am): Likewise.
16762         * modules/mkancesdirs (Makefile.am): Likewise.
16763         * modules/mkdir-p (Makefile.am): Likewise.
16764         * modules/mkdir (Makefile.am): Likewise.
16765         * modules/mkdtemp (Makefile.am): Likewise.
16766         * modules/mkstemp (Makefile.am): Likewise.
16767         * modules/mktime (Makefile.am): Likewise.
16768         * modules/modechange (Makefile.am): Likewise.
16769         * modules/mountlist (Makefile.am): Likewise.
16770         * modules/nanosleep (Makefile.am): Likewise.
16771         * modules/obstack (Makefile.am): Likewise.
16772         * modules/openat (Makefile.am): Likewise.
16773         * modules/pagealign_alloc (Makefile.am): Likewise.
16774         * modules/pathmax (Makefile.am): Likewise.
16775         * modules/physmem (Makefile.am): Likewise.
16776         * modules/poll (Makefile.am): Likewise.
16777         * modules/posixtm (Makefile.am): Likewise.
16778         * modules/posixver (Makefile.am): Likewise.
16779         * modules/putenv (Makefile.am): Likewise.
16780         * modules/quote (Makefile.am): Likewise.
16781         * modules/quotearg (Makefile.am): Likewise.
16782         * modules/raise (Makefile.am): Likewise.
16783         * modules/read-file (Makefile.am): Likewise.
16784         * modules/readline (Makefile.am): Likewise.
16785         * modules/readlink (Makefile.am): Likewise.
16786         * modules/readtokens (Makefile.am): Likewise.
16787         * modules/readutmp (Makefile.am): Likewise.
16788         * modules/realloc (Makefile.am): Likewise.
16789         * modules/regex (Makefile.am): Likewise.
16790         * modules/rename-dest-slash (Makefile.am): Likewise.
16791         * modules/rename (Makefile.am): Likewise.
16792         * modules/rijndael (Makefile.am): Likewise.
16793         * modules/rmdir (Makefile.am): Likewise.
16794         * modules/rpmatch (Makefile.am): Likewise.
16795         * modules/safe-read (Makefile.am): Likewise.
16796         * modules/safe-write (Makefile.am): Likewise.
16797         * modules/same-inode (Makefile.am): Likewise.
16798         * modules/same (Makefile.am): Likewise.
16799         * modules/save-cwd (Makefile.am): Likewise.
16800         * modules/savedir (Makefile.am): Likewise.
16801         * modules/setenv (Makefile.am): Likewise.
16802         * modules/settime (Makefile.am): Likewise.
16803         * modules/sha1 (Makefile.am): Likewise.
16804         * modules/sig2str (Makefile.am): Likewise.
16805         * modules/snprintf (Makefile.am): Likewise.
16806         * modules/stat-macros (Makefile.am): Likewise.
16807         * modules/stat-time (Makefile.am): Likewise.
16808         * modules/stdbool (Makefile.am): Likewise.
16809         * modules/stdint (Makefile.am): Likewise.
16810         * modules/stdlib-safer (Makefile.am): Likewise.
16811         * modules/stpcpy (Makefile.am): Likewise.
16812         * modules/stpncpy (Makefile.am): Likewise.
16813         * modules/strcase (Makefile.am): Likewise.
16814         * modules/strcasestr (Makefile.am): Likewise.
16815         * modules/strchrnul (Makefile.am): Likewise.
16816         * modules/strcspn (Makefile.am): Likewise.
16817         * modules/strdup (Makefile.am): Likewise.
16818         * modules/strerror (Makefile.am): Likewise.
16819         * modules/strftime (Makefile.am): Likewise.
16820         * modules/strndup (Makefile.am): Likewise.
16821         * modules/strnlen (Makefile.am): Likewise.
16822         * modules/strpbrk (Makefile.am): Likewise.
16823         * modules/strsep (Makefile.am): Likewise.
16824         * modules/strstr (Makefile.am): Likewise.
16825         * modules/strtod (Makefile.am): Likewise.
16826         * modules/strtoimax (Makefile.am): Likewise.
16827         * modules/strtok_r (Makefile.am): Likewise.
16828         * modules/strtol (Makefile.am): Likewise.
16829         * modules/strtoll (Makefile.am): Likewise.
16830         * modules/strtoul (Makefile.am): Likewise.
16831         * modules/strtoull (Makefile.am): Likewise.
16832         * modules/strtoumax (Makefile.am): Likewise.
16833         * modules/strverscmp (Makefile.am): Likewise.
16834         * modules/sys_socket (Makefile.am): Likewise.
16835         * modules/sys_stat (Makefile.am): Likewise.
16836         * modules/sysexits (Makefile.am): Likewise.
16837         * modules/time_r (Makefile.am): Likewise.
16838         * modules/timegm (Makefile.am): Likewise.
16839         * modules/timespec (Makefile.am): Likewise.
16840         * modules/tmpfile-safer (Makefile.am): Likewise.
16841         * modules/trim (Makefile.am): Likewise.
16842         * modules/unistd-safer (Makefile.am): Likewise.
16843         * modules/unlinkdir (Makefile.am): Likewise.
16844         * modules/unlocked-io (Makefile.am): Likewise.
16845         * modules/userspec (Makefile.am): Likewise.
16846         * modules/utime (Makefile.am): Likewise.
16847         * modules/utimecmp (Makefile.am): Likewise.
16848         * modules/utimens (Makefile.am): Likewise.
16849         * modules/vasnprintf (Makefile.am): Likewise.
16850         * modules/vasprintf (Makefile.am): Likewise.
16851         * modules/vsnprintf (Makefile.am): Likewise.
16852         * modules/xalloc (Makefile.am): Likewise.
16853         * modules/xgetcwd (Makefile.am): Likewise.
16854         * modules/xnanosleep (Makefile.am): Likewise.
16855         * modules/xreadlink (Makefile.am): Likewise.
16856         * modules/xstrtod (Makefile.am): Likewise.
16857         * modules/xstrtol (Makefile.am): Likewise.
16858         * modules/xstrtold (Makefile.am): Likewise.
16859         * modules/yesno (Makefile.am): Likewise.
16860         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
16861
16862 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
16863
16864         * modules/error (Makefile.am): Distribute files through
16865         EXTRA_DIST, not lib_SOURCES.
16866
16867 2006-10-12  Eric Blake  <ebb9@byu.net>
16868
16869         * modules/error (Makefile.am): Distribute files in /lib.
16870         * modules/obstack (Makefile.am): Likewise.
16871
16872 2006-10-12  Bruno Haible  <bruno@clisp.org>
16873
16874         * modules/acl (Makefile.am): Distribute all files in lib/ through
16875         EXTRA_DIST.
16876         * modules/arcfour (Makefile.am): Likewise.
16877         * modules/arctwo (Makefile.am): Likewise.
16878         * modules/argmatch (Makefile.am): Likewise.
16879         * modules/argz (Makefile.am): Likewise.
16880         * modules/atexit (Makefile.am): Likewise.
16881         * modules/backupfile (Makefile.am): Likewise.
16882         * modules/c-strtod (Makefile.am): Likewise.
16883         * modules/c-strtold (Makefile.am): Likewise.
16884         * modules/calloc (Makefile.am): Likewise.
16885         * modules/canon-host (Makefile.am): Likewise.
16886         * modules/canonicalize (Makefile.am): Likewise.
16887         * modules/chdir-long (Makefile.am): Likewise.
16888         * modules/chdir-safer (Makefile.am): Likewise.
16889         * modules/check-version (Makefile.am): Likewise.
16890         * modules/chown (Makefile.am): Likewise.
16891         * modules/cloexec (Makefile.am): Likewise.
16892         * modules/close-stream (Makefile.am): Likewise.
16893         * modules/closeout (Makefile.am): Likewise.
16894         * modules/crc (Makefile.am): Likewise.
16895         * modules/cycle-check (Makefile.am): Likewise.
16896         * modules/des (Makefile.am): Likewise.
16897         * modules/dirfd (Makefile.am): Likewise.
16898         * modules/dirname (Makefile.am): Likewise.
16899         * modules/dup2 (Makefile.am): Likewise.
16900         * modules/euidaccess (Makefile.am): Likewise.
16901         * modules/exclude (Makefile.am): Likewise.
16902         * modules/exitfail (Makefile.am): Likewise.
16903         * modules/fcntl-safer (Makefile.am): Likewise.
16904         * modules/file-type (Makefile.am): Likewise.
16905         * modules/fileblocks (Makefile.am): Likewise.
16906         * modules/filemode (Makefile.am): Likewise.
16907         * modules/filenamecat (Makefile.am): Likewise.
16908         * modules/fnmatch (Makefile.am): Likewise.
16909         * modules/fopen-safer (Makefile.am): Likewise.
16910         * modules/fpending (Makefile.am): Likewise.
16911         * modules/fprintftime (Makefile.am): Likewise.
16912         * modules/free (Makefile.am): Likewise.
16913         * modules/fsusage (Makefile.am): Likewise.
16914         * modules/ftruncate (Makefile.am): Likewise.
16915         * modules/fts (Makefile.am): Likewise.
16916         * modules/gc (Makefile.am): Likewise.
16917         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
16918         * modules/getaddrinfo (Makefile.am): Likewise.
16919         * modules/getcwd (Makefile.am): Likewise.
16920         * modules/getdelim (Makefile.am): Likewise.
16921         * modules/getdomainname (Makefile.am): Likewise.
16922         * modules/getgroups (Makefile.am): Likewise.
16923         * modules/gethostname (Makefile.am): Likewise.
16924         * modules/gethrxtime (Makefile.am): Likewise.
16925         * modules/getline (Makefile.am): Likewise.
16926         * modules/getloadavg (Makefile.am): Likewise.
16927         * modules/getlogin_r (Makefile.am): Likewise.
16928         * modules/getopt (Makefile.am): Likewise.
16929         * modules/getpass (Makefile.am): Likewise.
16930         * modules/getpass-gnu (Makefile.am): Likewise.
16931         * modules/getsubopt (Makefile.am): Likewise.
16932         * modules/gettime (Makefile.am): Likewise.
16933         * modules/gettimeofday (Makefile.am): Likewise.
16934         * modules/getugroups (Makefile.am): Likewise.
16935         * modules/getusershell (Makefile.am): Likewise.
16936         * modules/glob (Makefile.am): Likewise.
16937         * modules/group-member (Makefile.am): Likewise.
16938         * modules/hard-locale (Makefile.am): Likewise.
16939         * modules/hash (Makefile.am): Likewise.
16940         * modules/hmac-md5 (Makefile.am): Likewise.
16941         * modules/hmac-sha1 (Makefile.am): Likewise.
16942         * modules/human (Makefile.am): Likewise.
16943         * modules/idcache (Makefile.am): Likewise.
16944         * modules/imaxabs (Makefile.am): Likewise.
16945         * modules/imaxdiv (Makefile.am): Likewise.
16946         * modules/inet_ntop (Makefile.am): Likewise.
16947         * modules/inet_pton (Makefile.am): Likewise.
16948         * modules/inttostr (Makefile.am): Likewise.
16949         * modules/isapipe (Makefile.am): Likewise.
16950         * modules/lchown (Makefile.am): Likewise.
16951         * modules/long-options (Makefile.am): Likewise.
16952         * modules/lstat (Makefile.am): Likewise.
16953         * modules/malloc (Makefile.am): Likewise.
16954         * modules/mathl (Makefile.am): Likewise.
16955         * modules/mbchar (Makefile.am): Likewise.
16956         * modules/md2 (Makefile.am): Likewise.
16957         * modules/md4 (Makefile.am): Likewise.
16958         * modules/md5 (Makefile.am): Likewise.
16959         * modules/memcasecmp (Makefile.am): Likewise.
16960         * modules/memchr (Makefile.am): Likewise.
16961         * modules/memcmp (Makefile.am): Likewise.
16962         * modules/memcoll (Makefile.am): Likewise.
16963         * modules/memcpy (Makefile.am): Likewise.
16964         * modules/memmem (Makefile.am): Likewise.
16965         * modules/memmove (Makefile.am): Likewise.
16966         * modules/mempcpy (Makefile.am): Likewise.
16967         * modules/memrchr (Makefile.am): Likewise.
16968         * modules/memset (Makefile.am): Likewise.
16969         * modules/memxor (Makefile.am): Likewise.
16970         * modules/mkancesdirs (Makefile.am): Likewise.
16971         * modules/mkdir (Makefile.am): Likewise.
16972         * modules/mkdir-p (Makefile.am): Likewise.
16973         * modules/mkdtemp (Makefile.am): Likewise.
16974         * modules/mkstemp (Makefile.am): Likewise.
16975         * modules/mktime (Makefile.am): Likewise.
16976         * modules/modechange (Makefile.am): Likewise.
16977         * modules/mountlist (Makefile.am): Likewise.
16978         * modules/nanosleep (Makefile.am): Likewise.
16979         * modules/openat (Makefile.am): Likewise.
16980         * modules/pagealign_alloc (Makefile.am): Likewise.
16981         * modules/physmem (Makefile.am): Likewise.
16982         * modules/poll (Makefile.am): Likewise.
16983         * modules/posixtm (Makefile.am): Likewise.
16984         * modules/posixver (Makefile.am): Likewise.
16985         * modules/putenv (Makefile.am): Likewise.
16986         * modules/quote (Makefile.am): Likewise.
16987         * modules/quotearg (Makefile.am): Likewise.
16988         * modules/raise (Makefile.am): Likewise.
16989         * modules/read-file (Makefile.am): Likewise.
16990         * modules/readline (Makefile.am): Likewise.
16991         * modules/readlink (Makefile.am): Likewise.
16992         * modules/readtokens (Makefile.am): Likewise.
16993         * modules/readutmp (Makefile.am): Likewise.
16994         * modules/realloc (Makefile.am): Likewise.
16995         * modules/regex (Makefile.am): Likewise.
16996         * modules/rename (Makefile.am): Likewise.
16997         * modules/rename-dest-slash (Makefile.am): Likewise.
16998         * modules/rijndael (Makefile.am): Likewise.
16999         * modules/rmdir (Makefile.am): Likewise.
17000         * modules/rpmatch (Makefile.am): Likewise.
17001         * modules/safe-read (Makefile.am): Likewise.
17002         * modules/safe-write (Makefile.am): Likewise.
17003         * modules/same (Makefile.am): Likewise.
17004         * modules/save-cwd (Makefile.am): Likewise.
17005         * modules/savedir (Makefile.am): Likewise.
17006         * modules/setenv (Makefile.am): Likewise.
17007         * modules/settime (Makefile.am): Likewise.
17008         * modules/sha1 (Makefile.am): Likewise.
17009         * modules/sig2str (Makefile.am): Likewise.
17010         * modules/snprintf (Makefile.am): Likewise.
17011         * modules/stdlib-safer (Makefile.am): Likewise.
17012         * modules/stpcpy (Makefile.am): Likewise.
17013         * modules/stpncpy (Makefile.am): Likewise.
17014         * modules/strcase (Makefile.am): Likewise.
17015         * modules/strcasestr (Makefile.am): Likewise.
17016         * modules/strchrnul (Makefile.am): Likewise.
17017         * modules/strcspn (Makefile.am): Likewise.
17018         * modules/strdup (Makefile.am): Likewise.
17019         * modules/strerror (Makefile.am): Likewise.
17020         * modules/strftime (Makefile.am): Likewise.
17021         * modules/strndup (Makefile.am): Likewise.
17022         * modules/strnlen (Makefile.am): Likewise.
17023         * modules/strpbrk (Makefile.am): Likewise.
17024         * modules/strsep (Makefile.am): Likewise.
17025         * modules/strstr (Makefile.am): Likewise.
17026         * modules/strtod (Makefile.am): Likewise.
17027         * modules/strtoimax (Makefile.am): Likewise.
17028         * modules/strtok_r (Makefile.am): Likewise.
17029         * modules/strtol (Makefile.am): Likewise.
17030         * modules/strtoll (Makefile.am): Likewise.
17031         * modules/strtoul (Makefile.am): Likewise.
17032         * modules/strtoull (Makefile.am): Likewise.
17033         * modules/strtoumax (Makefile.am): Likewise.
17034         * modules/strverscmp (Makefile.am): Likewise.
17035         * modules/time_r (Makefile.am): Likewise.
17036         * modules/timegm (Makefile.am): Likewise.
17037         * modules/tmpfile-safer (Makefile.am): Likewise.
17038         * modules/unistd-safer (Makefile.am): Likewise.
17039         * modules/unlinkdir (Makefile.am): Likewise.
17040         * modules/userspec (Makefile.am): Likewise.
17041         * modules/utime (Makefile.am): Likewise.
17042         * modules/utimecmp (Makefile.am): Likewise.
17043         * modules/utimens (Makefile.am): Likewise.
17044         * modules/vasnprintf (Makefile.am): Likewise.
17045         * modules/vasprintf (Makefile.am): Likewise.
17046         * modules/vsnprintf (Makefile.am): Likewise.
17047         * modules/xalloc (Makefile.am): Likewise.
17048         * modules/xgetcwd (Makefile.am): Likewise.
17049         * modules/xnanosleep (Makefile.am): Likewise.
17050         * modules/xreadlink (Makefile.am): Likewise.
17051         * modules/xstrtod (Makefile.am): Likewise.
17052         * modules/xstrtol (Makefile.am): Likewise.
17053         * modules/xstrtold (Makefile.am): Likewise.
17054         * modules/yesno (Makefile.am): Likewise.
17055
17056 2006-10-12  Jim Meyering  <jim@meyering.net>
17057
17058         * m4/getloadavg.m4: Revert the change below.
17059
17060         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
17061         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
17062         fail with a symlink, which is what coreutils' ./bootstrap now
17063         creates by default.
17064
17065 2006-10-12  Bruno Haible  <bruno@clisp.org>
17066
17067         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
17068         mingw.
17069         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
17070         MSVC and mingw explicitly.
17071
17072 2006-10-11  Simon Josefsson  <jas@extundo.com>
17073             Bruno Haible  <bruno@clisp.org>
17074
17075         Add support for multiple gnulib-tool invocations in the scope of a
17076         single configure.ac file.
17077         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
17078         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
17079         with the same contents as the _LIBADD variable.
17080         (func_emit_initmacro_start, func_emit_initmacro_end,
17081         func_emit_initmacro_done): New functions.
17082         (func_import, func_create_testdir): Invoke them. Allow the identifiers
17083         gl_LIBOBJS and gl_LTLIBOBJS.
17084
17085 2006-10-11  Bruno Haible  <bruno@clisp.org>
17086
17087         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
17088         (func_create_testdir): Don't create po/Makefile.am, don't invoke
17089         autoreconf. Instead, invoke autopoint explicitly but move back the
17090         *.m4 files from gnulib.
17091
17092 2006-10-11  Bruno Haible  <bruno@clisp.org>
17093
17094         * gnulib-tool (func_usage): Make module names after --create-testdir
17095         optional.
17096         (func_create_testdir): If no module was specified, use nearly all
17097         modules.
17098
17099 2006-10-12  Jim Meyering  <jim@meyering.net>
17100
17101         Big performance improvement for fts-based tools that use FTS_NOSTAT.
17102         Avoid spurious inode-mismatch problems on non-POSIX file systems.
17103         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
17104         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
17105         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
17106         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
17107         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
17108         (fts_set_stat_required): New function.
17109         (fts_open): Defer the calls to fts_stat, if possible or requested.
17110         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
17111         into fts_stat itself.
17112         (fts_read): Perform any required (deferred) fts_stat call.
17113         (fts_build): Likewise, for the directory we're about to open and read.
17114         In the readdir loop, carefully decide whether each entry will require
17115         an eventual call to fts_stat, using dirent.d_type info if available.
17116         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
17117         a command line argument into this function.  Update all callers.
17118         Map a return value of FTS_DOT to FTS_D for a command line argument.
17119         * modules/fts (Depends-on): Add d-type.  Alphabetize.
17120         Thanks to Miklos Szeredi for his tenacity and for the initial
17121         bug report about "find" failing on a FUSE-based file system.
17122
17123         * lib/fts.c (fts_open): Use consistent indentation.
17124
17125 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
17126
17127         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
17128         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
17129         reported by Jim Meyering.  All uses of cache variables renamed
17130         to match Autoconf's.
17131         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
17132         the other one.
17133
17134         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
17135         Fix misspelling in diagnostic.
17136
17137 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
17138
17139         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
17140         defined.  Problem reported by Matthew Woehlke.
17141
17142         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
17143         Add support for Tandem NonStop R series.
17144         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
17145         Use new macro.
17146
17147         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
17148         (has_trailing_slash): Omit size arg; all callers changed.
17149         Omit 'inline', since it doesn't help performance and we'd
17150         need to configure it.
17151         Don't count //, ///, etc. as having a trailing slash.
17152         As a side effect, this removes a C99ism reported by Matthew Woehlke.
17153         (rpl_rename_dest_slash): On failure, use rename's errno rather
17154         than (in some cases) an incorrect or junk errno.
17155         Simplify code by removing need to compute length; this does
17156         cause it to make two passes instead of one over the file name,
17157         but it's worth it.
17158
17159         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
17160         change, since Autoconf's version may no longer be appropriate now
17161         that we are using CVS Autoconf's version.  Add support for Tandem.
17162
17163 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
17164             Bruno Haible  <bruno@clisp.org>
17165
17166         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
17167         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
17168         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
17169         gl_AC_TYPE_LONG_LONG.
17170
17171         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
17172         instead of HAVE_LONG_LONG.
17173         * lib/printf-args.c (printf_fetchargs): Likewise.
17174         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
17175         * lib/vasnprintf.c (VASNPRINTF): Likewise.
17176         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
17177         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
17178         gl_AC_TYPE_LONG_LONG.
17179
17180 2006-10-11  Bruno Haible  <bruno@clisp.org>
17181
17182         * m4/longlong.m4: Add comments.
17183         * m4/ulonglong.m4: Likewise.
17184
17185 2006-10-10  Bruno Haible  <bruno@clisp.org>
17186
17187         Make it possible to #define stpcpy, strdup to aliases.
17188         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
17189         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
17190
17191 2006-10-10  Bruno Haible  <bruno@clisp.org>
17192
17193         Make it possible to #define gcd to an alias.
17194         * lib/gcd.c: Include config.h.
17195
17196 2006-10-10  Bruno Haible  <bruno@clisp.org>
17197
17198         Make it possible to #define c_isascii to an alias.
17199         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
17200         defined. Undefine the macros before defining them, to avoid gcc
17201         warnings.
17202         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
17203         define NO_C_CTYPE_MACROS early.
17204
17205 2006-10-10  Bruno Haible  <bruno@clisp.org>
17206
17207         Make it possible to #define set_program_name to an alias.
17208         * lib/progname.c: Don't undefine set_program_name; instead, undefine
17209         ENABLE_RELOCATABLE early.
17210
17211 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
17212
17213         Port to Tandem NSK OSS, which has 64-bit signed int but at most
17214         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
17215         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
17216         More generally, don't assume that 64-bit signed int is available
17217         if unsigned int is, and vice versa.
17218         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
17219         unsigned symbols, not on their signed counterparts.
17220         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
17221         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
17222         (UINT64_C, UINTMAX_C):
17223         Likewise.
17224         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
17225         unsigned counterparts.
17226         (Have_long_long, Unsigned): New macros.
17227         (Int): Renamed from INT.
17228         (strtoimax): Use the new macros.
17229         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
17230         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
17231         * modules/inttypes (inttypes.h): Substitute
17232         HAVE_UNSIGNED_LONG_LONG_INT.
17233         * modules/stdint (stdint.h): Likewise.
17234         (Files): Add m4/ulonglong.m4.
17235
17236 2006-10-10  Bruno Haible  <bruno@clisp.org>
17237
17238         Fix a gcc -Wshadow warning.
17239         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
17240         to 'bucket'.
17241         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
17242         gl_linked_indexof_from_to): Likewise.
17243         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
17244         Likewise.
17245         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
17246         Likewise.
17247         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
17248         Reported by Eric Blake.
17249
17250 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
17251
17252         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
17253         for NetBSD.  Problem reported by Bruno Haible.
17254
17255 2006-10-09  Jim Meyering  <jim@meyering.net>
17256
17257         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
17258         Patch from Bruno Haible.
17259
17260 2006-10-09  Jim Meyering  <jim@meyering.net>
17261
17262         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
17263         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
17264         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
17265
17266 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
17267
17268         Don't include <config.h> twice; this doesn't work in some cases,
17269         e.g., when config.h has "#define intmax_t long long int" and
17270         we include <config.h>, <inttypes.h>, <config.h> in that order.
17271         Problem reported by Matthew Woehlke in:
17272         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
17273         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
17274         * lib/fts-cycle.c: Don't include config.h.
17275         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
17276         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
17277         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
17278         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
17279         inttypes.h.
17280         * lib/xstrtoumax.c: Likewise.
17281         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
17282         __strtol and the like, so that this module is more like its siblings.
17283         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
17284         Remove; no longer needed now that we assume gnulib inttypes.h.
17285
17286 2006-10-08  Bruno Haible  <bruno@clisp.org>
17287
17288         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
17289         option.
17290
17291 2006-10-07  Jim Meyering  <jim@meyering.net>
17292
17293         * modules/inttypes (inttypes.h): Revert what seems to have been
17294         an inadvertent part of today's change: use "|", not "/" in the
17295         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
17296
17297 2006-10-07  Bruno Haible  <bruno@clisp.org>
17298
17299         * modules/sublist: New file.
17300
17301 2006-10-07  Bruno Haible  <bruno@clisp.org>
17302
17303         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
17304         * modules/argz (argz.h): Likewise.
17305         * modules/arpa_inet (arpa/inet.h): Likewise.
17306         * modules/byteswap (byteswap.h): Likewise.
17307         * modules/configmake (configmake.h): Likewise.
17308         * modules/fcntl (fcntl.h): Likewise.
17309         * modules/fnmatch (fnmatch.h): Likewise.
17310         * modules/getopt (getopt.h): Likewise.
17311         * modules/glob (glob.h): Likewise.
17312         * modules/inttypes (inttypes.h): Likewise.
17313         * modules/netinet_in (netinet/in.h): Likewise.
17314         * modules/poll (poll.h): Likewise.
17315         * modules/stdbool (stdbool.h): Likewise.
17316         * modules/stdint (stdint.h): Likewise.
17317         * modules/sys_select (sys/select.h): Likewise.
17318         * modules/sys_socket (sys/socket.h): Likewise.
17319         * modules/sys_stat (sys/stat.h): Likewise.
17320         * modules/sysexits (sysexits.h): Likewise.
17321         * modules/unistd (unistd.h): Likewise.
17322         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
17323         Add a "DO NOT EDIT" comment to the generated file.
17324         (func_import): Likewise for gnulib-comp.m4.
17325
17326 2006-10-07  Bruno Haible  <bruno@clisp.org>
17327
17328         * lib/gl_sublist.h: New file.
17329         * lib/gl_sublist.c: New file.
17330
17331 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
17332
17333         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
17334         name (relative to the original working directory) and the file
17335         name component (relative to the temporary working directory).  All
17336         callers changed.
17337         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
17338         * lib/mkdir-p.c (make_dir_parents): Likewise.
17339         * lib/mkdir-p.h (make_dir_parents): Likewise.
17340
17341 2006-10-06  Eric Blake  <ebb9@byu.net>
17342
17343         Define several macros for use by the clean-temp module.
17344         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
17345         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
17346         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
17347
17348         * lib/clean-temp.h (close_stream_temp): New declaration.
17349         * lib/clean-temp.c (includes): Pull in headers according to what
17350         other modules are in use.
17351         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
17352
17353 2006-10-06  Bruno Haible  <bruno@clisp.org>
17354
17355         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
17356         instead of fopen, fwriteerror.
17357
17358 2006-10-06  Bruno Haible  <bruno@clisp.org>
17359
17360         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
17361         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
17362         int.
17363         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
17364         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
17365         Return an error indicator.
17366         Suggested by Eric Blake.
17367
17368 2006-10-06  Bruno Haible  <bruno@clisp.org>
17369
17370         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
17371         Reported by Eric Blake.
17372
17373 2006-10-06  Bruno Haible  <bruno@clisp.org>
17374
17375         * modules/closeout (Description): Mention stderr too.
17376
17377 2006-10-06  Bruno Haible  <bruno@clisp.org>
17378         and Paul Eggert  <eggert@cs.ucla.edu>
17379
17380         * lib/closeout.c (close_stdout): Also close stderr.
17381         * lib/closeout.h: Update comment.
17382
17383 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
17384
17385         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
17386         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
17387         * lib/dirchownmod.c: Include lchown.h.
17388         * lib/lchown.c: Don't include files that lchown.h now includes.
17389         Don't declare chown, since lchown.h now does that.
17390         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
17391         (lchown): Define to rpl_chown if lchown is declared but
17392         does not exist.  Declare using a prototype if lchown is not
17393         declared.  Add a copyright notice.
17394         * lib/mkstemp.h: Include <unistd.h>.
17395         * lib/openat.c: Include lchown.h.
17396
17397         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
17398         we now test for that separately.
17399         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
17400         rather than O_NOFOLLOW, when testing whether it's possible to
17401         avoid a race condition reliably.
17402         * lib/savewd.c (savewd_chdir): Likewise.
17403
17404         Remove macros that are no longer needed now that stdint.h is
17405         reliable.
17406         * lib/fsusage.c (UINTMAX_MAX): Remove.
17407         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
17408         * lib/utimecmp.c (SIZE_MAX): Remove.
17409
17410         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
17411
17412         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
17413         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
17414         O_NOATIME works.
17415
17416 2006-10-05  Bruno Haible  <bruno@clisp.org>
17417
17418         * lib/gl_list.h (gl_sortedlist_search_from_to,
17419         gl_sortedlist_indexof_from_to): New declarations.
17420         (gl_list_implementation): New fields sortedlist_search_from_to,
17421         sortedlist_indexof_from_to.
17422         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
17423         inline functions.
17424         * lib/gl_list.c (gl_sortedlist_search_from_to,
17425         gl_sortedlist_indexof_from_to): New functions.
17426         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
17427         function.
17428         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
17429         (gl_array_sortedlist_search_from_to): New function.
17430         (gl_array_list_implementation): Update.
17431         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
17432         function.
17433         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
17434         (gl_carray_sortedlist_search_from_to): New function.
17435         (gl_carray_list_implementation): Update.
17436         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
17437         gl_linked_sortedlist_indexof_from_to): New functions.
17438         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
17439         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
17440         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
17441         gl_tree_sortedlist_indexof_from_to): New functions.
17442         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
17443         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
17444         Update.
17445         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
17446         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
17447         Update.
17448
17449 2006-10-05  Bruno Haible  <bruno@clisp.org>
17450
17451         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
17452         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
17453         (struct gl_list_implementation): Add fields search_from_to,
17454         indexof_from_to. Remove fields search, indexof.
17455         (gl_list_search): Use the search_from_to method.
17456         (gl_list_search_from, gl_list_search_from_to): New functions.
17457         (gl_list_indexof): Use the indexof_from_to method.
17458         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
17459         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
17460         (gl_list_search_from, gl_list_search_from_to): New functions.
17461         (gl_list_indexof): Use the indexof_from_to method.
17462         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
17463         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
17464         gl_array_indexof. Add start_index, end_index arguments.
17465         (gl_array_search_from_to): Renamed from gl_array_search. Add
17466         start_index, end_index arguments.
17467         (gl_array_remove, gl_array_list_implementation): Update.
17468         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
17469         gl_carray_indexof. Add start_index, end_index arguments.
17470         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
17471         start_index, end_index arguments.
17472         (gl_carray_remove, gl_carray_list_implementation): Update.
17473         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
17474         gl_linked_search. Add start_index, end_index arguments.
17475         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
17476         start_index, end_index arguments.
17477         (gl_linked_remove): Update.
17478         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
17479         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
17480         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
17481         field to 'size_t'.
17482         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
17483         gl_tree_search. Add start_index, end_index arguments.
17484         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
17485         start_index, end_index arguments.
17486         (gl_tree_remove): Update.
17487         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
17488         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
17489         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
17490         function.
17491         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
17492         gl_tree_search. Add start_index, end_index arguments.
17493         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
17494         start_index, end_index arguments.
17495         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
17496         Update.
17497         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
17498
17499 2006-10-05  Bruno Haible  <bruno@clisp.org>
17500
17501         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
17502
17503         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
17504         fwriteerror_temp): New declarations.
17505         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
17506         (descriptors): New variable.
17507         (cleanup): First, close the descriptors.
17508         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
17509         fclose_temp, fwriteerror_temp): New functions.
17510
17511 2006-10-04  Jim Meyering  <jim@meyering.net>
17512
17513         * lib/fts.c (fts_open): Tiny comment change.
17514
17515 2006-10-04  Bruno Haible  <bruno@clisp.org>
17516
17517         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
17518         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
17519         gl_LOCK_BODY.
17520         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
17521         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
17522         gl_LOCK_EARLY_BODY.
17523         (gl_LOCK): Require gl_LOCK_BODY.
17524
17525 2006-10-04  Bruno Haible  <bruno@clisp.org>
17526
17527         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
17528         (gl_oset_search_atleast): New declaration.
17529         (struct gl_oset_implementation): Add field 'search_atleast'.
17530         (gl_oset_search_atleast): New inline function.
17531         * lib/gl_oset.c (gl_oset_search_atleast): New function.
17532         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
17533         (gl_array_oset_implementation): Update.
17534         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
17535         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
17536         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
17537
17538 2006-10-04  Bruno Haible  <bruno@clisp.org>
17539
17540         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
17541
17542 2006-10-03  Bruno Haible  <bruno@clisp.org>
17543
17544         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
17545         from gl_avltreehash_list_implementation.
17546
17547 2006-10-03  Bruno Haible  <bruno@clisp.org>
17548
17549         * lib/gl_oset.c (gl_oset_add): Fix return type.
17550
17551 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
17552
17553         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
17554
17555 2006-10-02  Eric Blake  <ebb9@byu.net>
17556
17557         * modules/strnlen (Depends-on): Add extensions.
17558
17559 2006-10-02  Eric Blake  <ebb9@byu.net>
17560
17561         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
17562         definition in 2.60+.
17563
17564 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
17565
17566         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
17567         checks.
17568
17569 2006-10-02  Bruno Haible  <bruno@clisp.org>
17570
17571         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
17572         to the AUTOMAKE_OPTIONS.
17573         Reported by Jim Meyering.
17574
17575 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
17576
17577         Work around bug in Solaris 10 /proc file system:
17578         /proc/self/fd/NNN/.. isn't the parent directory of
17579         the directory whose file descriptor is NNN.  This needs to
17580         be worked around at run time, not compile time, since a
17581         program might be built on Solaris 8, where things work, and
17582         run on Solaris 10.
17583         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
17584         to use the following interface instead:
17585         (OPENAT_BUFFER_SIZE): New macro.
17586         (openat_proc_name): New function.
17587         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
17588         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
17589         Likewise.
17590         * lib/openat-proc.c: New file.
17591         * modules/openat (Files): Add lib/openat-proc.c.
17592         (Depends-on): Add same-inode, stdbool.
17593         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
17594
17595 2006-09-29  Bruno Haible  <bruno@clisp.org>
17596
17597         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
17598         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
17599         argument. Set stdout_closed before testing for ferror, not after.
17600         (fwriteerror, fwriteerror_no_ebadf): New functions.
17601
17602 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17603
17604         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
17605
17606 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
17607
17608         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
17609         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
17610
17611 2006-09-28  Jim Meyering  <jim@meyering.net>
17612
17613         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
17614         Include <unistd.h>.
17615
17616 2006-09-28  Bruno Haible  <bruno@clisp.org>
17617
17618         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
17619         * modules/linkedhash-list (Depends-on): Likewise.
17620         * modules/rbtreehash-list (Depends-on): Likewise.
17621
17622 2006-09-28  Bruno Haible  <bruno@clisp.org>
17623
17624         * lib/strndup.h: Simplify the redefinition of strndup.
17625         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
17626         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
17627
17628 2006-09-28  Bruno Haible  <bruno@clisp.org>
17629
17630         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
17631         * lib/gl_linkedhash_list.c: Likewise.
17632         * lib/gl_rbtreehash_list.c: Likewise.
17633
17634 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
17635
17636         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
17637         getaddrinfo.
17638
17639         * lib/__fpending.h: Don't include <stdio_ext.h> unless
17640         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
17641         it causes <stdio_ext.h> to cause a compile-time error.
17642         Problem reported by Nelson H. F. Beebe.
17643         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
17644         of HAVE_DECL___PENDING.
17645
17646         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
17647         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
17648         declaration.
17649
17650 2006-09-27  Jim Meyering  <jim@meyering.net>
17651
17652         This file could end up with a definition for a function
17653         named __strndup, rather than rpl_strndup on a system with
17654         incomplete weak_alias support.
17655         * lib/strndup.c (strndup): Rename from __strndup.
17656         Remove #defines that used to map __strndup to strndup.
17657         Don't use K&R prototypes.
17658         Remove LIBC-related code, since this file is not sync'd with glibc.
17659         * lib/strndup.h: Revamp, accordingly.
17660         * m4/strndup.m4: Modernize.
17661
17662 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
17663
17664         * modules/savewd (Depends-on): Add 'raise'.
17665         * lib/savewd.c: Include <signal.h>, for 'raise'.
17666
17667 2006-09-26  Jim Meyering  <jim@meyering.net>
17668
17669         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
17670         when we detect Darwin 8.7.0's acl_get_file bug.
17671         Rearrange to perform the new (below) run-test while $LIBS
17672         contains any acl-related library.  Set USE_ACL at the end.
17673         (gl_ACL_GET_FILE): New function.
17674
17675 2006-09-26  Eric Blake  <ebb9@byu.net>
17676
17677         * lib/verror.c: Include <config.h> unconditionally.
17678
17679 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
17680
17681         * modules/clock-time (Maintainer): Add self.
17682         * modules/getlogin_r (Depends-on): Add extensions.
17683
17684 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17685
17686         * modules/clock-time: New module.
17687         * modules/nanosleep (Depends-on): Add clock-time.
17688         * modules/gethrxtime (Depends-on): Likewise.
17689         * modules/gettime (Depends-on): Likewise.
17690         * modules/settime (Depends-on): Likewise.
17691
17692         * modules/fts-lgpl: Depend on openat.
17693         * modules/mkancesdirs: Depend on savewd.
17694         * modules/mkdir-p: Likewise.
17695
17696 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17697
17698         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
17699
17700         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
17701         `gl_have_arbitrary_file_name_length_limit' to
17702         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
17703         actually works between configure runs.
17704
17705 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17706             Bruno Haible  <bruno@clisp.org>
17707
17708         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
17709
17710 2006-09-25  Jim Meyering  <jim@meyering.net>
17711
17712         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
17713         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
17714
17715 2006-09-25  Eric Blake  <ebb9@byu.net>
17716
17717         * gnulib-tool (func_import, func_create_testdir): Fix typos in
17718         exec's in 2006-09-18 patch when shuffling fds.
17719
17720 2006-09-25  Bruno Haible  <bruno@clisp.org>
17721
17722         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
17723         Reported by Jim Meyering.
17724
17725 2006-09-24  Jim Meyering  <jim@meyering.net>
17726
17727         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
17728         compare a pointer against a literal "0".  That caused failures with
17729         at least HP-UX's hpcc.
17730
17731 2006-09-22  Simon Josefsson  <jas@extundo.com>
17732
17733         * modules/gc-sha1:
17734         * modules/gc-md4:
17735         * modules/gc-hmac-sha1:
17736         * modules/gc-hmac-md5:
17737         * modules/gc-des:
17738         * modules/gc-arcfour: Distribute more files.
17739
17740 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17741
17742         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
17743         (gl_linked_iterator_from_to): Initialize struct completely.
17744         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
17745         (gl_tree_iterator_from_to): Likewise
17746         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
17747         * lib/gl_array_list.c [lint] (gl_array_iterator)
17748         (gl_array_iterator_from_to): Likewise.
17749         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
17750         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
17751         (gl_carray_iterator_from_to): Likewise.
17752
17753         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
17754         * lib/md4.c (md4_process_block): Remove unused variable.
17755         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
17756         parentheses for clarity.
17757
17758 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17759
17760         * modules/bison-i18n (Depends-on): Add gettext.
17761
17762 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17763
17764         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
17765         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
17766         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
17767         also add missing comma that caused broken test.
17768         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
17769         stdlib.h, for `abort'.
17770         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
17771         variables.
17772         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
17773         include unistd.h if present, for `rmdir'.
17774         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
17775         variables.
17776         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
17777         in the process include standard headers for prototypes.
17778         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
17779         gets declared on GNU/Linux.
17780         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
17781         unistd.h, for `rmdir'.
17782         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
17783
17784         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
17785         always true.
17786         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
17787
17788         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
17789
17790 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17791
17792         * gnulib-tool (func_version): Create output all at once.  This
17793         may help avoid triggering unnecessary SIGPIPEs, and at any
17794         rate it doesn't hurt.
17795
17796 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17797             Bruno Haible  <bruno@clisp.org>
17798
17799         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
17800         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
17801         * m4/signed.m4 (bh_C_SIGNED): Likewise.
17802
17803         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
17804         (gl_FUNC_VASPRINTF): Invoke it.
17805
17806 2006-09-22  Bruno Haible  <bruno@clisp.org>
17807
17808         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
17809         getloadavg.c as first argument.
17810
17811 2006-09-22  Bruno Haible  <bruno@clisp.org>
17812
17813         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
17814         at the beginning of the gl_INIT macro.
17815         * modules/getloadavg (configure.ac): Pass $gl_source_base to
17816         gl_GETLOADAVG.
17817
17818 2006-09-22  Bruno Haible  <bruno@clisp.org>
17819
17820         * gnulib-tool (func_create_megatestdir): Don't include the config-h
17821         module.
17822         Suggested by Ralf Wildenhues.
17823
17824 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
17825
17826         Import this patch from libc:
17827
17828         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
17829
17830         * lib/regex_internal.c (re_string_reconstruct): Handle
17831         offset < pstr->valid_raw_len && pstr->offsets_needed case.
17832         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
17833         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
17834         re_string_context_at.
17835
17836         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
17837         now requires it.
17838         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
17839         gl_REGEX now does it for us.
17840         (gl_REGEX): Add test taken from
17841         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
17842
17843         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
17844         Check that large offsets work.  Modernize Autoconf usages.
17845         Prefer "yes" to mean a good thing rather than a bad.
17846         Don't put "#define mkstemp" in config.h, as this might interfere
17847         with standard system headers that "#define mkstemp mkstemp64".
17848
17849         * modules/mkstemp (Depends-on): Add extensions, so that
17850         mkstemp is visible on some platforms.
17851         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
17852         (Include): Change to "mkstemp.h" from <stdlib.h>.
17853         (Files): Add mkstemp.h.
17854
17855         * lib/mkstemp.h: New file, since some standard headers
17856         #define mkstemp.
17857         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
17858         Include "mkstemp.h".
17859         Make the _LIBC code resemble glibc original more,
17860         e.g., use K&R style.
17861         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
17862         (mkstemp): Remove, since mkstemp.h does this for us.
17863         * lib/stdlib--.h: Include mkstemp.h.
17864
17865         Import this patch from libc:
17866
17867         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
17868
17869         * lib/tempname.c (__gen_tempname): Change attempts_min
17870         into a macro.  Use preprocessor to decide how to initialize
17871         attempts [Coverity CID 67].
17872
17873 2006-09-20  Bruno Haible  <bruno@clisp.org>
17874
17875         * lib/mkdtemp.c: Import from libc.
17876         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
17877                 * sysdeps/posix/tempname.c (__gen_tempname): Change
17878                 attempts_min into a macro.  Use preprocessor to decide how to
17879                 initialize attempts [Coverity CID 67].
17880         2001-11-27  Paul Eggert  <eggert@twinsun.com>
17881                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
17882                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
17883
17884 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17885
17886         * gnulib-tool (func_exit): New function, to allow to pass the
17887         exit status portably through the trap.  Use everywhere.
17888         (--help, --version): Signal a write error.
17889         (trap): catch SIGPIPE, for write errors.
17890         Exit at the end of the trap, with the correct exit status.
17891
17892 2006-09-19  Karl Berry  <karl@gnu.org>
17893
17894         * doc/gnulib.texi: note about the license texinfo files.
17895
17896 2006-09-19  Eric Blake  <ebb9@byu.net>
17897
17898         * gnulib-tool: Avoid space-tab.
17899
17900 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
17901
17902         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
17903         that prevented coreutils 6.1 from building.  Problem reported
17904         by Petter Reinholdtsen.
17905
17906 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
17907
17908         * gnulib-tool (avoidlist): Fix typo that broke options like
17909         --avoid=lock that are used by coreutils bootstrap.
17910
17911 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
17912
17913         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
17914         more systematically.
17915
17916 2006-09-18  Jim Meyering  <jim@meyering.net>
17917
17918         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
17919
17920 2006-09-18  Bruno Haible  <bruno@clisp.org>
17921
17922         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
17923
17924 2006-09-18  Bruno Haible  <bruno@clisp.org>
17925
17926         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
17927         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
17928         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
17929         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
17930         * m4/gettext.m4: Require autoconf >= 2.52.
17931         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
17932         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
17933         of gl_cv_header_inttypes_h.
17934
17935 2006-09-18  Bruno Haible  <bruno@clisp.org>
17936
17937         * lib/javaversion.c: Include configmake.h.
17938
17939 2006-09-18  Bruno Haible  <bruno@clisp.org>
17940
17941         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
17942         avoid that the while loops be executed in a subshell.
17943
17944 2006-09-18  Bruno Haible  <bruno@clisp.org>
17945
17946         * MODULES.html.sh (func_module): Break long lines.
17947         Suggested by Bruce Korb <bkorb@gnu.org>.
17948
17949 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17950
17951         Speed up by a factor of 1.12.
17952         * gnulib-tool (nl): New variable.
17953         (func_import): Rewrite include directive extraction to only read each
17954         directive once.
17955
17956 2006-09-17  Bruno Haible  <bruno@clisp.org>
17957
17958         * modules/javaversion (Makefile.am): Remove DEFS setting.
17959         (Depends-on): Add configmake, for PKGDATADIR definition.
17960
17961 2006-09-17  Bruno Haible  <bruno@clisp.org>
17962
17963         * gnulib-tool (func_create_testdir): Rewrite all files at once.
17964
17965 2006-09-17  Bruno Haible  <bruno@clisp.org>
17966
17967         * gnulib-tool (func_append): New function, stolen from libtool.m4.
17968         (func_modules_transitive_closure, func_modules_add_dummy,
17969         func_modules_to_filelist, func_import, func_create_testdir,
17970         func_create_megatestdir, ...): Use it wherever possible.
17971         Suggested by Ralf Wildenhues.
17972
17973 2006-09-16  Karl Berry  <karl@gnu.org>
17974
17975         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
17976         to avoid sectioning errors.
17977         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
17978         [ifinfo]: blank line after @center-ed titles.
17979         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
17980         Spell FSF address consistently with others.
17981         (These changes approved by rms.)
17982
17983 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17984
17985         Speed up by a factor of 1.61.
17986         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
17987         already checked module names again.
17988
17989 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17990
17991         Speed up by a factor of 1.13.
17992         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
17993         for new_files, and the input to func_add_or_update.
17994
17995 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17996
17997         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
17998         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
17999
18000 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
18001
18002         * modules/mkancesdirs (Depends-on): Add fcntl.
18003         * modules/savewd: New file.
18004         * MODULES.html.sh (File system functions): Add savewd.
18005
18006         * modules/configmake (Makefile.am): Add support for the
18007         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
18008
18009 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
18010
18011         * m4/savewd.m4: New file.
18012
18013 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
18014
18015         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
18016         (dirchownmod): New arg FD.  All callers changed.
18017         Use FD rather than opening the directory ourself, as opening is
18018         now the caller's responsibility.
18019         * lib/dirchownmod.h: Likewise.
18020         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
18021         hosts that require <sys/types.h> before <sys/stat.h>.  Include
18022         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
18023         (test_dir): Remove.
18024         (mkancesdirs): Return length of prefix of FILE that has already
18025         been made, or -2 if there is a child doing the work.  Redo
18026         algorithm so that it is O(N) rather than O(N**2).  Optimize away
18027         ".", and treat ".." specially since it might stray back into
18028         already-created areas.  Use a subprocess if necessary.  New arg
18029         WD; all users changed.  MAKE_DIR function should now return 1
18030         if it creates a directory that is not readable.  Return -2 if
18031         a child process is spun off.
18032         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
18033         Adjust signature to match code.
18034         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
18035         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
18036         all users changed.
18037         * lib/savewd.c, lib/savewd.h: New files.
18038
18039 2006-09-15  Jim Meyering  <jim@meyering.net>
18040
18041         * modules/rename-dest-slash: New module.
18042         * MODULES.html.sh (posix_compat): Add it here.
18043
18044         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
18045
18046 2006-09-15  Jim Meyering  <jim@meyering.net>
18047
18048         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
18049         file.
18050
18051         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
18052
18053 2006-09-15  Jim Meyering  <jim@meyering.net>
18054
18055         * lib/rename-dest-slash.c (has_trailing_slash): Use
18056         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
18057         (rpl_rename_dest_slash): Perform the cheaper trailing slash
18058         test before testing whether SRC is a directory.
18059         Suggestions from Bruno Haible.
18060
18061         Avoid a warning about an unused variable.
18062         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
18063         into the #ifdef block where it's used.
18064
18065         * lib/rename-dest-slash.c: New file.
18066
18067 2006-09-14  Bruno Haible  <bruno@clisp.org>
18068
18069         * lib/allocsa.c: Include <config.h> unconditionally.
18070         * lib/asnprintf.c: Likewise.
18071         * lib/asprintf.c: Likewise.
18072         * lib/c-strcasecmp.c: Likewise.
18073         * lib/c-strcasestr.c: Likewise.
18074         * lib/c-strncasecmp.c: Likewise.
18075         * lib/c-strstr.c: Likewise.
18076         * lib/classpath.c: Likewise.
18077         * lib/clean-temp.c: Likewise.
18078         * lib/concatpath.c: Likewise.
18079         * lib/copy-file.c: Likewise.
18080         * lib/csharpcomp.c: Likewise.
18081         * lib/csharpexec.c: Likewise.
18082         * lib/execute.c: Likewise.
18083         * lib/fatal-signal.c: Likewise.
18084         * lib/findprog.c: Likewise.
18085         * lib/fwriteerror.c: Likewise.
18086         * lib/gl_array_list.c: Likewise.
18087         * lib/gl_array_oset.c: Likewise.
18088         * lib/gl_avltree_list.c: Likewise.
18089         * lib/gl_avltree_oset.c: Likewise.
18090         * lib/gl_avltreehash_list.c: Likewise.
18091         * lib/gl_carray_list.c: Likewise.
18092         * lib/gl_linked_list.c: Likewise.
18093         * lib/gl_linkedhash_list.c: Likewise.
18094         * lib/gl_list.c: Likewise.
18095         * lib/gl_oset.c: Likewise.
18096         * lib/gl_rbtree_list.c: Likewise.
18097         * lib/gl_rbtree_oset.c: Likewise.
18098         * lib/gl_rbtreehash_list.c: Likewise.
18099         * lib/imaxabs.c: Likewise.
18100         * lib/imaxdiv.c: Likewise.
18101         * lib/javacomp.c: Likewise.
18102         * lib/javaexec.c: Likewise.
18103         * lib/javaversion.c: Likewise.
18104         * lib/linebreak.c: Likewise.
18105         * lib/localcharset.c: Likewise.
18106         * lib/lock.c: Likewise.
18107         * lib/mbchar.c: Likewise.
18108         * lib/mbswidth.c: Likewise.
18109         * lib/mkdtemp.c: Likewise.
18110         * lib/pipe.c: Likewise.
18111         * lib/printf-args.c: Likewise.
18112         * lib/printf-parse.c: Likewise.
18113         * lib/progname.c: Likewise.
18114         * lib/progreloc.c: Likewise.
18115         * lib/readlink.c: Likewise.
18116         * lib/sh-quote.c: Likewise.
18117         * lib/stpcpy.c: Likewise.
18118         * lib/stpncpy.c: Likewise.
18119         * lib/strcasecmp.c: Likewise.
18120         * lib/strcasestr.c: Likewise.
18121         * lib/strcspn.c: Likewise.
18122         * lib/striconv.c: Likewise.
18123         * lib/strncasecmp.c: Likewise.
18124         * lib/strnlen1.c: Likewise.
18125         * lib/strstr.c: Likewise.
18126         * lib/strtok_r.c: Likewise.
18127         * lib/tls.c: Likewise.
18128         * lib/tmpdir.c: Likewise.
18129         * lib/unicodeio.c: Likewise.
18130         * lib/unsetenv.c: Likewise.
18131         * lib/vasnprintf.c: Likewise.
18132         * lib/vasprintf.c: Likewise.
18133         * lib/wait-process.c: Likewise.
18134         * lib/xallocsa.c: Likewise.
18135         * lib/xsetenv.c: Likewise.
18136         * lib/xstriconv.c: Likewise.
18137
18138 2006-09-13  Simon Josefsson  <jas@extundo.com>
18139
18140         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
18141         that internally, suggested by Ralf Wildenhues
18142         <Ralf.Wildenhues@gmx.de>.
18143
18144 2006-09-13  Simon Josefsson  <jas@extundo.com>
18145
18146         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
18147         @LIBOBJS@.
18148         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18149
18150 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
18151
18152         * lib/_fpending.c: Include <config.h> unconditionally, since we no
18153         longer worry about uses that don't define HAVE_CONFIG_H.
18154         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
18155         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
18156         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
18157         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
18158         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
18159         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
18160         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
18161         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
18162         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
18163         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
18164         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
18165         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
18166         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
18167         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
18168         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
18169         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
18170         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
18171         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
18172         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
18173         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
18174         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
18175         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
18176         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
18177         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
18178         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
18179         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
18180         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
18181         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
18182         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
18183         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
18184         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
18185         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
18186         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
18187         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
18188         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
18189         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
18190         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
18191         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
18192         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
18193         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
18194         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
18195         Likewise.
18196
18197 2006-09-13  Eric Blake  <ebb9@byu.net>
18198
18199         * lib/getopt.c: Fix typo in last commit.
18200
18201 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
18202
18203         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
18204         dgettext.
18205
18206 2006-09-12  Jim Meyering  <jim@meyering.net>
18207
18208         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
18209         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
18210         Reported by Nelson H. F. Beebe.
18211
18212 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
18213
18214         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
18215         program_invocation_name and program_invocation_short_name are
18216         initialized.
18217         * lib/argp-namefrob.h: Move declarations of program_invocation_name
18218         and program_invocation_short_name to argp.h, so they are visible
18219         to user programs.
18220         * lib/argp.h: Likewise
18221
18222 2006-09-10  Bruno Haible  <bruno@clisp.org>
18223
18224         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
18225         m4/inttypes_h.m4, m4/uintmax_t.m4.
18226
18227 2006-09-10  Bruno Haible  <bruno@clisp.org>
18228
18229         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
18230         gl_AC_TYPE_UINTMAX_T.
18231
18232 2006-09-10  Bruno Haible  <bruno@clisp.org>
18233
18234         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
18235
18236 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
18237
18238         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
18239         convention.  Text proposed by Bruno Haible.
18240         (struct argp_option): Document the use of N_() wrappers.
18241
18242         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
18243         '\v', and translate the two parts separately, instead of feeding
18244         the whole string to gettext.  This allows to exclude
18245         '\v' from the strings visible to the translator by writing doc
18246         strings as N_("..") "\v" N_("..").
18247
18248 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
18249
18250         * config/srclist.txt: Undo latest change; the bug was fixed.
18251
18252 2006-09-09  Bruno Haible  <bruno@clisp.org>
18253
18254         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
18255         assignments if building a library without libtool.
18256         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
18257         in func_emit_lib_Makefile_am.
18258         (func_import): When building a static library libfoo.a, arrange to
18259         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
18260         (func_create_testdir): Likewise.
18261         * modules/gc (configure.ac, Makefile.am): If building statically,
18262         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
18263         * modules/iconvme (configure.ac, Makefile.am): Likewise.
18264         * modules/striconv (configure.ac, Makefile.am): Likewise.
18265         Based on a suggestion by Ralf Wildenhues.
18266
18267 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
18268
18269         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
18270         Check for unistd.h too, since Autoconf doesn't assume POSIX.
18271         Also:
18272
18273         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
18274         Add year_2050_test to catch glibc bug 2821
18275         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
18276
18277         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
18278         Prefer #ifdef to #if.
18279
18280         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
18281         Return from 'main' instead of calling 'exit'.
18282
18283 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
18284
18285         * lib/mktime.c (guess_time_tm): Fix bug where mktime
18286         returned the maximum time_t value rather than (time_t) -1.
18287         Problem originally reported by William Bardwell
18288         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
18289
18290         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
18291         Moved to here ...
18292         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
18293         ... from here.
18294
18295 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
18296
18297         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
18298         2821 is fixed.
18299
18300 2006-09-08  Jim Meyering  <jim@meyering.net>
18301
18302         Don't make generated files read-only.  That would bother too many
18303         people.  However, do retain the ability to work when targets are
18304         read-only: remove the destination and temporary files before writing
18305         them (when generated via sed or echo), or by using the -f option for
18306         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
18307         * modules/alloca-opt, modules/argz, modules/arpa_inet:
18308         * modules/byteswap, modules/configmake, modules/fcntl:
18309         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
18310         * modules/localcharset, modules/netinet_in, modules/poll:
18311         * modules/stdbool, modules/stdint, modules/sys_select:
18312         * modules/sys_socket, modules/sys_stat, modules/sysexits:
18313
18314 2006-09-08  Jim Meyering  <jim@meyering.net>
18315
18316         Avoid new build failure on FreeBSD 6.0.
18317         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
18318         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
18319         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
18320
18321 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18322
18323         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
18324
18325 2006-09-07  Jim Meyering  <jim@meyering.net>
18326
18327         Fix global typo in last change: use chmod u-w, not chmod u-x.
18328         Spotted by Paul Eggert and Bruce Korb.
18329         * modules/alloca-opt, modules/argz, modules/arpa_inet:
18330         * modules/byteswap, modules/configmake, modules/fcntl:
18331         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
18332         * modules/localcharset, modules/netinet_in, modules/poll:
18333         * modules/stdbool, modules/stdint, modules/sys_select:
18334         * modules/sys_socket, modules/sys_stat, modules/sysexits:
18335
18336 2006-09-06  Jim Meyering  <jim@meyering.net>
18337
18338         Make generated files be read-only.
18339         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
18340         Ensure that each generated file is now read-only.
18341         * modules/argz: Likewise.
18342         * modules/arpa_inet: Likewise.
18343         * modules/byteswap: Likewise.
18344         * modules/configmake: Likewise.
18345         * modules/fcntl: Likewise.
18346         * modules/fnmatch: Likewise.
18347         * modules/getopt: Likewise.
18348         * modules/glob: Likewise.
18349         * modules/inttypes: Likewise.
18350         * modules/netinet_in: Likewise.
18351         * modules/poll: Likewise.
18352         * modules/stdbool: Likewise.
18353         * modules/stdint: Likewise.
18354         * modules/sys_select: Likewise.
18355         * modules/sys_socket: Likewise.
18356         * modules/sys_stat: Likewise.
18357         * modules/sysexits: Likewise.
18358         * modules/localcharset: Same as above, but continue using temporary
18359         file named "t-$@" (why different?) rather than the "$@-t" used
18360         everywhere else.
18361
18362         * modules/sysexits (Makefile.am): Replace literal occurrences
18363         of "sysexit.h" more readable, and more consistent, "$@".
18364
18365 2006-09-06  Bruno Haible  <bruno@clisp.org>
18366
18367         * modules/striconv: New file.
18368         * modules/xstriconv: New file.
18369         * MODULES.html.sh (Internationalization functions): Add striconv,
18370         xstriconv.
18371
18372 2006-09-06  Bruno Haible  <bruno@clisp.org>
18373
18374         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
18375         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
18376         not using libtool correctly.
18377
18378 2006-09-06  Bruno Haible  <bruno@clisp.org>
18379
18380         * lib/striconv.h: New file.
18381         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
18382         iconvstring.c.
18383         * lib/xstriconv.h: New file.
18384         * lib/xstriconv.c: New file.
18385
18386 2006-09-06  Bruno Haible  <bruno@clisp.org>
18387
18388         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
18389         lib_..._LDFLAGS.
18390
18391 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18392
18393         * lib/argz_.h: Sync from Libtool.
18394
18395         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
18396                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18397
18398         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
18399
18400 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
18401
18402         * modules/trim: New file.
18403
18404 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
18405
18406         * lib/trim.h: New file.
18407         * lib/trim.c: New file.
18408
18409 2006-09-05  Bruno Haible  <bruno@clisp.org>
18410
18411         * MODULES.html.sh (String handling): Add trim.
18412
18413 2006-09-04  Karl Berry  <karl@gnu.org>
18414
18415         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
18416         until next release.
18417
18418 2006-09-03  Bruno Haible  <bruno@clisp.org>
18419
18420         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
18421         correctly.
18422
18423 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
18424
18425         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
18426         not gl_GETLOADAVG.  Omit unneeded semicolons.
18427         Problems reported by Ralf Wildenhues in
18428         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
18429         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
18430         at the end, which is the usual gnulib style.
18431
18432         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
18433         of doing all the work ourselves.
18434         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
18435         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
18436
18437 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
18438
18439         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
18440         Problem reported by Ralf Wildenhues in
18441         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
18442
18443         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
18444         HAVE_STRUCT_STATFS_F_FSTYPENAME.
18445
18446 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
18447
18448         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
18449         yesterday's patch by changing test -n to test -z.
18450
18451 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
18452
18453         * modules/getloadavg (Files): Add m4/getloadavg.m4.
18454         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
18455         the former is now obsolescent.
18456
18457         * modules/chdir-long (Depends-on): Add fcntl.
18458
18459 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
18460
18461         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
18462         obsolescent, and programs should use gnulib instead.
18463         * m4/getloadavg.m4: New file, with contents taken from Autoconf
18464         but with prefixes changed.
18465
18466 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
18467
18468         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
18469         or stdbool.h, because they might not exist while configuring.
18470
18471         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
18472         Don't include unistd.h or limits.h; not needed, since chdir-long.h
18473         does that for us.
18474         (O_DIRECTORY): Remove.
18475
18476 2006-08-31  Eric Blake  <ebb9@byu.net>
18477
18478         * gnulib-tool: Don't let emacs change spaces to TAB.
18479
18480 2006-08-31  Bruno Haible  <bruno@clisp.org>
18481
18482         * gnulib-tool: When calling func_import more than once, do it in a
18483         subshell.
18484         Reported by Eric Blake <ebb9@byu.net>.
18485
18486 2006-08-31  Bruno Haible  <bruno@clisp.org>
18487
18488         * gnulib-tool (nl): Remove variable.
18489         (sed_transform_lib_file): Use more robust test for config-h module.
18490         (func_import): Fix typo in 2006-08-25 patch.
18491
18492 2006-08-31  Bruno Haible  <bruno@clisp.org>
18493
18494         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
18495         specified, augment Makefile.am variables instead of assigning them.
18496
18497 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
18498
18499         Work around a bug in both the Linux and SunOS 64-bit kernels:
18500         nanosleep mishandles sleeps for longer than 2**31 seconds.
18501         Problem reported by Frank v Waveren in
18502         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
18503         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
18504         Check for nanosleep bug.
18505         (LIB_NANOSLEEP): Append clock_gettime library if needed.
18506
18507 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
18508
18509         Work around a bug in both the Linux and SunOS 64-bit kernels:
18510         nanosleep mishandles sleeps for longer than 2**31 seconds.
18511         Problem reported by Frank v Waveren in
18512         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
18513         * lib/nanosleep.c (BILLION): New constant.
18514         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
18515         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
18516         implementation.
18517
18518 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
18519
18520         * modules/nanosleep (Depends-on): Add gettime.
18521
18522 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
18523         and Simon Josefsson  <jas@extundo.com>
18524         and Oskar Liljeblad  <oskar@osk.mine.nu>
18525
18526         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
18527         * gnulib-tool (func_import): New license type 'unmodifiable license
18528         text'.
18529         * modules/fdl: Use it.  Longer description.
18530         * module/gpl, module/lgpl: New files.
18531
18532 2006-08-30  Jim Meyering  <jim@meyering.net>
18533
18534         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
18535         shadowing the parameter.
18536
18537 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18538
18539         Sync from Libtool:
18540
18541         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18542
18543         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
18544         sharing with gnulib.  Report by Eric Blake.
18545
18546 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
18547
18548         * modules/isapipe: New file.
18549         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
18550
18551 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
18552
18553         * modules/configmake (Makefile.am): Add a comment, and omit
18554         the CONFIGMAKE_ prefix from generated macro names.  Suggested
18555         by Bruno Haible.
18556
18557 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
18558
18559         * m4/isapipe.m4: New file.
18560
18561 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
18562
18563         * lib/isapipe.c, lib/isapipe.h: New files.
18564
18565 2006-08-29  Jim Meyering  <jim@meyering.net>
18566
18567         * modules/configmake (Makefile.am): Make configmake.h depend on
18568         Makefile.  Otherwise, a stale configmake.h could hang around.
18569
18570 2006-08-29  Eric Blake  <ebb9@byu.net>
18571
18572         * lib/error.c (error_at_line, print_errno_message): Match libc, after
18573         resolution of upstream bug 3044.
18574
18575 2006-08-29  Bruno Haible  <bruno@clisp.org>
18576
18577         * modules/localcharset (Depends-on): Add configmake.
18578         (Makefile.am): Remove setting of LIBDIR through DEFS.
18579
18580 2006-08-29  Bruno Haible  <bruno@clisp.org>
18581
18582         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
18583         defined.
18584
18585 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
18586
18587         * modules/fcntl: New file.
18588         * modules/chdir-safer (Depends-on): Add fcntl.
18589         * modules/fts: Likewise.
18590         * modules/mkdir-p: Likewise.
18591
18592         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
18593         This undoes the most recent change, since we're now addressing the
18594         problem in a different way.
18595
18596         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
18597         into output, since the output might be called Makefile.am even
18598         if $makefile_name is something different.
18599         (func_import): Use $makefile_am rather than
18600         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
18601         empty.
18602
18603         * modules/inttypes (Files): Add m4/inttypes-h.m4.
18604
18605 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
18606
18607         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
18608         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
18609         recent change to stdint.m4, since we're now addressing the problem in a
18610         different way.
18611
18612 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
18613
18614         * m4/fcntl_h.m4: New file.
18615
18616 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
18617
18618         * lib/fcntl_.h: New file.
18619         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
18620         the fcntl module.
18621         * lib/dirchownmod.c: Likewise.
18622         * lib/fts.c: Likewise.
18623
18624         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
18625         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
18626         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
18627         just before including <inttypes.h>, to avoid circular inclusion.
18628
18629 2006-08-28  Jim Meyering  <jim@meyering.net>
18630
18631         * doc/visibility.texi: Actually read and correct the grammar of the
18632         sentence affected by yesterday's change.
18633
18634 2006-08-28  Eric Blake  <ebb9@byu.net>
18635
18636         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
18637         needs wrapper.
18638
18639 2006-08-28  Eric Blake  <ebb9@byu.net>
18640
18641         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
18642
18643 2006-08-28  Eric Blake  <ebb9@byu.net>
18644
18645         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
18646
18647 2006-08-28  Bruno Haible  <bruno@clisp.org>
18648
18649         * modules/c-strstr: New file, from GNU gettext.
18650         * MODULES.html.sh (String handling): Add c-strstr.
18651
18652 2006-08-28  Bruno Haible  <bruno@clisp.org>
18653
18654         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
18655         macros.
18656         Reported by Eric Blake.
18657
18658 2006-08-28  Bruno Haible  <bruno@clisp.org>
18659
18660         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
18661         (VASNPRINTF): Return a string of length > INT_MAX without failing.
18662         * lib/vasprintf.c: Include errno.h, limits.h.
18663         (EOVERFLOW): New fallback definition.
18664         (vasprintf): Test here whether the string length is > INT_MAX.
18665         * lib/vsnprintf.c: Include errno.h, limits.h.
18666         (EOVERFLOW): New fallback definition.
18667         (vsnprintf): Fix bug when generated string was too long for the buffer.
18668         Test here whether the string length is > INT_MAX.
18669
18670 2006-08-28  Bruno Haible  <bruno@clisp.org>
18671
18672         * lib/inttypes_.h (SCNX*): Remove definitions.
18673         Reported by Eric Blake.
18674
18675 2006-08-28  Bruno Haible  <bruno@clisp.org>
18676
18677         * lib/c-strstr.h: New file, from GNU gettext.
18678         * lib/c-strstr.c: New file, from GNU gettext.
18679
18680 2006-08-28  Bruno Haible  <bruno@clisp.org>
18681
18682         * gnulib-tool: Reorder some statements.
18683
18684 2006-08-28  Bruno Haible  <bruno@clisp.org>
18685
18686         * gnulib-tool: New option --makefile-name.
18687         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
18688         $makefile_name.
18689         (func_import): Write $makefile_name to the cache file, and read it from
18690         there unless explicitly specified. Use $makefile_name as file name
18691         instead of Makefile.am. Adjust the recommendations accordingly.
18692
18693 2006-08-28  Bruno Haible  <bruno@clisp.org>
18694
18695         * gnulib-tool (func_verify_module): Check against misapplying patch.
18696
18697 2006-08-28  Bruno Haible  <bruno@clisp.org>
18698
18699         * gnulib-tool (func_relativize, func_relconcat): New functions.
18700         Give an error if --local-dir is given with --update.
18701         Remove trailing slashes from $local_gnulib_dir.
18702         (func_import): Store the relativized $local_gnulib_dir in
18703         gnulib-cache.m4, and read it from there if not specified explicitly.
18704
18705 2006-08-28  Bruno Haible  <bruno@clisp.org>
18706
18707         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
18708         is the current directory. Respect also $local_gnulib_dir.
18709
18710 2006-08-28  Bruno Haible  <bruno@clisp.org>
18711             Simon Josefsson  <jas@extundo.com>
18712
18713         BeOS portability.
18714         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
18715
18716 2006-08-27  Jim Meyering  <jim@meyering.net>
18717
18718         * doc/visibility.texi: Remove duplicate word: "pointer".
18719
18720 2006-08-26  Bruno Haible  <bruno@clisp.org>
18721
18722         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
18723         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
18724         (Makefile.am): Create inttypes.h from inttypes_.h.
18725         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
18726
18727         * modules/imaxabs: New file.
18728
18729         * modules/imaxdiv: New file.
18730
18731 2006-08-26  Bruno Haible  <bruno@clisp.org>
18732
18733         * m4/inttypes.m4: New file.
18734         * m4/_inttypes_h.m4: Remove file.
18735         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
18736         PRI_MACROS_BROKEN.
18737         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
18738
18739         * m4/imaxabs.m4: New file.
18740
18741         * m4/imaxdiv.m4: New file.
18742
18743 2006-08-26  Bruno Haible  <bruno@clisp.org>
18744
18745         * lib/inttypes_.h: New file.
18746         * lib/inttypes.h: Remove file.
18747         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
18748
18749         * lib/imaxabs.c: New file.
18750
18751         * lib/imaxdiv.c: New file.
18752
18753 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
18754
18755         New config-h module, so that "make" output needn't be cluttered
18756         by -DHAVE_CONFIG_H.
18757         * MODULES.html.sh (Support for building libraries and executables):
18758         Add config-h.
18759         * modules/config-h: New file.
18760         * gnulib-tool (nl, sed_transform_lib_file): New vars.
18761         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
18762         the config-h module is used.
18763
18764         New configmake module, so that "make" output needn't be cluttered
18765         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
18766         * MODULES.html.sh (Support for building libraries and executables):
18767         Add configmake.
18768         * modules/configmake: New file.
18769
18770 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
18771
18772         * m4/config-h.m4: New file.
18773
18774 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
18775
18776         * config/srclist.txt: Add elisp-comp.
18777
18778 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
18779
18780         * MODULES.html.sh (Support for building libraries and executables):
18781         Add elisp-comp.
18782         * build-aux/elisp-comp: New file.
18783         * modules/elisp-comp: New file.
18784
18785 2006-08-24  Bruno Haible  <bruno@clisp.org>
18786
18787         * gnulib-tool (func_create_testdir): Use non-default values of
18788         sourcebase and m4base.
18789
18790 2006-08-24  Bruno Haible  <bruno@clisp.org>
18791
18792         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
18793         HTML structure.
18794
18795 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
18796
18797         * modules/openat (Depends-on): Add lchown.
18798
18799 2006-08-23  Bruno Haible  <bruno@clisp.org>
18800
18801         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
18802         of gl_LOCK_EARLY instead of gl_LOCK.
18803
18804 2006-08-23  Bruno Haible  <bruno@clisp.org>
18805
18806         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
18807         on OSF/1 to no.
18808         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
18809
18810 2006-08-23  Bruno Haible  <bruno@clisp.org>
18811
18812         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
18813         as unusable.
18814
18815         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
18816         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
18817         (gl_LOCK): New macro.
18818
18819 2006-08-22  Simon Josefsson  <jas@extundo.com>
18820
18821         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
18822         to md5 module.
18823
18824 2006-08-22  Simon Josefsson  <jas@extundo.com>
18825
18826         * MODULES.html.sh: Add "Support for maintaining and release
18827         projects".
18828
18829         * build-aux/gnupload: New file, from coreutils.
18830
18831 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
18832
18833         Avoid the need for AC_LIBSOURCES in m4 macros.
18834         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
18835         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
18836         * modules/check-version (EXTRA_DIST): Add check-version.h.
18837         * modules/crc (EXTRA_DIST): Add crc.h.
18838         * modules/des (EXTRA_DIST): Add des.h.
18839         * modules/gc (EXTRA_DIST): Add gc.h.
18840         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
18841         * modules/getline (EXTRA_DIST): Add getline.h.
18842         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
18843         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
18844         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
18845         * modules/md2 (EXTRA_DIST): Add md2.h.
18846         * modules/md4 (EXTRA_DIST): Add md4.h.
18847         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
18848         * modules/read-file (EXTRA_DIST): Add read-file.h.
18849         * modules/readline (EXTRA_DIST): Add readline.h.
18850         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
18851         rijndael-api-fst.h.
18852
18853 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
18854
18855         * m4/rijndael.m4 (gl_ARCFOUR):
18856         * m4/arctwo.m4 (gl_ARCTWO):
18857         * m4/check-version.m4 (gl_CHECK_VERSION):
18858         * m4/crc.m4 (gl_CRC):
18859         * m4/des.m4 (gl_DES):
18860         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
18861         * m4/gc.m4 (gl_GC):
18862         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
18863         * m4/getline.m4 (gl_FUNC_GETLINE):
18864         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
18865         * m4/hmac-md5.m4 (gl_HMAC_MD5):
18866         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
18867         * m4/md2.m4 (gl_MD2):
18868         * m4/md4.m4 (gl_MD4):
18869         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
18870         * m4/read-file.m4 (gl_FUNC_READ_FILE):
18871         * m4/readline.m4 (gl_FUNC_READLINE):
18872         * m4/rijndael.m4 (gl_RIJNDAEL):
18873         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
18874         to get the necessary .h files and whatnot.
18875
18876 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
18877
18878         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
18879         gnulib rather than the other way around.
18880         * config/srclistvars.sh (COREUTILS): Remove.
18881
18882 2006-08-22  Jim Meyering  <jim@meyering.net>
18883
18884         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
18885
18886         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
18887
18888 2006-08-22  Eric Blake  <ebb9@byu.net>
18889
18890         * modules/regexprops-generic: New file.
18891         * MODULES.html.sh (Support for building documentation): List it.
18892
18893 2006-08-22  Eric Blake  <ebb9@byu.net>
18894
18895         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
18896         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
18897         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
18898         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
18899
18900 2006-08-22  Bruno Haible  <bruno@clisp.org>
18901
18902         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
18903         and lib_LTLIBRARIES like the other lib_* variables.
18904
18905 2006-08-22  Bruno Haible  <bruno@clisp.org>
18906
18907         * build-aux/x-to-1.in: New file, from GNU gettext.
18908
18909 2006-08-22  Bruno Haible  <bruno@clisp.org>
18910
18911         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
18912         <utmpx.h> exists.
18913
18914 2006-08-22  Bruno Haible  <bruno@clisp.org>
18915
18916         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
18917         <utmpx.h> exists.
18918
18919 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
18920
18921         BeOS portability.
18922         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
18923         exist.
18924         Problem reported by Bruno Haible.
18925
18926 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
18927
18928         Avoid the need for AC_LIBSOURCES in m4 macros.
18929         * modules/acl (EXTRA_DIST): Add acl.h.
18930         * modules/argmatch (Files): Add m4/argmatch.m4.
18931         (configure.ac): Add gl_ARGMATCH.
18932         (EXTRA_DIST): Renamed from lib_SOURCES, for
18933         consistency with the other modules.  Remove argmatch.c.
18934         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
18935         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
18936         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
18937         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
18938         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
18939         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
18940         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
18941         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
18942         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
18943         * modules/closeout (EXTRA_DIST): Add closeout.h.
18944         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
18945         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
18946         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
18947         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
18948         dirname.h; remove basename.c and stripslash.c.
18949         * modules/exclude (EXTRA_DIST): Add exclude.h.
18950         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
18951         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
18952         * modules/file-type (EXTRA_DIST): Add file-type.h.
18953         * modules/filemode (EXTRA_DIST): Add filemode.h.
18954         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
18955         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
18956         * modules/fpending (EXTRA_DIST): Add __fpending.h.
18957         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
18958         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
18959         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
18960         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
18961         * modules/getdate (EXTRA_DIST): Add getdate.c.
18962         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
18963         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
18964         * modules/getpass (EXTRA_DIST): Add getpass.h.
18965         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
18966         * modules/group-member (EXTRA_DIST): Add group-member.h.
18967         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
18968         * modules/hash (EXTRA_DIST): Add hash.h.
18969         * modules/human (EXTRA_DIST): Add human.h.
18970         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
18971         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
18972         * modules/lchown (EXTRA_DIST): Add lchown.h.
18973         * modules/long-options (EXTRA_DIST): Add long-options.h.
18974         * modules/lstat (EXTRA_DIST): Add lstat.h.
18975         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
18976         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
18977         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
18978         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
18979         * modules/memxor (EXTRA_DIST): Add memxor.h.
18980         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
18981         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
18982         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
18983         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
18984         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
18985         * modules/physmem (EXTRA_DIST): Add physmem.h.
18986         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
18987         * modules/posixver (EXTRA_DIST): Add posixver.h.
18988         * modules/quote (EXTRA_DIST): Add quote.h.
18989         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
18990         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
18991         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
18992         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
18993         regex_internal.h regexec.c.
18994         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
18995         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
18996         * modules/same (EXTRA_DIST): Add same.h.
18997         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
18998         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
18999         * modules/savedir (EXTRA_DIST): Add savedir.h.
19000         * modules/sha1 (EXTRA_DIST): Add sha1.h.
19001         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
19002         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
19003         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
19004         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
19005         * modules/strdup (EXTRA_DIST): Add strdup.h.
19006         * modules/strftime (EXTRA_DIST): Add strftime.h.
19007         * modules/strndup (EXTRA_DIST): Add strndup.h.
19008         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
19009         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
19010         * modules/time_r (EXTRA_DIST): Add time_r.h.
19011         * modules/timespec (EXTRA_DIST): Add timespec.h.
19012         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
19013         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
19014         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
19015         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
19016         * modules/userspec (EXTRA_DIST): Add userspec.h.
19017         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
19018         * modules/utimens (EXTRA_DIST): Add utimens.h.
19019         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
19020         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
19021         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
19022         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
19023         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
19024         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
19025         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
19026         * modules/yesno (EXTRA_DIST): Add yesno.h.
19027
19028 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
19029
19030         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
19031
19032         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
19033         * m4/dev-ino.m4, same-inode.m4: Remove.
19034
19035         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
19036         * m4/acl.m4 (AC_FUNC_ACL):
19037         * m4/backupfile.m4 (gl_BACKUPFILE):
19038         * m4/c-strtod.m4 (gl_C99_STRTOLD):
19039         * m4/canon-host.m4 (gl_CANON_HOST):
19040         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
19041         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
19042         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
19043         * m4/cloexec.m4 (gl_CLOEXEC):
19044         * m4/close-stream.m4 (gl_CLOSE_STREAM):
19045         * m4/closeout.m4 (gl_CLOSEOUT):
19046         * m4/dirfd.m4 (gl_FUNC_DIRFD):
19047         * m4/dirname.m4 (gl_DIRNAME):
19048         * m4/exclude.m4 (gl_EXCLUDE):
19049         * m4/exitfail.m4 (gl_EXITFAIL):
19050         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
19051         * m4/file-type.m4 (gl_FILE_TYPE):
19052         * m4/filemode.m4 (gl_FILEMODE):
19053         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
19054         * m4/fpending.m4 (gl_FUNC_FPENDING):
19055         * m4/fprintftime.m4 (gl_FPRINTFTIME):
19056         * m4/fts.m4 (gl_FUNC_FTS):
19057         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
19058         * m4/getdate.m4 (gl_GETDATE):
19059         * m4/gethrxtime.m4 (gl_GETHRXTIME):
19060         * m4/getpagesize.m4 (gl_GETPAGESIZE):
19061         * m4/getpass.m4 (gl_FUNC_GETPASS):
19062         * m4/gettime.m4 (gl_GETTIME):
19063         * m4/getugroups.m4 (gl_GETUGROUPS):
19064         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
19065         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
19066         * m4/hard-locale.m4 (gl_HARD_LOCALE):
19067         * m4/hash.m4 (gl_HASH):
19068         * m4/idcache.m4 (gl_IDCACHE):
19069         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
19070         * m4/lchown.m4 (gl_FUNC_LCHOWN):
19071         * m4/long-options.m4 (gl_LONG_OPTIONS):
19072         * m4/lstat.m4 (gl_FUNC_LSTAT):
19073         * m4/md5.m4 (gl_MD5):
19074         * m4/memcasecmp.m4 (gl_MEMCASECMP):
19075         * m4/memcoll.m4 (gl_MEMCOLL):
19076         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
19077         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
19078         * m4/memxor.m4 (gl_MEMXOR):
19079         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
19080         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
19081         * m4/modechange.m4 (gl_MODECHANGE):
19082         * m4/mountlist.m4 (gl_MOUNTLIST):
19083         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
19084         * m4/openat.m4 (gl_FUNC_OPENAT):
19085         * m4/pathmax.m4 (gl_PATHMAX):
19086         * m4/physmem.m4 (gl_PHYSMEM):
19087         * m4/posixtm.m4 (gl_POSIXTM):
19088         * m4/posixver.m4 (gl_POSIXVER):
19089         * m4/quote.m4 (gl_QUOTE):
19090         * m4/quotearg.m4 (gl_QUOTEARG):
19091         * m4/readtokens.m4 (gl_READTOKENS):
19092         * m4/readutmp.m4 (gl_READUTMP):
19093         * m4/regex.m4 (gl_REGEX):
19094         * m4/safe-read.m4 (gl_SAFE_READ):
19095         * m4/safe-write.m4 (gl_SAFE_WRITE):
19096         * m4/same.m4 (gl_SAME):
19097         * m4/save-cwd.m4 (gl_SAVE_CWD):
19098         * m4/savedir.m4 (gl_SAVEDIR):
19099         * m4/settime.m4 (gl_SETTIME):
19100         * m4/sha1.m4 (gl_SHA1):
19101         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
19102         * m4/stat-macros.m4 (gl_STAT_MACROS):
19103         * m4/stat-time.m4 (gl_STAT_TIME):
19104         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
19105         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
19106         * m4/strdup.m4 (gl_FUNC_STRDUP):
19107         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
19108         * m4/strndup.m4 (gl_FUNC_STRNDUP):
19109         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
19110         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
19111         * m4/time_r.m4 (gl_TIME_R):
19112         * m4/timespec.m4 (gl_TIMESPEC):
19113         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
19114         * m4/unlinkdir.m4 (gl_UNLINKDIR):
19115         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
19116         * m4/userspec.m4 (gl_USERSPEC):
19117         * m4/utimecmp.m4 (gl_UTIMECMP):
19118         * m4/utimens.m4 (gl_UTIMENS):
19119         * m4/xalloc.m4 (gl_XALLOC):
19120         * m4/xgetcwd.m4 (gl_XGETCWD):
19121         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
19122         * m4/xreadlink.m4 (gl_XREADLINK):
19123         * m4/xstrtod.m4 (gl_XSTRTOD):
19124         * m4/yesno.m4 (gl_YESNO):
19125         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
19126         to get the necessary .h files and whatnot.
19127
19128 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
19129             Bruno Haible  <bruno@clisp.org>
19130
19131         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
19132         /bin/sh understanding of '!' conditional negation.
19133
19134 2006-08-21  Jim Meyering  <jim@meyering.net>
19135
19136         * modules/openat (Depends-on): Really alphabetize.
19137
19138         * modules/acl (Depends-on): Add error and quote.
19139
19140         * check-module (find_included_lib_files): Add at-func.c to the
19141         ok-to-include-more-than-once white list.
19142
19143         * modules/openat (Depends-on): Add lstat.  Alphabetize.
19144
19145 2006-08-21  Bruno Haible  <bruno@clisp.org>
19146
19147         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
19148         Emit a pkgdata_DATA variable only if some snippets add contents to it.
19149         Reported by Martin Lambers <marlam@marlam.de>.
19150
19151 2006-08-21  Bruno Haible  <bruno@clisp.org>
19152
19153         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
19154         specify an installation location, don't emit a noinst_LIBRARIES or
19155         noinst_LTLIBRARIES assignment.
19156
19157 2006-08-21  Bruno Haible  <bruno@clisp.org>
19158
19159         BeOS portability.
19160         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
19161         BeOS has mbrtowc() but no <wctype.h>.
19162
19163 2006-08-21  Bruno Haible  <bruno@clisp.org>
19164
19165         BeOS portability.
19166         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
19167         exist.
19168
19169 2006-08-21  Bruno Haible  <bruno@clisp.org>
19170
19171         BeOS portability.
19172         * lib/mbchar.h: Include <wctype.h> only if it exists.
19173
19174 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
19175
19176         Remove files that are no longer needed by their respective modules.
19177         * m4/obstack.m4: Remove.
19178         * m4/strerror_r.m4: Remove.
19179         * m4/uint32_t.m4: Remove.
19180         * m4/uintptr_t.m4: Remove.
19181         * m4/ullong_max.m4: Remove.
19182         * m4/xstrtoimax.m4: Remove.
19183         * m4/xstrtoumax.m4: Remove.
19184
19185         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
19186         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
19187         dependencies now capture this.
19188
19189         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
19190         Do not use AC_LIBSOURCES, since gnulib modules now do this.
19191         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
19192         * m4/human.m4 (gl_HUMAN): Likewise.
19193         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
19194         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
19195
19196         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
19197
19198         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
19199         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
19200         stdint.
19201         * m4/human.m4 (gl_HUMAN): Likewise.
19202         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
19203         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
19204         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
19205         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
19206         * m4/xstrtol (gl_XSTRTOL): Likewise.
19207
19208         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
19209         AC_TYPE_LONG_LONG_INT.
19210         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
19211         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
19212         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
19213         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
19214
19215         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
19216         on stdbool.
19217
19218         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
19219         (gl_PREREQ_XSTRTOUL): Remove.
19220
19221         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
19222
19223         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
19224         mode.
19225
19226 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
19227
19228         Add and change modules to make it easier for coreutils to use
19229         gnulib-tool.
19230         * modules/backupfile (Files): Remove m4/d-ino.m4.
19231         (Depends-on): Add d-ino.
19232         * modules/cycle-check (Depends-on): Add stdint.
19233         (lib_SOURCES): Add cycle-check.h.
19234         * modules/d-ino: New module.
19235         * modules/d-type: New module.
19236         * modules/error (Files): Remove m4/strerror_r.m4.
19237         * modules/filemode (Files): Add m4/st_dm_mode.m4.
19238         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
19239         m4/inttypes_h.m4, m4/uintmax_t.m4.
19240         (Depends-on): Add stdint.
19241         (lib_SOURCES): Add fsusage.h.
19242         * modules/getcwd (Files): Remove d-ino.m4.
19243         (Depends-on): Add d-ino.
19244         * modules/getndelim2 (Depends-on): Add stdint.
19245         * modules/glob (Files): Remove m4/d-type.m4.
19246         (Depends-on): Add d-type.
19247         * modules/host-os: New module.
19248         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
19249         m4/inttypes_h.m4, m4/uintmax_t.m4.
19250         * Depends-on: Add stdint.
19251         (lib_SOURCES): Add human.h.
19252         * modules/inttostr (Files): Remove m4/intmax_t.m4,
19253         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
19254         m4/uintmax_t.m4, m4/ulonglong.m4.
19255         (Depends-on): Add stdint.
19256         (EXTRA_DIST): Add inttostr.h.
19257         * modules/lchmod: New module.
19258         * modules/link-follow: New module.
19259         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
19260         (Depends-on): Add lchmod.
19261         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
19262         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
19263         (Depends-on): Add stdint.
19264         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
19265         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
19266         (Depends-on): Add stdint.
19267         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
19268         * modules/perl: New module.
19269         * modules/regex (Depends-on): Add stdint.
19270         * modules/rmdir-errno: New module.
19271         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
19272         m4/intmax_t.m4.
19273         (Depends-on): Add stdint.
19274         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
19275         m4/uintmax_t.m4.
19276         (Depends-on): Add stdint.
19277         * modules/unlink-busy: New module.
19278         * modules/utimecmp (Depends-on): Add stdint.
19279         * modules/uptime: New module.
19280         * modules/winsz-ioctl: New module.
19281         * modules/winsz-termios: New module.
19282         * modules/xnanosleep (Depends-on): Add nanosleep.
19283         * modules/ullong_max: Remove.
19284         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
19285         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
19286         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
19287         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
19288         (Depends-on): Add inttypes.
19289         (lib_SOURCES): Add xstrtol.h.
19290         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
19291         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
19292         * MODULES.html.sh: Move 'assert' into the assert section.
19293         Move 'dummy' into the linking section.
19294         Remove ullong_max.
19295         Add section for compatibility checks for POSIX:2001 functions,
19296         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
19297         winsz-ioctl, and winsz-termios into it.
19298         Add lchmod.
19299         Add top-level Misc section and put host-os, perl, and uptime
19300         into it.
19301
19302 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
19303
19304         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
19305         now assume the stdint module.  Do not include inttypes.h.
19306         * lib/fsusage.h: Likewise.
19307         * lib/getndelim2.c: Likewise.
19308         * lib/human.h: Likewise.
19309         * lib/inttostr.h: Likewise.
19310         * lib/obstack.c: Likewise.
19311         * lib/regex_internal.h: Likewise.
19312         * lib/tempname.c: Likewise.
19313         * lib/utimecmp.c: Likewise.
19314         * lib/xstrtol.h: Likewise.
19315
19316         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
19317
19318         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
19319         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
19320         * lib/xtime.h: Likewise.
19321
19322 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
19323
19324         * modules/openat (Files): Add lib/fchmodat.c.
19325         Fixes problem reported by Jay Youngman.
19326
19327 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
19328
19329         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
19330         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
19331
19332 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
19333             Bruno Haible  <bruno@clisp.org>
19334
19335         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
19336         and is a script that invokes bison. Tighten the code. Add comments.
19337
19338 2006-08-18  Jim Meyering  <jim@meyering.net>
19339
19340         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
19341         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
19342         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
19343         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
19344
19345 2006-08-18  Bruno Haible  <bruno@clisp.org>
19346
19347         * modules/bison-i18n: New file.
19348         * MODULES.html.sh (Internationalization functions): Add it.
19349
19350 2006-08-18  Bruno Haible  <bruno@clisp.org>
19351
19352         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
19353         sys/statvfs.h. When getmntinfo was found, check its declaration and
19354         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
19355
19356 2006-08-18  Bruno Haible  <bruno@clisp.org>
19357
19358         * m4/bison-i18n.m4: New file, from bison.
19359
19360 2006-08-18  Bruno Haible  <bruno@clisp.org>
19361
19362         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
19363         (ME_DUMMY): Treat "kernfs" as a dummy.
19364         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
19365
19366 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
19367
19368         Update from coreutils.
19369
19370         2006-08-15  Jim Meyering  <jim@meyering.net>
19371
19372         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
19373
19374         2006-01-17  Jim Meyering  <jim@meyering.net>
19375
19376         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
19377
19378         2006-01-11  Jim Meyering  <jim@meyering.net>
19379
19380         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
19381         Check for the lchmod function.
19382
19383 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
19384
19385         Update from coreutils.
19386
19387         * lib/__fpending.h: Add copyright notice.
19388         * lib/fprintftime.h: Likewise.
19389         * lib/savedir.c: Use (C) in copyright notice.
19390         * lib/savedir.h: Likewise.
19391
19392         2006-08-15  Jim Meyering  <jim@meyering.net>
19393
19394         * lib/at-func.c: New file, with the logic of all emulated at-functions.
19395         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
19396         in support of the EXPECTED_ERRNO macro.
19397         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
19398         definitions.  Instead, define the appropriate symbols and include
19399         "at-func.c".
19400         * lib/mkdirat.c (mkdirat): Likewise.
19401         * lib/fchmodat.c (fchmodat): Likewise.
19402         (ENOSYS): Remove definition.
19403         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
19404         it.  Don't include "unistd--.h" -- it wasn't ever used.
19405
19406         2006-01-17  Jim Meyering  <jim@meyering.net>
19407
19408         Rewrite fts.c not to change the current working directory,
19409         by using openat, fstatat, fdopendir, etc..
19410
19411         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
19412         (HAVE_OPENAT_SUPPORT): Define.
19413         [_LIBC] (fchdir): Don't undef or define; no longer used.
19414         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
19415         Now, this `function' always succeeds, and consumes its file descriptor
19416         parameter -- so callers must not close such FDs.  Update callers.
19417         (diropen_fd, opendirat, cwd_advance_fd): New functions.
19418         (diropen): Add parameter, SP.  Adjust all callers.
19419         Implement using diropen_fd, rather than open.
19420         (fts_open): Initialize new member, fts_cwd_fd.
19421         Remove fts_rft-setting code.
19422         (fts_close): Close fts_cwd_fd, if necessary.
19423         (__opendir2): Define in terms of opendir or opendirat,
19424         depending on whether the FST_NOCHDIR flag is set.
19425         (fts_build): Since fts_safe_changedir consumes its FD, and since
19426         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
19427         and close the dup'd file descriptor upon failure.
19428         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
19429         (fts_safe_changedir): Tweak semantics to reflect that this function
19430         now calls cwd_advance_fd and hence consumes its FD argument.
19431         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
19432         [struct FTS] (fts_rft): Remove now-unused member.
19433         [struct FTS] (fts_cycle.state): Improve comment.
19434
19435         * lib/openat.c (openat_needs_fchdir): New function.
19436         * lib/openat.h (openat_needs_fchdir): Declare it.
19437
19438 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
19439
19440         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
19441         Problem and fix reported by Pádraig Brady in
19442         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
19443
19444 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
19445
19446         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
19447
19448 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
19449
19450         * lib/memcoll.c (memcoll): Optimize for the common case where the
19451         arguments are bytewise equal.
19452
19453 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
19454
19455         * doc/regexprops-generic.texi: Add a copyright notice.
19456
19457 2006-08-15  Bruno Haible  <bruno@clisp.org>
19458
19459         * modules/tmpdir (License): Change to LGPL.
19460
19461 2006-08-15  Bruno Haible  <bruno@clisp.org>
19462
19463         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
19464         module.
19465
19466 2006-08-14  Simon Josefsson  <jas@extundo.com>
19467
19468         * config/srclist.txt: Add gnupload.
19469
19470 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
19471
19472         Change copyright notice from LGPL 2 to GPL 2, since that's the
19473         standard form used in the gnulib repository.
19474         * tests/test-lock.c: Likewise.
19475         * tests/test-stdint.c: Likewise.
19476         * tests/test-tls.c: Likewise.
19477
19478         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
19479         prelude-manager.  User shorter URLs for GNU projects, without '?'.
19480         Add copyright notice.
19481
19482         * check-module: Add copyright notice.  Output a copyright
19483         notice if "--version" is specified.
19484         * modules/COPYING: New file.
19485         * tests/test-getaddrinfo.c: Add copyright notice.
19486         * tests/test-verify.c: Likewise.
19487
19488 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
19489
19490         Change copyright notice from LGPL 2 to GPL 2, since that's the
19491         standard form used in the gnulib repository.
19492         * lib/lock.c: LGPL -> GPL.
19493         * lib/lock.h: Likewise.
19494         * lib/strnlen1.c: Likewise.
19495         * lib/strnlen1.h: Likewise.
19496         * lib/tls.c: Likewise.
19497         * lib/tls.h: Likewise.
19498         * lib/tmpdir.c: Likewise.
19499
19500         * lib/TODO: Remove; this belongs only in coreutils.
19501
19502 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
19503
19504         Add copyright notices to long-enough files that lack them, since
19505         otherwise the files aren't clearly free.  Use the same notice that
19506         getdate.texi already uses.
19507         * doc/alloca-opt.texi: Add copyright notice.
19508         * doc/alloca.texi: Likewise.
19509         * doc/ctime.texi: Likewise.
19510         * doc/functions.texi: Likewise.
19511         * doc/gcd.texi: Likewise.
19512         * doc/gnulib-tool.texi: Likewise.
19513         * doc/inet_ntoa.texi: Likewise.
19514         * doc/visibility.texi: Likewise.
19515
19516         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
19517         * doc/quote.texi: Add copyright notice.
19518
19519         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
19520         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
19521         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
19522         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
19523         is now obsolete, and give a pointer to the Sun list.
19524         Add copyright notice.
19525
19526 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
19527
19528         * config/srclistvars.sh: Add copyright notice.
19529
19530 2006-08-14  Eric Blake  <ebb9@byu.net>
19531
19532         Import the following change from libc:
19533
19534         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
19535
19536         Upstream bug 2997.
19537         * lib/misc/error.c: Add space between program name and message if file
19538         name is missing.
19539
19540 2006-08-12  Karl Berry  <karl@gnu.org>
19541
19542         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
19543         remove, these originate in gnulib now.
19544
19545 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19546
19547         * doc/Makefile (standards.info standards.html standards.dvi):
19548         Also depend on make-stds.texi.
19549
19550 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
19551
19552         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
19553         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
19554
19555         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
19556         in wchar_t.  Problem reported by Eric Blake.
19557
19558         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
19559         LEN is smaller than SIZE.  Suggested by Bruno Haible.
19560         Also, help the compiler to keep LEN in a register.
19561
19562 2006-08-11  Eric Blake  <ebb9@byu.net>
19563
19564         * users.txt: Sort.  Add tar.
19565
19566 2006-08-11  Bruno Haible  <bruno@clisp.org>
19567
19568         * users.txt: New file.
19569
19570 2006-08-11  Bruno Haible  <bruno@clisp.org>
19571
19572         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
19573         before <wchar.h>. Needed for OSF/1 and BSD/OS.
19574
19575 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
19576
19577         * modules/snprintf (Depends-on): Remove minmax.
19578         (Maintainer): Add self and Bruno.
19579
19580 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
19581
19582         * lib/.cppi-disable: Add snprintf.h, socket_.h.
19583         * lib/snprintf.c: Include <errno.h> and <limits.h>.
19584         (EOVERFLOW): Define if the system does not.
19585         Do not include "minmax.h"; it wasn't used.
19586         (snprintf): Don't assume size_t promotes to an unsigned type.
19587         Fix bug when generated string was too long for the buffer: the
19588         buffer's contents are supposed to be the initial prefix of the
19589         output.  Don't assume vasnprintf returns EOVERFLOW if the size
19590         exceeds INT_MAX; do the check ourselves.
19591
19592         Import the following changes from libc:
19593
19594         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
19595
19596         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
19597         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
19598         set wc to the byte which couldn't be converted.
19599         (re_string_reconstruct): Don't clear valid_raw_len before calling
19600         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
19601         tip_context using re_string_context_at.
19602
19603         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
19604
19605         * lib/posix/regex.h: g++ still cannot handled [restrict].
19606
19607         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
19608
19609         * lib/posix/regex.h: Remove special handling for VMS.
19610
19611 2006-08-10  Jim Meyering  <jim@meyering.net>
19612
19613         * modules/same-inode: New module.
19614         * modules/dev-ino: New module.
19615         * modules/cycle-check: Depend on these modules, rather than simply
19616         including their .h files.
19617         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
19618         required via m4/cycle-check.m4.
19619         * modules/same: Depend on new same-inode module, rather than
19620         including same-inode.h.
19621         * modules/chdir-safer: New file.
19622
19623         * modules/chown (Depends-on): Add stat-macros.
19624
19625 2006-08-10  Jim Meyering  <jim@meyering.net>
19626
19627         * m4/cycle-check.m4: New file.
19628         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
19629         * m4/dev-ino.m4, m4/same-inode.m4: New files.
19630
19631 2006-08-10  Eric Blake  <ebb9@byu.net>
19632
19633         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
19634         in from original proposal.
19635
19636 2006-08-10  Eric Blake  <ebb9@byu.net>
19637         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19638
19639         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
19640         namespace.
19641
19642 2006-08-10  Bruno Haible  <bruno@clisp.org>
19643
19644         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
19645         as well.
19646
19647 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
19648
19649         Sync from coreutils.
19650
19651         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
19652
19653         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
19654         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
19655
19656 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
19657
19658         * modules/restrict: Remove; no longer needed now that we assume
19659         Autoconf 2.59 or later.
19660         * MODULES.html.sh: Remove 'restrict'.
19661         * modules/argp (Depends-on): Remove 'restrict'.
19662         * modules/base64 (Depends-on): Likewise.
19663         * modules/gc (Depends-on): Likewise.
19664         * modules/getaddrinfo (Depends-on): Likewise.
19665         * modules/glob (Depends-on): Likewise.
19666         * modules/inet_ntop (Depends-on): Likewise.
19667         * modules/inet_pton (Depends-on): Likewise.
19668         * modules/memxor (Depends-on): Likewise.
19669         * modules/regex (Depends-on): Likewise.
19670         * modules/strtok_r (Depends-on): Likewise.
19671         * modules/time_r (Depends-on): Likewise.
19672
19673 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
19674
19675         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
19676         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
19677         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
19678         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
19679         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
19680         * m4/memxor.m4 (gl_MEMXOR): Likewise.
19681         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
19682         gl_C_RESTRICT replaced by AC_C_RESTRICT.
19683
19684         Merge from coreutils.
19685         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
19686         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
19687         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
19688         * m4/time_r.m4 (gl_TIME_R): Likewise.
19689
19690 2006-08-09  Karl Berry  <karl@gnu.org>
19691
19692         * config/srclist.txt: no more gettext-tools, per Bruno.
19693
19694 2006-08-08  Eric Blake  <ebb9@byu.net>
19695
19696         * modules/verror: New module.
19697         * MODULES.html.sh: Document it.
19698
19699 2006-08-08  Eric Blake  <ebb9@byu.net>
19700
19701         * lib/verror.h, lib/verror.c: New files.
19702
19703 2006-08-08  Eric Blake  <ebb9@byu.net>
19704
19705         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
19706         verror_at_line output complies with GNU Coding Standards even when
19707         file is NULL.
19708
19709 2006-08-07  Bruno Haible  <bruno@clisp.org>
19710
19711         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
19712         versions of AIX.
19713         Reported by Ralf Wildenhues.
19714
19715 2006-08-07  Bruno Haible  <bruno@clisp.org>
19716
19717         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
19718         in an AC_DEFUN. Needed so that the autoconf snippets can use
19719         AC_REQUIRE.
19720
19721 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19722
19723         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
19724         Initialize pkgdata_DATA.
19725         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
19726         overriding it.
19727
19728 2006-08-06  Eric Blake  <ebb9@byu.net>
19729
19730         * lib/error.h: Fold in some upstream changes from glibc.
19731         * lib/error.c: Likewise.
19732
19733 2006-08-04  Bruno Haible  <bruno@clisp.org>
19734
19735         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
19736         Make the mostlyclean-local rule depend on mostlyclean-generic.
19737         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
19738
19739 2006-07-31  Bruno Haible  <bruno@clisp.org>
19740
19741         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
19742         <stdlib.h>, <string.h>.
19743
19744 2006-07-30  Bruno Haible  <bruno@clisp.org>
19745
19746         * modules/readlink (License): Change to LGPL.
19747
19748 2006-07-30  Bruno Haible  <bruno@clisp.org>
19749
19750         * modules/javaversion (Makefile.am): Distribute javaversion.java and
19751         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
19752         set PKGDATADIR to point to it.
19753
19754 2006-07-30  Bruno Haible  <bruno@clisp.org>
19755
19756         * modules/csharpexec (configure.ac): Comment out macro invocation.
19757         * modules/javaexec (configure.ac): Likewise.
19758         * modules/javacomp-script (configure.ac): Likewise.
19759
19760         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
19761
19762 2006-07-30  Bruno Haible  <bruno@clisp.org>
19763
19764         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
19765         linked-list.
19766
19767 2006-07-30  Bruno Haible  <bruno@clisp.org>
19768
19769         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
19770
19771 2006-07-30  Bruno Haible  <bruno@clisp.org>
19772
19773         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
19774         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
19775         get removed.
19776
19777 2006-07-29  Bruno Haible  <bruno@clisp.org>
19778
19779         Make it possible for gnulib-tool to work with locally modified or
19780         augmented gnulib repositories.
19781         * gnulib-tool (func_usage): Document --local-dir option.
19782         (local_gnulib_dir): New variable.
19783         Handle --local-dir option.
19784         (func_lookup_file): New function.
19785         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
19786         (func_get_description, func_get_filelist, func_get_description,
19787         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
19788         func_get_automake_snippet, func_get_include_directive,
19789         func_get_license, func_get_maintainer): Use func_lookup_file.
19790         (func_import, func_create_testdir): Use func_lookup_file.
19791
19792 2006-07-29  Bruno Haible  <bruno@clisp.org>
19793
19794         * modules/setenv (Depends-on): Add unistd.
19795
19796 2006-07-29  Bruno Haible  <bruno@clisp.org>
19797
19798         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
19799
19800 2006-07-29  Bruno Haible  <bruno@clisp.org>
19801
19802         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
19803
19804 2006-07-29  Bruno Haible  <bruno@clisp.org>
19805
19806         * gnulib-tool (import, update): If there is no Makefile.am, look at
19807         aclocal.m4, instead of bailing out.
19808
19809 2006-07-29  Bruno Haible  <bruno@clisp.org>
19810
19811         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
19812         Categorize the options by when they are useful.
19813
19814 2006-07-29  Bruno Haible  <bruno@clisp.org>
19815
19816         * gnulib-tool (func_usage): Document option --no-libtool.
19817         Handle option --no-libtool.
19818         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
19819         for changed semantics of $libtool variable.
19820         (func_import): Likewise. If libtool is not used, show this through
19821         an option --no-libtool.
19822         (func_create_testdir): Update.
19823
19824 2006-07-29  Bruno Haible  <bruno@clisp.org>
19825
19826         * gnulib-tool (func_import): Extend error message about missing
19827         --doc-base.
19828
19829 2006-07-29  Bruno Haible  <bruno@clisp.org>
19830
19831         * gnulib-tool (func_import): Don't create the $docbase directory if
19832         there is no file to store there.
19833
19834 2006-07-29  Bruno Haible  <bruno@clisp.org>
19835
19836         * gnulib-tool (autoconf_minversion): If a --dir option is given and
19837         relevant, look for configure.ac there, not in the current directory.
19838         Also use a simple search for AC_PREREQ, not "autoconf --trace".
19839
19840 2006-07-29  Bruno Haible  <bruno@clisp.org>
19841
19842         * gnulib-tool (SORT): New variable.
19843         (func_usage): Undocument --assume-autoconf option.
19844         Remove --assume-autoconf option handling.
19845         (autoconf_minversion): Determine from the contents of configure.ac.
19846         (func_import): Remove autoconf_minversion handling.
19847         Suggested by Eric Blake.
19848
19849 2006-07-29  Bruno Haible  <bruno@clisp.org>
19850
19851         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
19852
19853 2006-07-29  Bruno Haible  <bruno@clisp.org>
19854
19855         * config/srclist.txt (*setenv.[ch]): Remove rules.
19856
19857 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19858
19859         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
19860
19861 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19862
19863         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
19864         arpa/inet.h.
19865
19866 2006-07-28  Simon Josefsson  <jas@extundo.com>
19867
19868         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
19869         * modules/inet_pton (Depends-on): Likewise.
19870
19871 2006-07-28  Simon Josefsson  <jas@extundo.com>
19872
19873         * m4/netinet_in_h.m4: New file.
19874
19875 2006-07-28  Simon Josefsson  <jas@extundo.com>
19876
19877         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
19878         #include's.
19879
19880 2006-07-28  Simon Josefsson  <jas@extundo.com>
19881
19882         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
19883         #include's.
19884
19885 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
19886
19887         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
19888         setgid on directories only if they set these bits.
19889         * lib/modechange.h: Remove obsolete comment about masks.
19890
19891 2006-07-28  Eric Blake  <ebb9@byu.net>
19892
19893         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
19894         macro expansion.
19895
19896 2006-07-28  Bruno Haible  <bruno@clisp.org>
19897
19898         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
19899
19900 2006-07-28  Bruno Haible  <bruno@clisp.org>
19901
19902         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
19903
19904 2006-07-28  Bruno Haible  <bruno@clisp.org>
19905
19906         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
19907         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
19908         Define fallbacks.
19909         Avoids link error on FreeBSD 4.x.
19910         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
19911
19912         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
19913         encoding.
19914         * lib/mbswidth.c (iswcntrl): Likewise.
19915
19916 2006-07-27  Bruno Haible  <bruno@clisp.org>
19917
19918         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
19919         test.
19920
19921 2006-07-27  Bruno Haible  <bruno@clisp.org>
19922
19923         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
19924         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
19925         defined.
19926
19927 2006-07-26  Eric Blake  <ebb9@byu.net>
19928
19929         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
19930
19931 2006-07-26  Eric Blake  <ebb9@byu.net>
19932
19933         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
19934         like mingw that lack mkstemp.
19935         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
19936         avoid compilation warning on mingw.
19937
19938 2006-07-26  Bruno Haible  <bruno@clisp.org>
19939
19940         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
19941         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
19942         INT_FAST*_MIN, INTPTR_MIN.
19943
19944 2006-07-25  Bruno Haible  <bruno@clisp.org>
19945
19946         * modules/version-etc (Depends-on): Add stdarg.
19947
19948 2006-07-25  Bruno Haible  <bruno@clisp.org>
19949
19950         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
19951         complex commands.
19952
19953 2006-07-25  Bruno Haible  <bruno@clisp.org>
19954
19955         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
19956         defined in <stdarg.h> or config.h.
19957
19958 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
19959
19960         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
19961         (gl_STDIO_SAFER): Remove.
19962
19963 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
19964
19965         * MODULES.html.sh (File stream based Input/Output):
19966         Add fopen-safer, tmpfile-safer; remove stdio-safer.
19967         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
19968         * modules/fopen-safer, modules/tmpfile-safer: New files.
19969         * modules/stdio-safer: Remove.
19970
19971 2006-07-24  Bruno Haible  <bruno@clisp.org>
19972
19973         * modules/tmpdir: New file.
19974         * MODULES.html.sh (File system functions): Add it.
19975
19976 2006-07-24  Bruno Haible  <bruno@clisp.org>
19977
19978         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
19979         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
19980
19981 2006-07-24  Bruno Haible  <bruno@clisp.org>
19982
19983         * modules/clean-temp: New file.
19984
19985 2006-07-24  Bruno Haible  <bruno@clisp.org>
19986
19987         * m4/tmpdir.m4: New file, from GNU gettext.
19988
19989 2006-07-24  Bruno Haible  <bruno@clisp.org>
19990
19991         * lib/tmpdir.h: New file, from GNU gettext.
19992         * lib/tmpdir.c: New file, from GNU gettext.
19993
19994 2006-07-24  Bruno Haible  <bruno@clisp.org>
19995
19996         * lib/clean-temp.h: New file, from GNU gettext.
19997         * lib/clean-temp.c: New file, from GNU gettext.
19998
19999 2006-07-23  Eric Blake  <ebb9@byu.net>
20000
20001         * modules/stdio-safer (Files): Add tmpfile-safer.c.
20002         (Depends-on): Add binary-io.
20003
20004 2006-07-23  Eric Blake  <ebb9@byu.net>
20005
20006         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
20007
20008 2006-07-23  Eric Blake  <ebb9@byu.net>
20009
20010         * lib/tmpfile-safer.c: New file.
20011         * lib/stdio-safer.h (fopen_safer): Add prototype.
20012         * lib/stdio--.h (tmpfile): Make safer.
20013
20014 2006-07-23  Bruno Haible  <bruno@clisp.org>
20015
20016         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
20017         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
20018         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
20019         gl_linked_remove_at): Use it.
20020
20021 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20022         and Simon Josefsson <jas@extundo.com>
20023
20024         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
20025
20026         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
20027
20028 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
20029
20030         * modules/close-stream: New file.
20031         * modules/closeout (Description): Make it clear that it exits
20032         with a diagnostic on error.
20033         (Depends-on): Add close-stream.  Remove fpending, stdbool.
20034         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
20035
20036 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
20037
20038         * m4/close-stream.m4: New file.
20039
20040 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
20041
20042         * lib/close-stream.c, lib/close-stream.h: New files.
20043
20044 2006-07-22  Bruno Haible  <bruno@clisp.org>
20045
20046         Merge from GNU gettext 0.15.
20047
20048         2006-05-01  Bruno Haible  <bruno@clisp.org>
20049
20050                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
20051
20052         2006-07-22  Bruno Haible  <bruno@clisp.org>
20053
20054                 * modules/javaversion: New file.
20055                 * MODULES.html.sh (Java): Add javaversion.
20056
20057         2006-03-12  Bruno Haible  <bruno@clisp.org>
20058
20059                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
20060
20061         2005-12-04  Bruno Haible  <bruno@clisp.org>
20062
20063                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
20064                 (untested).
20065
20066         2006-06-21  Bruno Haible  <bruno@clisp.org>
20067
20068                 Avoid warnings from recent versions of mcs.
20069                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
20070                 -o, -L, -r any more. Use options documented since mcs-1.0
20071                 instead. Similarly for -g.
20072
20073         2005-12-04  Bruno Haible  <bruno@clisp.org>
20074
20075                 * build-aux/csharpcomp.sh.in: Suffix for resources is
20076                 .resources, not .resource.
20077
20078         2005-07-09  Bruno Haible  <bruno@clisp.org>
20079
20080                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
20081                 add a .dll suffix.
20082                 Reported by Mark Junker <mjscod@gmx.de>.
20083
20084         2006-07-22  Bruno Haible  <bruno@clisp.org>
20085
20086                 * modules/gettext: Upgrade to gettext-0.15.
20087                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
20088                 m4/visibility.m4.
20089                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
20090
20091 2006-07-22  Bruno Haible  <bruno@clisp.org>
20092
20093         Merge from GNU gettext 0.15.
20094
20095         2006-03-25  Bruno Haible  <bruno@clisp.org>
20096
20097                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
20098
20099         2006-07-21  Bruno Haible  <bruno@clisp.org>
20100
20101                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
20102                 "1.1".
20103
20104         2006-05-09  Bruno Haible  <bruno@clisp.org>
20105
20106                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
20107                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
20108                 for the conftestver execution.
20109
20110         2006-05-01  Bruno Haible  <bruno@clisp.org>
20111
20112                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
20113                 optional target-version argument. Verify that the compiler
20114                 groks source of the specified source-version, or add -source
20115                 option as necessary. Verify that the compiler produces
20116                 bytecode in the specified target-version, or add -target and
20117                 -source options as necessary. Make the result of the test
20118                 available as variable CONF_JAVAC. Also log error output in
20119                 config.log.
20120
20121         2006-03-11  Bruno Haible  <bruno@clisp.org>
20122
20123                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
20124
20125         2006-05-09  Bruno Haible  <bruno@clisp.org>
20126
20127                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
20128                 CLASSPATH_SEPARATOR to a semicolon.
20129
20130         2006-03-12  Bruno Haible  <bruno@clisp.org>
20131
20132                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
20133                 available as variable CONF_JAVA, for subsequent autoconf
20134                 tests. Also log error output in config.log.
20135
20136         2006-07-19  Bruno Haible  <bruno@clisp.org>
20137
20138                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
20139                 that getline works on glibc2 systems. Needed to avoid trouble
20140                 in relocatable.c.
20141                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
20142
20143         2005-12-04  Bruno Haible  <bruno@clisp.org>
20144
20145                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
20146                 launcher (untested).
20147
20148         2005-12-04  Bruno Haible  <bruno@clisp.org>
20149
20150                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
20151
20152         2006-07-22  Bruno Haible  <bruno@clisp.org>
20153
20154                 * gettext.m4: Update from GNU gettext-0.15.
20155                 * nls.m4: Likewise.
20156                 * po.m4: Likewise.
20157                 * inttypes-pri.m4: Likewise.
20158                 * inttypes-h.m4: Renamed from inttypes.m4.
20159                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
20160
20161 2006-07-22  Bruno Haible  <bruno@clisp.org>
20162
20163         Merge from GNU gettext 0.15.
20164
20165         2005-07-05  Bruno Haible  <bruno@clisp.org>
20166
20167                 * printf-args.c (printf_fetchargs): Work around broken
20168                 definition of wint_t on mingw.
20169
20170         2005-02-12  Bruno Haible  <bruno@clisp.org>
20171
20172                 * xallocsa.h: Add extern "C" for C++.
20173
20174         2006-05-17  Bruno Haible  <bruno@clisp.org>
20175
20176                 Cygwin portability.
20177                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
20178
20179         2006-04-30  Bruno Haible  <bruno@clisp.org>
20180
20181                 * progreloc.c: Include <mach-o/dyld.h> if available.
20182                 (find_executable): Use _NSGetExecutablePath when possible.
20183
20184         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
20185
20186                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
20187                 function.
20188
20189         2005-12-29  Bruno Haible  <bruno@clisp.org>
20190
20191                 * progreloc.c (set_program_name_and_installdir): Fix
20192                 compilation error.
20193
20194         2005-12-04  Bruno Haible  <bruno@clisp.org>
20195
20196                 Cygwin portability.
20197                 * progreloc.c: Include <windows.h> also on Cygwin.
20198                 (find_executable): Add support for Cygwin.
20199                 (set_program_name_and_installdir): Handle also platforms with
20200                 nonempty EXEEXT.
20201
20202         2006-07-11  Bruno Haible  <bruno@clisp.org>
20203
20204                 * javacomp.c: Fix a comment.
20205                 Reported by Jim Meyering.
20206
20207         2006-04-30  Bruno Haible  <bruno@clisp.org>
20208
20209                 * javacomp.h (compile_java_class): Add source_version,
20210                 target_version arguments.
20211                 * javacomp.c: Rewritten to choose only a compiler that
20212                 respects the specified source_version and target_version.
20213
20214         2006-06-27  Bruno Haible  <bruno@clisp.org>
20215
20216                 Assume correct S_ISDIR macro.
20217                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
20218
20219         2006-07-22  Bruno Haible  <bruno@clisp.org>
20220
20221                 * javaversion.h: New file, from GNU gettext.
20222                 * javaversion.c: New file, from GNU gettext.
20223                 * javaversion.java: New file, from GNU gettext.
20224                 * javaversion.class: New file, from GNU gettext.
20225
20226         2006-05-17  Bruno Haible  <bruno@clisp.org>
20227
20228                 Cygwin portability.
20229                 * javaexec.c (execute_java_class): Test for jview program
20230                 also on Cygwin.
20231
20232         2006-04-09  Bruno Haible  <bruno@clisp.org>
20233
20234                 * fatal-signal.c: Don't include string.h.
20235                 (at_fatal_signal): Use a copying loop instead of memcpy.
20236
20237         2005-12-04  Bruno Haible  <bruno@clisp.org>
20238
20239                 * csharpexec.c: Add support for 'clix' launcher (untested).
20240                 (execute_csharp_using_sscli): New function.
20241                 (execute_csharp_program): Call it.
20242
20243         2006-06-21  Bruno Haible  <bruno@clisp.org>
20244
20245                 Avoid warnings from recent versions of mcs.
20246                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
20247                 -o, -L, -r any more. Use options documented since mcs-1.0
20248                 instead. Similarly for -g.
20249
20250         2005-07-09  Bruno Haible  <bruno@clisp.org>
20251
20252                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
20253                 add a .dll suffix.
20254                 Reported by Mark Junker <mjscod@gmx.de>.
20255
20256         2006-06-17  Bruno Haible  <bruno@clisp.org>
20257
20258                 * config.charset: Update for NetBSD 3.0.
20259
20260         2006-05-17  Bruno Haible  <bruno@clisp.org>
20261
20262                 Cygwin portability.
20263                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
20264
20265         2006-05-16  Bruno Haible  <bruno@clisp.org>
20266
20267                 * localcharset.c [CYGWIN]: Include <windows.h>.
20268                 (get_charset_aliases): For Cygwin, return the same CPxxx
20269                 aliases list as under WIN32.
20270                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
20271                 the environment variables. Fall back to GetACP().
20272
20273         2006-04-05  Bruno Haible  <bruno@clisp.org>
20274
20275                 * config.charset: Update Juan Manuel Guerrero's address.
20276
20277         2005-02-12  Bruno Haible  <bruno@clisp.org>
20278
20279                 * allocsa.h: Add extern "C" for C++.
20280
20281         2005-02-10  Bruno Haible  <bruno@clisp.org>
20282
20283                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
20284                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
20285
20286         2006-07-22  Bruno Haible  <bruno@clisp.org>
20287
20288                 * gettext.h: Update to GNU gettext-0.15.
20289
20290 2006-07-22  Bruno Haible  <bruno@clisp.org>
20291
20292         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
20293         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
20294         lib-prefix.m4, longdouble.m4, ssize_t.m4.
20295
20296 2006-07-21  Eric Blake  <ebb9@byu.net>
20297
20298         * modules/stdlib-safer: New file.
20299         * MODULES.html.sh (File stream based Input/Output): Add
20300         stdlib-safer.
20301
20302 2006-07-21  Eric Blake  <ebb9@byu.net>
20303
20304         * lib/stdlib-safer.h: New file from coreutils, required by
20305         stdlib--.h.
20306
20307 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
20308
20309         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
20310
20311 2006-07-20  Bruno Haible  <bruno@clisp.org>
20312
20313         * gnulib-tool: Recognize new option --assume-autoconf.
20314         (autoconf_minversion): New variable.
20315         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
20316
20317 2006-07-20  Bruno Haible  <bruno@clisp.org>
20318
20319         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
20320
20321 2006-07-19  Derek R. Price  <derek@ximbiot.com>
20322
20323         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
20324         Reindent and repaginate.
20325
20326 2006-07-19  Derek Price  <derek@ximbiot.com>
20327
20328         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
20329         Correct grammar.
20330
20331 2006-07-17  Bruno Haible  <bruno@clisp.org>
20332
20333         * modules/list: New file.
20334         * modules/array-list: New file.
20335         * modules/carray-list, modules/carray-list-tests: New files.
20336         * modules/linked-list, modules/linked-list-tests: New files.
20337         * modules/avltree-list, modules/avltree-list-tests: New files.
20338         * modules/rbtree-list, modules/rbtree-list-tests: New files.
20339         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
20340         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
20341         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
20342         * modules/oset: New file.
20343         * modules/array-oset: New file.
20344         * modules/avltree-oset, modules/avltree-oset-tests: New files.
20345         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
20346         * tests/test-carray_list.c: New file.
20347         * tests/test-linked_list.c: New file.
20348         * tests/test-avltree_list.c: New file.
20349         * tests/test-rbtree_list.c: New file.
20350         * tests/test-linkedhash_list.c: New file.
20351         * tests/test-avltreehash_list.c: New file.
20352         * tests/test-rbtreehash_list.c: New file.
20353         * tests/test-avltree_oset.c: New file.
20354         * tests/test-rbtree_oset.c: New file.
20355         * MODULES.html.sh (Container data structures): New section.
20356
20357 2006-07-17  Bruno Haible  <bruno@clisp.org>
20358
20359         * m4/gl_list.m4: New file.
20360
20361 2006-07-17  Bruno Haible  <bruno@clisp.org>
20362
20363         * lib/gl_list.h: New file.
20364         * lib/gl_list.c: New file.
20365         * lib/gl_array_list.h: New file.
20366         * lib/gl_array_list.c: New file.
20367         * lib/gl_carray_list.h: New file.
20368         * lib/gl_carray_list.c: New file.
20369         * lib/gl_linked_list.h: New file.
20370         * lib/gl_linked_list.c: New file.
20371         * lib/gl_anylinked_list1.h: New file.
20372         * lib/gl_anylinked_list2.h: New file.
20373         * lib/gl_avltree_list.h: New file.
20374         * lib/gl_avltree_list.c: New file.
20375         * lib/gl_anyavltree_list1.h: New file.
20376         * lib/gl_anyavltree_list2.h: New file.
20377         * lib/gl_rbtree_list.h: New file.
20378         * lib/gl_rbtree_list.c: New file.
20379         * lib/gl_anyrbtree_list1.h: New file.
20380         * lib/gl_anyrbtree_list2.h: New file.
20381         * lib/gl_anytree_list1.h: New file.
20382         * lib/gl_anytree_list2.h: New file.
20383         * lib/gl_linkedhash_list.h: New file.
20384         * lib/gl_linkedhash_list.c: New file.
20385         * lib/gl_anyhash_list1.h: New file.
20386         * lib/gl_anyhash_list2.h: New file.
20387         * lib/gl_avltreehash_list.h: New file.
20388         * lib/gl_avltreehash_list.c: New file.
20389         * lib/gl_rbtreehash_list.h: New file.
20390         * lib/gl_rbtreehash_list.c: New file.
20391         * lib/gl_anytreehash_list1.h: New file.
20392         * lib/gl_anytreehash_list2.h: New file.
20393
20394         * lib/gl_oset.h: New file.
20395         * lib/gl_oset.c: New file.
20396         * lib/gl_array_oset.h: New file.
20397         * lib/gl_array_oset.c: New file.
20398         * lib/gl_avltree_oset.h: New file.
20399         * lib/gl_avltree_oset.c: New file.
20400         * lib/gl_rbtree_oset.h: New file.
20401         * lib/gl_rbtree_oset.c: New file.
20402         * lib/gl_anytree_oset.h: New file.
20403
20404 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
20405
20406         * m4/mkancesdirs.m4: New file.
20407         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
20408         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
20409         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
20410         it.
20411
20412 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
20413
20414         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
20415         * lib/mkancesdirs.h: New files.
20416         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
20417         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
20418         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
20419         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
20420         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
20421         callers changed.  Revamp internals significantly, by not
20422         attempting to create directories that are temporarily more
20423         permissive than the final results.  Do not attempt to use
20424         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
20425         This removes some race conditions, fixes some bugs, and simplifies
20426         things.  Use new dirchownmod function to do owner and mode changes.
20427         * lib/mkdir-p.h: Likewise.
20428         * lib/modechange.c (octal_to_mode): New function.
20429         (struct mode_change): New member mentioned.
20430         (make_node_op_equals): New arg mentioned.  All callers changed.
20431         (mode_compile): Keep track of which mode bits the user has explicitly
20432         mentioned.
20433         (mode_adjust): New arg DIR, so that we implement the X op correctly.
20434         New arg PMODE_BITS, to keep track of which mode bits the user
20435         mentioned; it treats S_ISUID and S_ISGID speciall.
20436         All callers changed.
20437         * lib/modechange.h: Likewise.
20438
20439 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
20440
20441         * MODULES.html.sh: Add mkancestors.
20442         * modules/mkancesdirs: New module.
20443         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
20444         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
20445         The chdir-safer and afs files are now orphans; I'll remove them
20446         unless someone speaks up.
20447         Add lib/dirchownmod.c, lib/dirchownmod.h.
20448         (Depends-on): Remove alloca, chown, save-cwd, dirname.
20449         Add lchown, mkancesdirs.
20450         (Maintainer): Add self.
20451
20452 2006-07-15  Karl Berry  <karl@gnu.org>
20453
20454         * gnulib-tool: help message wording/arrangement.
20455
20456 2006-07-14  Simon Josefsson  <jas@extundo.com>
20457
20458         * doc/gnulib.texi (Libtool and Windows): New section.
20459
20460 2006-07-12  Simon Josefsson  <jas@extundo.com>
20461
20462         * modules/gendocs (License): Fix license, approved by Karl.
20463
20464 2006-07-12  Eric Blake  <ebb9@byu.net>
20465
20466         * MODULES.html.sh: Add gendocs.
20467
20468 2006-07-11  Eric Blake  <ebb9@byu.net>
20469
20470         * modules/fdl: New module, to install doc/fdl.texi.
20471         * MODULES.html.sh: Add new section for documentation modules.
20472         * gnulib-tool: Avoid space-tab.
20473         (--doc-base): New option, to manage files from doc.
20474
20475 2006-07-11  Eric Blake  <ebb9@byu.net>
20476
20477         * m4/absolute-header.m4: Fix comments to match recent change.
20478
20479 2006-07-11  Eric Blake  <ebb9@byu.net>
20480
20481         * gnulib-tool: List --doc-base before --tests-base.
20482
20483 2006-07-11  Derek R. Price  <derek@ximbiot.com>
20484
20485         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
20486
20487 2006-07-11  Bruno Haible  <bruno@clisp.org>
20488
20489         * README: Mention where to put documentation.
20490
20491 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20492
20493         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
20494
20495 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
20496
20497         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
20498         to stdint.m4.
20499
20500 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
20501
20502         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
20503         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
20504         "no/such/file/stdint.h" when there is no such file, so that
20505         the resulting C code can be parsed by dodgy compilers.
20506         Problems reported by Bob Proulx.
20507
20508 2006-07-10  Derek R. Price  <derek@ximbiot.com>
20509
20510         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
20511         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
20512         macros into the GNU _D_EXACT_NAMLEN.
20513         * lib/savedir.c:  Likewise.
20514         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
20515
20516 2006-07-10  Derek R. Price  <derek@ximbiot.com>
20517         and Paul Eggert  <eggert@cs.ucla.edu>
20518
20519         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
20520         * m4/savedir.m4:
20521         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
20522         macros into the GNU _D_EXACT_NAMLEN.
20523
20524 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
20525
20526         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
20527         around the absolute name, to work around a problem with the HP-UX
20528         11.23 native C compiler, reported by Bob Proulx.
20529
20530 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
20531
20532         * doc/maintain.texi, make-stds.texi: Sync from
20533         <http://savannah.gnu.org/projects/gnustandards>.
20534
20535 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
20536
20537         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
20538
20539 2006-07-09  Jim Meyering  <jim@meyering.net>
20540
20541         * m4/glob.m4: Remove a doubled word in a comment.
20542
20543 2006-07-09  Jim Meyering  <jim@meyering.net>
20544
20545         * lib/argp-pv.c: Remove a doubled word in a comment.
20546         * lib/check-version.c (check_version): Likewise.
20547         * lib/javacomp.c (compile_java_class): Likewise.
20548
20549 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
20550
20551         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
20552         for the benefit of people using Autoconf 2.60.  If you want to
20553         support older Autoconf versions you can copy m4/onceonly_2_57.m4
20554         (or m4/onceonly.m4, if pre-2.57) manually.
20555
20556 2006-07-08  Jim Meyering  <jim@meyering.net>
20557
20558         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
20559         comment.
20560         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
20561         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
20562         comment.
20563
20564 2006-07-08  Jim Meyering  <jim@meyering.net>
20565
20566         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
20567
20568 2006-07-07  Simon Josefsson  <jas@extundo.com>
20569
20570         * tests/test-crc.c: Change expected crc value, the test vector
20571         were probably computed using the old broken crc.c?
20572
20573 2006-07-06  Simon Josefsson  <jas@extundo.com>
20574
20575         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
20576         now the canonical place for the M4 file).
20577
20578         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
20579         from the sys_socket dependency now.
20580
20581         * modules/inet_pton (Files): Ditto.
20582
20583         * modules/inet_ntop (Files): Ditto.
20584
20585 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
20586
20587         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
20588         not gl_PREREQ_GETUSERSHELL.
20589
20590 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20591
20592         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
20593         with only one argument, for Autoconf 2.60.
20594         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
20595         expand to nothing, so add a shell command to avoid syntax error.
20596         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
20597
20598 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20599
20600         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
20601
20602 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
20603
20604         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
20605         no longer needed.  Check for isblank decl.
20606         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
20607         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
20608         of existence.
20609
20610 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
20611
20612         * lib/getloadavg.c: Use __VMS, not VMS.
20613         * lib/getopt.c: Likewise.
20614         * lib/getpagesize.h: Likewise.
20615         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
20616         and probably does not work.
20617
20618 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
20619
20620         * lib/.cppi-disable: Add wcwidth.
20621         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
20622         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
20623         (ISGRAPH): Remove.  All uses changed to isgraph.
20624         (FOLD) [!defined _LIBC]: Remove special case.
20625         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
20626         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
20627         HAVE_ISBLANK.
20628         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
20629         case.
20630
20631 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
20632
20633         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
20634         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
20635         brackets.  Other minor changes to suppress some compiler
20636         warnings.
20637
20638 2006-07-06  Derek R. Price  <derek@ximbiot.com>
20639         and Paul Eggert  <eggert@cs.ucla.edu>
20640
20641         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
20642         of invoking obsolescent AC_HEADER_DIRENT macro.
20643         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
20644         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
20645         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
20646         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
20647         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
20648         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
20649         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
20650         * m4/readdir.m4: Remove; no longer needed.
20651
20652 2006-07-06  Derek R. Price  <derek@ximbiot.com>
20653         and Paul Eggert  <eggert@cs.ucla.edu>
20654
20655         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
20656         Don't worry about this obsolete case any more.
20657         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
20658         directories.
20659         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
20660         worry about this obsolete case any more.
20661         * lib/fts.c: Likewise.
20662         * lib/getcwd.c: Likewise.
20663         * lib/glob.h: Likewise.
20664         * lib/savedir.c: Likewise.
20665
20666 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
20667
20668         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
20669         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
20670         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
20671         needed.
20672         All uses removed.
20673         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
20674         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
20675         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
20676         needed.
20677         * m4/getdate.m4 (gl_GETDATE): Likewise.
20678         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
20679         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
20680         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
20681         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
20682         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
20683         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
20684         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
20685         needed.
20686
20687 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
20688
20689         * lib/memcasecmp.c: Include <limits.h>.
20690         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
20691         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
20692         Don't assume isdigit succeeds only on '0' through '9'.
20693
20694 2006-07-05  Eric Blake  <ebb9@byu.net>
20695
20696         * modules/getaddrinfo (Depends-on): Add snprintf.
20697
20698 2006-07-05  Eric Blake  <ebb9@byu.net>
20699
20700         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
20701         to avoid 'header present but could not be compiled' on cygwin.
20702
20703 2006-07-05  Eric Blake  <ebb9@byu.net>
20704
20705         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
20706         missing from netdb.h.
20707         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
20708
20709 2006-07-05  Derek R. Price  <derek@ximbiot.com>
20710
20711         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
20712         no longer needed.
20713         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
20714         * m4/getdate.m4 (gl_GETDATE): Likewise.
20715         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
20716         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
20717         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
20718         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
20719         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
20720
20721 2006-07-05  Derek R. Price  <derek@ximbiot.com>
20722
20723         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
20724         All uses of is_space replaced by isspace.
20725         * lib/exit.h: Don't talk about STDC_HEADERS.
20726         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
20727         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
20728         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
20729         replaced by isprint etc.
20730         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
20731         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
20732         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
20733         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
20734         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
20735         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
20736
20737 2006-07-05  Bruno Haible  <bruno@clisp.org>
20738
20739         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
20740         the function exists, before testing against AIX.
20741         Reported by Martin Lambers <marlam@marlam.de>.
20742
20743 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
20744
20745         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
20746         From Mark D. Baushke.
20747
20748 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
20749
20750         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
20751         to the absolute name, not just one, to bypass Sun C 5.8's
20752         "warning: #include of /usr/include/... may be non-portable".
20753
20754 2006-07-04  Eric Blake  <ebb9@byu.net>
20755
20756         * modules/dirname-tests: New test module.
20757         * tests/test-dirname.c: New file, replacing dirname.c
20758         TEST_DIRNAME section that was recently deleted.
20759
20760 2006-07-04  Bruno Haible  <bruno@clisp.org>
20761
20762         Assume ANSI C header files and <ctype.h> functions.
20763         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
20764         (mbsnwidth): Use isprint, iscntrl instead.
20765
20766 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
20767
20768         Merge from coreutils.
20769         * MODULES.html.sh: Add xstrtold.
20770         * modules/xstrtold: New file.
20771         * modules/cycle-check (Files): Add lib/same-inode.h.
20772         * modules/dirname (Files): Add m4/double-slash-root.m4.
20773         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
20774         * modules/mkdir-p (Files): Add lib/same-inode.h.
20775         * modules/same (Files): Add lib/same-inode.h.
20776
20777 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
20778
20779         * m4/absolute-header.m4: Renamed from full-header-path.m4.
20780         This is to keep the terminology clean; POSIX talks about
20781         "absolute pathnames", not "full pathnames", but the GNU
20782         Coding Standards say to use "path" for something else;
20783         so use "absolute" to keep both sides happy.
20784         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
20785         Set gl_absolute_header, not gl_full_header_path.
20786         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
20787         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
20788         All uses changed.
20789
20790         Merge from coreutils.
20791
20792         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
20793
20794         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
20795         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
20796         want to require the building of c-strtod.o.
20797         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
20798         needs -lm directly.
20799         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
20800
20801         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
20802
20803         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
20804         --as-needed option if available.  Problem reported by Albert Chin in
20805         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
20806         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
20807         cc merely issues a bunch of annoying warnings for --as-needed
20808         (this problem was reported by Bob Proulx).  Also, try linking with
20809         -lm to detect a bug in binutils 2.16 (this problem was reported
20810         by Ralf Wildenhues).
20811
20812         2006-06-18  Jim Meyering  <jim@meyering.net>
20813
20814         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
20815         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
20816         macro.
20817         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
20818         also check for glibc-2.4's abort-inducing bug.
20819
20820         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
20821         Low-probability clean-up should be to use rmdir to get rid of
20822         the just-created directory, not unlink.
20823
20824         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
20825         configure fail, and request a bug report to inform us about it.
20826         Add a comment that, barring reports to the contrary, in 2007 we'll
20827         assume ftruncate is universally available.
20828
20829         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
20830
20831         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
20832
20833         2006-03-12  Jim Meyering  <jim@meyering.net>
20834
20835         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
20836         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
20837         * m4/same.m4 (gl_SAME): Likewise.
20838         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
20839
20840         2006-03-11  Eric Blake  <ebb9@byu.net>
20841
20842         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
20843         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
20844         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
20845         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
20846
20847 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
20848
20849         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
20850         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
20851         reported by Mark D. Baushke, one in
20852         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
20853
20854         Merge from coreutils.
20855
20856         * lib/.cppi-disable: Add stdint_.h.
20857         * lib/.cvsignore: Add stdint.h.
20858
20859         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
20860
20861         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
20862         both double and long double versions.
20863         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
20864         * lib/xstrtold.c: New file.
20865         * lib/xstrtod.h (xstrtold): New decl.
20866
20867         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
20868
20869         * lib/filemode.c (setst): Remove.
20870         (strmode): Rewrite to avoid setst.  This makes the code shorter,
20871         (arguably) clearer, and the generated code is a bit smaller on my
20872         Debian GNU/Linux stable x86 host.
20873
20874         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
20875
20876         * lib/filemode.c: Include "filemode.h" first, to test the interface.
20877         Assume that filemode.h includes sys/types.h and sys/stat.h.
20878         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
20879         (ftypelet): Reorder to put common cases first, for efficiency.
20880         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
20881         to do 'M'.
20882         (strmode): Renamed from mode_string, and now stores 12 bytes instead
20883         of 10, for compatibility with FreeBSD.  All callers changed.
20884         (filemodestring): Now stores 12 bytes instead of 10, and sets file
20885         types that can't be deduced solely from st_mode.  First arg is now a
20886         const pointer.
20887         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
20888         (strmode): Renamed from mode_string.
20889         (filemodestring): New decl.
20890         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
20891         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
20892         needed.
20893         (S_ISPORT, S_ISWHT): New macros, if not already defined.
20894
20895         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
20896
20897         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
20898         fsusage.h now does that.  Include fsusage.h first, to test interface.
20899         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
20900         at most one method (the old code could have generated decls that
20901         didn't conform to C89, not that this was ever exercised).
20902         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
20903
20904         2006-03-19  Jim Meyering  <jim@meyering.net>
20905
20906         Work even in a chroot where d_ino values for entries in "/"
20907         don't match the stat.st_ino values for the same names.
20908         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
20909         number, iterate through all entries again, using lstat instead.
20910         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
20911         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
20912
20913         * lib/getcwd.c (__getcwd): Clarify a comment.
20914         Use memcpy in place of a call to strcpy.
20915
20916         2006-03-12  Jim Meyering  <jim@meyering.net>
20917
20918         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
20919         matches that of the current directory (which we're about to chdir ".."
20920         out of), then save the dev-ino of the parent, instead.
20921
20922         * lib/same-inode.h (SAME_INODE): New file/macro.
20923         * lib/chdir-safer.c (SAME_INODE): Remove definition.
20924         Include "same-inode.h", instead.
20925         * lib/same.c: Likewise.
20926         * lib/cycle-check.h: Include "same-inode.h".
20927         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
20928         * lib/cycle-check.c (SAME_INODE): Remove definition.
20929         * lib/root-dev-ino.h: Include "same-inode.h".
20930
20931         2006-03-11  Eric Blake  <ebb9@byu.net>
20932
20933         * lib/same.c (same_name): s/base_name/last_component/
20934         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
20935         * lib/filenamecat.c (file_name_concat): Likewise.
20936
20937         2006-03-11  Eric Blake  <ebb9@byu.net>,
20938                     Paul Eggert  <eggert@cs.ucla.edu>
20939
20940         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
20941         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
20942         drive prefix.
20943         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
20944         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
20945         (last_component): New method.
20946         * lib/dirname.c (dir_len): Determine when drive letters need a
20947         subsequent slash.  Preserve // when it is special.
20948         (dir_name): Don't append dot when drive letter is absolute.
20949         [TEST_DIRNAME]: Move into a full-blown gnulib test.
20950         * lib/basename.c (base_name): New semantics - malloc the result.
20951         Preserve // when it is special.  Preserve relative files that look
20952         like drive letters.
20953         (base_len): Preserve // when it is special.
20954         (last_component): New method, similar to old base_name semantics.
20955         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
20956         base_name.  Strip redundant slashes from ///.
20957
20958 2006-07-03  Jim Meyering  <jim@meyering.net>
20959
20960         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
20961         macro is used before the first cycle_check call.
20962
20963 2006-07-03  Eric Blake  <ebb9@byu.net>
20964
20965         * modules/dirname (Depends-on): Add xstrndup.
20966
20967 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
20968
20969         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
20970         test cases, so that config.log is a bit easier to follow.
20971
20972 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
20973
20974         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
20975         both are 64 bits, since this seems to be the tradition, and this
20976         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
20977         we ever run into a host that prefers long long to long in this
20978         case, we'll need another configure-time test.  Problem reported by
20979         Jim Meyering.
20980
20981 2006-07-02  Eric Blake  <ebb9@byu.net>
20982
20983         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
20984
20985 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
20986
20987         * modules/inttypes (Depends-on): No longer depends on stdint.
20988         * modules/stdint (Description): Say more about assumptions.
20989         Say that the fast types might differ.  Say macros are used.
20990         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
20991         (Makefile.am): Revise list of substituted symbols to match
20992         new stdint.m4.
20993         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
20994         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
20995         * tests/test-stdint.c (verify_same_types)
20996         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
20997         the code conforms to C99/C89.
20998         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
20999         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
21000
21001 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
21002
21003         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
21004         but fix a bug, by requiring at least 64 bits.
21005         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
21006         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
21007         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
21008         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
21009
21010         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
21011         changes.  Make 2.59 a prerequisite.  Check and substitute for
21012         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
21013         inttypes.h.  Do not use special include files; just use the
21014         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
21015         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
21016         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
21017         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
21018         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
21019         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
21020         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
21021         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
21022         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
21023         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
21024         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
21025         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
21026         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
21027         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
21028         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
21029         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
21030         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
21031         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
21032         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
21033         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
21034         WINT_MAX.  Check for C99 conformance more strictly, by detecting
21035         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
21036         not check for things that C99 does not require, e.g., int8_t.  If
21037         a test isn't needed unless <stdint.h> isn't working, and is
21038         unlikely to be needed for any other reason, then don't do it
21039         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
21040         size_t, since we assume C89 freestanding at least.  Do not check
21041         for sig_atomic_t, wchar_t, or wint_t, since the code now does
21042         the right thing even if the types are not defined.  Instead use:
21043         (gl_STDINT_TYPE_PROPERTIES): New macro.
21044         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
21045         testing whether <sys/types.h> clashes, as Autoconf does this for
21046         us now.  All uses removed.
21047         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
21048         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
21049         (gl_CHECK_TYPE_SAME):
21050         Remove; no longer needed.
21051         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
21052         exists, since we'll return 0 anyway in that case.
21053         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
21054
21055 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
21056
21057         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
21058         possible collision with system files.
21059         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
21060         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
21061         WCHAR_MIN and WCHAR_MAX in this case.
21062         (<stddef.h>): Do not include; no longer needed.
21063         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
21064         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
21065         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
21066         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
21067         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
21068         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
21069         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
21070         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
21071         !defined(__c99))]: Include in this case too, since it's harmless
21072         now.
21073         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
21074         dangerous to do so.
21075         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
21076         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
21077         (_STDINT_MIN, _STDINT_MAX): New macros.
21078         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
21079         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
21080         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
21081         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
21082         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
21083         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
21084         macros, not typedefs; this simplifies things quite a bit.
21085         Use long int for all types narrower than int64_t.
21086         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
21087         Define in terms of long long int or int64_t or long int,
21088         not int64_t or int32_t.  This saves some compile-time testing.
21089         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
21090         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
21091         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
21092         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
21093         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
21094         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
21095         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
21096         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
21097         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
21098         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
21099         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
21100         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
21101         undef any previous version and define our own version, for
21102         simplicity and consistency with the new macros for types.
21103         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
21104         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
21105         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
21106         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
21107         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
21108         @WINT_T_SUFFIX@ to keep things simple here.
21109         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
21110         Simplify by assuming typical 8/16/32/64 host, since we're
21111         already doing that elsewhere anyway.
21112         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
21113         and assume long long int is 64 bits if available.  This
21114         speeds up 'configure'.
21115
21116 2006-07-01  Eric Blake  <ebb9@byu.net>
21117
21118         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
21119         Reported by Andreas Buening.
21120
21121 2006-07-01  Eric Blake  <ebb9@byu.net>
21122
21123         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
21124
21125 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
21126
21127         * lib/getaddrinfo.c: fixed typo
21128
21129 2006-06-29  Jim Meyering  <jim@meyering.net>
21130
21131         * modules/strftime (Maintainer): Add my name, since with the
21132         FPRINTFTIME changes strftime.c has forked from glibc.
21133
21134 2006-06-29  Eric Blake  <ebb9@byu.net>
21135
21136         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
21137
21138 2006-06-29  Eric Blake  <ebb9@byu.net>
21139
21140         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
21141
21142 2006-06-29  Eric Blake  <ebb9@byu.net>
21143
21144         * lib/stat_.h: New file.
21145
21146 2006-06-29  Eric Blake  <ebb9@byu.net>
21147
21148         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
21149         unused static function.
21150
21151 2006-06-29  Eric Blake  <ebb9@byu.net>
21152
21153         * doc/functions.texi (Function Portability): Document missing lstat
21154         on mingw.
21155
21156 2006-06-29  Eric Blake  <ebb9@byu.net>
21157
21158         * MODULES.html.sh: Add sys_stat.
21159         * modules/sys_stat: New module.
21160         * modules/mkstemp (Depends-on): Add sys_stat.
21161
21162 2006-06-29  Derek R. Price  <derek@ximbiot.com>
21163
21164         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
21165
21166 2006-06-29  Derek R. Price  <derek@ximbiot.com>
21167
21168         * m4/c-bs-a.m4: Removed.
21169
21170 2006-06-29  Derek R. Price  <derek@ximbiot.com>
21171
21172         * lib/strftime.c: Assume strftime() exists.
21173
21174 2006-06-29  Derek Price  <derek@ximbiot.com>
21175
21176         * modules/c-bs-a: Removed - \a is C89.
21177         * MODULES.html.sh: Remove c-bs-a.
21178
21179 2006-06-29  Bruno Haible  <bruno@clisp.org>
21180
21181         * modules/wcwidth (License): Change to LGPL.
21182
21183 2006-06-28  Simon Josefsson  <jas@extundo.com>
21184
21185         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
21186         on _WIN32.
21187
21188         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
21189         getnameinfo.
21190
21191 2006-06-28  Simon Josefsson  <jas@extundo.com>
21192
21193         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
21194
21195 2006-06-28  Simon Josefsson  <jas@extundo.com>
21196
21197         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
21198         functions there.  It will succeed on Windows XP, but on Windows
21199         2000 and (presumably) earlier, it will fail, and use the internal
21200         re-implementation.
21201         (use_win32_p): New function.
21202         (getaddrinfo): Use strtoul on servname, to support numeric ports.
21203         Support AI_NUMERICSERV to disable getservbyname.
21204         (getnameinfo): New function, only supports
21205         NI_NUMERICHOST|NI_NUMERICSERV for now.
21206
21207         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
21208         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
21209         getnameinfo.
21210
21211 2006-06-28  Eric Blake  <ebb9@byu.net>
21212
21213         * modules/wcwidth: New file.
21214         * modules/mbchar (Depends-on): Add wcwidth.
21215         * modules/mbswidth (Depends-on): Add wcwidth.
21216         * MODULES.html.sh: Add wcwidth.
21217
21218 2006-06-28  Eric Blake  <ebb9@byu.net>
21219
21220         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
21221         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
21222
21223 2006-06-28  Eric Blake  <ebb9@byu.net>
21224
21225         * lib/xvasprintf.h: Fix comments.
21226
21227 2006-06-28  Eric Blake  <ebb9@byu.net>
21228
21229         * lib/mbchar.h (wcwidth): Include wcwidth.h.
21230         * lib/mbswidth.c (wcwidth): Move from here...
21231         * lib/wcwidth.h: ...to this new file.
21232
21233 2006-06-28  Derek R. Price  <derek@ximbiot.com>
21234
21235         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
21236
21237         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
21238         it's obsolete.
21239         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
21240
21241 2006-06-28  Derek R. Price  <derek@ximbiot.com>
21242
21243         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
21244         Autoconf 2.60 says this stuff was obsolete.
21245
21246 2006-06-28  Bruno Haible  <bruno@clisp.org>
21247
21248         * modules/wcwidth (Files): Add m4/wchar_t.m4.
21249
21250 2006-06-28  Bruno Haible  <bruno@clisp.org>
21251
21252         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
21253         gt_TYPE_WCHAR_T.
21254
21255 2006-06-28  Bruno Haible  <bruno@clisp.org>
21256
21257         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
21258         declaration for wcwidth.
21259         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
21260
21261 2006-06-28  Bruno Haible  <bruno@clisp.org>
21262
21263         * lib/mkdtemp.c [MINGW]: Include <io.h>.
21264         (mkdir): Define using _mkdir.
21265
21266 2006-06-28  Bruno Haible  <bruno@clisp.org>
21267
21268         * lib/getaddrinfo.h: Fix POSIX URL.
21269         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
21270         _WIN32.
21271         (use_win32_p): Make static.
21272         (getaddrinfo): Reject service name if it is empty or does not consist
21273         solely of decimal digits, or if its value is > 65535.
21274         (getnameinfo): Remove useless casts.
21275
21276 2006-06-27  Simon Josefsson  <jas@extundo.com>
21277
21278         * modules/sys_select: New file, suggested by Bruno Haible, Paul
21279         Eggert and Martin Lambers.
21280
21281 2006-06-27  Simon Josefsson  <jas@extundo.com>
21282
21283         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
21284         Eggert and Martin Lambers.
21285
21286 2006-06-27  Bruno Haible  <bruno@clisp.org>
21287
21288         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
21289         result to 0, not to empty.
21290         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
21291
21292 2006-06-27  Bruno Haible  <bruno@clisp.org>
21293
21294         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
21295
21296 2006-06-26  Simon Josefsson  <jas@extundo.com>
21297
21298         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
21299         present.
21300
21301 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
21302
21303         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
21304         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
21305         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
21306
21307 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
21308
21309         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
21310
21311 2006-06-26  Bruno Haible  <bruno@clisp.org>
21312
21313         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
21314
21315 2006-06-26  Bruno Haible  <bruno@clisp.org>
21316
21317         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
21318
21319 2006-06-26  Bruno Haible  <bruno@clisp.org>
21320
21321         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
21322         SGI C compiler in pre-C99 mode.
21323         Suggested by Mark D. Baushke and Larry Jones.
21324
21325 2006-06-26  Bruno Haible  <bruno@clisp.org>
21326
21327         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
21328         WCHAR_MAX.
21329         Reported by Mark D. Baushke and Larry Jones.
21330
21331 2006-06-26  Bruno Haible  <bruno@clisp.org>
21332
21333         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
21334         in pre-C99 mode.
21335         Suggested by Mark D. Baushke and Larry Jones.
21336
21337 2006-06-23  Simon Josefsson  <jas@extundo.com>
21338             Bruno Haible  <bruno@clisp.org>
21339
21340         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
21341         Emit mostlyclean-local rule.
21342         (func_emit_tests_Makefile_am): Likewise.
21343         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
21344
21345 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
21346
21347         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
21348
21349 2006-06-23  Bruno Haible  <bruno@clisp.org>
21350
21351         * tests/test-stdint.c: Update to match ISO C 99 Technical
21352         Corrigendum 1.
21353
21354 2006-06-23  Bruno Haible  <bruno@clisp.org>
21355
21356         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
21357
21358 2006-06-23  Bruno Haible  <bruno@clisp.org>
21359
21360         * lib/stdint_.h: Treat IRIX like OpenBSD.
21361
21362 2006-06-23  Bruno Haible  <bruno@clisp.org>
21363
21364         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
21365         ISO C 99 Technical Corrigendum 1.
21366
21367 2006-06-22  Simon Josefsson  <jas@extundo.com>
21368
21369         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
21370         MinGW.
21371
21372 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
21373
21374         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
21375         needed.  Some compiler complained about some of them.  Problem reported
21376         by Larry Jones in
21377         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
21378
21379 2006-06-21  Simon Josefsson  <jas@extundo.com>
21380
21381         * tests/test-getaddrinfo.c: New file.
21382
21383         * modules/getaddrinfo-tests: New file.
21384
21385         * MODULES.html.sh: Add inet_pton.
21386
21387         * modules/inet_pton: New file.
21388
21389 2006-06-21  Simon Josefsson  <jas@extundo.com>
21390
21391         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
21392         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
21393         of using the (limited) gnulib implementation on Windows XP.
21394
21395         * m4/inet_pton.m4: New file.
21396
21397 2006-06-21  Simon Josefsson  <jas@extundo.com>
21398
21399         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
21400         variable.
21401
21402         * lib/socket_.h: Don't define WINVER.
21403
21404         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
21405         slightly modified to work in gnulib.
21406
21407 2006-06-21  Simon Josefsson  <jas@extundo.com>
21408
21409         * doc/gnulib.texi (Windows sockets): Add.
21410
21411 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
21412
21413         * lib/read-file.c (fread_file): Start with buffer allocation of
21414         0 bytes rather than 1 byte; this simplifies the code.
21415         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
21416         code to free buffer and save/restore errno.
21417         (internal_read_file): Remove unused local.
21418
21419 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
21420
21421         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
21422         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
21423         Problem reported by Denis Excoffier in
21424         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
21425
21426 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21427
21428         * modules/sys_socket, modules/socklen: Include sys/types since
21429         FreeBSD 4.x's sys/socket.h needs it.
21430
21431 2006-06-19  Simon Josefsson  <jas@extundo.com>
21432
21433         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
21434
21435 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
21436
21437         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
21438
21439 2006-06-19  Bruno Haible  <bruno@clisp.org>
21440
21441         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
21442         and FULL_PATH_INTTYPES_H in angle brackets.
21443         Reported by Mark D. Baushke <mdb@gnu.org>.
21444
21445 2006-06-17  Eric Blake  <ebb9@byu.net>
21446
21447         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
21448         errno.
21449
21450 2006-06-17  Bruno Haible  <bruno@clisp.org>
21451
21452         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
21453         <sys/inttypes.h>.
21454
21455 2006-06-17  Bruno Haible  <bruno@clisp.org>
21456
21457         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
21458         whether errno is declared. Assume <errno.h> declares errno.
21459
21460 2006-06-17  Bruno Haible  <bruno@clisp.org>
21461
21462         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
21463
21464 2006-06-17  Bruno Haible  <bruno@clisp.org>
21465
21466         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
21467         problem on Solaris 2.5.1.
21468
21469 2006-06-16  Eric Blake  <ebb9@byu.net>
21470
21471         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
21472         * lib/unicodeio.c [!defined errno]: Likewise.
21473         * lib/strtol.c [!defined errno]: Likewise.
21474         * lib/strtod.c [!defined errno]: Likewise.
21475
21476 2006-06-15  Eric Blake  <ebb9@byu.net>
21477
21478         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
21479
21480 2006-06-15  Eric Blake  <ebb9@byu.net>
21481
21482         * config/srclist.txt (ssize_t.m4): Lose sync.
21483
21484 2006-06-15  Bruno Haible  <bruno@clisp.org>
21485
21486         * modules/stdint (Files): Include m4/full-header-path.m4,
21487         m4/size_max.m4, m4/wchar_t.m4.
21488         (Makefile.am): Many more substitutions.
21489         * modules/stdint-tests: New file.
21490         * tests/test-stdint.c: New file.
21491
21492 2006-06-15  Bruno Haible  <bruno@clisp.org>
21493
21494         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
21495         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
21496         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
21497         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
21498         gl_CHECK_TYPE_SAME): New macros.
21499
21500 2006-06-15  Bruno Haible  <bruno@clisp.org>
21501
21502         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
21503
21504 2006-06-15  Bruno Haible  <bruno@clisp.org>
21505
21506         * lib/stdint_.h: Rewritten to be fully auto-configured.
21507         Fixes bug on HP-UX/IA64.
21508
21509 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
21510
21511         * lib/getdate.y (__attribute__): Don't define if already defined.
21512         Problem reported by Larry Jones.
21513         * lib/utimens.c (__attribute__): Likewise.
21514
21515 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
21516
21517         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
21518         reported by Andreas Schwab.
21519
21520 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21521             Bruno Haible  <bruno@clisp.org>
21522
21523         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
21524         check for the declaration of strnlen and a run test that exposes the
21525         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
21526         rpl_strndup.
21527
21528 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21529             Bruno Haible  <bruno@clisp.org>
21530
21531         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
21532
21533 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21534
21535         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
21536         compile test, for Tru64 4.0D.
21537
21538 2006-05-28  Karl Berry  <karl@gnu.org>
21539
21540         * config/srclist.txt (printf-args.c): lose sync.
21541
21542 2006-05-26  Martin Lambers  <marlam@marlam.de>
21543
21544         * lib/getpass.c: Updates the test for the native W32 API, and adds
21545         missing includes, thus fixing compilation warnings.
21546
21547 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
21548
21549         * lib/exclude.c (exclude_fnmatch): New function.
21550         (excluded_file_name): Call exclude_fnmatch.
21551         * lib/exclude.h (excluded_file_name): New prototype
21552
21553 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
21554
21555         * lib/tempname.c (small_open, large_open): New macros.
21556         (__open, __open64) [!_LIBC]: Remove.
21557         (__gen_tempname): Use small_open and large_open instead of __open
21558         and __open64.  This fixes a portability bug on HP-UX 11.11i
21559         reported by Simon Wing-Tang in
21560         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
21561
21562 2006-05-24  Bruno Haible  <bruno@clisp.org>
21563
21564         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
21565         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
21566         Reported by Thorsten Maerz <torte@netztorte.de> via
21567         Aaron Stone <aaron@serendipity.cx>.
21568
21569 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
21570
21571         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
21572         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
21573         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
21574         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
21575         not really conditional on the cache.
21576         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
21577
21578 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
21579
21580         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
21581         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
21582         (my_usleep): Don't mishandle maximum value.
21583
21584 2006-05-19  Jim Meyering  <jim@meyering.net>
21585
21586         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
21587
21588 2006-05-17  Bruno Haible  <bruno@clisp.org>
21589
21590         Cygwin portability.
21591         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
21592
21593 2006-05-17  Bruno Haible  <bruno@clisp.org>
21594
21595         * lib/stdint_.h: Fix recognition of Cygwin.
21596
21597 2006-05-15  Bruno Haible  <bruno@clisp.org>
21598
21599         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
21600         on libtool patch by Ralf Wildenhues.
21601
21602 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
21603
21604         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
21605         test for C99 conformance; (bool) 0.5 is an integer constant
21606         expression, but (bool) -0.5 is not.  Problem reported by Fedor
21607         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
21608
21609 2006-05-11  Simon Josefsson  <jas@extundo.com>
21610
21611         * m4/xvasprintf.m4: Fix obvious typo.
21612
21613 2006-05-11  Jim Meyering  <jim@meyering.net>
21614
21615         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
21616         James Lemley.
21617
21618 2006-05-10  Simon Josefsson  <jas@extundo.com>
21619
21620         * lib/md4.c: Typo fix, update copyright years.
21621         (K1, K2): Don't use L because it turn computations into 64-bit on
21622         64-bit platforms.
21623
21624 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
21625
21626         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
21627         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
21628         unwanted sign propagation, e.g., on hosts with 64-bit int.
21629         There still are some problems with reeelly weird theoretical hosts
21630         (e.g., 33-bit int) but it's not worth worrying about now.
21631         * lib/sha1.c (rol): Likewise.
21632         (K1, K2, K3, K4): Remove unnecessary L suffix.
21633
21634 2006-05-10  Bruno Haible  <bruno@clisp.org>
21635
21636         * lib/des.c: Cast to avoid warnings.
21637
21638 2006-05-09  Bruno Haible  <bruno@clisp.org>
21639
21640         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
21641         (Depends-on): Depend also on xsize, stdarg.
21642         (configure.ac): Add gl_XVASPRINTF.
21643
21644 2006-05-09  Bruno Haible  <bruno@clisp.org>
21645
21646         * m4/xvasprintf.m4: New file.
21647
21648 2006-05-09  Bruno Haible  <bruno@clisp.org>
21649
21650         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
21651         (EOVERFLOW): Define fallback value.
21652         (xstrcat): New function.
21653         (xvasprintf): Recognize the special case of a string concatenation.
21654
21655 2006-05-08  Eric Blake  <ebb9@byu.net>
21656
21657         * gnulib-tool (func_version): Base copyright year on CVS date.
21658         (func_emit_copyright_notice): New function.
21659         (func_emit_lib_Makefile_am): Use it.
21660         (func_emit_tests_Makefile_am): Likewise.
21661         (func_import): Likewise.
21662
21663 2006-05-08  Bruno Haible  <bruno@clisp.org>
21664
21665         * modules/stdarg: New file.
21666         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
21667
21668 2006-05-08  Bruno Haible  <bruno@clisp.org>
21669
21670         * m4/stdarg.m4: New file, from GNU gettext.
21671
21672 2006-05-08  Bruno Haible  <bruno@clisp.org>
21673
21674         * config/srclist.txt (build-aux/config.rpath): different from latest
21675         release.
21676
21677 2006-05-08  Bruno Haible  <bruno@clisp.org>
21678
21679         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
21680
21681 2006-05-05  Jim Meyering  <jim@meyering.net>
21682
21683         * m4/warning.m4: New file, derived from bison's file by the same name.
21684
21685 2006-05-03  Bruno Haible  <bruno@clisp.org>
21686
21687         * lib/stdint_.h: Shorter URL.
21688         * lib/inttypes.h: Likewise.
21689
21690 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
21691
21692         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
21693
21694 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
21695
21696         * lib/verify.h: Document the internals better.  Most of this change
21697         was written by Bruno Haible.
21698
21699 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
21700
21701         * doc/verify.texi: New file, partly based on a proposal by
21702         Bruno Haible.
21703
21704 2006-05-02  Bruno Haible  <bruno@clisp.org>
21705
21706         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
21707         test from here...
21708         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
21709
21710 2006-04-29  Bruno Haible  <bruno@clisp.org>
21711
21712         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
21713         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
21714
21715 2006-04-29  Bruno Haible  <bruno@clisp.org>
21716
21717         * gnulib-tool: Make --update option actually work.
21718
21719 2006-04-29  Bruno Haible  <bruno@clisp.org>
21720
21721         * doc/gcd.texi: New file.
21722         * doc/gnulib.texi: Include it.
21723
21724 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
21725
21726         * lib/getdate.y (get_date): When adding relative date, start with the
21727         initial time, not with the result of the first mktime call.
21728
21729 2006-04-25  Bruno Haible  <bruno@clisp.org>
21730
21731         * gnulib-tool (func_import): Output the include directives in three
21732         blocks, sorted separately.
21733         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21734
21735 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
21736
21737         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
21738         to define main with arguments, for C++.  Reported by Eric Blake.
21739         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
21740         Prefer 'int main ()' to 'int main (void)', for C++.
21741         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
21742         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
21743         for 'main', for C99 and C++.
21744
21745 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
21746
21747         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
21748         Don't assume that exit status -1 is valid.
21749         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
21750         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
21751         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
21752         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
21753         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
21754         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
21755         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
21756         functions can be used without declaring them, or that you can
21757         exit with status -1.
21758         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
21759
21760 2006-04-24  Karl Berry  <karl@gnu.org>
21761
21762         * config/srclist.txt (longdouble.m4): sync lost.
21763
21764 2006-04-24  Eric Blake  <ebb9@byu.net>
21765
21766         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
21767
21768 2006-04-24  Bruno Haible  <bruno@clisp.org>
21769
21770         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
21771         poll() implementation in AIX.
21772         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21773
21774 2006-04-24  Bruno Haible  <bruno@clisp.org>
21775
21776         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
21777         assigned exactly once.
21778
21779 2006-04-23  Claudio Fontana  <claudio@gnu.org>
21780             Bruno Haible  <bruno@clisp.org>
21781
21782         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
21783         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
21784         for AM_CPPFLAGS.
21785
21786 2006-04-23  Bruno Haible  <bruno@clisp.org>
21787
21788         * modules/copy-file: Depend on unistd.
21789         * modules/execute: Likewise.
21790         * modules/fatal-signal: Likewise.
21791         * modules/findprog: Likewise.
21792         * modules/mkdtemp : Likewise.
21793         * modules/pipe: Likewise.
21794         * modules/wait-process: Likewise.
21795
21796 2006-04-23  Bruno Haible  <bruno@clisp.org>
21797
21798         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
21799         condition was already detected.
21800         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21801
21802 2006-04-23  Bruno Haible  <bruno@clisp.org>
21803
21804         * lib/copy-file.c: Include <unistd.h> unconditionally.
21805         * lib/execute.c: Likewise.
21806         * lib/fatal-signal.c: Likewise.
21807         * lib/findprog.c: Likewise.
21808         * lib/mkdtemp.c: Likewise.
21809         * lib/pipe.h: Likewise.
21810         * lib/pipe.c: Likewise.
21811         * lib/wait-process.h: Likewise.
21812
21813 2006-04-23  Bruno Haible  <bruno@clisp.org>
21814
21815         * gnulib-tool (func_usage): Fix --import description. Document
21816         --update.
21817         (func_import): Create temporary file in a temporary directory, if
21818         --dry-run is specified. Silence errors from 'grep' when there are no
21819         m4 files in $m4dir.
21820         (func_create_testdir): Silence errors from 'grep' when there are no
21821         m4 files in $m4dir.
21822         Reported by Karl Berry <karl@freefriends.org>.
21823
21824 2006-04-20  Bruno Haible  <bruno@clisp.org>
21825
21826         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
21827         one argument, so that the code will be portable to Autoconf 2.60.
21828         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
21829         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
21830         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
21831
21832 2006-04-19  Derek Price  <derek@ximbiot.com>
21833             Eric Blake  <ebb9@byu.net>
21834
21835         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
21836         rather than "/full/path.h".  Update comment to match.  Shorten &
21837         generalize m4_translit call via AS_TR_CPP.
21838
21839 2006-04-19  Derek Price  <derek@ximbiot.com>
21840             Eric Blake  <ebb9@byu.net>
21841
21842         * lib/inttypes.h: Correct grammar in comment.
21843
21844 2006-04-18  Derek Price  <derek@ximbiot.com>
21845             Paul Eggert  <eggert@cs.ucla.edu>
21846
21847         * modules/inttypes: New file.
21848         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
21849
21850 2006-04-18  Derek Price  <derek@ximbiot.com>
21851             Paul Eggert  <eggert@cs.ucla.edu>
21852
21853         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
21854         New files.
21855
21856 2006-04-18  Derek Price  <derek@ximbiot.com>
21857             Paul Eggert  <eggert@cs.ucla.edu>
21858
21859         * lib/inttypes.h: New file.
21860         * lib/strtoimax.c: Assume <inttypes.h>.
21861
21862 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
21863
21864         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
21865         isn't mounted.  Problem reported by Kir Kolyshkin.
21866
21867 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
21868
21869         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
21870         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
21871         Derek R. Price.
21872         * lib/regex.h (RE_DUP_MAX): Update comment to match current
21873         implementation.
21874
21875 2006-04-12  Eric Blake  <ebb9@byu.net>
21876
21877         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
21878         is now done automatically by the corresponding Autoconf macro.
21879
21880 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
21881
21882         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
21883         time_r.h.
21884
21885 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
21886
21887         Merge regex changes from libc, removing some of our
21888         POSIX-conformance changes that were rejected and redoing them in a
21889         less-intrusive way.
21890
21891         * lib/regcomp.c (re_compile_internal, init_dfa):
21892         Length arg is now size_t, not Idx.  All uses changed.
21893         (peek_token): Forward decl now says internal_function.
21894         (__re_error_msgid, __re_error_msgid_idx):
21895         Now static rather than extern with attribute_hidden.
21896         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
21897         For some reason libc prefers K&R style defns for external functions.
21898         (regerror) [!defined _LIBC]: Likewise.
21899         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
21900         (seek_collating_symbol_entry, lookup_collation_sequence_value):
21901         (build_range_exp, build_collating_symbol):
21902         Use K&R-style defn.
21903         (re_compile_fastmap): Use '\0' to memset, not 0.
21904         (utf8_sb_map): Make the calculations more obvious.
21905         (init_dfa, parse_bracket_exp, build_charclass_op):
21906         Call calloc and cast result, as glibc does.
21907         (init_word_char, fetch_token, peek_token, peek_token_bracket):
21908         (build_range_exp, build_collating_symbol):
21909         Now internal functions.
21910
21911         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
21912
21913         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
21914         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
21915         Don't depend on VMS; depend on __VMS instead, for POSIX
21916         namespace cleanness.
21917         (regoff_t): Define to ssize_t, not long int.
21918
21919         Remove the REG_ macros named below.  Instead, make the old names
21920         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
21921         __USE_GNU_REGEX.
21922         (REG_BACKSLASH_ESCAPE_IN_LISTS):
21923         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
21924         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
21925         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
21926         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
21927         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
21928         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
21929         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
21930         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
21931         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
21932         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
21933         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
21934         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
21935         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
21936         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
21937         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
21938         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
21939         (REG_NREGS):
21940         Remove.  All uses replaced by the old RE_* names.
21941         (RE_BACKSLASH_ESCAPE_IN_LISTS):
21942         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
21943         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
21944         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
21945         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
21946         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
21947         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
21948         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
21949         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
21950         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
21951         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
21952         Don't bother having these macros be independent of each others'
21953         values, since they no longer exist in the POSIX name space.
21954
21955         Rename the following member names back to their old names,
21956         unless !__USE_GNU_REGEX.  All uses changed back.
21957         (buffer): Renamed from re_buffer.
21958         (allocated): Renamed from re_allocated.
21959         (used): Renamed from re_used.
21960         (syntax): Renamed from re_syntax.
21961         (fastmap): Renamed from re_fastmap.
21962         (translate): Renamed from re_translate.
21963         (can_be_null): Renamed from re_can_be_null.
21964         (regs_allocated): Renamed from re_regs_allocated.
21965         (fastmap_accurate): Renamed from re_fastmap_accurate.
21966         (no_sub): Renamed from re_no_sub.
21967         (not_bol): Renamed from re_not_bol.
21968         (not_eol): Renamed from re_not_eol.
21969         (newline_anchor): Renamed from re_newline_anchor.
21970         (num_regs): Renamed from rm_num_regs.
21971         (start): Renamed from rm_start.
21972         (end): Renamed from rm_end.
21973
21974         (free_state): Move up a bit.
21975
21976         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
21977         #define to be empty.
21978         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
21979         when that is what is intended.
21980         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
21981         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
21982         (MAX): New macro.
21983         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
21984         All uses changed back to re_malloc, etc.  It's now the caller's
21985         responsibility to check for overflow; all callers changed.
21986         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
21987         (re_x2nrealloc): Remove.
21988         (free_state): Remove decl.
21989
21990         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
21991         (re_set_registers, re_exec):
21992         Use K&R-style defn.
21993
21994         2006-01-31  Roland McGrath  <roland@redhat.com>
21995
21996         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
21997         Reported by Mike Frysinger <vapier@gentoo.org>.
21998
21999         2006-01-15  Andreas Jaeger  <aj@suse.de>
22000
22001         [BZ #1950]
22002         * lib/regex_internal.c (re_string_reconstruct): Adjust for
22003         build_wcs_upper_buffer change.
22004         (build_wcs_upper_buffer): Change return type.
22005
22006         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
22007
22008         * lib/regex_internal.h: Include <stdint.h> if available.
22009
22010         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
22011
22012         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
22013
22014         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
22015
22016         * lib/regcomp.c: Adjust for changed secondary hash function.
22017
22018         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
22019
22020         * lib/regex.h: Pretty printing.
22021         Clean up namespace a bit.
22022
22023         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
22024
22025         * lib/regexec.c (update_cur_sifted_state, check_arrival,
22026         check_arrival_add_next_nodes): Avoid using uninitialized variable.
22027
22028         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
22029                     Ulrich Drepper  <drepper@redhat.com>
22030
22031         [BZ #1302]
22032         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
22033         changed.
22034         (bitset_word_t): Renamed from bitset_word.  All uses changed.
22035
22036         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
22037
22038         [BZ #281]
22039         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
22040         * lib/regcomp.c: Remove unnecessary uses of
22041         unsigned RE_TRANSLATE_TYPE.
22042         * lib/regex_internal.h: Likewise.
22043         * lib/regex_internal.c: Likewise.
22044         * lib/regexec.c: Likewise.
22045         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
22046
22047         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
22048
22049         * lib/regexec.c (find_recover_state): Remove unnecessary
22050         initialization.
22051         (transit_state_bkref): Make DFA a const pointer.
22052         (get_subexp): Likewise.
22053         (check_arrival): Likewise.
22054         (update_cur_sifted_state): Likewise.
22055         (re_search_internal): Likewise.
22056         (prune_impossible_nodes): Likewise.
22057         (acquire_init_state_context): Likewise.
22058         (proceed_next_node): Likewise.
22059         (set_regs): Likewise.
22060         (free_fail_stack_return): Likewise.
22061         (check_arrival_expand_ecl): Mark DFA parameter as const.
22062         (check_arrival_expand_ecl_sub): Likewise.
22063         (check_subexp_limits): Likewise.
22064         (sub_epsilon_src_nodes):  Likewise.
22065         (add_epsilon_src_nodes):  Likewise.
22066         (merge_state_array): Likewise.
22067         (update_regs): Likewise.
22068         (build_trtable): Likewise.
22069         (sift_states_backward): Mark MCTX parameter as const.
22070         (build_sifted_states): Likewise.
22071         (update_cur_sifted_state): Likewise.
22072         (sift_states_mkref): Likewise.
22073         (check_arrival_expand_ecl): Mark eclosure as const.
22074         (check_dst_limits_calc_pos_1): Likewise.
22075         * lib/regex_internal.h (re_match_context_t): Make dfa a const
22076         pointer.
22077
22078         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
22079
22080         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
22081         (transit_state_sb): Likewise.
22082         (transit_state_mb): Likewise.
22083         (sift_states_iter_mb): Likewise.
22084         (check_arrival_add_next_nodes): Likewise.
22085         (check_node_accept_bytes): Change first parameter to pointer-to-const.
22086         [_LIBC] (re_search_2_stub): Use mempcpy.
22087
22088         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
22089         mbrtowc for very simple UTF-8 case.
22090
22091         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
22092         a pointer-to-const.
22093         (re_acquire_state_context): Likewise.
22094         * lib/regex_internal.h: Adjust prototypes.
22095
22096         * lib/regex.c: Prevent using C++ compilers.
22097
22098         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
22099         (re_acquire_state_context): Likewise.
22100
22101 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
22102
22103         * modules/regex (Depends-on): Add ssize_t.
22104
22105 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
22106
22107         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
22108         translation table.
22109
22110 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
22111
22112         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
22113
22114 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
22115             Bruno Haible  <bruno@clisp.org>
22116
22117         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
22118         <sys/types.h> and <inttypes.h>.
22119
22120 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22121
22122         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
22123         `__error_t_defined', so argp.h will not typedef the former.
22124
22125 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
22126
22127         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
22128         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
22129         glibc names.  Even if glibc is changed to conform to POSIX, the
22130         traditional names will be available anyway, since regex depends on
22131         the extensions module.  Also, fix a longstanding typo in the
22132         implementation of Spencer ERE test #75 from grep 2.3.  Problems
22133         reported by Emanuele Giaquinta.  Also, change sense of cached
22134         variable, so that the message makes sense.
22135
22136 2006-03-24  Simon Josefsson  <jas@extundo.com>
22137
22138         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
22139         including some doc fixes.
22140         (base64_encode_alloc): Fix +1 bug on allocation failures.
22141
22142 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22143
22144         * lib/base64.c (base64_encode): Do not read past end of array with
22145         unsanitized input on systems with CHAR_BIT > 8.
22146
22147 2006-03-24  Eric Blake  <ebb9@byu.net>
22148
22149         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
22150
22151 2006-03-22  Karl Berry  <karl@gnu.org>
22152
22153         * config/srclist.txt (*setenv.[ch]): get from coreutils.
22154         * config/srclistvars.sh (COREUTILS): new var.
22155
22156 2006-03-17  Jim Meyering  <jim@meyering.net>
22157
22158         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
22159         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
22160
22161 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
22162
22163         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
22164         no longer needs it.  Instead, check that regoff_t is as least
22165         as wide as ptrdiff_t.
22166
22167         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
22168         so that our regex.h stays compatible with the installed regex.
22169         This is helpful for installers who configure --without-included-regex.
22170         Problem reported by Emanuele Giaquinta.
22171
22172 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
22173
22174         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
22175         Typedef to long int, not to off_, as POSIX will likely change
22176         in that direction.
22177
22178 2006-03-15  Eric Blake  <ebb9@byu.net>
22179
22180         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
22181
22182 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
22183
22184         * lib/argp-help.c (validate_uparams): Fix typo
22185         * lib/argp-parse.c (argp_default_options): Consistently begin help
22186         messages with a lowercase letter.
22187
22188 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
22189
22190         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
22191         overrun buffers and shouldn't be used (much as gets shouldn't be
22192         used).
22193         * lib/time_r.c (asctime_r, ctime_r): Likewise.
22194
22195 2006-03-08  Simon Josefsson  <jas@extundo.com>
22196
22197         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
22198         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22199
22200 2006-03-08  Simon Josefsson  <jas@extundo.com>
22201
22202         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
22203         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22204
22205 2006-03-08  Simon Josefsson  <jas@extundo.com>
22206
22207         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
22208         signal that configure disabled the device.
22209
22210 2006-03-08  Simon Josefsson  <jas@extundo.com>
22211
22212         * build-aux/maint.mk: Fix refresh-po, to handle no translated
22213         languages.
22214
22215 2006-03-07  Simon Josefsson  <jas@extundo.com>
22216
22217         * modules/getopt (Depends-on): Add unistd.
22218
22219         * modules/unistd: New file.
22220
22221 2006-03-07  Simon Josefsson  <jas@extundo.com>
22222
22223         * modules/gc-random: New file.
22224
22225 2006-03-07  Simon Josefsson  <jas@extundo.com>
22226
22227         * m4/unistd_h.m4: New file.
22228
22229 2006-03-07  Simon Josefsson  <jas@extundo.com>
22230
22231         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
22232         test to be side-effect free by storing the result in the cache
22233         variable gl_cv_lib_readline, and moving the assignment of
22234         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
22235         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22236
22237 2006-03-07  Simon Josefsson  <jas@extundo.com>
22238
22239         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
22240         error on missing devices (the functions will return an error).
22241
22242         * m4/gc.m4: Move random stuff to gc-random.m4
22243
22244 2006-03-07  Simon Josefsson  <jas@extundo.com>
22245
22246         * lib/unistd_.h: New file.
22247
22248 2006-03-07  Simon Josefsson  <jas@extundo.com>
22249
22250         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
22251
22252 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
22253
22254         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
22255         Problem reported by Juan Manuel Guerrero.
22256
22257 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
22258
22259         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
22260         the unistd module.
22261         * lib/getlogin_r.c: Likewise.
22262         * lib/getlogin_r.h: Likewise.
22263         * lib/glob.c: Likewise.
22264         * lib/pagealign_alloc.c: Likewise.
22265         * lib/unistd_.h: Remove; no longer needed.
22266
22267 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
22268
22269         * MODULES.html.sh (Support for systems lacking POSIX:2001):
22270         Add unistd.
22271         * modules/c-stack (Depends-on): Add unistd.
22272         * modules/getlogin_r: Likewise.
22273         * modules/glob: Likewise.
22274         * modules/pagealign_alloc: Likewise.
22275         * modules/unistd (Files): Remove lib/unistd_.h.
22276         (EXTRA_DIST): Remove.
22277         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
22278         need unistd_.h.
22279         (MOSTLYCLEANFILES): Remove unistd.h-t.
22280
22281 2006-03-03  Simon Josefsson  <jas@extundo.com>
22282
22283         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
22284
22285 2006-03-03  Simon Josefsson  <jas@extundo.com>
22286
22287         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
22288         libidn and bison.
22289
22290 2006-03-03  Simon Josefsson  <jas@extundo.com>
22291
22292         * build-aux/maint.mk: Add indent target.
22293
22294 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
22295
22296         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
22297         our replacement poll.h in any case, to avoid a differing
22298         declaration from a system header.  Seen on AIX.
22299
22300 2006-03-01  Simon Josefsson  <jas@extundo.com>
22301
22302         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
22303         <kasal@ucw.cz>.
22304
22305 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
22306
22307         * modules/gettime (Depends-on): Add extensions module.
22308         * modules/nanosleep (Depends-on): Likewise.
22309         * modules/settime (Depends-on): Likewise.
22310
22311 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
22312
22313         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
22314         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
22315         pedantically.
22316         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
22317         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
22318
22319         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
22320         not "==".  Reported by Ralf Wildenhues.
22321
22322 2006-03-01  Karl Berry  <karl@gnu.org>
22323
22324         * doc/Copyright/request-*: new files, synced from gnuorg.
22325
22326 2006-03-01  Karl Berry  <karl@gnu.org>
22327
22328         * config/srclist.txt (Copyright/*): new entries.
22329
22330 2006-02-28  Simon Josefsson  <jas@extundo.com>
22331
22332         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
22333
22334 2006-02-27  Simon Josefsson  <jas@extundo.com>
22335
22336         * lib/base64.h: Indent #define's.  From Jim Meyering
22337         <jim@meyering.net>.
22338
22339 2006-02-27  Jim Meyering  <jim@meyering.net>
22340
22341         Revert the change of 2006-02-24, so these files can continue
22342         to be sync'd from gettext.
22343         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
22344         of `config.h'.
22345
22346 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
22347
22348         * modules/intprops: New file.
22349         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
22350         Add intprops.
22351         * modules/getloadavg (Files): Remove lib/intprops.h.
22352         (Depends-on): Add intprops.
22353         * modules/human: Likewise.
22354         * modules/inttostr: Likewise.
22355         * modules/openat: Likewise.
22356         * modules/sig2str: Likewise.
22357         * modules/userspec: Likewise.
22358         * modules/utimecmp: Likewise.
22359         * modules/xnanosleep: Likewise.
22360         * modules/xstrtol: Likewise.
22361
22362 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
22363
22364         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
22365         * modules/lock-tests (TESTS): Use $(EXEEXT).
22366         * modules/tls-tests: Likewise.
22367         * modules/argp-tests: Likewise.
22368         (check_PROGRAMS): New var, replacing...
22369         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
22370
22371 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22372
22373         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
22374         `config.h'.
22375
22376 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
22377
22378         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
22379
22380 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22381
22382         Sync from coreutils.
22383         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
22384         gl_CHDIR_SAFER.
22385
22386 2006-02-22  Jim Meyering  <jim@meyering.net>
22387
22388         Sync from coreutils.
22389         * m4/chdir-safer.m4: New file.
22390
22391 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
22392
22393         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
22394         AT_FDCWD exceeds INT_MAX.
22395         * lib/openat.h (AT_FDCWD): Likewise.
22396
22397 2006-02-17  Eric Blake  <address@hidden>
22398
22399         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
22400
22401 2006-02-16  Simon Josefsson  <jas@extundo.com>
22402
22403         * modules/getaddrinfo (Depends-on): Add sys_socket.
22404
22405 2006-02-15  Simon Josefsson  <jas@extundo.com>
22406
22407         * build-aux/maint.mk: Add dsyntax-check rule.
22408
22409 2006-02-15  Eric Blake  <ebb9@byu.net>
22410
22411         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
22412         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
22413         'present but cannot compile' warnings on cygwin.
22414         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
22415         use ws2tcpip.h if sys/socket.h works.
22416         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
22417         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
22418
22419 2006-02-14  Simon Josefsson  <jas@extundo.com>
22420
22421         * modules/maintainer-makefile (Files): Rename.
22422
22423         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
22424         and (the local) Makefile.cfg to maint-cfg.mk.
22425
22426         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
22427         to the latter.
22428
22429         * modules/maintainer-makefile: New module.
22430
22431         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
22432         severaly stripped to make it possible to build it up from scratch
22433         with reliable tests.
22434
22435         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
22436         fixes to permit overriding the default actions when configure and
22437         makefile are not available.
22438
22439 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
22440
22441         Sync from coreutils.
22442         * modules/lstat (Depends-on): Don't depend on xalloc.
22443         (License): Change from GPL to LGPL, since this is now simply a
22444         replacement for a libc function.
22445
22446 2006-02-14  Jim Meyering  <jim@meyering.net>
22447
22448         Sync from coreutils.
22449
22450         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
22451         failure on deficient systems, and simplify gnulib lgpl dependencies.
22452         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
22453         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
22454
22455         * lib/xalloc-die.c: Remove unused definition of N_.
22456
22457 2006-02-14  Jim Meyering  <jim@meyering.net>
22458
22459         Sync from coreutils.
22460         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
22461         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
22462         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
22463         double-quote uses of that variable, to accommodate the rare case in
22464         which getmntent is available in none of the libraries checked.  This
22465         happens at least on FreeBSD 5.0.
22466
22467 2006-02-13  Simon Josefsson  <jas@extundo.com>
22468
22469         * gnulib-tool (Usage): Fix --import, from
22470         karl@freefriends.org (Karl Berry).
22471
22472 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
22473
22474         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
22475
22476 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
22477
22478         * lib/argp-namefrob.h: Restore changes accidentally lost during the
22479         "autoupdate" on 2005-12-12.
22480
22481 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
22482
22483         * modules/closeout (Depends-on): Remove atexit.
22484
22485 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
22486
22487         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
22488         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
22489
22490 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
22491
22492         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
22493         __EXTENSIONS__ if this causes compilation to fail.  Problem
22494         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
22495         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
22496
22497 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
22498
22499         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
22500         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
22501         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
22502         All uses changed.
22503
22504 2006-01-26  Simon Josefsson  <jas@extundo.com>
22505
22506         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
22507         prototype is visible on mingw32.
22508
22509         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
22510         for mingw32.
22511
22512         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
22513         mingw32).
22514
22515 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
22516
22517         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
22518         attempt to open for write; this always fails, at least on POSIX
22519         hosts.  This reinstates the 2006-01-09 change, which was
22520         inadvertently removed.
22521
22522 2006-01-26  Bruno Haible  <bruno@clisp.org>
22523
22524         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
22525         Reported by Paul Eggert.
22526
22527 2006-01-26  Bruno Haible  <bruno@clisp.org>
22528             Paul Eggert  <eggert@cs.ucla.edu>
22529
22530         * lib/stdbool_.h (_Bool)
22531         [(! (defined __cplusplus || defined __BEOS__)
22532           && !defined __GNUC__
22533           && !(defined __HP_cc || defined __xlc__
22534                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
22535                || defined __sgi))]:
22536         #define to signed char in these cases too; this simplifies
22537         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
22538         etc., separately) and makes it more conservative.
22539
22540 2006-01-25  Simon Josefsson  <jas@extundo.com>
22541
22542         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
22543         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
22544         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
22545
22546 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
22547
22548         * lib/argp-namefrob.h: Bugfix. Remove stray #
22549
22550 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
22551
22552         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
22553         so that we test the test.
22554         Check for yet another HP-UX cc bug involving *bool |= bool.
22555
22556 2006-01-25  Karl Berry  <karl@gnu.org>
22557
22558         * config/srclist.txt (vasnprintf.c): sync lost.
22559
22560 2006-01-25  Jim Meyering  <jim@meyering.net>
22561
22562         Sync from the stable (b5) branch of coreutils:
22563
22564         * lib/fts.c (fts_children): Don't let close() clobber errno from
22565         failed fchdir().
22566
22567         * lib/fts.c (fts_stat): When following a symlink-to-directory,
22568         don't necessarily interpret stat-fails+lstat-succeeds as indicating
22569         a dangling symlink.  That can also happen at least for ELOOP.
22570         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
22571         FYI, this bug predates the inclusion of fts.c in coreutils.
22572
22573         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
22574         in their own block, so pre-c99 compilers don't object.
22575
22576         Avoid the double-free (first in fts_read, second in fts_close) that
22577         would occur when an `active' directory is made inaccessible (e.g.,
22578         via chmod a-x) during a traversal.
22579         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
22580         before returning.  Reproduce this failure by
22581         mkdir -p a/b; cd a; chmod a-x . b
22582         Reported by Stavros Passas.
22583
22584 2006-01-25  Jim Meyering  <jim@meyering.net>
22585
22586         * lib/fileblocks.c: Remove more useless parentheses.
22587         * lib/readutmp.h: Likewise.
22588
22589 2006-01-25  Bruno Haible  <bruno@clisp.org>
22590
22591         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
22592         warnings.
22593         Reported by Paul Eggert.
22594
22595 2006-01-25  Bruno Haible  <bruno@clisp.org>
22596
22597         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
22598         rid of a trap command. For Solaris sh.
22599         Reported by Mark D. Baushke <mdb@gnu.org>.
22600
22601 2006-01-24  Simon Josefsson  <jas@extundo.com>
22602
22603         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
22604         Bruno.
22605
22606 2006-01-24  Karl Berry  <karl@gnu.org>
22607
22608         * config/srclist.txt (argp-namefrob.h): sync lost.
22609
22610 2006-01-24  Jim Meyering  <jim@meyering.net>
22611
22612         * modules/openat (Files): Add lib/intprops.h.
22613         From Mark D. Baushke.
22614
22615 2006-01-24  Jim Meyering  <jim@meyering.net>
22616
22617         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
22618         Reported by Mark D. Baushke.
22619
22620 2006-01-24  Jim Meyering  <jim@meyering.net>
22621
22622         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
22623
22624 2006-01-24  Bruno Haible  <bruno@clisp.org>
22625
22626         * modules/strnlen (Maintainer): Change from glibc to all.
22627
22628 2006-01-24  Bruno Haible  <bruno@clisp.org>
22629
22630         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
22631         Patch by Paul Eggert.
22632
22633 2006-01-24  Bruno Haible  <bruno@clisp.org>
22634
22635         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
22636         already has it.
22637         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
22638         2005-11-26.
22639
22640         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
22641         'signed char' to avoid problems with the built-in _Bool type.
22642         Reported by Paul Eggert on 2005-11-26.
22643
22644 2006-01-24  Bruno Haible  <bruno@clisp.org>
22645
22646         * gnulib-tool (func_import): Avoid constructing complicated sed
22647         expressions inside backquote.
22648         Report and solution by Mark D. Baushke <mdb@gnu.org>.
22649
22650 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
22651
22652         These changes imported from libc.
22653         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
22654         test and two separate function calls.
22655         * lib/strndup.c (__strndup): Add libc_hidden_def.
22656
22657 2006-01-23  Simon Josefsson  <jas@extundo.com>
22658
22659         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
22660         Remove the test_*_SOURCES variable: automake infers it by default.
22661         * modules/tls-tests: Likewise.
22662
22663 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
22664
22665         Work around porting bugs reported by Dieter in
22666         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
22667         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
22668         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
22669         Include "getopt.h" first, to check interface.
22670         (getenv): Declare only if defined HAVE_DECL_GETENV &&
22671         !HAVE_DECL_GETENV.
22672         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
22673         (__strndup): Revert to K&R-style function dfns, the glibc style.
22674         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
22675         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
22676         Include strnlen.h first, to get prototype properly.
22677         (strnlen): Renamed from __strnlen.
22678         Remove weak alias.
22679
22680 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
22681
22682         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
22683
22684 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
22685
22686         * config/srclist.txt: Adjust to reflect glibc reorganization.
22687         This affects only comments.
22688
22689 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
22690
22691          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
22692          Reported by Bruce Korb <bkorb@gnu.org>.
22693
22694 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
22695
22696         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
22697         to pacify gcc -Wswitch-default.
22698
22699 2006-01-22  Bruno Haible  <bruno@clisp.org>
22700
22701         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
22702         temporary buffer for sprintf, take into account the precision also
22703         for 'd', 'i', 'u', 'o', 'x', 'X'.
22704
22705 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
22706
22707         * modules/argp-tests: New module
22708         * tests/test-argp.c: New file
22709         * tests/test-argp-2.sh: New file
22710
22711 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
22712
22713         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
22714         (__argp_base_name): Removed
22715         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
22716         typo.
22717         (__argp_base_name): Provide macro definition or extern declaration
22718         depending on the configuration
22719
22720 2006-01-20  Simon Josefsson  <jas@extundo.com>
22721
22722         * modules/inet_ntop (Depends-on): Depend on sys_socket.
22723
22724 2006-01-20  Simon Josefsson  <jas@extundo.com>
22725
22726         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
22727
22728 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
22729
22730         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
22731         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
22732         Suggested by Bruno Haible.
22733
22734 2006-01-20  Karl Berry  <karl@gnu.org>
22735
22736         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
22737         until changes propagate, I guess.
22738
22739 2006-01-19  Simon Josefsson  <jas@extundo.com>
22740
22741         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
22742
22743 2006-01-19  Simon Josefsson  <jas@extundo.com>
22744
22745         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
22746
22747 2006-01-19  Simon Josefsson  <jas@extundo.com>
22748
22749         * gnulib-tool: Set check_PROGRAMS.
22750
22751         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
22752         modules/des-tests, modules/gc-arcfour-tests,
22753         modules/gc-arctwo-tests, modules/gc-des-tests,
22754         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
22755         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
22756         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
22757         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
22758         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
22759         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
22760         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
22761         test_*_SOURCES.
22762
22763 2006-01-18  Simon Josefsson  <jas@extundo.com>
22764
22765         * modules/socklen (Depends-on): Depend on sys_socket.
22766
22767 2006-01-18  Simon Josefsson  <jas@extundo.com>
22768
22769         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
22770         modules/des-tests, modules/gc-arcfour-tests,
22771         modules/gc-arctwo-tests, modules/gc-des-tests,
22772         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
22773         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
22774         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
22775         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
22776         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
22777         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
22778         $(EXEEXT) to automake TESTS variable, for mingw32.
22779
22780 2006-01-17  Simon Josefsson  <jas@extundo.com>
22781
22782         * modules/socklen (Include): Need sys/socket.h.
22783
22784 2006-01-17  Bruno Haible  <bruno@clisp.org>
22785
22786         * modules/ssize_t (Include): Add <sys/types.h>.
22787
22788 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
22789
22790         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
22791         it's not portable and it doesn't work with cross-compiles.
22792         Problem reported by Bruno Haible.  Fix missing-$ typo in
22793         'test "gl_cv_ignore_unused_libraries" ...' that prevented
22794         -zignore from being used with Sun's C compiler.
22795
22796 2006-01-12  Simon Josefsson  <jas@extundo.com>
22797
22798         * lib/base64.c: Fix warning, reported by Bruno Haible
22799         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
22800
22801 2006-01-12  Bruno Haible  <bruno@clisp.org>
22802
22803         * modules/ldd: New file.
22804         * build-aux/ldd.sh.in: New file.
22805         * MODULES.html.sh (Support for building libraries and executables): Add
22806         ldd.
22807
22808 2006-01-12  Bruno Haible  <bruno@clisp.org>
22809
22810         * m4/ldd.m4: New file.
22811
22812 2006-01-12  Bruno Haible  <bruno@clisp.org>
22813
22814         * gnulib-tool (func_import, func_create_testdir): Don't go into an
22815         endless loop while replacing $auxdir with build-aux.
22816
22817 2006-01-11  Simon Josefsson  <jas@extundo.com>
22818
22819         * lib/stdint_.h (SIZE_MAX): Add missing (.
22820
22821 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
22822
22823         Sync from coreutils.
22824         * lib/md5.c: Fix commentary typos.
22825         (alignof, UNALIGNED_P): No need for a GCC-specific version.
22826         * lib/md5.h (__attribute__): Remove; unused.
22827         * lib/sha1.c: Fix commentary to match md5 better.
22828         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
22829         so that we don't need to worry about alignment.  All uses changed.
22830         This merges the 2005-10-28 md5 change into sha1.
22831
22832 2006-01-11  Jim Meyering  <jim@meyering.net>
22833
22834         Sync from coreutils.
22835         * lib/md5.c (OP): Fix spacing.
22836
22837 2006-01-11  Bruno Haible  <bruno@clisp.org>
22838
22839         Ensure automatic ordering between gl_LOCK and gl_ARGP.
22840         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
22841         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
22842
22843 2006-01-11  Bruno Haible  <bruno@clisp.org>
22844
22845         Ensure automatic ordering between gl_LOCK and gl_ARGP.
22846         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
22847         the "early" section as well.
22848
22849 2006-01-11  Bruno Haible  <bruno@clisp.org>
22850
22851         Avoid "ar: no archive members specified" error on MacOS X.
22852         * gnulib-tool (func_modules_add_dummy): New function.
22853         (func_import, func_create_testdir): Invoke it.
22854
22855 2006-01-11  Bruno Haible  <bruno@clisp.org>
22856
22857         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
22858         with $auxdir in AC_CONFIG_FILES statements.
22859
22860 2006-01-11  Bruno Haible  <bruno@clisp.org>
22861
22862         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
22863         Initialize also noinst_HEADERS to empty.
22864
22865 2006-01-11  Bruno Haible  <bruno@clisp.org>
22866
22867         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
22868         variables.
22869         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
22870         autoreconf.
22871
22872 2006-01-11  Bruno Haible  <bruno@clisp.org>
22873
22874         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
22875         overridable by the user.
22876         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22877
22878 2006-01-10  Simon Josefsson  <jas@extundo.com>
22879
22880         * modules/sys_socket: New file.
22881
22882 2006-01-10  Simon Josefsson  <jas@extundo.com>
22883
22884         * m4/sys_socket_h.m4: New file.
22885
22886 2006-01-10  Simon Josefsson  <jas@extundo.com>
22887
22888         * lib/socket_.h: New file.
22889
22890 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
22891
22892         * modules/readutmp (Maintainer): Add myself.
22893
22894 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
22895
22896         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
22897         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
22898         People who are still concerned with buggy memcmp implementations
22899         can invoke gl_FUNC_MEMCMP themselves.
22900
22901 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
22902
22903         * lib/regex_internal.h (BITSET_WORD_BITS):
22904         Work around a bug in 64-bit PGC (before version 6.1-2), where the
22905         preprocessor mishandles large unsigned values as if they were signed.
22906         Problem reported by Claudio Fontana in
22907         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
22908
22909 2006-01-10  Jim Meyering  <jim@meyering.net>
22910
22911         Avoid the double-free (first in fts_read, second in fts_close) that
22912         would occur when an `active' directory is made inaccessible (e.g.,
22913         via chmod a-x) during a traversal.
22914         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
22915         before returning.  Reproduce this failure by
22916         mkdir -p a/b; cd a; chmod a-x . b
22917         Reported by Stavros Passas.
22918
22919         Sync from coreutils.
22920         * lib/sha1.c: Tweak grammar in a comment.
22921
22922 2006-01-10  Jim Meyering  <jim@meyering.net>
22923
22924         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
22925         Patch by Joerg Sonnenberger.
22926
22927 2006-01-10  Bruno Haible  <bruno@clisp.org>
22928
22929         * modules/readutmp: Depend on module free.
22930         * modules/strtok_r: Depend on module restrict.
22931
22932 2006-01-10  Bruno Haible  <bruno@clisp.org>
22933
22934         * modules/gettext (configure.ac): Add an invocation of
22935         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
22936
22937 2006-01-10  Bruno Haible  <bruno@clisp.org>
22938
22939         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
22940         Reported by Werner Lemberg <wl@gnu.org>.
22941
22942 2006-01-10  Bruno Haible  <bruno@clisp.org>
22943
22944         * lib/localcharset.c: Update from GNU gettext.
22945
22946 2006-01-10  Bruno Haible  <bruno@clisp.org>
22947
22948         * lib/argp.h (__const): Remove macro. Use const instead.
22949         * lib/argp-fmtstream.h (__const): Likewise.
22950         * lib/glob_.h (__const): Remove macro.
22951         * lib/glob-libc.h: Use const instead of __const.
22952
22953 2006-01-10  Bruno Haible  <bruno@clisp.org>
22954
22955         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
22956         variable.
22957         Needed to avoid an automake error regarding the 'gettext' module.
22958
22959 2006-01-09  Simon Josefsson  <jas@extundo.com>
22960
22961         * modules/inet_ntop (Depends-on): Add restrict.
22962
22963 2006-01-09  Simon Josefsson  <jas@extundo.com>
22964
22965         * modules/gc-rijndael-tests (License): Put under LGPL.
22966
22967         * modules/gc-des-tests (License): Likewise.
22968
22969         * modules/gc-arcfour-tests (License): Likewise.
22970
22971         * modules/gc-arctwo-tests (License): Likewise.
22972
22973         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
22974
22975         * modules/gc-hmac-sha1-tests (Files): Likewise.
22976
22977         * modules/gc-hmac-md5-tests (License): Likewise.
22978
22979         * modules/gc-sha1-tests (License): Likewise.
22980
22981         * modules/gc-md5-tests (License): Likewise.
22982
22983         * modules/gc-md4-tests (License): Likewise.
22984
22985         * modules/gc-md2-tests (License): Likewise.
22986
22987         * modules/gc-tests (License): Likewise.
22988
22989         * modules/des-tests (License): Likewise.
22990
22991         * modules/md4-tests (License): Likewise.
22992
22993         * modules/md2-tests (License): Likewise.
22994
22995 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
22996
22997         Sync from coreutils:
22998
22999         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
23000         * modules/lib-ignore: New file.
23001         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
23002         chdir-safer.m4, lchmod.m4.
23003         * modules/openat: Add mkdirat.c, openat-priv.h.
23004
23005 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
23006
23007         Sync from coreutils.
23008         * m4/lib-ignore.m4: New file.
23009         * m4/lchmod.m4: New file.
23010
23011 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
23012
23013         Sync from coreutils.
23014         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
23015         for write access: POSIX says that must fail.
23016         * lib/fts.c (diropen): Likewise.
23017         * lib/save-cwd.c (save_cwd): Likewise.
23018         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
23019         well, for minor improvements on hosts that lack O_DIRECTORY.
23020         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
23021         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
23022         Fall back on chown if open failed with EACCES.
23023
23024         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
23025         Report an error at compile-time if only a 1-second nominal clock
23026         resolution is found.
23027
23028         * lib/lchmod.h: New file.
23029         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
23030         (make_dir_parents): Use lchown rather than chown, and
23031         lchmod rather than chmod.
23032
23033         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
23034         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
23035         "proc" reported by n0dalus.
23036
23037         * lib/mountlist.c: Include <limits.h>.
23038         (dev_from_mount_options)
23039         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
23040         New function.  It no longer assumes "dev=" has the System V meaning
23041         on Linux (since it doesn't).  It also parses "dev=" more carefully.
23042         (read_file_system_list)
23043         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
23044         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
23045         dev= in that case.
23046
23047         * lib/posixtm.h (PDS_PRE_2000): New macro.
23048         * lib/posixtm.c (year): Arg is now syntax_bits rather than
23049         allow_century.  All usages changed.  Reject dates outside the range
23050         1969-1999 if PDS_PRE_2000 is used.
23051
23052 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
23053
23054         Sync from coreutils.
23055         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
23056         (Time of day items): Mention the possibility of leap seconds.
23057         Problem reported by Dr. David Alan Gilbert.
23058
23059 2006-01-09  Jim Meyering  <jim@meyering.net>
23060
23061         Sync from coreutils.
23062
23063         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
23064
23065         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
23066
23067         * lib/modechange.c (mode_compile): Reject an invalid mode string
23068         that starts with an octal digit.  From Andreas Gruenbacher.
23069
23070         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
23071         and dup to open_safer and dup_safer, respectively.
23072         (openat_permissive): Fix typo in comment.
23073
23074         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
23075         "gettext.h"; either no longer needed or are guaranteed by openat.h.
23076         (_): Remove; no longer needed.
23077         (openat): Renamed from rpl_openat; no need for rpl_openat
23078         since openat.h renames openat for us.
23079         Replace most of the body with a call to openat_permissive,
23080         to avoid duplicate code.
23081         Port to (probably hypothetical) environments were mode_t is
23082         wider than int.
23083         (openat_permissive): Require mode arg, so that we can check
23084         types better.  Put it just after flags.  Change cwd failure
23085         indicator from pointer-to-bool to pointer-to-errno-value.
23086         All callers changed.
23087         Invoke openat_save_fail and/or openat_restore_fail if
23088         cwd_errno is null, so that openat can call us.
23089         (openat_permissive, fdopendir, fstatat, unlinkat):
23090         Simplify errno handling to avoid some duplicate code,
23091         as it's OK to set errno on success.
23092         * lib/openat.h: Revamp code so that function macros depend on
23093         __OPENAT_PREFIX only, not also on AT_FDCWD.
23094         (openat_ro): Remove.  Caller changed to use openat_permissive.
23095         (openat_permissive): Now a macro, if not a function.
23096         (openat_restore_fail, openat_save_fail): Now always functions,
23097         since mkdirat needs them even if __OPENAT_PREFIX is defined.
23098
23099         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
23100         and openat.c.
23101         * lib/mkdirat.c: Include openat-priv.h.
23102         Remove definitions of macros defined therein.
23103         * lib/openat.c: Likewise.
23104
23105         * lib/mkdirat.c (mkdirat): New file and function.
23106         * lib/openat.h (mkdirat): Declare.
23107
23108         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
23109
23110         * lib/openat.h (openat_permissive): Declare.
23111         (openat_ro): Define.
23112
23113         * lib/openat.c (EXPECTED_ERRNO): New macro.
23114         (openat_permissive): New function -- used in remove.c rewrite.
23115         (all functions): Set errno just before returning, only if there
23116         was an actual failure.
23117         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
23118
23119         Emulate openat-family functions using Linux's procfs, if possible.
23120         Idea and some code based on Ulrich Drepper's glibc changes.
23121
23122         * lib/openat.c: (BUILD_PROC_NAME): New macro.
23123         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
23124         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
23125         before falling back on save_cwd and restore_cwd.
23126         (fdopendir, fstatat, unlinkat): Likewise.
23127
23128         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
23129         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
23130
23131         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
23132         as second argument to va_arg.  Otherwise, some versions of gcc
23133         warn that `if this code is reached, the program will abort'.
23134
23135 2006-01-09  Jim Meyering  <jim@meyering.net>
23136
23137         Sync from coreutils.
23138         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
23139         Require openat-priv.h.
23140
23141 2006-01-09  Bruno Haible  <bruno@clisp.org>
23142
23143         * modules/strnlen (Include): Use strnlen.h.
23144
23145 2006-01-09  Bruno Haible  <bruno@clisp.org>
23146
23147         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
23148
23149 2006-01-09  Bruno Haible  <bruno@clisp.org>
23150
23151         * lib/sysexit_.h (EX_OK): New macro.
23152         Suggested by Martin Lambers <marlam@marlam.de>.
23153
23154 2006-01-09  Bruno Haible  <bruno@clisp.org>
23155
23156         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
23157         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
23158
23159 2006-01-09  Bruno Haible  <bruno@clisp.org>
23160
23161         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
23162         numbers.
23163
23164 2006-01-09  Bruno Haible  <bruno@clisp.org>
23165
23166         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
23167         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
23168         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
23169         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
23170
23171 2006-01-09  Bruno Haible  <bruno@clisp.org>
23172
23173         * build-aux/javacomp.sh.in: New file, moved from lib/.
23174         * modules/javacomp-script (Files): Update.
23175         (configure.ac): Add AC_CONFIG_FILES invocation.
23176         (EXTRA_DIST): Remove variable.
23177
23178         * build-aux/javaexec.sh.in: New file, moved from lib/.
23179         * modules/javaexec (Files): Update.
23180         (configure.ac): Add AC_CONFIG_FILES invocation.
23181         (EXTRA_DIST): Remove javaexec.sh.in.
23182
23183         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
23184         * modules/csharpcomp-script (Files): Update.
23185         (configure.ac): Add AC_CONFIG_FILES invocation.
23186         (EXTRA_DIST): Remove variable.
23187
23188         * build-aux/csharpexec.sh.in: New file, moved from lib/.
23189         * modules/csharpexec (Files): Update.
23190         (configure.ac): Add AC_CONFIG_FILES invocation.
23191         (EXTRA_DIST): Remove csharpexec.sh.in.
23192
23193 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
23194
23195         Sync from coreutils.
23196
23197         Add POSIX ACL support
23198         * lib/acl.h (copy_acl, set_acl): Add declarations.
23199         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
23200         systems other than Linux.
23201         (chmod_or_fchmod): New function: use fchmod when possible,
23202         and chmod otherwise.
23203         (file_has_acl): Add a POSIX ACL implementation, with a
23204         Linux-specific subcase.
23205         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
23206         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
23207         acls are unsupported.
23208         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
23209         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
23210         are unsupported.
23211
23212 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
23213
23214         Sync from coreutils.
23215         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
23216
23217 2006-01-07  Bruno Haible  <bruno@clisp.org>
23218
23219         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
23220         gl_EARLY.
23221
23222 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
23223
23224         * lib/strftime.c (tzname): Don't declare if it is already #defined.
23225         Problem reported for Mingw by Mark Junker.
23226
23227 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
23228
23229         * README: Gnulib normally doesn't generate a tarball.
23230
23231 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
23232
23233         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
23234         long int, not int, for nanosecond counts, so that people who are
23235         used to POSIX struct timespec won't be surprised.  Reported by Jim
23236         Meyering.
23237
23238 2005-12-28  Bruno Haible  <bruno@clisp.org>
23239
23240         * build-aux/config.rpath: Update from GNU gettext.
23241
23242 2005-12-16  Jim Meyering  <jim@meyering.net>
23243
23244         * modules/fprintftime: New module.
23245         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
23246
23247 2005-12-16  Jim Meyering  <jim@meyering.net>
23248
23249         * m4/fprintftime.m4: New file.
23250
23251 2005-12-16  Jim Meyering  <jim@meyering.net>
23252
23253         * lib/fprintftime.c, lib/fprintftime.h: New files.
23254
23255 2005-12-15  Simon Josefsson  <jas@extundo.com>
23256
23257         * modules/socklen (configure.ac): Fix M4 macro name, to align with
23258         new m4/socklen.m4.
23259
23260 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
23261
23262         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
23263         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
23264
23265 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
23266
23267         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
23268         * lib/argp-help.c (fill_in_uparams): Check if the constructed
23269         struct uparams is valid. Fall back to the default values if it is
23270         not.
23271
23272 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
23273
23274         * modules/argp (Files): Add argp-pin.c
23275         (Depends-on): dirname
23276         (lib_SOURCES): Add argp-pin.c
23277
23278 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
23279
23280         * m4/argp.m4:  Check if program_invocation_name and
23281         program_invocation_short_name are declared and define appropriate
23282         macros if they are not.
23283
23284 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
23285
23286         * lib/argp-help.c (__argp_base_name): New function
23287         (__argp_short_program_name): Rewrite using __argp_base_name
23288         * lib/argp-namefrob.h: Define program_invocation_name and
23289         program_invocation_short_name if requested
23290         (__argp_base_name): Add prototype
23291         * lib/argp-parse.c (argp_def): Use gettext wrappers
23292         (argp_default_parser): Use __argp_base_name
23293         * lib/argp-pin.c: New file. Defines program_invocation_name and
23294         program_invocation_short_name on systems that lack them.
23295
23296 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
23297
23298         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
23299         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
23300         porting problem reported by Georg Schwarz in
23301         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
23302
23303 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
23304
23305         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
23306         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
23307         porting problem reported by Georg Schwarz in
23308         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
23309
23310 2005-12-05  Bruno Haible  <bruno@clisp.org>
23311
23312         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
23313         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
23314         Reported by Mark Junker <mjscod@gmx.de>.
23315
23316 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
23317
23318         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
23319         Use implementation from Albert Chin, with some
23320         comments/corrections by Stepan Kasal and myself.
23321
23322 2005-12-02  Bruno Haible  <bruno@clisp.org>
23323
23324         * gnulib-tool (func_import): Accept GPLed build tool modules when
23325         --lgpl is given.
23326         * modules/csharpcomp-script: New file.
23327         * modules/csharpcomp: Depend on it.
23328         * modules/javacomp-script: New file.
23329         * modules/javacomp: Depend on it.
23330         Suggested by Simon Josefsson.
23331
23332 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
23333
23334         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
23335         statement, to work around an HP-UX 10.20 compiler bug reported by
23336         Peter O'Gorman.
23337
23338 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
23339
23340         * modules/savedir (Depends-on): Add openat.
23341
23342 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
23343
23344         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
23345         (uintmax_t) [defined uintmax_t]: Do not declare.
23346         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
23347         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
23348         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
23349         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
23350         sake of portability to weird hosts that C allows (though we don't
23351         know of any practical examples).
23352
23353         * lib/savedir.h (fdsavedir): New decl.
23354         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
23355         contains most of the former guts of savedir.
23356         (savedir): Use savedirstream.
23357         Include "openat.h".
23358
23359 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
23360
23361         * modules/obstack (Files): Add m4/ulonglong.m4.
23362         Problem reported by Davide Angelocola.
23363
23364 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
23365
23366         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
23367         coreutils no longer futzes with rounding modes.
23368
23369 2005-11-14  Jim Meyering  <jim@meyering.net>
23370
23371         * lib/mkstemp-safer.c: Include <config.h>, required for possible
23372         replacement of mkstemp.
23373
23374 2005-11-10  Simon Josefsson  <jas@extundo.com>
23375
23376         * lib/readline.c: Remove EOL.
23377
23378 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
23379
23380         * modules/gethrxtime (Depends-on): Add gettime.
23381
23382 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
23383
23384         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
23385         or gettimeofday; no longer needed.
23386
23387 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
23388
23389         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
23390         time business.
23391         (gethrxtime) [! (HAVE_NANOUPTIME
23392         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
23393         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
23394         our own approximation.
23395
23396 2005-11-08  Eric Blake  <ebb9@byu.net>
23397
23398         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
23399
23400 2005-11-08  Eric Blake  <ebb9@byu.net>
23401
23402         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
23403
23404 2005-11-04  Bruno Haible  <bruno@clisp.org>
23405
23406         * gnulib-tool: Implement --update mode.
23407
23408 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
23409
23410         Fix porting problem reported by Theodoros V. Kalamatianos.
23411         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
23412         Don't assume that futimes failing means we must fail.
23413
23414 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
23415
23416         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
23417         variables to suggest the intended function of the PATH_MAX check.
23418
23419 2005-10-30  Kean Johnston  <jkj@sco.com>
23420
23421         Trivial changes to support SCO systems.
23422         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
23423         as PATH_MAX.
23424         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
23425         where __ptr is null when no I/O is pending.
23426
23427 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
23428
23429         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
23430         leave errno alone.  Problem reported by Dmitry V. Levin.
23431
23432 2005-10-28  Simon Josefsson  <jas@extundo.com>
23433
23434         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
23435         Test more.
23436
23437         * tests/test-gc-md2.c, tests/test-md2.c: New files.
23438
23439         * modules/md2, modules/md2-tests: New files.
23440
23441 2005-10-28  Simon Josefsson  <jas@extundo.com>
23442
23443         * m4/inet_ntop.m4: More tests.
23444
23445         * m4/gc-md2.m4, md2.m4: New file.
23446
23447 2005-10-28  Simon Josefsson  <jas@extundo.com>
23448
23449         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
23450         "restrict" keywords, as per POSIX.  Protect the function
23451         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
23452         Don't use K&R prototypes.  Check the sprintf return values.
23453         Re-define EAFNOSUPPORT if not present.  Indent.
23454
23455         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
23456         suggested by Bruno Haible <bruno@clisp.org>.
23457
23458         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
23459
23460         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
23461
23462         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
23463         libgcrypt).
23464
23465         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
23466
23467         * lib/md2.h, lib/md2.c: New files.
23468
23469 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
23470
23471         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
23472         errno alone.  Problem reported by Frederic Jolliton.
23473
23474 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
23475
23476         * modules/verify (License): Change from GPL to LGPL.  This is a
23477         tiny module and there are apparently near-equivalents that are
23478         under the BSD license.
23479
23480 2005-10-24  Simon Josefsson  <jas@extundo.com>
23481
23482         * modules/sha1: Relicense to LGPL.
23483
23484 2005-10-24  Simon Josefsson  <jas@extundo.com>
23485
23486         * lib/md4.h: Shrink buffer size, now that we changed the type.
23487
23488 2005-10-23  Simon Josefsson  <jas@extundo.com>
23489
23490         * gnulib-tool (func_import): Fix --tests-base.
23491
23492 2005-10-22  Simon Josefsson  <jas@extundo.com>
23493
23494         * modules/arcfour (Depends-on): Need stdint.
23495
23496 2005-10-22  Simon Josefsson  <jas@extundo.com>
23497
23498         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
23499         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
23500
23501 2005-10-22  Simon Josefsson  <jas@extundo.com>
23502
23503         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
23504         suggested by Bruno Haible <bruno@clisp.org>.
23505
23506 2005-10-22  Simon Josefsson  <jas@extundo.com>
23507
23508         * lib/crc.h: Include stddef.h, for size_t.
23509
23510 2005-10-22  Simon Josefsson  <jas@extundo.com>
23511
23512         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
23513         arcfour_context struct (simplify test vector testing in GNU
23514         Shishi).
23515
23516 2005-10-21  Simon Josefsson  <jas@extundo.com>
23517
23518         * modules/des, modules/des-tests: New files.
23519
23520         * modules/gc-des, modules/gc-des-tests: New files.
23521
23522         * tests/test-des.c, tests/test-gc-des.c: New file.
23523
23524 2005-10-21  Simon Josefsson  <jas@extundo.com>
23525
23526         * modules/arctwo, modules/arctwo-tests: New files.
23527
23528         * tests/test-arctwo.c: New file.
23529
23530         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
23531
23532         * tests/test-gc-arctwo.c: New file.
23533
23534 2005-10-21  Simon Josefsson  <jas@extundo.com>
23535
23536         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
23537         Bruno Haible <bruno@clisp.org>.
23538
23539         * m4/gc-des.m4: New file.
23540
23541 2005-10-21  Simon Josefsson  <jas@extundo.com>
23542
23543         * m4/arctwo.m4: New file.
23544
23545         * m4/gc-arctwo.m4: New file.
23546
23547 2005-10-21  Simon Josefsson  <jas@extundo.com>
23548
23549         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
23550         block.
23551
23552 2005-10-21  Simon Josefsson  <jas@extundo.com>
23553
23554         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
23555         <bruno@clisp.org>.
23556
23557         * lib/hmac-sha1.c (hmac_sha1): Likewise.
23558
23559         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
23560         Bruno Haible <bruno@clisp.org>.
23561
23562         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
23563         <bruno@clisp.org>.
23564
23565 2005-10-21  Simon Josefsson  <jas@extundo.com>
23566
23567         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
23568
23569 2005-10-21  Simon Josefsson  <jas@extundo.com>
23570
23571         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
23572
23573 2005-10-21  Simon Josefsson  <jas@extundo.com>
23574
23575         * lib/des.h, lib/des.c: New files.
23576
23577         * lib/gc-gnulib.c: Support DES.c
23578
23579 2005-10-21  Simon Josefsson  <jas@extundo.com>
23580
23581         * lib/arctwo.h, lib/arctwo.c: New files.
23582
23583         * lib/gc-gnulib.c: Support ARCTWO.
23584
23585 2005-10-21  Simon Josefsson  <jas@extundo.com>
23586
23587         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
23588         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23589
23590 2005-10-21  Simon Josefsson  <jas@extundo.com>
23591
23592         * gnulib-tool (func_import, func_create_testdir): Define automake
23593         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
23594         Makefile.am snippet),
23595         suggested by Bruno Haible <bruno@clisp.org>.
23596
23597         * modules/gc (Makefile.am): Use it.
23598
23599 2005-10-21  Bruno Haible  <bruno@clisp.org>
23600
23601         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
23602         patch.
23603
23604 2005-10-19  Simon Josefsson  <jas@extundo.com>
23605
23606         * tests/test-gc-rijndael.c: New file.
23607
23608         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
23609
23610 2005-10-19  Simon Josefsson  <jas@extundo.com>
23611
23612         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
23613         interface too.
23614
23615 2005-10-19  Simon Josefsson  <jas@extundo.com>
23616
23617         * tests/test-gc-arcfour.c: New file.
23618
23619         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
23620
23621 2005-10-19  Simon Josefsson  <jas@extundo.com>
23622
23623         * modules/gc-md4, modules/gc-md4-tests: New file.
23624
23625         * tests/test-gc-md4.c: New file.
23626
23627 2005-10-19  Simon Josefsson  <jas@extundo.com>
23628
23629         * m4/gc-md4.m4: New file.
23630
23631 2005-10-19  Simon Josefsson  <jas@extundo.com>
23632
23633         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
23634         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
23635         <kasal@ucw.cz>.
23636
23637 2005-10-19  Simon Josefsson  <jas@extundo.com>
23638
23639         * m4/gc-arcfour.m4: New file.
23640
23641         * m4/gc-rijndael.m4: New file.
23642
23643 2005-10-19  Simon Josefsson  <jas@extundo.com>
23644
23645         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
23646
23647 2005-10-19  Simon Josefsson  <jas@extundo.com>
23648
23649         * lib/gc-gnulib.c: Support ARCFOUR.
23650
23651 2005-10-19  Simon Josefsson  <jas@extundo.com>
23652
23653         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
23654         support.
23655
23656         * lib/gc.h: Add ECB enum type.
23657
23658         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
23659
23660 2005-10-18  Simon Josefsson  <jas@extundo.com>
23661
23662         * tests/test-md5.c: New file.
23663
23664         * modules/md5-tests: New file.
23665
23666 2005-10-18  Simon Josefsson  <jas@extundo.com>
23667
23668         * tests/test-md4.c: New file.
23669
23670         * modules/md4, modules/md4-tests: New files.
23671
23672 2005-10-18  Simon Josefsson  <jas@extundo.com>
23673
23674         * m4/md4.m4: New file.
23675
23676 2005-10-18  Simon Josefsson  <jas@extundo.com>
23677
23678         * lib/md4.h, lib/md4.c: New files, based on md5.?.
23679
23680 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
23681
23682         * gnulib-tool (func_create_testdir): Omit the second check whether
23683         BUILT_SOURCES in nonempty.
23684
23685 2005-10-17  Simon Josefsson  <jas@extundo.com>
23686
23687         * tests/test-rijndael.c: New file.
23688
23689 2005-10-17  Simon Josefsson  <jas@extundo.com>
23690
23691         * modules/sha1: Depend on stdint instead of md5.
23692
23693         * modules/md5: Depend on stdint, remove uint32_t.
23694
23695 2005-10-17  Simon Josefsson  <jas@extundo.com>
23696
23697         * modules/gc-sha1-tests: New file.
23698
23699         * tests/test-gc-sha1.c: New file.
23700
23701 2005-10-17  Simon Josefsson  <jas@extundo.com>
23702
23703         * m4/md5.m4: Remove call to uint32_t.m4.
23704
23705 2005-10-17  Simon Josefsson  <jas@extundo.com>
23706
23707         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
23708
23709         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
23710         md5.h.
23711
23712         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
23713
23714         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
23715
23716 2005-10-17  Simon Josefsson  <jas@extundo.com>
23717
23718         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
23719
23720 2005-10-17  Simon Josefsson  <jas@extundo.com>
23721
23722         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
23723
23724 2005-10-17  Simon Josefsson  <jas@extundo.com>
23725
23726         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
23727
23728         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
23729
23730 2005-10-17  Bruno Haible  <bruno@clisp.org>
23731
23732         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
23733         that it can also be used in a test.
23734
23735 2005-10-16  Bruno Haible  <bruno@clisp.org>
23736
23737         * gnulib-tool (func_emit_tests_Makefile_am): Also define
23738         TESTS_ENVIRONMENT, so that individual tests can augment it.
23739
23740         * gnulib-tool (func_create_testdir): Use an intermediate target for
23741         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
23742         macros, like $(ALLOCA_H), which cannot be passed through the command
23743         line.
23744
23745 2005-10-15  Simon Josefsson  <jas@extundo.com>
23746
23747         * modules/rijndael-tests: New file.
23748
23749         * modules/rijndael: New file.
23750
23751 2005-10-15  Simon Josefsson  <jas@extundo.com>
23752
23753         * m4/rijndael.m4: New file.
23754
23755 2005-10-15  Simon Josefsson  <jas@extundo.com>
23756
23757         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
23758
23759         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
23760
23761 2005-10-14  Simon Josefsson  <jas@extundo.com>
23762
23763         * tests/test-arcfour.c: New file.
23764
23765         * modules/arcfour, modules/arcfour-tests: New files.
23766
23767 2005-10-14  Simon Josefsson  <jas@extundo.com>
23768
23769         * m4/arcfour.m4: New file.
23770
23771 2005-10-14  Simon Josefsson  <jas@extundo.com>
23772
23773         * lib/arcfour.h, lib/arcfour.c: New files.
23774
23775 2005-10-14  Roland McGrath  <roland@redhat.com>
23776
23777         Import from libc.  [BZ #1331]
23778         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
23779         macro argument.
23780         Reported by Matej Vela <vela@debian.org>.
23781
23782 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
23783
23784         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
23785         include <wchar.h>; no longer needed.
23786
23787 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
23788
23789         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
23790
23791 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
23792         and  Ulrich Drepper  <drepper@redhat.com>
23793
23794         Import from libc.
23795         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
23796         instead of inline stream orientation test and two separate
23797         function calls.  Pay no attention to USE_IN_LIBIO.
23798
23799 2005-10-13  Simon Josefsson  <jas@extundo.com>
23800
23801         * modules/gc-hmac-md5-tests: New file.
23802
23803         * tests/test-gc-hmac-sha1.c: New file.
23804
23805         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
23806
23807         * modules/gc-hmac-md5-tests: New file.
23808
23809         * tests/test-gc-md5.c: New file.
23810
23811         * modules/gc-md5-tests: New file.
23812
23813 2005-10-13  Simon Josefsson  <jas@extundo.com>
23814
23815         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
23816         Move memory allocation outside of loop.
23817
23818 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
23819
23820         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
23821         intermediate directory is in a read-only file system.  Problem
23822         reported by Eric Blake.
23823
23824 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
23825
23826         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
23827
23828 2005-10-12  Simon Josefsson  <jas@extundo.com>
23829
23830         * tests/test-hmac-sha1.c: New file.
23831
23832         * modules/hmac-sha1-tests: New file.
23833
23834         * modules/hmac-sha1: New file.
23835
23836 2005-10-12  Simon Josefsson  <jas@extundo.com>
23837
23838         * modules/gc-sha1: New file.
23839
23840 2005-10-12  Simon Josefsson  <jas@extundo.com>
23841
23842         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
23843
23844         * tests/test-gc-pbkdf2-sha1.c: New file.
23845
23846 2005-10-12  Simon Josefsson  <jas@extundo.com>
23847
23848         * modules/gc-md5, modules/gc-hmac-md5: New files.
23849
23850         * modules/gc (Files): Remove md5, memxor and hmac files.
23851
23852 2005-10-12  Simon Josefsson  <jas@extundo.com>
23853
23854         * m4/gc-pbkdf2-sha1.m4: New file.
23855
23856         * m4/gc-hmac-sha1.m4: New file.
23857
23858         * m4/gc-sha1: New file.
23859
23860         * m4/hmac-sha1.m4: New file.
23861
23862 2005-10-12  Simon Josefsson  <jas@extundo.com>
23863
23864         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
23865
23866         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
23867
23868 2005-10-12  Simon Josefsson  <jas@extundo.com>
23869
23870         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
23871         suggested by Bruno Haible <bruno@clisp.org>.
23872
23873 2005-10-12  Simon Josefsson  <jas@extundo.com>
23874
23875         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
23876
23877 2005-10-12  Simon Josefsson  <jas@extundo.com>
23878
23879         * lib/gc-pbkdf2-sha1.c: New file.
23880
23881         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
23882
23883 2005-10-12  Simon Josefsson  <jas@extundo.com>
23884
23885         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
23886
23887         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
23888
23889 2005-10-12  Simon Josefsson  <jas@extundo.com>
23890
23891         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
23892         GC_USE_HMAC_MD5, respectively.
23893
23894         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
23895         (gc_md5): Fix typo.
23896
23897         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
23898
23899         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
23900
23901         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
23902
23903 2005-10-12  Bruno Haible  <bruno@clisp.org>
23904
23905         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
23906         Reported by Stepan Kasal <kasal@ucw.cz>.
23907
23908 2005-10-11  Simon Josefsson  <jas@extundo.com>
23909
23910         * tests/test-crc.c: New file.
23911
23912         * modules/crc, modules/crc-tests: New files.
23913
23914 2005-10-11  Simon Josefsson  <jas@extundo.com>
23915
23916         * m4/crc.m4: New file.
23917
23918 2005-10-11  Simon Josefsson  <jas@extundo.com>
23919
23920         * lib/gc.h: Add gc_hash and gc_hash_buffer.
23921
23922         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
23923
23924         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
23925
23926 2005-10-11  Simon Josefsson  <jas@extundo.com>
23927
23928         * lib/crc.h, lib/crc.c: New files.
23929
23930         * lib/gc.h (gc_hash_buffer): Add doc.
23931
23932 2005-10-11  Bruno Haible  <bruno@clisp.org>
23933
23934         * modules/c-strcasestr: New file.
23935         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
23936
23937 2005-10-11  Bruno Haible  <bruno@clisp.org>
23938
23939         * modules/c-strcase: New file.
23940         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
23941
23942 2005-10-11  Bruno Haible  <bruno@clisp.org>
23943
23944         * lib/strcasecmp.c: Include limits.h.
23945         (strcasecmp): Avoid integer overflow on exotic platforms.
23946         * lib/strncasecmp.c: Include limits.h.
23947         (strncasecmp): Avoid integer overflow on exotic platforms.
23948         Reported by Paul Eggert.
23949
23950 2005-10-11  Bruno Haible  <bruno@clisp.org>
23951
23952         * lib/c-strcasestr.h: New file, from GNU gettext.
23953         * lib/c-strcasestr.c: New file, from GNU gettext.
23954
23955 2005-10-11  Bruno Haible  <bruno@clisp.org>
23956
23957         * lib/c-strcase.h: New file, from GNU gettext.
23958         * lib/c-strcasecmp.c: New file, from GNU gettext.
23959         * lib/c-strncasecmp.c: New file, from GNU gettext.
23960
23961 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
23962
23963         * modules/mempcpy (License): GPL -> LGPL.
23964         * modules/strchrnul (License): Likewise.
23965         * modules/sysexits (License): Likewise.
23966
23967 2005-10-08  Simon Josefsson  <jas@extundo.com>
23968
23969         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
23970
23971 2005-10-07  Simon Josefsson  <jas@extundo.com>
23972
23973         * m4/memxor.m4: Remove gl_C_RESTRICT call.
23974
23975 2005-10-06  Simon Josefsson  <jas@extundo.com>
23976
23977         * tests/test-hmac-md5.c: New file.
23978
23979         * modules/hmac-md5-tests: New file.
23980
23981         * modules/hmac-md5: New file.
23982
23983 2005-10-06  Simon Josefsson  <jas@extundo.com>
23984
23985         * m4/hmac-md5.m4: New file.
23986
23987         * m4/memxor.m4: Require gl_C_RESTRICT.
23988
23989 2005-10-06  Simon Josefsson  <jas@extundo.com>
23990
23991         * lib/memxor.c (memxor): Avoid casts and warnings.
23992
23993 2005-10-06  Simon Josefsson  <jas@extundo.com>
23994
23995         * lib/hmac-md5.c: New file.
23996
23997         * lib/hmac.h: New file.
23998
23999 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
24000
24001         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
24002         promotes to int, not unsigned int, to catch the AIX 5.3
24003         compiler bug.
24004
24005 2005-10-05  Simon Josefsson  <jas@extundo.com>
24006
24007         * modules/memxor: New file.
24008
24009         * modules/iconv (Files): Move config.rpath to havelib, it is used
24010         there.
24011
24012         * modules/havelib (Files): Add config.rpath.
24013
24014 2005-10-05  Simon Josefsson  <jas@extundo.com>
24015
24016         * m4/memxor.m4: New file.
24017
24018 2005-10-05  Simon Josefsson  <jas@extundo.com>
24019
24020         * lib/memxor.c (memxor): Fix compiler error.
24021
24022         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
24023         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
24024
24025         * lib/memxor.h, lib/memxor.c: New files.
24026
24027         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
24028         we assume all systems have it, suggested by Jim Meyering
24029         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
24030         any systems lack sys/socket.h; mingw32 is known to lack it, but we
24031         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
24032         same reasons.
24033
24034 2005-10-05  Simon Josefsson  <jas@extundo.com>
24035
24036         * config/srclist.txt: Add glibc bug 1423 for md5.h.
24037
24038 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
24039
24040         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
24041         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
24042         needed, since the source code now assumes these .h files.
24043
24044 2005-10-05  Derek Price  <derek@ximbiot.com>
24045
24046         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
24047
24048 2005-10-05  Bruno Haible  <bruno@clisp.org>
24049
24050         * modules/stdint (License): Change to LGPL.
24051
24052 2005-10-04  Simon Josefsson  <jas@extundo.com>
24053
24054         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
24055         D. Baushke" <mdb@gnu.org>.
24056
24057 2005-10-04  Bruno Haible  <bruno@clisp.org>
24058
24059         * lib/verify.h (verify_true): Provide alternative definition for C++.
24060
24061 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
24062
24063         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
24064         (SSIZE_MAX): New macro, if not already defined.
24065         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
24066         than 2 GiB.
24067
24068 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
24069
24070         Sync from coreutils.
24071         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
24072         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
24073         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
24074         ULLONG_MAX doesn't work with 2.7.2.1.
24075
24076 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
24077
24078         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
24079         From Ben Pfaff.
24080
24081         * modules/exclude (Depends-on): Depend on verify.
24082         * modules/strtoimax (Depends-on): Likewise.
24083         * modules/utimecmp (Depends-on): Likewise.
24084
24085 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
24086
24087         * lib/exclude.c: Include verify.h.
24088         (verify): Remove.  All callers changed to use verify.h's version.
24089         * lib/strtoimax.c: Likewise.
24090         * lib/utimecmp.c: Likewis.e
24091
24092         Sync from coreutils.
24093         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
24094         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
24095         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
24096         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
24097         bother returning ENOSYS if settimeofday or stime fails; just let
24098         them return whatever errno they want to return.
24099         * lib/utimens.c: Include unistd.h, for dup2.
24100         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
24101         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
24102
24103 2005-10-02  Jim Meyering  <jim@meyering.net>
24104
24105         Sync from coreutils.
24106         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
24107         from glibc-2.2.5 that fails for read-only files.
24108
24109 2005-10-02  Jim Meyering  <jim@meyering.net>
24110
24111         Sync from coreutils.
24112         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
24113         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
24114         `#if HAVE_CONFIG_H'.
24115         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
24116         Remove AT_FDCWD test.
24117         Do not consume the fd unless successful.
24118         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
24119         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
24120         block, so that we don't even try to compile it if settimeofday is
24121         available.  This works around a compilation failure on OSF1 V5.1,
24122         due to stime requiring a `long int*' while tv_sec is `int'.
24123
24124 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
24125
24126         Sync from coreutils.
24127         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
24128         against `yes', rather than just testing for nonempty.
24129
24130 2005-10-01  Simon Josefsson  <jas@extundo.com>
24131
24132         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
24133         and Darwin.
24134
24135         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
24136         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
24137         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
24138         freeaddrinfo and gai_strerror are declared by the POSIX headers.
24139         Check if struct addrinfo is declared.
24140
24141 2005-10-01  Simon Josefsson  <jas@extundo.com>
24142
24143         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
24144         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
24145         AI_* and EAI_* definitions.  Protect function declarations.
24146
24147 2005-10-01  Jim Meyering  <jim@meyering.net>
24148
24149         Sync from coreutils.
24150
24151         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
24152         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
24153         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
24154         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
24155         in the inet and nsl libraries.  Required on Solaris 5.7.
24156
24157 2005-10-01  Jim Meyering  <jim@meyering.net>
24158
24159         Sync from coreutils.
24160         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
24161         in the inet and nsl libraries.  Required on Solaris 5.7.
24162
24163 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
24164
24165         * lib/getdelim.c (getdelim): Remove unused variables.
24166
24167 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
24168
24169         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
24170         so that the code works even with ancient cpp.  Portability problem
24171         with GCC 2.7.2.1 reported by Thomas M.Ott.
24172
24173 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
24174
24175         * modules/regex (Depends-on): Add strcase.
24176
24177         * modules/gethostname (Licence): Change from GPL to LGPL, since
24178         gethostname.c is a trivial implementation of a standard library
24179         function.
24180         * modules/poll (License): Change from GPL to LGPL, since it's
24181         derived from LGPL code.
24182
24183 2005-09-27  Jim Meyering  <jim@meyering.net>
24184
24185         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
24186         HAVE_CONFIG_H.
24187
24188         * lib/intprops.h (signed_type_or_expr__): Define.
24189         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
24190         for unsigned types.
24191
24192 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
24193
24194         * lib/verify.h (verify_expr): Remove, replacing with:
24195         (verify_true): New macro that returns true instead of void.
24196         (verify_type__): Remove.
24197         (verify): Use verify_true rather than verify_type__.
24198
24199 2005-09-26  Bruno Haible  <bruno@clisp.org>
24200
24201         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
24202         is necessary.
24203         (lib_SOURCES): Remove mbchar.c.
24204         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
24205         (Files): Add m4/mbrtowc.m4.
24206         * modules/mbiter: Likewise.
24207         * modules/mbuiter: Likewise.
24208
24209 2005-09-26  Bruno Haible  <bruno@clisp.org>
24210
24211         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
24212         compile mbchar.c if they are not both present.
24213         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
24214         * m4/mbiter.m4 (gl_MBITER): Likewise.
24215         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
24216         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
24217         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
24218
24219 2005-09-25  Jim Meyering  <jim@meyering.net>
24220
24221         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
24222         also uses socklen_t.
24223
24224 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
24225
24226         * lib/utimens.c (ENOSYS): Define if not already defined.
24227         (futimens): Support having a null PATH if the file descriptor
24228         is nonnegative.
24229
24230         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
24231         Remove.
24232         (__attribute): Define to empty unless GCC 3.1 or later.
24233         This works around a core dump on OpenBSD 3.4, which has GCC
24234         2.95.3, which dumps core when given __attribute__(()).  It also
24235         simplifies other tests, since we really don't want to bother with
24236         worrying about which ancient version of GCC supported what.
24237         Original problem reported by Yoann Vandoorselaere, with part of
24238         the fix suggested by Derek Price.
24239
24240 2005-09-24  Jim Meyering  <jim@meyering.net>
24241
24242         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
24243         so we can once again use a positive bitfield width of 1 -- now we
24244         don't have to explain why we were using a bitfield width of 2.
24245
24246 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
24247
24248         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
24249         and similarly for the other external symbols.  Problem reported
24250         by James Gallager.
24251
24252         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
24253         bug reported by Jim Meyering.
24254
24255         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
24256         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
24257         not needed, since socklen is a prerequisite module.
24258
24259 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
24260
24261         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
24262         Problem reported by Eric Blake.
24263         (getaddrinfo): Initialize se so that it's not garbage.
24264         Redo internal storage allocation so that it doesn't make unportable
24265         assumptions about alignment.
24266         Fix a memory leak.
24267
24268         * lib/utimens.c (futimens): Use futimesat if available.
24269         Prefer it to futimes since it doesn't have the futimes bug.
24270
24271         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
24272         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
24273         Instead, declare a function that returns a pointer to an array,
24274         and use verify_type__ to declare the size of the array.
24275         Problem and germ of a solution reported by Bruno Haible.
24276         (verify_type__): Use 2, not 1, for bitfield size, to avoid
24277         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
24278
24279 2005-09-23  Jim Meyering  <jim@meyering.net>
24280
24281         Sync from coreutils.
24282         Correct build failure (socklen_t not defined) on at least
24283         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
24284         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
24285
24286 2005-09-23  Jim Meyering  <jim@meyering.net>
24287
24288         * modules/getaddrinfo (Depends-on): Add socklen.
24289
24290 2005-09-23  Bruno Haible  <bruno@clisp.org>
24291
24292         * tests/test-verify.c: New file.
24293
24294 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
24295
24296         Sync from coreutils.
24297
24298         * modules/argmatch (Depends-on): Add verify.
24299         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
24300         unistd-safer.
24301         * modules/save-cwd (Depends-on): Likewise.
24302
24303         * modules/openat (Files): Add lib/openat-die.c.
24304         (Depends-on): Remove error, exitfail.
24305         Add dirname.
24306
24307         * modules/verify: New file.
24308         * MODULES.html.sh (Diagnostics <assert.h>): New section,
24309         with "verify" module.
24310
24311 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
24312
24313         Sync from coreutils.
24314
24315         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
24316         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
24317         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
24318         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
24319         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
24320         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
24321         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
24322         Don't bother checking for string.h, stdlib.h, unistd.h.
24323         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
24324         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
24325         module's job.
24326         * m4/jm-macros.m4 (gl_MACROS): Likewise.
24327         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
24328
24329         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
24330         (gl_GETDATE): Use it.
24331
24332         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
24333
24334 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
24335
24336         Sync from coreutils.
24337
24338         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
24339         stat-time.h.
24340         * lib/argmatch.h: Include verify.h
24341         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
24342         (ARGMATCH_ASSERT): Remove; unused.
24343         * lib/canonicalize.c: Assume STDC_HEADERS.
24344         * lib/exclude.c: Include "strcase.h".
24345         * lib/regex_internal.h [!defined _LIBC]: Likewise.
24346         * lib/getusershell.c: Include stdio--.h rather than stdio.h
24347         and stdio-safer.h.
24348         (getusershell): Call fopen, not fopen_safer.
24349         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
24350         Do not include unistd-safer.h.
24351         (save_cwd): Don't call fd_safer; no longer needed
24352         now that we include fcntl--.h.
24353
24354         * lib/getdate.y (relative_time): New type.
24355         (RELATIVE_TIME_0): New constant.
24356         (parser_control): Use relative_time instead of doing it ourselves.
24357         (%union): Add new relative_time rel member.
24358         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
24359         Now typeless.
24360         (relunit, relunit_snumber): Now of type rel.
24361         (zone, rel, relunit, get_date): Adjust to above changes.
24362
24363         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
24364         Do not include unistd-safer.h.
24365         (getloadavg): Don't call fd_safer; no longer needed
24366         now that we include fcntl--.h.
24367
24368         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
24369         (make_dir_parents): Treat ENOSYS like EEXIST.
24370
24371         Improve quality of diagnostics on restore_cwd failure.
24372         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
24373         (make_dir_parents): Last arg is now int * (for errno), not bool *.
24374         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
24375         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
24376         each time through the loop.  Do not diagnose restore_cwd failure;
24377         that is the caller's job (and perhaps the caller does not care).
24378
24379         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
24380         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
24381         If the file already exists but is not a directory, don't bother
24382         to try to make its parents.
24383         Close potential file descriptor leak if we can't chdir("/") (!).
24384         Don't always return true if chdir($PWD) fails; return true only
24385         if the requested action was done successfully (except for the
24386         chdir($PWD)).
24387         Don't log final directory unless we actually made it.
24388         Refactor to avoid duplicate code to fix up permissions.
24389         Don't attempt to fix up parent permissions if chdir($PWD) fails.
24390
24391         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
24392         to make it a bit faster and (I hope) clearer.
24393         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
24394         Fix bug in formats like %2N.
24395
24396         * lib/verify.h: New file.
24397
24398 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
24399
24400         Sync from coreutils.
24401         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
24402
24403 2005-09-22  Jim Meyering  <jim@meyering.net>
24404
24405         Sync from coreutils.
24406
24407         * m4/lstat.m4 (gl_FUNC_LSTAT):
24408         Use AC_LIBSOURCES to require lstat.c and lstat.h.
24409         Remove obsolete comment.
24410         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
24411         * m4/xstrtod.m4: Likewise.
24412
24413         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
24414
24415 2005-09-22  Jim Meyering  <jim@meyering.net>
24416
24417         Sync from coreutils.
24418
24419         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
24420
24421         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
24422         the .tm_year member, since otherwise gcc-4.0 would now warn about
24423         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
24424
24425         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
24426         order to avoid an unsuppressible warning from gcc on 64-bit systems.
24427
24428         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
24429         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
24430         when run in a time zone for which daylight savings time is in effect
24431         for the starting date.
24432
24433         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
24434         stop us from restricting permissions of just-created absolute-named
24435         directories.
24436         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
24437         to restore initial working directory.
24438         * lib/mkdir-p.c (make_dir_parents): New parameter:
24439         different_working_dir, to tell caller if/when we change the working
24440         directory and are unable to return to the initial one.
24441         * lib/mkdir-p.h (make_dir_parents): Update prototype.
24442         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
24443         `return false'.  This fixes a bug introduced on 2004-07-30.
24444
24445         * lib/openat.c (fdopendir): Be sure to close the supplied
24446         file descriptor before returning.  This makes our replacement
24447         implementation a little closer to Solaris's, where fdopendir
24448         ties the file descriptor to the returned DIR* pointer.
24449         * lib/openat.c (unlinkat): New function.
24450         * lib/openat.h (unlinkat): Add prototype.
24451         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
24452         (openat_restore_fail): Rename from openat_restore_die.
24453         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
24454
24455         Provide an alternative to exiting immediately upon save_cwd or
24456         restore_cwd failure.  Now, an application can arrange e.g.,
24457         to perform a longjump in that case.
24458         * lib/openat.c: Include dirname.h.
24459         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
24460         (rpl_openat, fdopendir, fstatat): Call openat_save_die
24461         and openat_restore_die rather than calling error directly.
24462         Don't include "error.h" or "exitfail.h"; they're no longer needed.
24463
24464         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
24465         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
24466         define.
24467
24468         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
24469         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
24470                             int utc, int nanoseconds);
24471         Background:
24472         date should not have to allocate a megabyte of virtual memory to
24473         handle a format argument like +%1048575T.  When implemented with
24474         strftime, it must allocate such a buffer, use strftime to fill it
24475         in, print it, then free it.
24476         With fprintftime, it simply prints everything and exits.
24477         With no need for memory allocation, that's one fewer way to fail.
24478         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
24479         optional field width, not before, so we accept %9:z, not %:9z.
24480         (my_strftime): Be sure to use L_('x') for literals.
24481
24482         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
24483         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
24484         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
24485         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
24486         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
24487         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
24488         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
24489         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
24490         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
24491         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
24492         * lib/xgethostname.c, lib/xreadlink.c:
24493         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
24494
24495         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
24496         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
24497         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
24498         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
24499         and don't include <sys/file.h>).
24500
24501 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
24502
24503         Sync from coreutils.
24504
24505         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
24506         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
24507         [!LDAV_DONE]: Avoid unused variable warning.
24508
24509 2005-09-21  Bruno Haible  <bruno@clisp.org>
24510
24511         * lib/unicodeio.h (unicode_to_mb): New declaration.
24512
24513 2005-09-20  Derek Price  <derek@ximbiot.com>
24514
24515         * lib/getaddrinfo.c: Don't include <netdb.h> included from
24516         getaddrinfo.h.
24517
24518 2005-09-20  Bruno Haible  <bruno@clisp.org>
24519
24520         * gnulib-tool: Remove trailing slashes from the values specified for
24521         --source-base, --m4-base, --tests-base, --aux-dir.
24522         Suggested by Simon Josefsson <jas@extundo.com>.
24523
24524 2005-09-20  Bruno Haible  <bruno@clisp.org>
24525
24526         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
24527         func_modules_to_filelist, func_import, func_create_testdir): Make all
24528         sorting results locale-independent, so that gnulib-cache.m4 doesn't
24529         change when gnulib-tool is invoked in a different locale.
24530
24531 2005-09-19  Simon Josefsson  <jas@extundo.com>
24532
24533         * m4/socklen.m4: Fix typo.
24534
24535 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24536
24537         Use a consistent style for including <config.h>.
24538         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
24539         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
24540         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
24541         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
24542         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
24543         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
24544         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
24545         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
24546         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
24547         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
24548         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
24549         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
24550         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
24551         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
24552         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
24553         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
24554         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
24555         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
24556         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
24557         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
24558         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
24559         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
24560         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
24561         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
24562         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
24563         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
24564         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
24565         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
24566         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
24567         lib/xstrtoumax.c, lib/yesno.c:
24568         Standardize inclusion of config.h.
24569         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
24570         lib/inttostr.h:  Removed inclusion of config.h from header files.
24571         * lib/inttostr.c:  Adjusted in-tree users.
24572         * lib/timespec.h: Remove superfluous warning to include config.h.
24573         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
24574         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
24575         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
24576         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
24577         config.h with HAVE_CONFIG_H.
24578
24579 2005-09-19  Jim Meyering  <jim@meyering.net>
24580
24581         * modules/pathmax (License): Change to LGPL.
24582
24583 2005-09-19  Derek Price  <derek@ximbiot.com>
24584
24585         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
24586
24587 2005-09-19  Bruno Haible  <bruno@clisp.org>
24588
24589         * gnulib-tool (import): Provide default for --tests-base.
24590
24591 2005-09-19  Bruno Haible  <bruno@clisp.org>
24592
24593         * doc/quote.texi: New file, extracted from gnulib.texi.
24594         * doc/ctime.texi: New file, extracted from gnulib.texi.
24595         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
24596         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
24597         * doc/gnulib.texi: Include them.
24598
24599 2005-09-18  Bruno Haible  <bruno@clisp.org>
24600
24601         Portability fix.
24602         * gnulib-tool (func_readlink): New function.
24603         (func_ln_if_changed): Use it.
24604
24605 2005-09-18  Bruno Haible  <bruno@clisp.org>
24606
24607         * gnulib-tool: Support --with-tests also with --import.
24608         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
24609         (func_import): Use variables $testsbase and $inctests. Emit a
24610         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
24611         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
24612         SUBDIRS += $testsdir.
24613         (func_create_testdir): Update.
24614
24615 2005-09-18  Bruno Haible  <bruno@clisp.org>
24616
24617         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
24618         instead of $dry_run.
24619         (func_cp_if_changed, func_mv_if_changed): Remove functions.
24620         (func_ln_if_changed): Don't handle dry-run here.
24621         (func_import): In dry-run mode, detect more precisely which actions
24622         would be performed, and don't use "...ing" verbs.
24623
24624 2005-09-18  Bruno Haible  <bruno@clisp.org>
24625
24626         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
24627         (func_import): Use join on two temporary files instead of three nested
24628         loops, in order to determine which files are new or old.
24629
24630 2005-09-18  Bruno Haible  <bruno@clisp.org>
24631
24632         * gnulib-tool (func_import): Comment out code that spits out the
24633         new files with --dry-run.
24634
24635 2005-09-18  Bruno Haible  <bruno@clisp.org>
24636
24637         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
24638
24639 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
24640
24641         * lib/stat-time.h: New file.
24642         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
24643         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
24644         in a different way.
24645         (timespec_cmp): New function.
24646         * lib/utimecmp.c: Include stat-time.h.
24647         (SYSCALL_RESOLUTION): Depend on whether various struct stat
24648         members exist, not on the obsolescent ST_MTIM_NSEC.
24649         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
24650
24651 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
24652
24653         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
24654
24655 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
24656
24657         * MODULES.html.sh (File system functions): Add stat-time.
24658         * modules/stat-time: New file.
24659         * modules/timespec (Files): Remove m4/st_mtim.m4; this
24660         is now done in a different way, by the stat-time module.
24661         * modules/utimecmp (Depends-on): Add stat-time.
24662
24663 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
24664
24665         * m4/st_mtim.m4: Remove.  Superseded by...
24666         * m4/stat-time.m4: New file.
24667         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
24668         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
24669
24670 2005-09-15  Derek Price  <derek@ximbiot.com>
24671
24672         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
24673
24674 2005-09-15  Derek Price  <derek@ximbiot.com>
24675
24676         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
24677         * lib/regex_internal.c: Ditto, using this...
24678         (__GNUC_PREREQ): ...new macro.
24679         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
24680         using...
24681         (__GNUC_PREREQ): ...this new macro.
24682
24683         * lib/strstr.h: Include string.h. Define strstr as a macro here.
24684
24685 2005-09-15  Derek Price  <derek@ximbiot.com>
24686             Paul Eggert  <eggert@cs.ucla.edu>
24687
24688         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
24689         changes, consolidating in...
24690         * lib/regex_internal.h: ...this file.
24691
24692 2005-09-13  Jim Meyering  <jim@meyering.net>
24693
24694         * lib/canon-host.c: Filter through gnu indent and reword comments
24695         slightly.
24696         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
24697
24698 2005-09-13  Derek Price  <derek@ximbiot.com>
24699
24700         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
24701         failure.
24702         Reported by Jim Meyering  <jim@meyering.net>.
24703
24704 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
24705
24706         * lib/base64.c: Typo.
24707         (base64_encode): Put b64str in initialized data section.
24708
24709 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
24710
24711         Merge glibc and coreutils changes into gnulib, plus a few
24712         extra fixes.
24713         * lib/md5.c: Use #error rather than a string.
24714         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
24715         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
24716         (__attribute__): Define to empty for non recent-GCC.
24717         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
24718         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
24719         Renamed from their non-__ counterparts, with new macros replacing
24720         them if not _LIBC.  Add __THROW attribute.
24721         (rol): Remove.
24722         (struct md5_ctx): Align buffer if using GCC.
24723         * lib/sha1.h (struct sha1_ctx): Likewise.
24724         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
24725         The old name was backwards.
24726         (NOTSWAP): Remove; not used.
24727         (rol): New macro, moved here from md5.h.
24728         (sha1_process_block): Remove a FIXME that doesn't make sense.
24729
24730 2005-09-12  Derek Price  <derek@ximbiot.com>
24731
24732         Return usable errors from canon-host.
24733         * lib/canon-host.h: New file.
24734         * lib/canon-host.c (canon_host): Wrap...
24735         (canon_host_r): ...this new function, which now relies exclusively on
24736         getaddrinfo.
24737         (ch_strerror): New function.
24738         (last_cherror): New global.
24739         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
24740         interface.
24741         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
24742         void *.
24743         (freeaddrinfo): Free ai->ai_canonname when set.
24744
24745 2005-09-12  Derek Price  <derek@ximbiot.com>
24746
24747         Make canon-host require getaddrinfo.
24748         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
24749         AC_LIBSOURCE canon-host.h.  Call...
24750         (gl_PREREQ_CANON_HOST): ...this new function, which requires
24751         gl_GETADDRINFO.
24752         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
24753
24754 2005-09-12  Derek Price  <derek@ximbiot.com>
24755
24756         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
24757         LGPL.
24758         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
24759
24760 2005-09-12  Derek Price  <derek@ximbiot.com>
24761
24762         * lib/gai_strerror.c: Include config.h when available.  Include
24763         getaddrinfo.h before other headers to test interface.
24764         Reported by Larry Jones <lawrence.jones@ugs.com>.
24765
24766 2005-09-12  Derek Price  <derek@ximbiot.com>
24767             Paul Eggert  <eggert@cs.ucla.edu>
24768
24769         * modules/glob (Files): Add glob-libc.h.
24770
24771 2005-09-12  Derek Price  <derek@ximbiot.com>
24772             Paul Eggert  <eggert@cs.ucla.edu>
24773
24774         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
24775         glob_.h, glob-libc.h.
24776         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
24777
24778 2005-09-12  Derek Price  <derek@ximbiot.com>
24779             Paul Eggert  <eggert@cs.ucla.edu>
24780
24781         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
24782         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
24783         protecting things that should be done only in gnulib contexts.
24784         * lib/glob_.h: New file, containing only the glob things needed for
24785         gnulib.
24786         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
24787         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
24788         (glob, globfree, glob_pattern_p): Now defined simply in terms of
24789         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
24790         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
24791         and to respect the namespace rules better.
24792
24793 2005-09-08  Simon Josefsson  <jas@extundo.com>
24794
24795         * modules/socklen: New file.
24796
24797 2005-09-08  Simon Josefsson  <jas@extundo.com>
24798
24799         * m4/socklen.m4: New file.
24800
24801 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
24802
24803         * modules/utimens (Files): Add m4/utimbuf.m4, since
24804         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
24805         Reported by Sergey Poznyakoff.
24806
24807 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
24808
24809         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
24810         definitions, since that's the preferred style in glibc.
24811         Fix a minor spacing issue, and update copyright notice to match
24812         glibc's.
24813
24814 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
24815
24816         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
24817
24818 2005-09-06  Simon Josefsson  <jas@extundo.com>
24819
24820         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
24821         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
24822
24823 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
24824
24825         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
24826         warning.
24827
24828 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
24829
24830         * config/srclist.txt: Add glibc bug 1302.
24831
24832 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
24833
24834         Change bitset word type from unsigned int to unsigned long int,
24835         as this has better performance on typical 64-bit hosts.
24836         Port bitset code to hosts with unusual word sizes.
24837         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
24838         (build_collating_symbol):
24839         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
24840         argument is a bitset.  This is merely a style issue, but it makes
24841         it clearer that an entire array is expected.
24842         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
24843         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
24844         Port to the case where bitset_word is not the same as unsigned int.
24845         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
24846         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
24847         Likewise.
24848         * lib/regexec.c (check_dst_limits_calc_pos_1,
24849         check_subexp_matching_top):
24850         (build_trtable, group_nodes_into_DFAstates):
24851         Likewise.
24852         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
24853         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
24854         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
24855         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
24856         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
24857         * lib/regcomp.c (optimize_subexps, lower_subexp):
24858         Work even if bitset_word has holes in its bitwise representation.
24859         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
24860         * lib/regexec.c (check_dst_limits_calc_pos_1,
24861         check_subexp_matching_top):
24862         Likewise.
24863         * lib/regex_internal.c (re_string_reconstruct):
24864         Don't assume UCHAR_MAX == 255.
24865         * lib/regex_internal.h (bitset_set_all): Likewise.
24866         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
24867         All uses changed.
24868         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
24869         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
24870         All uses changed.
24871         (BITSET_WORD_MAX): New macro.
24872         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
24873         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
24874         (bitset_empty, bitset_copy):
24875         Prefer sizeof (bitset) to multiplying it out ourselves.
24876         (bitset_not_merge): Remove; unused.
24877         (bitset_contain): Return bool, not unsigned int with one bit on.
24878         All callers changed.
24879         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
24880         alignment than re_node_set; do this by defining a new internal
24881         type struct dests_alloc and using it to allocate memory.
24882
24883 2005-09-05  Bruno Haible  <bruno@clisp.org>
24884
24885         * gnulib-tool (func_import): Fix comparison in handling of symbolic
24886         links.
24887
24888 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
24889
24890         * modules/size_max (Makefile.am): Add size_max.h
24891
24892 2005-09-04  Derek Price  <derek@ximbiot.com>
24893
24894         * gnulib-tool (func_import): Fix reversed $symbolic logic.
24895
24896 2005-09-03  Simon Josefsson  <jas@extundo.com>
24897
24898         * gnulib-tool: Fix typo.
24899
24900 2005-09-03  Simon Josefsson  <jas@extundo.com>
24901
24902         * config/srclist.txt: Add glibc bug 1293.
24903
24904 2005-09-03  Derek Price  <derek@ximbiot.com>
24905
24906         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
24907         From Larry Jones <lawrence.jones@ugs.com>.
24908
24909 2005-09-02  Simon Josefsson  <jas@extundo.com>
24910
24911         * modules/socklen: New file.
24912
24913 2005-09-02  Simon Josefsson  <jas@extundo.com>
24914
24915         * modules/havelib: New module.
24916
24917         * modules/gettext, modules/iconv, modules/lock, modules/readline:
24918         Use havelib.
24919
24920 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
24921
24922         Check for arithmetic overflow when calculating sizes, to prevent
24923         some buffer-overflow issues.  These patches are conservative, in the
24924         sense that when I couldn't determine whether an overflow was possible,
24925         I inserted a run-time check.
24926         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
24927         macros.
24928         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
24929         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
24930         (re_xnrealloc, re_x2nrealloc): New inline functions.
24931         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
24932         parse_bracket_exp):
24933         (build_equiv_class, build_charclass): Check for arithmetic overflow
24934         in size expression calculations.
24935         * lib/regex_internal.c (re_string_realloc_buffers):
24936         (build_wcs_upper_buffer, re_node_set_add_intersect):
24937         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
24938         (re_dfa_add_node, register_state): Likewise.
24939         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
24940         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
24941         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
24942         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
24943
24944 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
24945
24946         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
24947         m4/ulonglong.m4.  Problem reported by Martin Lambers.
24948
24949 2005-09-02  Bruno Haible  <bruno@clisp.org>
24950
24951         Support for lib vs. lib64 distinction on biarch platforms.
24952         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
24953         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
24954         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
24955
24956 2005-09-02  Bruno Haible  <bruno@clisp.org>
24957
24958         * gnulib-tool (import): In the other first-use case, provide defaults
24959         as well.
24960
24961 2005-09-02  Bruno Haible  <bruno@clisp.org>
24962
24963         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
24964         patches not yet found in the latest gettext release.
24965
24966 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
24967
24968         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
24969         to avoid a collision with bits/local_lim.h in glibc.
24970         All uses changed.  Problem reported by Dmitry V. Levin in
24971         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
24972
24973         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
24974         bugs in int versus size_t comparisons.
24975         (re_string_context_at): Fix bug where the code assumed that
24976         Idx is signed.
24977
24978         Use bool where appropriate.
24979         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
24980         All callers changed.
24981         (calc_eclosure_iter): Likewise, for ROOT arg.
24982         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
24983         (build_charclass_op): Likewise, for NON_MATCH arg.
24984         * lib/regex_internal.c (re_string_allocate, re_string_construct):
24985         (re_string_construct_common): Likewise, for ICASE arg.
24986         * lib/regexec.c (re_search_2_stub, re_search_stub):
24987         Likewise, for RET_LEN arg.
24988         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
24989         (set_regs): Likewise, for FL_BACKTRACK arg.
24990         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
24991         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
24992         (calc_eclosure_iter, parse_bracket_exp):
24993         Use bool for internal variables that are booleans.
24994         * lib/regexec.c (re_search_internal, check_matching,
24995         proceed_next_node):
24996         (set_regs, build_sifted_states, sift_states_bkref):
24997         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
24998         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
24999         (find_collation_sequence_value):
25000         Likewise.
25001         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
25002         (re_node_set_compare):
25003         Return bool, not int. All callers changed.
25004         * lib/regexec.c (check_halt_node_context, check_dst_limits):
25005         (build_trtable, check_node_accept): Likewise.
25006         * lib/regex_internal.h: Include stdbool.h.
25007
25008         Fix bugs uncovered when converting to bool.
25009         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
25010         failure instead of charging ahead blindly.
25011         * lib/regex_internal.c (register_state): Likewise.
25012         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
25013         for freeing internal storage.
25014         (group_nodes_into_DFA_states): Use unsigned int, not int, for
25015         bitset pieces used as boolean, to avoid undefined behavior
25016         on hosts that do int overflow checking.
25017
25018 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
25019
25020         * config/srclist.txt: Add glibc bugs 1285-1287.
25021
25022 2005-09-01  Jim Meyering  <jim@meyering.net>
25023
25024         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
25025         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
25026         Require gl_STAT_MACROS, too.
25027
25028 2005-09-01  Bruno Haible  <bruno@clisp.org>
25029
25030         * gnulib-tool (import): In the first-use case, provide defaults.
25031
25032 2005-09-01  Bruno Haible  <bruno@clisp.org>
25033
25034         * gnulib-tool (func_import): Remove the .tmp files.
25035
25036 2005-09-01  Bruno Haible  <bruno@clisp.org>
25037
25038         * gnulib-tool (func_import): Fix handling of symbolic links.
25039
25040 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
25041
25042         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
25043         old glibc regex code mishandles strings longer than 2**31 bytes.
25044         This patch fixes this when the regex code is used in gnulib
25045         (i.e., outside glibc).
25046
25047         This patch should not affect the use of the regex code inside
25048         glibc.  No doubt this problem also needs to be handled for glibc
25049         as well, but the result will be an incompatible change to the
25050         glibc ABI, and the old ABI will have to be supported too.  That
25051         can be the the subject for another patch.
25052
25053         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
25054         governing whether the rest of this patch is active.  By default,
25055         the macro is disabled and the patch has no effect.
25056         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
25057         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
25058         (struct re_pattern_buffer, re_search, re_search_2, re_match):
25059         (re_match_2, re_set_registers): Use the new types.
25060         * lib/regex_internal.h (Idx, re_hashval_t): New types.
25061         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
25062         New macros.
25063         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
25064         (re_string_context_at, bin_tree_t, re_dfastate_t):
25065         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
25066         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
25067         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
25068         (re_string_char_size_at, re_string_wchar_at):
25069         (re_string_elem_size_at):
25070         Use the new types and macros to port to 64-bit hosts.
25071         Use unsigned types for internal values, so that the code
25072         mostly works even for arrays larger than SSIZE_MAX.
25073         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
25074         (search_duplicated_node, calc_eclosure_iter, fetch_number):
25075         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
25076         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
25077         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
25078         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
25079         (calc_inveclosure, parse_dup_op, build_range_exp):
25080         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
25081         (fetch_number, create_token_tree, mark_opt_subexp):
25082         Likewise.
25083         * lib/regex_internal.c (re_string_construct_common,
25084         create_ci_newstate):
25085         (create_cd_newstate, re_string_allocate, re_string_construct):
25086         (re_string_realloc_buffers, build_wcs_upper_buffer):
25087         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
25088         (re_string_reconstruct, re_string_peek_byte_case):
25089         (re_string_fetch_byte_case, re_string_context_at):
25090         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
25091         (re_node_set_init_copy, re_node_set_add_intersect):
25092         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
25093         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
25094         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
25095         (re_acquire_state, re_acquire_state_context, register_state):
25096         Likewise.
25097         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
25098         search_cur_bkref_entry):
25099         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
25100         (re_search_internal, re_search_2_stub, re_search_stub)
25101         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
25102         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
25103         (update_cur_sifted_state, check_dst_limits):
25104         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
25105         (check_subexp_limits, sift_states_bkref, merge_state_array):
25106         (check_subexp_matching_top, get_subexp, get_subexp_sub):
25107         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
25108         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
25109         (expand_bkref_cache, check_node_accept_bytes):
25110         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
25111         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
25112         (acquire_init_state_context, check_halt_node_context):
25113         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
25114         (sift_states_backward, clean_state_log_if_needed):
25115         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
25116         (find_recover_state, transit_state_sb, transit_state_mb):
25117         (transit_state_bkref, build_trtable, match_ctx_clean):
25118         Likewise.
25119         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
25120         to work around an assumption that REG_MISSING is negative.
25121
25122         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
25123         (seek_collating_symbol_entry) [defined _LIBC]:
25124         (lookup_collation_sequence_value) [defined _LIBC]:
25125         (build_range_exp, build_collating_symbol) [defined _LIBC]:
25126         Use prototypes rather than old-style function definitions.
25127         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
25128         (transit_state_sb) [0]:
25129         (find_collation_sequence_value) [defined _LIBC]: Likewise.
25130
25131         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
25132         rm_eo.
25133
25134         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
25135         (optimize_subexps, lower_subexp):
25136         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
25137         since the signed shift might overflow.  Use 1u<<31 instead.
25138         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
25139         Likewise.
25140         * lib/regexec.c (check_dst_limits_calc_pos_1,
25141         check_subexp_matching_top): Likewise.
25142
25143         * lib/regcomp.c (optimize_subexps, lower_subexp):
25144         Use CHAR_BIT rather than 8, for clarity.
25145         * lib/regexec.c (check_dst_limits_calc_pos_1):
25146         (check_subexp_matching_top): Likewise.
25147         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
25148         have to worry about portability issues when shifting it left.
25149         Remove no-longer-needed test for table_size > 0.
25150         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
25151         in a word, as the resulting behavior is undefined.
25152         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
25153         in one case, a <= should have been an <, and in another case the
25154         whole test was missing.
25155         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
25156         the standard name CHAR_BIT.
25157         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
25158         this is not true on one's complement and signed-magnitude hosts.
25159
25160         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
25161         next_last_offset.
25162         (struct re_dfa_t): Remove unused member states_alloc.
25163         * lib/regcomp.c (init_dfa): Don't initialize unused members.
25164
25165 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
25166
25167         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
25168         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
25169         and large-file glibc and in 32-bit large-file Solaris.
25170
25171 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
25172
25173         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
25174         lengths fit in regoff_t; this isn't true if regoff_t is the same
25175         width as size_t.
25176         * lib/regex.c (re_search_internal): 5th arg is LAST_START
25177         (= START + RANGE) instead of RANGE.  This avoids overflow
25178         problems when regoff_t is the same width as size_t.
25179         All callers changed.
25180         (re_search_2_stub): Check for overflow when adding the
25181         sizes of the two strings.
25182         (re_search_stub): Check for overflow when adding START
25183         to RANGE; if it occurs, substitute the extreme value.
25184
25185 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
25186
25187         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
25188
25189 2005-08-31  Jim Meyering  <jim@meyering.net>
25190
25191         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
25192         a pointer-to-const.
25193         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
25194         (register_state): Likewise.
25195         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
25196         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
25197         (group_nodes_into_DFAstates): Likewise.
25198
25199 2005-08-31  Jim Meyering  <jim@meyering.net>
25200
25201         * check-module: Add a FIXME comment.
25202
25203 2005-08-31  Eric Blake  <ebb9@byu.net>
25204
25205         * modules/unistd-safer (Files): Add unistd--.h.
25206         * modules/stdio-safer (Files): Add stdio--.h.
25207
25208 2005-08-31  Derek Price  <derek@ximbiot.com>
25209
25210         * lib/getdelim.c (getdelim): Return EOF on EOF.
25211         Reported by Larry Jones <lawrence.jones@ugs.com>.
25212
25213 2005-08-31  Bruno Haible  <bruno@clisp.org>
25214
25215         Avoid unnecessary diffs in the generated lib/Makefile.am.
25216         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
25217         the generated files.
25218         (func_import): Don't set cmd.
25219
25220 2005-08-31  Bruno Haible  <bruno@clisp.org>
25221
25222         * lib/strstr.c: Include <stddef.h>, for NULL.
25223         * lib/strcasestr.c: Likewise.
25224         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
25225
25226 2005-08-31  Bruno Haible  <bruno@clisp.org>
25227
25228         * gnulib-tool: New option --macro-prefix.
25229         (func_import): Use macro_prefix.
25230         (import): Handle option --macro-prefix.
25231
25232 2005-08-31  Bruno Haible  <bruno@clisp.org>
25233
25234         * gnulib-tool (import): Rename most ac_* variables to cached_*.
25235         Also use new variables cached_lgpl, cached_libtool.
25236
25237 2005-08-31  Bruno Haible  <bruno@clisp.org>
25238
25239         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
25240         always instantiating them.
25241
25242 2005-08-31  Bruno Haible  <bruno@clisp.org>
25243
25244         * gnulib-tool (func_import): Read the previous cached settings
25245         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
25246         earlier added by gnulib but are now dropped. Warn when a gnulib file
25247         overwrites a non-gnulib file.
25248
25249 2005-08-31  Bruno Haible  <bruno@clisp.org>
25250
25251         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
25252         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
25253         projects that don't keep autogenerated files in CVS. Put into
25254         actioncmd only the specified modules, not the transitive closure.
25255
25256 2005-08-31  Bruno Haible  <bruno@clisp.org>
25257
25258         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
25259         Create directories that shall be filled.
25260         (import): Don't look for gl_* macros in configure.ac. Recurse across
25261         all directories containing a gnulib-cache.m4 files, if meaningful.
25262
25263 2005-08-31  Bruno Haible  <bruno@clisp.org>
25264
25265         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
25266         (import): Set seen_libtool when we see gl_LIBTOOL.
25267
25268 2005-08-31  Bruno Haible  <bruno@clisp.org>
25269
25270         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
25271         declaration macro definitions from generated gnulib.m4.
25272
25273 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
25274
25275         * lib/iconvme.h: Add prototype for iconv_alloc.
25276
25277 2005-08-29  Simon Josefsson  <jas@extundo.com>
25278
25279         * lib/iconvme.c: Fix errno.
25280
25281 2005-08-29  Bruno Haible  <bruno@clisp.org>
25282
25283         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
25284         that it works when the directory contains spaces.
25285
25286 2005-08-29  Bruno Haible  <bruno@clisp.org>
25287
25288         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
25289
25290 2005-08-29  Bruno Haible  <bruno@clisp.org>
25291
25292         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
25293         Emit more advice.
25294
25295 2005-08-29  Bruno Haible  <bruno@clisp.org>
25296         and Stepan Kasal  <kasal@ucw.cz>
25297
25298         * check-module: If more parameters are given, check each of them
25299         separately; add more exceptions, as noted by Jim Meyering.
25300         (check_module): New procedure.
25301         (%exempt_header): Now contains all exceptions.
25302
25303 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
25304
25305         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
25306
25307 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
25308
25309         * lib/iconvme.c: Split iconv_string into iconv_alloc.
25310
25311 2005-08-28  Bruno Haible  <bruno@clisp.org>
25312
25313         * m4/gnulib-tool.m4: New file.
25314
25315 2005-08-27  Jim Meyering  <jim@meyering.net>
25316
25317         * modules/unistd-safer (Files): Add pipe-safer.c.
25318         * modules/fcntl-safer (Files): Add creat-safer.c.
25319
25320 2005-08-27  Jim Meyering  <jim@meyering.net>
25321
25322         * m4/stdlib-safer.m4: New file.  From coreutils.
25323         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
25324         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
25325         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
25326         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
25327         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
25328
25329 2005-08-27  Jim Meyering  <jim@meyering.net>
25330
25331         * lib/fopen-safer.c: Merge minor changes from coreutils.
25332         * lib/dup-safer.c: Likewise.
25333         * lib/fd-safer.c: Likewise.
25334
25335         Merge from coreutils.
25336         * lib/stdio--.h: New file.
25337         * lib/stdlib--.h: New file.
25338         * lib/mkstemp-safer.c: New file.
25339
25340         GNU tar needs these.
25341         * lib/pipe-safer.c: New file.
25342         * lib/creat-safer.c: New file.
25343         * lib/fcntl--.h (creat): Define to creat_safer.
25344         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
25345         * lib/unistd--.h (pipe): Define to pipe_safer.
25346         * lib/unistd-safer.h: Declare pipe_safer.
25347
25348 2005-08-26  Simon Josefsson  <jas@extundo.com>
25349
25350         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
25351         Haible <bruno@clisp.org>.
25352
25353 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
25354
25355         * lib/regex_internal.h: Remove all references to
25356         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
25357         or better.
25358         (bitset_not, bitset_merge, bitset_not_merge):
25359         (bitset_mask, re_string_allocate, re_string_construct):
25360         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
25361         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
25362         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
25363         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
25364         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
25365         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
25366         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
25367         (re_acquire_state_context):
25368         Remove unnecessary forward decls.
25369         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
25370         Put __attribute at function definition,
25371         now that the function decl has been removed.
25372         * lib/regex_internal.c (re_string_peek_byte_case):
25373         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
25374         Likewise.
25375
25376 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
25377
25378         * m4/regex.m4: Add AC_PREREQ(2.50).
25379         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
25380
25381 2005-08-25  Simon Josefsson  <jas@extundo.com>
25382
25383         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
25384         __fsetlocking.
25385
25386 2005-08-25  Simon Josefsson  <jas@extundo.com>
25387
25388         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
25389         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
25390         GLIBC specific code.
25391
25392 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
25393
25394         Make regex safe for g++.  This fixes one real bug (an "err"
25395         that should have been "*err").  g++ problem reported by
25396         Sam Steingold.
25397         * lib/regex_internal.h (re_calloc): New macro, consistent with
25398         re_malloc etc.  All callers of calloc changed to use re_calloc.
25399         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
25400         not int.  All callers changed.
25401         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
25402         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
25403         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
25404         (find_recover_state): Change "err" to "*err"; this fixes what
25405         appears to be a real bug.
25406         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
25407         versus int.
25408
25409 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
25410
25411         * modules/regex (Depends-on): Add malloc, since the code
25412         assumes that !malloc(0) means failure.
25413
25414 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
25415
25416         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
25417
25418         alloca modernization/simplification for regex.
25419         * lib/regex.c: Remove portability cruft for alloca.  This no longer
25420         needs to be at the start of the file, and can be moved into
25421         regex_internal.h and simplified.
25422         * lib/regex_internal.h: Include <alloca.h>.
25423         (__libc_use_alloca) [!defined _LIBC]: New macro.
25424         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
25425         now works outside glibc.
25426
25427 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
25428
25429         * config/srclist.txt: Add glibc bugs 1241, 1245.
25430
25431 2005-08-25  Jim Meyering  <jim@meyering.net>
25432
25433         * lib/open-safer.c: Include <config.h>.
25434         Otherwise, we'd lose LARGEFILE support in any file using
25435         e.g. "fcntl--.h"
25436
25437 2005-08-25  Bruno Haible  <bruno@clisp.org>
25438
25439         * m4/minmax.m4: Require autoconf 2.52.
25440         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
25441         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
25442         alternatives of translit over the alphabet.
25443         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
25444
25445 2005-08-24  Simon Josefsson  <jas@extundo.com>
25446
25447         * tests/test-getpass.c: New file.
25448
25449 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
25450
25451         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
25452         for GNU regex features.
25453
25454 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
25455
25456         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
25457         * lib/regex.h (regerror): Likewise.
25458
25459         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
25460         requires this.  (The code never needed it.)
25461
25462         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
25463         All uses of recently-renamed identifiers changed to use the new,
25464         POSIX-compliant names.  The code will build and run just fine
25465         without these changes, but it's better to eat our own dog food
25466         and use the standard-conforming names.
25467
25468         * lib/regex.h: Fix a multitude of POSIX name space violations.
25469         These changes have an effect only for programs that define
25470         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
25471         do not change anything for programs compiled in the normal way.
25472         Also, there is no effect on the ABI.
25473
25474         (_REGEX_SOURCE): New macro.
25475         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
25476         defined and _GNU_SOURCE is not; this fixes a name space violation.
25477
25478         Rename the following macros to obey POSIX requirements.
25479         The old names are still visible as macros if _REGEX_SOURCE is defined.
25480         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
25481         RE_BACKSLASH_ESCAPE_IN_LISTS.
25482         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
25483         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
25484         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
25485         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
25486         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
25487         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
25488         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
25489         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
25490         (REG_INTERVALS): renamed from RE_INTERVALS.
25491         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
25492         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
25493         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
25494         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
25495         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
25496         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
25497         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
25498         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
25499         RE_UNMATCHED_RIGHT_PAREN_ORD.
25500         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
25501         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
25502         (REG_DEBUG): renamed from RE_DEBUG.
25503         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
25504         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
25505         unusual, since we can't clash with the POSIX REG_ICASE.
25506         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
25507         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
25508         (REG_NO_SUB): renamed from RE_NO_SUB.
25509         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
25510         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
25511         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
25512         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
25513         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
25514         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
25515         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
25516         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
25517         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
25518         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
25519         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
25520         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
25521         RE_SYNTAX_POSIX_MINIMAL_BASIC.
25522         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
25523         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
25524         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
25525         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
25526         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
25527         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
25528         (REG_FIXED): Renamed from REGS_FIXED.
25529         (REG_NREGS): Renamed from RE_NREGS.
25530
25531         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
25532         of other REG_* macros, since POSIX says the user is allowed to
25533         #undef these macros selectively.
25534
25535         (reg_errcode_t): Update comment stating what other tables need
25536         to be consistent.
25537
25538         Rename the following enum values to obey POSIX requirements.
25539         The old names are still visible as macros.
25540         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
25541         is not defined, since GNU is supposed to be a superset of POSIX as
25542         much as possible, and since we want reg_errcode_t to be a signed
25543         type for implementation consistency.
25544         (_REG_NOERROR): Renamed from REG_NOERROR.
25545         (_REG_NOMATCH): Renamed from REG_NOMATCH.
25546         (_REG_BADPAT): Renamed from REG_BADPAT.
25547         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
25548         (_REG_ECTYPE): Renamed from REG_ECTYPE.
25549         (_REG_EESCAPE): Renamed from REG_EESCAPE.
25550         (_REG_ESUBREG): Renamed from REG_ESUBREG.
25551         (_REG_EBRACK): Renamed from REG_EBRACK.
25552         (_REG_EPAREN): Renamed from REG_EPAREN.
25553         (_REG_EBRACE): Renamed from REG_EBRACE.
25554         (_REG_BADBR): Renamed from REG_BADBR.
25555         (_REG_ERANGE): Renamed from REG_ERANGE.
25556         (_REG_ESPACE): Renamed from REG_ESPACE.
25557         (_REG_BADRPT): Renamed from REG_BADRPT.
25558         (_REG_EEND): Renamed from REG_EEND.
25559         (_REG_ESIZE): Renamed from REG_ESIZE.
25560         (_REG_ERPAREN): Renamed from REG_ERPAREN.
25561         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
25562         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
25563         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
25564         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
25565
25566         (_REG_RE_NAME, _REG_RM_NAME): New macros.
25567         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
25568         changed.  But support the old name if the new one is not defined
25569         and if _REGEX_SOURCE.
25570
25571         Change the following member names in struct re_pattern_buffer.
25572         The old names are still supported if !_REGEX_SOURCE.
25573         The new names are always supported, regardless of _REGEX_SOURCE.
25574         (re_buffer): Renamed from buffer.
25575         (re_allocated): Renamed from allocated.
25576         (re_used): Renamed from used.
25577         (re_syntax): Renamed from syntax.
25578         (re_fastmap): Renamed from fastmap.
25579         (re_translate): Renamed from translate.
25580         (re_can_be_null): Renamed from can_be_null.
25581         (re_regs_allocated): Renamed from regs_allocated.
25582         (re_fastmap_accurate): Renamed from fastmap_accurate.
25583         (re_no_sub): Renamed from no_sub.
25584         (re_not_bol): Renamed from not_bol.
25585         (re_not_eol): Renamed from not_eol.
25586         (re_newline_anchor): Renamed from newline_anchor.
25587
25588         Change the following member names in struct re_registers.
25589         The old names are still supported if !_REGEX_SOURCE.
25590         The new names are always supported, regardless of _REGEX_SOURCE.
25591         (rm_num_regs): Renamed from num_regs.
25592         (rm_start): Renamed from start.
25593         (rm_end): Renamed from end.
25594
25595         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
25596         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
25597         Prepend __ to parameter names.
25598
25599         Undo yesterday's changes.
25600
25601 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
25602
25603         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
25604         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
25605         lib/regex.c.
25606
25607 2005-08-24  Jim Meyering  <jim@meyering.net>
25608
25609         Sync from coreutils.
25610         * m4/fcntl-safer.m4: New file.
25611
25612         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
25613         and object files for this module.
25614
25615 2005-08-24  Jim Meyering  <jim@meyering.net>
25616
25617         Sync from coreutils.
25618         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
25619
25620 2005-08-24  Jim Meyering  <jim@meyering.net>
25621
25622         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
25623         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
25624
25625 2005-08-24  Jim Meyering  <jim@meyering.net>
25626
25627         * modules/fcntl-safer: New module.
25628         * modules/fts (Depends-on): Add fcntl-safer.
25629         * MODULES.html.sh (File descriptor based Input/Output):
25630         Add fcntl-safer.
25631
25632 2005-08-24  Bruno Haible  <bruno@clisp.org>
25633
25634         Support for unit test modules.
25635         * modules/README: Mention tests modules.
25636         * modules/TEMPLATE-TESTS: New file.
25637         * gnulib-tool: New options --extract-tests-module, --with-tests and
25638         --tests-base (unused for the moment).
25639         (testsbase, inctests): New variables.
25640         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
25641         (func_verify_module): Exclude TEMPLATE-TESTS.
25642         (func_verify_nontests_module, func_verify_tests_module): New functions.
25643         (func_get_dependencies): Add implicit dependency for tests modules.
25644         (func_get_tests_module): New function.
25645         (func_modules_transitive_closure): When --with-tests was specified,
25646         include the unit tests as well, unless explicitly avoided.
25647         (func_emit_lib_Makefile_am): Ignore the tests modules here.
25648         (func_emit_tests_Makefile_am): New function.
25649         (func_create_testdir): When --with-tests was specified, emit a
25650         tests/ directory.
25651         * MODULES.html.sh (Future developments): Update.
25652
25653 2005-08-24  Bruno Haible  <bruno@clisp.org>
25654
25655         * modules/tls-tests: New file.
25656         * tests/test-tls.c: New file, from GNU gettext.
25657
25658 2005-08-24  Bruno Haible  <bruno@clisp.org>
25659
25660         * modules/lock-tests: New file.
25661         * tests/test-lock.c: New file, from GNU gettext.
25662
25663 2005-08-24  Bruno Haible  <bruno@clisp.org>
25664
25665         * lib/lock.h: Add multiple inclusion guard.
25666         * lib/tls.h: Add multiple inclusion guard.
25667
25668 2005-08-24  Bruno Haible  <bruno@clisp.org>
25669
25670         * gnulib-tool: Add support for the --aux-dir option to
25671         --create-testdir, --create-megatestdir, --test, --megatest.
25672         (func_create_testdir, func_create_megatestdir): Optionally emit a
25673         AC_CONFIG_AUX_DIR directive.
25674         (create-testdir, create-megatestdir, test, megatest): Provide a
25675         default value for $auxdir.
25676
25677 2005-08-24  Bruno Haible  <bruno@clisp.org>
25678
25679         * gnulib-tool (import): Use compound statement instead of subshell
25680         where possible.
25681
25682 2005-08-24  Bruno Haible  <bruno@clisp.org>
25683
25684         * gnulib-tool (import): Change --aux-dir default to "build-aux".
25685
25686 2005-08-24  Bruno Haible  <bruno@clisp.org>
25687
25688         * gnulib-tool (func_version): Update.
25689
25690 2005-08-24  Bruno Haible  <bruno@clisp.org>
25691
25692         * gnulib-tool (func_import, func_create_testdir,
25693         func_create_megatestdir): Quote all autoconf macro arguments.
25694
25695 2005-08-24  Bruno Haible  <bruno@clisp.org>
25696
25697         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
25698         option --force, because --force causes the aclocal.m4 of each
25699         subdirectory to be newer than the corresponding config.h.in.
25700
25701 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
25702
25703         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
25704         All contents moved to gl_REGEX.
25705         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
25706         assume that it does.
25707
25708 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
25709
25710         * lib/regex.h (REG_NOSYS)
25711         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
25712         Define, since POSIX requires it as of 2001.
25713         (_REG_ENOSYS)
25714         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
25715         New private symbol, used to keep the enum signed in all cases.
25716         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
25717         Youngman in
25718         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
25719
25720         * lib/regex_internal.c (re_string_skip_chars, register_state):
25721         (calc_state_hash):
25722         Remove forward decls; no longer needed now that we use prototypes.
25723         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
25724         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
25725         (clean_state_log_if_needed): Likewise.
25726
25727 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
25728
25729         * config/srclist.txt: Add glibc bugs 1231-1233.
25730
25731 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
25732
25733         Fix problems reported by Sam Steingold in
25734         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
25735         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
25736         assumed that reg_errcode_t is a signed type, which is not
25737         necessarily true if _XOPEN_SOURCE is not defined.
25738         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
25739         since some compilers warn about it otherwise.
25740
25741 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
25742
25743         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
25744         (init_word_char, create_initial_state, duplicate_node_closure):
25745         (fetch_token, peek_token_bracket, build_range_exp):
25746         (build_collating_symbol): Remove forward decls; no longer needed
25747         now that we use prototypes.
25748
25749         * lib/regcomp.c:
25750         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
25751         (re_compile_fastmap_iter, regcomp, regerror, regfree):
25752         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
25753         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
25754         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
25755         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
25756         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
25757         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
25758         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
25759         (build_range_exp, build_collating_symbol, parse_bracket_exp):
25760         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
25761         (build_charclass, build_charclass_op, fetch_number, create_tree):
25762         (create_token_tree, mark_opt_subexp, duplicate_tree):
25763         Use prototypes rather than old-style definitions.
25764
25765         * lib/regex_internal.c:
25766         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
25767         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
25768         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
25769         (re_string_reconstruct, re_string_peek_byte_case):
25770         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
25771         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
25772         (re_node_set_init_copy, re_node_set_add_intersect):
25773         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
25774         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
25775         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
25776         (re_acquire_state, re_acquire_state_context, register_state):
25777         (create_ci_newstate, create_cd_newstate, free_state):
25778         Likewise.
25779         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
25780         re_search_2):
25781         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
25782         (re_search_internal, prune_impossible_nodes):
25783         (acquire_init_state_context, check_matching, static):
25784         (check_halt_node_context, check_halt_state_context, proceed_next_node):
25785         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
25786         (update_regs, sift_states_backward, build_sifted_states):
25787         (clean_state_log_if_needed, merge_state_array):
25788         (update_cur_sifted_state, add_epsilon_src_nodes):
25789         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
25790         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
25791         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
25792         (find_recover_state, check_subexp_matching_top, transit_state_mb):
25793         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
25794         (check_arrival, check_arrival_add_next_nodes):
25795         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
25796         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
25797         (check_node_accept_bytes, check_node_accept, extend_buffers):
25798         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
25799         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
25800         (sift_ctx_init):
25801         Likewise.
25802
25803         * lib/regex_internal.h:
25804         (re_string_allocate, re_string_construct, re_string_reconstruct):
25805         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
25806         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
25807         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
25808         (re_string_context_at, re_string_peek_byte_case):
25809         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
25810         is defined, since we now use prototypes always.
25811
25812         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
25813         C89 or better.  All uses removed.
25814
25815 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
25816
25817         * config/srclist.txt: Add glibc bugs 1220-1227.
25818
25819 2005-08-20  Jim Meyering  <jim@meyering.net>
25820
25821         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
25822         of unused local, dfa.
25823
25824 2005-08-20  Bruno Haible  <bruno@clisp.org>
25825
25826         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
25827
25828 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
25829
25830         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
25831         (re_node_set_insert_last, re_dfa_add_node):
25832         Rename local variables to avoid GCC shadowing warnings.
25833
25834 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
25835
25836         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
25837         [defined lint]: Suppress bogus uninitialized-variable warnings.
25838
25839         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
25840         and let the caller return REG_ESPACE if out of space.  This
25841         removes an uninitialied-variable warning with GCC 4.0.1, and also
25842         avoids taking the address of a local variable.  All callers
25843         changed.
25844
25845 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
25846
25847         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
25848         $LIBCSRC/posix/regexec.c.
25849         Add glibc bug 1217 for regcomp.c.
25850
25851 2005-08-19  Jim Meyering  <jim@meyering.net>
25852
25853         * lib/regexec.c (proceed_next_node): Redo local variables to
25854         avoid GCC shadowing warnings.
25855
25856 2005-08-18  Bruno Haible  <bruno@clisp.org>
25857
25858         * lib/strstr.c (strstr): Fix return value in multibyte case.
25859         * lib/strcasestr.c (strcasestr): Likewise.
25860
25861 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
25862
25863         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
25864
25865 2005-08-17  Jim Meyering  <jim@meyering.net>
25866
25867         Make the %s format (seconds since the epoch) work for a negative
25868         number and when used with a zero-padded field width, e.g. %015s.
25869
25870         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
25871         label so that it precedes the code to set `digits'.  Otherwise,
25872         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
25873         print `00-22'.  Now, it prints `-0022', as it should.
25874
25875 2005-08-17  Bruno Haible  <bruno@clisp.org>
25876
25877         * modules/strstr (Files): Add m4/mbrtowc.m4.
25878         (Depends-on): Add mbuiter.
25879
25880 2005-08-17  Bruno Haible  <bruno@clisp.org>
25881
25882         * modules/strcasestr: New file.
25883         * MODULES.html.sh (String handling, based on ANSI C 89): Add
25884         strcasestr.
25885
25886 2005-08-17  Bruno Haible  <bruno@clisp.org>
25887
25888         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
25889
25890 2005-08-17  Bruno Haible  <bruno@clisp.org>
25891
25892         * modules/mbuiter: New file.
25893         * MODULES.html.sh (Extended multibyte and wide character utilities):
25894         Add mbuiter.
25895
25896 2005-08-17  Bruno Haible  <bruno@clisp.org>
25897
25898         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
25899         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
25900
25901 2005-08-17  Bruno Haible  <bruno@clisp.org>
25902
25903         * m4/strcasestr.m4: New file.
25904
25905 2005-08-17  Bruno Haible  <bruno@clisp.org>
25906
25907         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
25908         * lib/strstr.c: Completely rewritten, with multibyte locale support.
25909
25910 2005-08-17  Bruno Haible  <bruno@clisp.org>
25911
25912         * lib/strcasestr.h: New file.
25913         * lib/strcasestr.c: New file.
25914
25915 2005-08-17  Bruno Haible  <bruno@clisp.org>
25916
25917         * lib/strcasecmp.c: Use mbuiter.h.
25918
25919 2005-08-17  Bruno Haible  <bruno@clisp.org>
25920
25921         * lib/mbuiter.h: New file.
25922
25923 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
25924
25925         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
25926         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
25927         and gl_GETOPT are both invoked via different paths (as happens
25928         with GNU tar CVS because it uses both argp and getopt), the former
25929         wins.
25930
25931 2005-08-16  Bruno Haible  <bruno@clisp.org>
25932
25933         * modules/tls: New file.
25934         * MODULES.html.sh (Multithreading): Add tls.
25935
25936 2005-08-16  Bruno Haible  <bruno@clisp.org>
25937
25938         * modules/strnlen1: New file.
25939         * MODULES.html.sh (String handling): Add strnlen1.
25940
25941 2005-08-16  Bruno Haible  <bruno@clisp.org>
25942
25943         * modules/strcase (Files): Add m4/mbrtowc.m4.
25944         (Depends-on): Add strnlen1, mbchar.
25945
25946 2005-08-16  Bruno Haible  <bruno@clisp.org>
25947
25948         * modules/mbiter: New file.
25949         * MODULES.html.sh (Extended multibyte and wide character utilities):
25950         Add mbiter.
25951
25952 2005-08-16  Bruno Haible  <bruno@clisp.org>
25953
25954         * modules/mbfile: New file.
25955         * MODULES.html.sh (Extended multibyte and wide character utilities):
25956         Add mbfile.
25957
25958 2005-08-16  Bruno Haible  <bruno@clisp.org>
25959
25960         * modules/mbchar: New file.
25961         * MODULES.html.sh (Extended multibyte and wide character utilities):
25962         New section.
25963
25964 2005-08-16  Bruno Haible  <bruno@clisp.org>
25965
25966         * m4/tls.m4: New file, from GNU gettext.
25967
25968 2005-08-16  Bruno Haible  <bruno@clisp.org>
25969
25970         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
25971         always.
25972         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
25973
25974 2005-08-16  Bruno Haible  <bruno@clisp.org>
25975
25976         * m4/mbiter.m4: New file.
25977
25978 2005-08-16  Bruno Haible  <bruno@clisp.org>
25979
25980         * m4/mbfile.m4: New file.
25981
25982 2005-08-16  Bruno Haible  <bruno@clisp.org>
25983
25984         * m4/mbchar.m4: New file.
25985
25986 2005-08-16  Bruno Haible  <bruno@clisp.org>
25987
25988         * lib/tls.h: New file, from GNU gettext.
25989         * lib/tls.c: New file, from GNU gettext.
25990
25991 2005-08-16  Bruno Haible  <bruno@clisp.org>
25992
25993         * lib/strnlen1.h: New file.
25994         * lib/strnlen1.c: New file.
25995
25996 2005-08-16  Bruno Haible  <bruno@clisp.org>
25997
25998         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
25999         (mbi_init): Update.
26000         (mbi_avail, mbi_advance): Let the iteration end before the terminating
26001         NUL byte, not after it.
26002
26003 2005-08-16  Bruno Haible  <bruno@clisp.org>
26004
26005         * lib/strcase.h (strcasecmp): Add note in comments.
26006         * lib/strncasecmp.c: Use code from strcasecmp.c.
26007         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
26008         (strcasecmp): Work correctly in multibyte locales.
26009
26010 2005-08-16  Bruno Haible  <bruno@clisp.org>
26011
26012         * lib/mbiter.h: New file.
26013
26014 2005-08-16  Bruno Haible  <bruno@clisp.org>
26015
26016         * lib/mbfile.h: New file.
26017
26018 2005-08-16  Bruno Haible  <bruno@clisp.org>
26019
26020         * lib/mbchar.h: New file.
26021         * lib/mbchar.c: New file.
26022
26023 2005-08-16  Bruno Haible  <bruno@clisp.org>
26024
26025         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
26026         the valid ones. Makes the comparison operations transitive:
26027         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
26028         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
26029
26030 2005-08-15  Simon Josefsson  <jas@extundo.com>
26031
26032         * modules/ssize_t (License): Change to 'unlimited'.
26033
26034         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
26035
26036 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
26037
26038         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
26039         Add comments for each pending glibc patch.
26040
26041 2005-08-15  Bruno Haible  <bruno@clisp.org>
26042
26043         * lib/regex.h (__restrict_arr): Don't define to __restrict if
26044         __cplusplus is defined.
26045
26046 2005-08-14  Jim Meyering  <jim@meyering.net>
26047
26048         Sync from coreutils.
26049
26050         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
26051         Use the hash-table-based cycle-detection code not just when
26052         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
26053         Reported by James Youngman in
26054         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
26055         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
26056         FTS_TIGHT_CYCLE_CHECK.
26057         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
26058         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
26059         once again.
26060         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
26061         * lib/fts.c (fd_safer): Remove decl.
26062         Include fcntl--.h rather than unistd-safer.h
26063         (fts_safe_changedir): Don't call fd_safer; no longer needed
26064         now that we include fcntl--.h.
26065
26066 2005-08-12  Simon Josefsson  <jas@extundo.com>
26067
26068         * modules/getndelim2: Use ssize_t module.
26069         * modules/getnline: Likewise.
26070         * modules/safe-read: Likewise.
26071         * modules/xreadlink: Likewise.
26072
26073         * modules/ssize_t: New file.
26074
26075 2005-08-12  Simon Josefsson  <jas@extundo.com>
26076
26077         * m4/readline.m4: Look for termcap, curses or ncurses if required.
26078
26079 2005-08-12  Simon Josefsson  <jas@extundo.com>
26080
26081         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
26082         ssize_t.
26083
26084 2005-08-12  Simon Josefsson  <jas@extundo.com>
26085
26086         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
26087         readline, getdelim and check_version.
26088         (Support for systems lacking ISO C 99: Sizes of integer types):
26089         Add size_max.
26090
26091 2005-08-12  Bruno Haible  <bruno@clisp.org>
26092
26093         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
26094
26095 2005-08-11  Simon Josefsson  <jas@extundo.com>
26096
26097         * modules/readline: New file.
26098
26099         * modules/strnlen (Files): Add strnlen.h.
26100
26101 2005-08-11  Simon Josefsson  <jas@extundo.com>
26102
26103         * m4/readline.m4: New file.
26104
26105 2005-08-11  Simon Josefsson  <jas@extundo.com>
26106
26107         * lib/readline.h, readline.c: New file.
26108
26109 2005-08-11  Simon Josefsson  <jas@extundo.com>
26110
26111         * doc/gnulib.texi (Initial import, Finishing touches): Mention
26112         gl_AVOID.
26113
26114 2005-08-11  Bruno Haible  <bruno@clisp.org>
26115
26116         * lib/strnlen.h (strnlen): Change parameter name to match comment.
26117
26118 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
26119
26120         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
26121
26122 2005-08-10  Simon Josefsson  <jas@extundo.com>
26123
26124         * tests/test-iconvme.c: New file.
26125
26126 2005-08-10  Simon Josefsson  <jas@extundo.com>
26127
26128         * m4/strnlen.m4: New file.
26129
26130         * m4/strndup.m4: Don't check for strnlen declaration, done in
26131         strnlen.m4.
26132
26133 2005-08-10  Simon Josefsson  <jas@extundo.com>
26134
26135         * lib/strndup.c: Use strnlen.h.
26136
26137         * lib/strnlen.h: New file.
26138
26139 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
26140
26141         * README: Typos.
26142
26143 2005-08-02  Simon Josefsson  <jas@extundo.com>
26144
26145         * modules/readline: New file.
26146
26147 2005-08-02  Simon Josefsson  <jas@extundo.com>
26148
26149         * modules/getdelim: New file.
26150
26151         * modules/getline: Rewrite, don't use getndelim2.
26152
26153 2005-08-02  Simon Josefsson  <jas@extundo.com>
26154
26155         * m4/getline.m4: Separate out getdelim stuff into separate module.
26156
26157         * m4/getdelim.m4: New file.
26158
26159 2005-08-02  Simon Josefsson  <jas@extundo.com>
26160
26161         * lib/getline.h, getline.c: Rewrite.
26162
26163         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
26164
26165 2005-07-31  Bruno Haible  <bruno@clisp.org>
26166
26167         * lib/lock.h (gl_lock_initializer): New macro.
26168         (gl_lock_define_initialized): Use it.
26169         (gl_rwlock_initializer): New macro.
26170         (gl_rwlock_define_initialized): Use it.
26171         (gl_recursive_lock_initializer): New macro.
26172         (gl_recursive_lock_define_initialized): Use it.
26173
26174 2005-07-30  Karl Berry  <karl@gnu.org>
26175
26176         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
26177         Report from Ben Pfaff, regarding getopt.
26178
26179 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
26180
26181         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
26182         normal way.
26183         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
26184         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
26185         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
26186         (gl_GETOPT): Use the new macros.  Most of the implementation
26187         is moved to the new macros.  This is for programs like Emacs
26188         that don't want all the functionality of gl_GETOPT.
26189
26190 2005-07-26  Bruno Haible  <bruno@clisp.org>
26191
26192         * m4/lock.m4: Update from GNU gettext.
26193
26194 2005-07-26  Bruno Haible  <bruno@clisp.org>
26195
26196         * lib/lock.h: Update from GNU gettext.
26197         * lib/lock.c: Update from GNU gettext.
26198
26199 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
26200
26201         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
26202         obsolescent AC_TRY_RUN.  Include the default includes files, for
26203         'exit'.
26204
26205 2005-07-24  Bruno Haible  <bruno@clisp.org>
26206
26207         * modules/visibility: New file.
26208         * MODULES.html.sh (Misc): Add visibility.
26209
26210 2005-07-24  Bruno Haible  <bruno@clisp.org>
26211
26212         * m4/visibility.m4: New file.
26213
26214 2005-07-24  Bruno Haible  <bruno@clisp.org>
26215
26216         * doc/visibility.texi: New file.
26217
26218 2005-07-22  Bruno Haible  <bruno@clisp.org>
26219
26220         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
26221         $(ALLOCA_H), redundant through BUILT_SOURCES.
26222         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
26223         redundant through BUILT_SOURCES.
26224         * modules/byteswap (Makefile.am): Remove explicit dependency on
26225         $(BYTESWAP_H), redundant through BUILT_SOURCES.
26226         * modules/fnmatch (Makefile.am): Remove explicit dependency on
26227         $(FNMATCH_H), redundant through BUILT_SOURCES.
26228         * modules/getopt (Makefile.am): Remove explicit dependency on
26229         $(GETOPT_H), redundant through BUILT_SOURCES.
26230         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
26231         redundant through BUILT_SOURCES.
26232         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
26233         redundant through BUILT_SOURCES.
26234         * modules/stdbool (Makefile.am): Remove explicit dependency on
26235         $(STDBOOL_H), redundant through BUILT_SOURCES.
26236         * modules/stdint (Makefile.am): Remove explicit dependency on
26237         $(STDINT_H), redundant through BUILT_SOURCES.
26238         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
26239         Remove explicit dependency on $(SYSEXITS_H).
26240         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
26241
26242 2005-07-18  Simon Josefsson  <jas@extundo.com>
26243
26244         * lib/check-version.c (check_version): Accept identical versions too.
26245
26246 2005-07-18  Bruno Haible  <bruno@clisp.org>
26247
26248         * modules/lock: New file.
26249         * MODULES.html.sh (Multithreading): New section.
26250
26251 2005-07-18  Bruno Haible  <bruno@clisp.org>
26252
26253         * m4/lock.m4: New file, from GNU gettext.
26254
26255 2005-07-18  Bruno Haible  <bruno@clisp.org>
26256
26257         * lib/lock.h: New file, from GNU gettext.
26258         * lib/lock.c: New file, from GNU gettext.
26259
26260 2005-07-18  Bruno Haible  <bruno@clisp.org>
26261
26262         * lib/lock.h (gl_once_t): New type.
26263         (gl_once_define, gl_once): New macros.
26264         * lib/lock.c (fresh_once): New variable.
26265         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
26266         functions.
26267
26268 2005-07-16  Simon Josefsson  <jas@extundo.com>
26269
26270         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
26271         workaround, suggested by Bruno.
26272
26273 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
26274
26275         * modules/xalloc (Depends-on): Add xalloc-die.
26276         * modules/xvasprintf (Depends-on): Add xalloc-die.
26277
26278 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
26279
26280         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
26281         with a minor change.
26282
26283 2005-07-15  Bruno Haible  <bruno@clisp.org>
26284
26285         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
26286         When using lib/poll.c, define poll as rpl_poll.
26287
26288 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
26289
26290         * modules/argp (Depends-on): Remove unlocked-io.
26291
26292 2005-07-14  Derek Price  <derek@ximbiot.com>
26293
26294         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
26295         for glob symlink bug.
26296
26297 2005-07-14  Bruno Haible  <bruno@clisp.org>
26298
26299         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
26300         Instead, test for *_unlocked function declarations directly.
26301
26302 2005-07-11  Simon Josefsson  <jas@extundo.com>
26303
26304         * modules/size_max: New file.
26305
26306         * modules/xsize: Depend on size_max module for size_max.m4.
26307
26308 2005-07-11  Simon Josefsson  <jas@extundo.com>
26309
26310         * lib/size_max.h: New file.
26311
26312 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
26313
26314         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
26315         copyright symbol and the year.
26316         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
26317         (version_etc_va): Use parameterized copyright notice.
26318         Reword to conform to the current GNU coding standards.
26319
26320 2005-07-11  Karl Berry  <karl@gnu.org>
26321
26322         * doc/gnulib.texi (Quoting): new node.
26323         (Initial import): more info, from Patrice.
26324
26325 2005-07-11  Bruno Haible  <bruno@clisp.org>
26326
26327         * gnulib-tool (func_usage): Document option --avoid.
26328         (Command line options): Handle --avoid.
26329         (func_acceptable): New function.
26330         (func_modules_transitive_closure): Use it.
26331
26332 2005-07-11  Bruno Haible  <bruno@clisp.org>
26333
26334         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
26335         Reported by Jim Meyering.
26336
26337 2005-07-10  Bruno Haible  <bruno@clisp.org>
26338
26339         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
26340         Needed when size_t is smaller than 'unsigned int'.
26341         Reported by Paul Eggert.
26342
26343 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
26344
26345         * modules/argp (Depends-on): Add unlocked-io
26346
26347 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
26348
26349         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
26350         block of defines.
26351
26352 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
26353
26354         * config/srclist.txt: Comment out regcomp.c, since we have a porting
26355         fix now.
26356
26357 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
26358         and Paul Eggert  <eggert@cs.ucla.edu>
26359
26360         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
26361         in wint_t, not wchar_t.  Remove now-unnecessary cast.
26362
26363 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
26364
26365         * modules/regex (Files): Add lib/regex_internal.c,
26366         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
26367         (Depends-on): Add extensions.
26368         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
26369
26370 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
26371
26372         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
26373         pathconf.
26374         * m4/same.m4 (gl_SAME): Likewise.
26375         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
26376
26377         * m4/regex.m4: Adjust to new libc regex implementation.
26378         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
26379         all the .c and .h parts of (the new) regex.
26380         Quote the m4 stuff better.
26381         Check for RE_ICASE bug of old gnulib.
26382         Check for REG_STARTEND of recent libc.
26383         Rename local variables from jm_* to gl_*.
26384         Quote operand of "test -f".
26385         Say "recent enough" version of libc, not "version 2".
26386         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
26387         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
26388         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
26389         Remove check for btowc, isascii.
26390         Require AM_LANGINFO_CODESET.
26391
26392 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
26393
26394         * lib/regex.c, regex.h: Sync from libc.
26395         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
26396         * lib/regexec.c:
26397         New files, synced from libc, except that regex_internal.h
26398         currently has a small porting fix.
26399
26400 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
26401
26402         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
26403         regex_internal.c, regexec.c.
26404         Add regex_internal.h too, but as a comment, since the libc version
26405         is currently broken in gnulib mode.
26406
26407 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
26408
26409         Support programs like Emacs that use gnulib but not gettext.
26410         * MODULES.html.sh (Internationalization functions): Add gettext-h.
26411         * modules/gettext-h: New file.
26412         * modules/gettext (Files): Remove lib/gettext.h.
26413         (Depends-on): Add gettext-h.
26414         (Makefile.am): Remove lib_SOURCES.
26415         * modules/argmatch, modules/c-stack, modules/closeout:
26416         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
26417         * modules/execute, modules/file-type, modules/getaddrinfo:
26418         * modules/getopt, modules/human, modules/javacomp:
26419         * modules/javaexec, modules/mkdir-p, modules/obstack:
26420         * modules/openat, modules/pagealign_alloc, modules/pipe:
26421         * modules/quotearg, modules/regex, modules/rpmatch:
26422         * modules/unicodeio, modules/userspec, modules/version-etc:
26423         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
26424         * modules/xsetenv:
26425         Depend on gettext-h, not gettext.
26426
26427 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
26428
26429         * gnulib-tool (func_import): Add support for 'public domain' license.
26430         * modules/alloca, modules/atexit, modules/memmove:
26431         Now public domain, not GPL.
26432         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
26433         * modules/realloc, modules/strerror, modules/strtod:
26434         Now LGPL, not GPL.
26435
26436 2005-07-05  Bruno Haible  <bruno@clisp.org>
26437
26438         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
26439         autoconf CVS. Needed for mingw.
26440
26441 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
26442
26443         Remove the dependency of the strftime module on the tzset module.
26444         * modules/strftime (Depends-on): Remove dependency on tzset.
26445
26446 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
26447
26448         Remove the dependency of the strftime module on the tzset module.
26449         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
26450         gl_FUNC_TZSET_CLOBBER.
26451
26452 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
26453
26454         Remove the dependency of the strftime module on the tzset module.
26455         * lib/strftime.c (my_strftime)
26456         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
26457         Copy the input structure, to work around some of the bug with
26458         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
26459         Solaris releases, you should also use the tzset module, but we won't
26460         require it as a dependency any more since we don't want LGPLed code
26461         to depend on GPLed code.
26462
26463 2005-07-02  Jim Meyering  <jim@meyering.net>
26464
26465         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
26466         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
26467         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
26468         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
26469
26470 2005-07-02  Jim Meyering  <jim@meyering.net>
26471
26472         * lib/backupfile.c (backup_args): Change a `0' to NULL.
26473
26474 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
26475
26476         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
26477         declares only 'struct timespec;' (!).
26478
26479 2005-07-01  Jim Meyering  <jim@meyering.net>
26480
26481         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
26482         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
26483         * lib/save-cwd.c, tempname.c:
26484         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
26485         and don't include <sys/file.h>).
26486
26487 2005-06-29  Jim Meyering  <jim@meyering.net>
26488
26489         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
26490         type name.  Use the variable name instead.
26491         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
26492         Likewise.
26493
26494 2005-06-28  Simon Josefsson  <jas@extundo.com>
26495
26496         * modules/check-version (Files): Add check-version.m4.
26497
26498 2005-06-28  Simon Josefsson  <jas@extundo.com>
26499
26500         * m4/check-version.m4: New file, suggested by Jim Meyering
26501         <jim@meyering.net>.
26502
26503 2005-06-28  Simon Josefsson  <jas@extundo.com>
26504
26505         * lib/check-version.h, lib/check-version.c: New files.
26506
26507 2005-06-28  Simon Josefsson  <jas@extundo.com>
26508
26509         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
26510         collision with global variable.  Better indentation.  Don't
26511         increment buffer pointer beyond buffer end.  Based on comments
26512         from Paul Eggert <eggert@cs.ucla.edu>.
26513
26514         * lib/base64.h: Indent.
26515
26516 2005-06-28  Simon Josefsson  <jas@extundo.com>
26517
26518         * doc/gnulib.texi (Library version handling): New section.
26519
26520 2005-06-28  Jim Meyering  <jim@meyering.net>
26521
26522         * check-module (find_included_lib_files): Hard-code another
26523         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
26524         but modules/fts-lgpl (correctly) does not list those files.
26525
26526         * modules/canonicalize (Files): Add lib/pathmax.h.
26527
26528 2005-06-25  Simon Josefsson  <jas@extundo.com>
26529
26530         * modules/check-version: New file.
26531
26532 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
26533
26534         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
26535         initializer of struct addrinfo, as an indication that we don't
26536         care how many members the structure has.
26537
26538 2005-06-24  Derek Price  <derek@ximbiot.com>
26539         and Bruno Haible  <bruno@clisp.org>
26540
26541         Remove stat module & update lstat.
26542         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
26543         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
26544         * m4/stat.m4: Remove this file.
26545
26546 2005-06-24  Derek Price  <derek@ximbiot.com>
26547         and Bruno Haible  <bruno@clisp.org>
26548
26549         Remove stat module & update lstat.
26550         * lib/stat.c: Remove this file...
26551         (slash_aware_lstat): ...moving this content and its support...
26552         * lib/lstat.c (rpl_lstat): ...into here.
26553         * lib/lstat.h: New file.
26554
26555 2005-06-24  Derek Price  <derek@ximbiot.com>
26556         and Bruno Haible  <bruno@clisp.org>
26557
26558         Remove stat module & update lstat.
26559         * config/srclist.txt (libc sources): Remove stat.
26560
26561 2005-06-24  Derek Price  <derek@ximbiot.com>
26562         and Bruno Haible  <bruno@clisp.org>
26563
26564         Remove stat module & update lstat.
26565         * MODULES.html.sh (stat): Remove.
26566         * MODULES.html: Regenerated.
26567         * modules/lstat (Description): Correct function name.
26568         (Files): Add "lstat.h".
26569         (Depends-on): Remove stat, add xalloc, stat-macros.
26570         * modules/stat: Remove this file.
26571         (Include): Add "lstat.h", remove <sys/stat.h>.
26572
26573 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
26574
26575         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
26576         (ranged_convert): Don't save conversion in a temporary struct.
26577         This causes a warning with GCC 4.0.0, and anyway in the typical
26578         case it's not worth the extra 100 bytes or so of code.
26579         (ranged_convert, __mktime_internal): When calling a function via a
26580         pointer P, use P () rather than (*P) (), as we now assume C89 or
26581         better.
26582
26583 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
26584
26585         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
26586         "who -r" failed to give output.  Problem reported by Tim Waugh.
26587
26588         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
26589         (xcalloc): Use it to avoid needless tests.
26590         Problem reported by Jim Meyering.
26591
26592 2005-06-20  Derek Price  <derek@ximbiot.com>
26593
26594         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
26595         unnecessary for Autoconfs > 2.59c.
26596
26597 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
26598
26599         * lib/argp.h (__option_is_short): Check upper limit of
26600         __key. Isprint() requires its argument to have the value
26601         of an unsigned char or EOF.
26602
26603 2005-06-16  Jim Meyering  <jim@meyering.net>
26604
26605         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
26606         when either N or S is zero.
26607
26608 2005-06-16  Derek Price  <derek@ximbiot.com>
26609
26610         * m4/bison.m4: Declare YACC & YFLAGS precious.
26611
26612 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
26613
26614         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
26615         multibyte string or pattern, fall back on unibyte matching.
26616         Problem reported by James Youngman.
26617
26618 2005-06-08  Bruno Haible  <bruno@clisp.org>
26619
26620         * modules/csharpcomp: New file.
26621         * MODULES.html.sh (C#): Add csharpcomp.
26622
26623 2005-06-08  Bruno Haible  <bruno@clisp.org>
26624
26625         * m4/csharpcomp.m4: New file, from GNU gettext.
26626
26627 2005-06-08  Bruno Haible  <bruno@clisp.org>
26628
26629         * lib/csharpcomp.h: New file, from GNU gettext.
26630         * lib/csharpcomp.c: New file, from GNU gettext.
26631         * lib/csharpcomp.sh.in: New file, from GNU gettext.
26632
26633 2005-06-08  Bruno Haible  <bruno@clisp.org>
26634
26635         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
26636         warning on mingw.
26637
26638 2005-06-07  Derek Price  <derek@ximbiot.com>
26639
26640         Sync from CVS.
26641         * lib/glob_.h: Indent nested #ifdef.
26642
26643 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
26644
26645         Sync from coreutils.
26646         Use "file name" when talking about file names, instead of "filename"
26647         or "path", as per the GNU coding standards.
26648         * lib/mkdir-p.c: Renamed from makepath.c.
26649         (make_dir_parents): Renamed from make_path.  All callers changed.
26650         * lib/mkdir-p.h: Likewise.  All includers changed.
26651         * lib/filenamecat.c: Renamed from path-concat.c.
26652         (file_name_concat): Renamed from path_concat.  All callers changed.
26653         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
26654         * lib/filenamecat.h: Likewise.  All includers changed.
26655         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
26656         in comments or local variable names.
26657         * lib/basename.c: Likewise.
26658         * lib/canonicalize.c, canonicalize.h: Likewise.
26659         * lib/dirname.c, dirname.h: Likewise.
26660         * lib/euidaccess.c: Likewise.
26661         * lib/exclude.c: Likewise
26662         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
26663         * lib/fsusage.c, fsuage.h: Likewise.
26664         * lib/fts.c, fts_.h: Likewise.
26665         * lib/getcwd.c: Likewise.
26666         * lib/getloadavg.c: Likewise.
26667         * lib/mkstemp.c: Likewise.
26668         * lib/mountlist.c, mountlist.h: Likewise.
26669         * lib/openat.c, openat.h: Likewise.
26670         * lib/readlink-stub.c: Likewise.
26671         * lib/readutmp.c, readutmp.h: Likewise.
26672         * lib/rename.c: Likewise.
26673         * lib/rmdir.c: Likewise.
26674         * lib/same.c: Likewise.
26675         * lib/savedir.c: Likewise.
26676         * lib/stripslash.c: Likewise.
26677         * lib/tempname.c: Likewise.
26678         * lib/xreadlink.c: Likewise.
26679         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
26680         All uses changed.
26681         * lib/exclude.h: Likewise.
26682
26683         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
26684         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
26685         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
26686         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
26687         * lib/pathmax.h: Include <limits.h> unconditionally, since other
26688         files have been getting away with it for years (MORE/BSD 4.3
26689         is extinct now).
26690         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
26691         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
26692
26693         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
26694         Define to 256, not 255, as per modern POSIX.
26695
26696 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
26697
26698         Sync from coreutils.
26699         Use "file name" when talking about file names, instead of "filename"
26700         or "path", as per the GNU coding standards.
26701         * MODULES.html.sh: mkdir-p renamed from makepath.
26702         filenamecat renamed from path-concat.
26703         * modules/filenamecat: Renamed from modules/path-concat.
26704         (Files): filenamecat.h and filenamecat.c renamed from
26705         path-concat.h and path-concat.c.
26706         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
26707         (Include): filenamecat.h, not path-concat.h.
26708         * modules/mkdir-p: Renamed from modules/makepath.
26709         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
26710         makepath.c.
26711         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
26712         (Include): mkdir-p.h, not makepath.h.
26713
26714 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
26715
26716         Sync from coreutils.
26717         * m4/mkdir-p.m4: Renamed from makepath.m4.
26718         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
26719         Rename files from makepath.c to mkdir-p.c, and from
26720         makepath.h to mkdir-p.h.
26721         * m4/filenamecat.m4: Renamed from path-concat.m4.
26722         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
26723         Rename files from path-concat.c to filenamecat.c,
26724         and from path-concat.h to filenamecat.h.
26725         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
26726         "file name" in local variables or comments.
26727         * m4/rename.m4: Likewise.
26728
26729 2005-06-01  Bruno Haible  <bruno@clisp.org>
26730
26731         * modules/csharpexec: New file.
26732         * MODULES.html.sh (C#): New section.
26733
26734 2005-06-01  Bruno Haible  <bruno@clisp.org>
26735
26736         * m4/csharp.m4: New file, from GNU gettext.
26737         * m4/csharpexec.m4: New file, from GNU gettext.
26738
26739 2005-06-01  Bruno Haible  <bruno@clisp.org>
26740
26741         * lib/csharpexec.h: New file, from GNU gettext.
26742         * lib/csharpexec.c: New file, from GNU gettext.
26743         * lib/csharpexec.sh.in: New file, from GNU gettext.
26744
26745 2005-05-31  Derek Price  <derek@ximbiot.com>
26746             Paul Eggert  <eggert@cs.ucla.edu>
26747
26748         Sync from cvs.
26749         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
26750
26751 2005-05-31  Derek Price  <derek@ximbiot.com>
26752             Paul Eggert  <eggert@cs.ucla.edu>
26753
26754         Sync from cvs.
26755         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
26756
26757 2005-05-29  Derek Price  <derek@ximbiot.com>
26758
26759         * config/srclist.txt (glob_.h, glob.c): Add these files.
26760
26761 2005-05-29  Derek Price  <derek@ximbiot.com>
26762
26763         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
26764         * modules/glob: New file.
26765         * modules/getlogin_r: Add link to POSIX spec in description.
26766
26767 2005-05-29  Derek Price  <derek@ximbiot.com>
26768             Paul Eggert  <eggert@cs.ucla.edu>
26769
26770         * m4/glob.m4: New file.
26771
26772 2005-05-29  Derek Price  <derek@ximbiot.com>
26773             Paul Eggert  <eggert@cs.ucla.edu>
26774
26775         * lib/glob_.h, lib/glob.c: New files.
26776
26777 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
26778
26779         * modules/fts (Files): Remove m4/inttypes-pri.m4.
26780         * modules/fts-lgpl (Depends-on): Remove gettext.
26781
26782 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
26783
26784         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
26785         and don't require gt_INTTYPES_PRI.
26786
26787 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
26788
26789         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
26790
26791         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
26792         the configuration hassle isn't worth it.
26793         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
26794         (LONGEST_MODIFIER, PRIuMAX): Remove.
26795
26796 2005-05-27  Bruno Haible  <bruno@clisp.org>
26797
26798         * lib/getlogin_r.h: Remove second include of <stddef.h>.
26799
26800 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
26801
26802         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
26803         _POSIX_PTHREAD_SEMANTICS for Solaris.
26804
26805 2005-05-25  Derek Price  <derek@ximbiot.com>
26806
26807         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
26808
26809 2005-05-25  Derek Price  <derek@ximbiot.com>
26810             Paul Eggert  <eggert@cs.ucla.edu>
26811
26812         * modules/getlogin_r, m4/getlogin_r.m4: New files.
26813         * lib/getlogin_r.c, getlogin_r.h: New files.
26814
26815 2005-05-25  Bruno Haible  <bruno@clisp.org>
26816             Derek Price  <derek@ximbiot.com>
26817
26818         * lib/getlogin_r.h: Simplify API documentation.
26819
26820 2005-05-23  Derek Price  <derek@ximbiot.com>
26821
26822         * modules/minmax (Files): Add m4/minmax.m4.
26823         (configure.ac): Add gl_MINMAX.
26824
26825 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
26826
26827         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
26828         so that unistd-safer.h (GPL'ed code) need not be included.
26829
26830 2005-05-22  Bruno Haible  <bruno@clisp.org>
26831
26832         * m4/minmax.m4: New file.
26833         Based on a patch by Derek Price <derek@ximbiot.com>.
26834
26835 2005-05-22  Bruno Haible  <bruno@clisp.org>
26836
26837         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
26838         (INT64_MIN): Fix definition.
26839         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
26840
26841         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
26842         NEED_SIGNED_INT_TYPES.
26843
26844         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
26845         HAVE_SYSTEM_INTTYPES.
26846
26847 2005-05-22  Bruno Haible  <bruno@clisp.org>
26848
26849         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
26850         Also include <sys/param.h> if it defines MIN, MAX.
26851         Based on a patch by Derek Price <derek@ximbiot.com>.
26852
26853 2005-05-21  Jim Meyering  <jim@meyering.net>
26854
26855         * modules/fts (Files): Add m4/inttypes-pri.m4.
26856         (Depends-on): Add lstat and remove gettext.  Alphabetize.
26857
26858 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
26859
26860         New fts module.
26861         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
26862         (setup_dir, free_dir): New functions.
26863         (enter_dir, leave_dir): Define trivial
26864         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
26865         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
26866         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
26867         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
26868         Move to fts-cycle.c.
26869         (fts_open): Use setup_dir.
26870         (fts_close): Use free_dir.
26871         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
26872         This adds a label and some gotos, but the alternatives were messier.
26873         Check for memory allocation failure when entering a dir.
26874         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
26875         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
26876         (FTS): New member fts_cycle, that is a union that contains the
26877         old active_dir_ht and cycle_state.  All uses changed to mention
26878         fts_cycle.ht and fts_cycle.state.
26879         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
26880         fts.c, with the following changes:
26881         (setup_dir, free_dir): New functions.
26882         (enter_dir): Now returns bool.  Return true if successful, false
26883         if memory exhausted.  All callers changed.
26884         Do not bother partly cleaning up on
26885         memory allocation failure; that is free_dir's job.
26886         However, free ad if hash_insert fails, to avoid memory leak.
26887         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
26888         fts->fts_options to see which union member to use.
26889
26890 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
26891
26892         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
26893         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
26894
26895 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
26896
26897         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
26898
26899 2005-05-20  Jim Meyering  <jim@meyering.net>
26900
26901         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
26902         Now a macro, to pacify GCC.
26903
26904 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
26905
26906         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
26907         of -1.
26908
26909 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
26910
26911         * lib/chown.c (rpl_chown): Return -1 on failure.
26912
26913 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
26914
26915         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
26916         Don't check for stddef.h.
26917         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
26918         don't use its results.
26919         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
26920         since we include them unconditionally.  Don't require
26921         AM_STDBOOL_H, since stdbool is a prerequisite.
26922         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
26923         since we assume C89 or better.
26924         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
26925         as we don't use their results.
26926         Don't check for fchdir, memmove, memset, strrchr, as we use
26927         them unconditionally.
26928         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
26929         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
26930
26931 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
26932
26933         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
26934         Include <stddef.h> unconditionally, since we assume C89 now.
26935         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
26936         * lib/fts.c: Include fts_.h first, to check interface.
26937         Do not include intprops.h; no longer needed.
26938         Include cycle-check.h and hash.h, since fts_.h no longer does.
26939         Remove unnecessary casts of closedir to void.
26940         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
26941         decide whether to decrement nlinks.
26942         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
26943         (FTS): Use struct hash_table * instead of Hash_table, so that
26944         we no longer need to include hash.h here.
26945
26946 2005-05-18  Jim Meyering  <jim@meyering.net>
26947
26948         * modules/dirfd (License): Change to LGPL.  Most of the code
26949         is already in the public domain.
26950
26951 2005-05-18  Jim Meyering  <jim@meyering.net>
26952
26953         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
26954         Reported by Yoann Vandoorselaere.
26955
26956 2005-05-17  Jim Meyering  <jim@meyering.net>
26957
26958         * m4/fts.m4: New file, from coreutils.
26959
26960 2005-05-17  Jim Meyering  <jim@meyering.net>
26961
26962         * lib/fts.c, lib/fts_.h: New files, from coreutils.
26963
26964 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
26965
26966         Sync from coreutils.
26967         * m4/unlinkdir.m4: New file.
26968
26969 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
26970
26971         Sync from coreutils.
26972         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
26973         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
26974         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
26975         White space changes only.
26976         * lib/makepath.c (make_path): Port to hosts where leading "//" is
26977         special.
26978         * lib/yesno.c: Include getline.h, not ctype.h.
26979         (yesno): Don't remove leading white space; POSIX doesn't allow it.
26980         Use getline to remove arbitrary restriction on response length.
26981
26982 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
26983
26984         * config/srclist-update: Spell out "Street" in FSF postal
26985         mail address; this is the style the FSF seems to prefer.
26986
26987         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
26988         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
26989         this updates FSF postal mail address.
26990
26991         Sync from coreutils.
26992         * modules/unlinkdir: New file.
26993         * modules/yesno (Depends-on): Add getline.
26994         * MODULES.html.sh (File system functions): Add unlinkdir.
26995
26996 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
26997
26998         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
26999         lib/strsep.h:
27000         Change the initial comment to refer to GPL, not LGPL.
27001         gnulib-tool will change it to LGPL as needed.
27002
27003         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
27004         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
27005         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
27006         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
27007         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
27008         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
27009         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
27010         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
27011         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
27012         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
27013         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
27014         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
27015         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
27016         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
27017         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
27018         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
27019         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
27020         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
27021         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
27022         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
27023         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
27024         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
27025         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
27026         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
27027         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
27028         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
27029         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
27030         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
27031         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
27032         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
27033         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
27034         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
27035         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
27036         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
27037         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
27038         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
27039         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
27040         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
27041         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
27042         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
27043         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
27044         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
27045         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
27046         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
27047         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
27048         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
27049         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
27050         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
27051         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
27052         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
27053         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
27054         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
27055         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
27056         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
27057         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
27058         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
27059         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
27060         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
27061         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
27062         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
27063         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
27064         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
27065         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
27066         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
27067         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
27068         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
27069         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
27070         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
27071         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
27072         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
27073         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
27074         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
27075         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
27076         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
27077         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
27078         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
27079         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
27080         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
27081         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
27082         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
27083         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
27084         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
27085         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
27086         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
27087         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
27088         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
27089         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
27090         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
27091         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
27092         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
27093         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
27094         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
27095         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
27096         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
27097         lib/yesno.c, lib/yesno.h:
27098         Update FSF postal mail address.
27099
27100 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
27101
27102         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
27103         tests/test-memmem.c, tests/test-stpncpy.c:
27104         Update FSF postal mail address.
27105
27106 2005-05-13  Bruno Haible  <bruno@clisp.org>
27107
27108         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
27109         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
27110         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
27111         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
27112         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
27113         Add support for 64-bit integers in the MSVC compiler.
27114
27115 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
27116
27117         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
27118
27119 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
27120
27121         * gnulib-tool (func_import): Sort and uniquify recommended includes.
27122
27123 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
27124
27125         * doc/getdate.texi (General date syntax): Don't say that date
27126         date --iso-8601=ns generates acceptable dates; it doesn't yet.
27127         Problem reported by Nic Ferrier.
27128
27129 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27130
27131         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
27132         specified in ai_socktype. Fix invalid ai_protocol
27133         check. ai_protocol is usually set to 0 or depending on
27134         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
27135         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
27136         ai_socktype / ai_protocol in the returned addrinfo structure.
27137
27138 2005-05-10  Simon Josefsson  <jas@extundo.com>
27139
27140         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
27141         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
27142
27143 2005-05-10  Karl Berry  <karl@gnu.org>
27144
27145         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
27146         (from http://www.gnu.org/licenses).
27147         * doc/COPYING.LIB: also rename to COPYING.LESSER.
27148         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
27149         fdl.texi suffices.
27150
27151 2005-05-10  Karl Berry  <karl@gnu.org>
27152
27153         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
27154         (COPYING.DOC): remove.
27155
27156         * config/srclist-update: new FSF address.
27157
27158 2005-05-10  Derek Price  <derek@ximbiot.com>
27159
27160         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
27161         possible.
27162
27163 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27164             Bruno Haible  <bruno@clisp.org>
27165
27166         * modules/inet_ntop: New file.
27167         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
27168         inet_ntop.
27169
27170 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27171             Bruno Haible  <bruno@clisp.org>
27172
27173         * m4/inet_ntop.m4: New file.
27174
27175 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27176             Bruno Haible  <bruno@clisp.org>
27177
27178         * lib/inet_ntop.h: New file.
27179         * lib/inet_ntop.c: New file, from glibc with modifications.
27180
27181 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
27182
27183         * modules/time_r (License): Change to LGPL.
27184         * modules/extensions (License): Change to LGPL.  Actually,
27185         the license is more permissive than that, but currently gnulib-tool
27186         doesn't know how to handle more-permissive licenses.
27187
27188         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
27189         Problem reported by Dave Love.
27190
27191 2005-05-08  Jim Meyering  <jim@meyering.net>
27192
27193         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
27194         blank.
27195
27196 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
27197
27198         * modules/argmatch (Depends-on): Add stdbool.
27199         * modules/backupfile (Depends-on): Likewise.
27200         * modules/chdir-long (Depends-on): Likewise.
27201         * modules/closeout (Depends-on): Likewise.
27202         * modules/cycle-check (Depends-on): Likewise.
27203         * modules/dirname (Depends-on): Likewise.
27204         * modules/fnmatch (Depends-on): Likewise.
27205         * modules/fsusage (Depends-on): Likewise.
27206         * modules/fwriteerror (Depends-on): Likewise.
27207         * modules/getcwd (Depends-on): Likewise.
27208         * modules/getloadavg (Depends-on): Likewise.
27209         * modules/hard-locale (Depends-on): Likewise.
27210         * modules/makepath (Depends-on): Likewise.
27211         * modules/mountlist (Depends-on): Likewise.
27212         * modules/nanosleep (Depends-on): Likewise.
27213         * modules/posixtm (Depends-on): Likewise.
27214         * modules/quotearg (Depends-on): Likewise.
27215         * modules/readtokens (Depends-on): Likewise.
27216         * modules/readtokens0 (Depends-on): Likewise.
27217         * modules/readutmp (Depends-on): Likewise.
27218         * modules/save-cwd (Depends-on): Likewise.
27219         * modules/strftime (Depends-on): Likewise.
27220         * modules/userspec (Depends-on): Likewise.
27221         * modules/utimecmp (Depends-on): Likewise.
27222         * modules/xgetcwd (Depends-on): Likewise.
27223         * modules/xnanosleep (Depends-on): Likewise.
27224         * modules/xstrtod (Depends-on): Likewise.
27225         * modules/yesno (Depends-on): Likewise.
27226
27227 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
27228
27229         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
27230         needless checks.
27231
27232 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
27233
27234         Merge from coreutils.  Among other things,
27235         add bulletproofing for cases where stdin, stdout, or stderr are closed.
27236         * lib/fd-safer.c: New file.
27237         * lib/fcntl-safer.h, open-safer.c: Remove.
27238         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
27239         * lib/dup-safer.c: Include unistd-safer.h first.
27240         Don't include errno.h.
27241         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
27242         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
27243         * lib/file-type.c: Rely on file-type.h change.
27244         * lib/getloadavg.c: Include unistd-safer.h.
27245         (getloadavg): Use safer open.
27246         * lib/getusershell.c: Include "stdio-safer.h".
27247         (getusershell): Use safer fopen.
27248         * lib/long-options.c (long_options): Use NULL rather than 0.
27249         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
27250         'free'.
27251         * lib/modechange.c: Likewise.
27252         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
27253         (MODE_DONE): New constant.
27254         (struct mode_change): Remove 'next' member.
27255         (make_node_op_equals): New function; like the old one of the
27256         same name, except it allocates an array.
27257         (mode_compile, mode_create_from_ref): Use it.
27258         (mode_compile): Allocate result as an array, not a linked list.
27259         Parse octal string ourself, so that we catch mistakes like "+0".
27260         (mode_adjust): Arg is an array, not a linked list.
27261         * lib/modechange.c: Include stat-macros.h, xalloc.h.
27262         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
27263         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
27264         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
27265         Remove.  This is now stat-macros.h's job.
27266         (talloc): Remove.  All callers replaced by xalloc, so that
27267         our invokers don't have to worry about reporting memory failures.
27268         (make_node_op_equals): Remove.
27269         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
27270         New constants.
27271         (struct mode_change): Moved here from modechange.h.
27272         (mode_append_entry): Remove.
27273         (mode_compile): Remove MASKED_OPS arg, since it encouraged
27274         apps to have incorrect behavior.  Use simpler algorithm for head
27275         and tail.  Don't futz with umask; that's now the job of mode_adjust.
27276         Detect more invalid usages rather than having somewhat-random behavior.
27277         Don't insert an "a=" action, as that leads to incorrect behavior.
27278         (mode_compile, mode_create_from_ref): Return NULL on error instead
27279         of an enum, since now there's only one way to have an error.  All
27280         callers changed.
27281         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
27282         at the correct time.  Simplify calculation of "+u" and its ilk.
27283         Don't mishandle "+X".
27284         (mode_free): Remove "register" and localize decls.
27285         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
27286         (struct mode_change): Move to modechange.c; callers don't
27287         need to see this stuff.
27288         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
27289         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
27290         (mode_change, mode_adjust): Reflect the new signatures noted above.
27291         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
27292         that might redefine system include files.
27293         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
27294         (my_usleep): Use NULL rather than (void *) 0.
27295         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
27296         Use siginterrupt to specify that system calls should be interrupted.
27297         (rpl_nanosleep): Move initialization of suspended closer to call of
27298         my_usleep.
27299         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
27300         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
27301         (desirable_utmp_entry): New function.
27302         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
27303         using x2nrealloc, to simplify logic.
27304         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
27305         size calculation.  Do not assume utmp file is a regular file.
27306         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
27307         (READ_UTMP_CHECK_PIDS): New constant.
27308         * lib/save-cwd.c: Include unistd-safer.h.
27309         (save_cwd): Use fd_safer.
27310         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
27311         [!_LIBC] Include "stat-macros.h" instead.
27312         * lib/unistd-safer.h (fd_safer): New decl.
27313
27314 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
27315
27316         * modules/getloadavg (Depends-on): Add unistd-safer.
27317         * modules/getusershell (Depends-on): Add stdio-safer.
27318         * modules/lstat (Depends-on): Remove xalloc.
27319         * modules/mkstemp (Depends-on): Add stat-macros.
27320         * modules/modechange (Depends-on): Remove xstrtol.
27321         Add stat-macros, xalloc.
27322         * modules/save-cwd (Depends-on): Add unistd-safer.
27323         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
27324         * modules/unistd-safer (Files): Add lib/fd-safer.c
27325         (Makefile.am): Remove lib_SOURCES.
27326
27327         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
27328         Remove fcntl-safer; unistd-safer supersedes it.
27329
27330 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
27331
27332         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
27333         AC_HEADER_STAT.
27334         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
27335         (gl_PREREQ_CHOWN): Remove.
27336         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
27337         it.  Don't require AC_HEADER_STAT.
27338         (gl_PREREQ_LSTAT): Remove.
27339         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
27340         Don't require AC_HEADER_STAT.
27341         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
27342         (gl_PREREQ_RMDIR): Remove.
27343         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
27344         mention stat-macros.h or AC_HEADER_STAT, since we'll make
27345         the stat-macros module a prerequisite.
27346         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
27347         * m4/filemode.m4 (gl_FILEMODE): Likewise.
27348         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
27349         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
27350         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
27351         variable names.
27352         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
27353         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
27354         variable prefixes.
27355         * m4/fcntl-safer.m4: Remove.
27356         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
27357         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
27358         Invoke gl_PREREQ_FD_SAFER.
27359         (gl_PREREQ_FD_SAFER): New macro.
27360         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
27361         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
27362         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
27363         Remove duplicate call to AC_LIBOBJ(readutmp).
27364         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
27365
27366         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
27367         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
27368
27369 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
27370
27371         * MODULES.html.sh (Misc): Add byteswap.
27372
27373 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
27374
27375         * modules/getcwd (Depends-on): Add extensions.
27376         * modules/openat (Depends-on): Likewise.
27377
27378 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
27379
27380         * modules/byteswap: New file.
27381
27382 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
27383
27384         * m4/byteswap.m4: New file.
27385
27386 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
27387
27388         * lib/byteswap_.h: New file.
27389
27390 2005-04-25  Karl Berry  <karl@gnu.org>
27391
27392         * m4/gettext.m4: Update from GNU gettext 0.14.4.
27393
27394 2005-04-25  Albert Chin  <china@thewrittenword.com>
27395
27396         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
27397         Toolkit C bug.
27398
27399 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
27400
27401         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
27402         (func_ln_if_changed) Remove forcibly for no error message
27403         in case file does not exist.
27404
27405 2005-04-19  Simon Josefsson  <jas@extundo.com>
27406
27407         * gnulib-tool (Options): Make --symlink mean --symbolic.
27408
27409 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
27410
27411         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
27412
27413 2005-04-16  Simon Josefsson  <jas@extundo.com>
27414
27415         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
27416
27417 2005-04-15  Simon Josefsson  <jas@extundo.com>
27418
27419         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
27420
27421 2005-04-15  Simon Josefsson  <jas@extundo.com>
27422
27423         * gnulib-tool: Rename --symlink to --symbolic.
27424
27425 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
27426
27427         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
27428         symbolic links to files instead of copying/moving.  Add --aux-dir,
27429         specifying directory relative --dir where auxiliary build tools
27430         are placed.
27431
27432 2005-04-14  Bruno Haible  <bruno@clisp.org>
27433
27434         * modules/allocsa (License): Change to LGPL.
27435         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
27436
27437 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
27438
27439         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
27440         that "UTC +1 second" continues to work.  Problem reported
27441         by Dmitry V. Levin.
27442         (relunit_snumber): New rule.
27443         (relunit): Use it.
27444
27445 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
27446
27447         * lib/getdate.y (universal_time_zone_table): New constant.
27448         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
27449         universal_time_zone_table.
27450         (lookup_zone): Prefer universal_time_zone_table to
27451         local_time_zone_table, so that "GMT" time stamps are allowed in
27452         London during the summer.  Problem reported by Ian Abbott.
27453
27454 2005-04-12  Jim Meyering  <jim@meyering.net>
27455
27456         * lib/human.c (humblock): Set *options even when returning due to
27457         xstrtoumax conversion failure.  Thanks to a used-uninitialized
27458         warning from gcc-4.
27459
27460 2005-04-09  Jim Meyering  <jim@meyering.net>
27461
27462         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
27463         -Wuninitialized: initialize tm0.tm_year.
27464
27465 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
27466
27467         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
27468         count, since there's no maximum.  All uses changed.
27469         Add member dsts_seen.
27470         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
27471         not being INT_MAX.
27472         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
27473         Use pc_rels_seen to decide whther a date is absolute.
27474
27475         * lib/getdate.y (number): Don't overwrite year.
27476         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
27477         check.
27478
27479 2005-04-02  Simon Josefsson  <jas@extundo.com>
27480
27481         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
27482         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
27483
27484 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
27485
27486         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
27487         where no absolute path name can be longer than PATH_MAX.
27488
27489 2005-03-27  Jim Meyering  <jim@meyering.net>
27490
27491         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
27492
27493 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
27494
27495         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
27496         "one's complement" -> "ones' complement" in comment, as per Knuth.
27497         "value of type" -> "type or expression" in comment.
27498         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
27499
27500 2005-03-26  Jim Meyering  <jim@meyering.net>
27501
27502         Comment nits.
27503         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
27504         Correct typos: s/or/of/.
27505
27506 2005-03-26  Jim Meyering  <jim@meyering.net>
27507
27508         * modules/check-include-files: Move to ../ and rename to...
27509         * check-module: ...this.
27510
27511 2005-03-25  Jim Meyering  <jim@meyering.net>
27512
27513         * modules/xvasprintf (Files): Add xalloc.h.
27514
27515 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
27516
27517         * modules/gettext (Files): config/config.rpath ->
27518         build-aux/config.rpath
27519         * modules/iconv (Files): Likewise.
27520         Problem reported by Oskar Liljeblad.
27521
27522 2005-03-23  Jim Meyering  <jim@meyering.net>
27523
27524         * modules/check-include-files: New script to check for
27525         missing dependencies, multiple includes, etc.
27526
27527         * modules/c-strtold (Depends-on): Add xalloc.
27528         * modules/c-strtod (Depends-on): Add xalloc.
27529         * modules/hash (Depends-on): Add xalloc.
27530         (Files): Remove lib/xalloc.h.
27531
27532         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
27533         * modules/userspec (Files): Add lib/inttostr.h.
27534
27535 2005-03-23  Jim Meyering  <jim@meyering.net>
27536
27537         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
27538
27539 2005-03-22  Jim Meyering  <jim@meyering.net>
27540
27541         * modules/stat-macros: New module.
27542         * modules/canonicalize, modules/euidaccess, modules/file-type,
27543         * modules/filemode, modules/lchown, modules/makepath,
27544         * modules/rmdir, modules/stat: Depend on new stat-macros module
27545         rather than listing lib/stat-macros.h manually.
27546         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
27547
27548 2005-03-22  Jim Meyering  <jim@meyering.net>
27549
27550         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
27551
27552 2005-03-22  Bruno Haible  <bruno@clisp.org>
27553
27554         * config/srclist.txt: Replace target directory 'config' with
27555         'build-aux'.
27556         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
27557         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
27558         ../build-aux/.
27559
27560 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
27561
27562         * modules/chdir-long (Depends-on): Add mempcpy.
27563
27564         * modules/acl, modules/backupfile, modules/c-strtod,
27565         modules/c-strtold, modules/canon-host, modules/canonicalize,
27566         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
27567         modules/exclude, modules/exitfail, modules/file-type,
27568         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
27569         modules/getdate, modules/getline, modules/getpagesize,
27570         modules/getpass, modules/getugroups, modules/group-member,
27571         modules/hard-locale, modules/hash, modules/human, modules/idcache,
27572         modules/inttostr, modules/long-options, modules/makepath,
27573         modules/md5, modules/memcasecmp, modules/memcoll,
27574         modules/modechange, modules/mountlist, modules/path-concat,
27575         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
27576         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
27577         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
27578         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
27579         modules/strftime, modules/strndup, modules/strverscmp,
27580         modules/timespec, modules/unlocked-io, modules/userspec,
27581         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
27582         modules/yesno:
27583         Remove lib_SOURCES line from Makefile.am section, as this is now
27584         done automatically by the corresponding Autoconf macro.
27585
27586 2005-03-21  Jim Meyering  <jim@meyering.net>
27587
27588         Changes imported from coreutils.
27589
27590         * lib/cycle-check.c: Don't include xalloc.h.
27591
27592         * lib/path-concat.c: Don't include assert.h.
27593         (path_concat): Remove assertion that would have triggered
27594         for ABASE starting with more than one slash.
27595         Reported by Andreas Schwab.
27596
27597         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
27598         properly when ABASE is an absolute file name.
27599         Correct the description of this function.
27600         Include <assert.h>.
27601         Add an assertion and a test driver.
27602         This fixes a bug introduced on 2004-07-02.
27603         Andreas Schwab reported the resulting failure of cp --parents:
27604         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
27605
27606 2005-03-21  Jim Meyering  <jim@meyering.net>
27607
27608         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
27609         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
27610
27611 2005-03-21  Jim Meyering  <jim@meyering.net>
27612         and  Paul Eggert  <eggert@cs.ucla.edu>
27613
27614         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
27615         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
27616         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
27617         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
27618         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
27619         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
27620         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
27621         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
27622         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
27623         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
27624         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
27625         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
27626         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
27627         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
27628         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
27629         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
27630         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
27631         for these modules.
27632
27633 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
27634
27635         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
27636         (which shouldn't happen), generate nothing instead of returning 0
27637         immediately, so that nstrftime (NULL, ...) doesn't return 0.
27638
27639 2005-03-16  Bruno Haible  <bruno@clisp.org>
27640
27641         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
27642         HAVE_LONGLONG_64BIT.
27643
27644 2005-03-16  Bruno Haible  <bruno@clisp.org>
27645
27646         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
27647         HAVE_LONGLONG_64BIT.
27648
27649 2005-03-16  Bruno Haible  <bruno@clisp.org>
27650
27651         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
27652         HAVE_LONGLONG_64BIT.
27653
27654 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
27655
27656         * lib/strftime.c (my_strftime): Prepend space to format so that we can
27657         reliably distinguish strftime failure from empty output on POSIX
27658         hosts.
27659
27660 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
27661
27662         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
27663         (iconv_string): Don't guess a size-zero buffer, as that might cause
27664         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
27665         result would be 'too large', where 'too large' is (heuristically)
27666         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
27667         overflow concerns.  This will prevent some unwanted malloc failures
27668         when the inputs are very large.
27669
27670 2005-03-15  Karl Berry  <karl@gnu.org>
27671
27672         * config/srclist.txt (config.rpath): from gettext.
27673         * config/config.rpath: update.
27674
27675 2005-03-15  Bruno Haible  <bruno@clisp.org>
27676
27677         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
27678         to 'negate'.
27679
27680         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
27681         variable.
27682
27683         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
27684         results.
27685
27686 2005-03-14  Simon Josefsson  <jas@extundo.com>
27687
27688         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
27689         <fx@gnu.org>.
27690
27691 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
27692
27693         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
27694         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
27695         intprops.h.
27696         * lib/strtol.c: Likewise.
27697
27698 2005-03-14  Jim Meyering  <jim@meyering.net>
27699
27700         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
27701         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
27702         to be nonzero so that we (and caller) can detect the difference
27703         between a valid zero-length expansion and an error return, even
27704         when the underlying strftime fails before writing anything into
27705         that location.
27706
27707 2005-03-14  Bruno Haible  <bruno@clisp.org>
27708
27709         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
27710         Update from GNU gettext 0.14.3.
27711
27712 2005-03-10  Jim Meyering  <jim@meyering.net>
27713
27714         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
27715
27716 2005-03-10  Jim Meyering  <jim@meyering.net>
27717
27718         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
27719         so that this module works on systems without fchdir.
27720
27721 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
27722
27723         Factor int-properties macros into a single file, except for
27724         glibc-related files.
27725         * lib/intprops.h: New file.
27726         * lib/getloadavg.c: Include it instead of limits.h.
27727         (INT_STRLEN_BOUND): Remove.
27728         * lib/human.c: Include intprops.h.
27729         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
27730         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
27731         302/1000.
27732         * lib/inttostr.h: Include intprops.h instead of limits.h.
27733         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
27734         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
27735         for consistency with intprops.h.
27736         (time_t_is_integer, twos_complement_arithmetic): Use them.
27737         * lib/sig2str.h: Include <signal.h>, intprops.h.
27738         (INT_STRLEN_BOUND): Remove.
27739         * lib/strftime.c (TYPE_SIGNED): Remove.
27740         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
27741         * lib/strtol.c: Adjust comments to match intprops.h.
27742         * lib/userspec.c: Include intprops.h.
27743         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
27744         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
27745         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
27746         instead of rolling our own expressions.
27747         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
27748
27749         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
27750         instead of int.
27751         (my_strftime): Do not mishandle years close to INT_MAX, by doing
27752         the right thing even if adding 1900 would overflow.  Similarly
27753         for tm_mon + 1 and tm_yday + 1.
27754         Make %Y always equivalent to %C%y, and similarly for %G and %g.
27755         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
27756         (DO_SIGNED_NUMBER): New macro.
27757         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
27758
27759 2005-03-07  Bruno Haible  <bruno@clisp.org>
27760
27761         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
27762
27763 2005-03-07  Bruno Haible  <bruno@clisp.org>
27764
27765         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
27766
27767 2005-03-04  Derek R. Price  <derek@ximbiot.com>
27768
27769         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
27770         (func_import): Only replace files via --import when they have actually
27771         changed.
27772
27773 2005-03-03  Derek R. Price  <derek@ximbiot.com>
27774
27775         * m4/mmap-anon.m4: New file.
27776         * m4/pagealign_alloc.m4: New file.
27777
27778 2005-03-03  Derek R. Price  <derek@ximbiot.com>
27779             Bruno Haible  <bruno@clisp.org>
27780
27781         * modules/pagealign_alloc: New file.
27782         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
27783
27784 2005-03-03  Derek R. Price  <derek@ximbiot.com>
27785             Bruno Haible  <bruno@clisp.org>
27786
27787         * lib/pagealign_alloc.h: New file.
27788         * lib/pagealign_alloc.c: New file.
27789
27790 2005-03-03  Bruno Haible  <bruno@clisp.org>
27791
27792         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
27793         Use an all-permissive copyright notice, recommended by RMS.
27794
27795 2005-03-02  Bruno Haible  <bruno@clisp.org>
27796
27797         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
27798         of AIX, the replacement has to be done only after <string.h> is
27799         included, therefore not in config.h. stpncpy.h does the replacement,
27800         and stpncpy.c uses it.
27801
27802 2005-03-02  Bruno Haible  <bruno@clisp.org>
27803
27804         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
27805         stpncpy.c uses it.
27806
27807 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
27808
27809         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
27810         The workaround isn't strictly needed for POSIX conformance, and
27811         it's too much of a pain to configure and maintain.  We'll ask
27812         people to fix their kernels instead.
27813         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
27814         (NANOSLEEP_BUG_WORKAROUND): Remove.
27815         (xnanosleep): Remove the workaround.
27816
27817 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
27818
27819         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
27820         Reported by Derek Price.
27821         (Include): Add "timespec.h".
27822
27823         * modules/xnanosleep (Depends-on): Remove gethrxtime.
27824
27825 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
27826
27827         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
27828         to detect nanosleep bug.
27829
27830 2005-03-01  Bruno Haible  <bruno@clisp.org>
27831
27832         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
27833
27834 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
27835
27836         * modules/gethrxtime: New file.
27837         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
27838         (Depends-on): Add gethrxtime.
27839         (configure.ac): Add gl_XNANOSLEEP.
27840         (Makefile.am): Remove lib_SOURCES line.
27841
27842 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
27843
27844         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
27845         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
27846
27847 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
27848
27849         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
27850         * lib/timespec.h (gettime): Return void, since it always
27851         succeeds now.  All uses changed.
27852         * lib/gettime.c (gettime) Likewise.
27853         [HAVE_NANOTIME]: Prefer nanotime.
27854         Assume gettimeofday succeeds, as POSIX requires.
27855         Assime time () succeeds, since other code already does.
27856         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
27857         (timespec_subtract): Remove.
27858         (NANOSLEEP_BUG_WORKAROUND): New constant.
27859         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
27860         things considerably.  Use it only on GNU/Linux hosts, since the
27861         workaround shouldn't be needed elsewhere.
27862
27863 2005-02-24  Bruno Haible  <bruno@clisp.org>
27864
27865         * modules/gettext (Files): Add m4/glibc2.m4.
27866
27867 2005-02-24  Bruno Haible  <bruno@clisp.org>
27868
27869         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
27870         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
27871         * m4/progtest.m4:
27872         Update from GNU gettext 0.14.2.
27873         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
27874
27875 2005-02-24  Bruno Haible  <bruno@clisp.org>
27876
27877         * lib/localcharset.c: Update from GNU gettext 0.14.2.
27878         * lib/config.charset: Update from GNU gettext 0.14.2.
27879
27880 2005-02-24  Bruno Haible  <bruno@clisp.org>
27881
27882         * lib/gettext.h: Update from GNU gettext 0.14.2.
27883
27884 2005-02-23  Simon Josefsson  <jas@extundo.com>
27885
27886         * m4/iconvme.m4: New file.
27887
27888 2005-02-23  Jim Meyering  <jim@meyering.net>
27889
27890         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
27891         change.
27892         Thanks to Bruno Haible for catching it.
27893
27894 2005-02-22  Simon Josefsson  <jas@extundo.com>
27895
27896         * modules/iconvme: New file.
27897
27898         * MODULES.html.sh: Add iconvme.
27899
27900 2005-02-22  Simon Josefsson  <jas@extundo.com>
27901
27902         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
27903
27904 2005-02-22  Simon Josefsson  <jas@extundo.com>
27905
27906         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
27907
27908 2005-02-22  Jim Meyering  <jim@meyering.net>
27909
27910         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
27911         s/ifndef/ifdef/.
27912
27913 2005-02-20  Neil Conway  <neilc@samurai.com>
27914
27915         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
27916         returned by OSX/Darwin if the specified buffer is not large
27917         enough for the hostname.
27918
27919 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
27920
27921         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
27922         pass it to _help, otherwise the latter coredumps trying to
27923         dereference state.root_argp.
27924
27925 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
27926
27927         * modules/chdir-long (Depends-on): Add memrchr.
27928         * modules/memrchr (Files): Add lib/memrchr.h.
27929         (Include): "memrchr.h".
27930
27931 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
27932
27933         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
27934
27935 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
27936
27937         * lib/memrchr.h: New file.
27938         * lib/chdir-long.c: Include it.
27939         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
27940         Don't bother including stddef.h.
27941
27942 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
27943
27944         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
27945         inclusion.
27946         Include <sys/types.h>, for dev_t.
27947         (ME_DUMMY, ME_REMOTE): Move from here....
27948         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
27949         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
27950         Dmitry V. Levin.
27951         Include mountlist.h first, to test the interface.
27952
27953 2005-01-29  Bruno Haible  <bruno@clisp.org>
27954
27955         * lib/progname.c (program_name): Initialize.
27956         Needed when linking statically on MacOS X.
27957
27958 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
27959
27960         Sync from coreutils.
27961         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
27962         (Depends-on): Add c-strtod.
27963         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
27964
27965 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
27966
27967         Sync from coreutils.
27968         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
27969
27970         Remove files that are specific to coreutils.
27971         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
27972
27973 2005-01-28  Bruno Haible  <bruno@clisp.org>
27974
27975         * modules/javacomp: New file.
27976         * MODULES.html.sh (Java): Add javacomp.
27977
27978 2005-01-28  Bruno Haible  <bruno@clisp.org>
27979
27980         * m4/javacomp.m4: New file, from GNU gettext.
27981
27982 2005-01-28  Bruno Haible  <bruno@clisp.org>
27983
27984         * lib/javacomp.sh.in: New file, from GNU gettext.
27985         * lib/javacomp.h: New file, from GNU gettext.
27986         * lib/javacomp.c: New file, from GNU gettext.
27987
27988 2005-01-26  Simon Josefsson  <jas@extundo.com>
27989
27990         * lib/gai_strerror.c: Use GPL in header.
27991
27992 2005-01-26  Bruno Haible  <bruno@clisp.org>
27993
27994         * modules/javaexec: New file.
27995         * MODULES.html.sh (Java): Add javaexec.
27996
27997 2005-01-26  Bruno Haible  <bruno@clisp.org>
27998
27999         * m4/javaexec.m4: New file, from GNU gettext.
28000
28001 2005-01-26  Bruno Haible  <bruno@clisp.org>
28002
28003         * lib/javaexec.sh.in: New file, from GNU gettext.
28004         * lib/javaexec.h: New file, from GNU gettext.
28005         * lib/javaexec.c: New file, from GNU gettext.
28006
28007 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
28008
28009         * modules/lchown (Depends-on): Remove lchown.h
28010
28011 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
28012
28013         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
28014         must be defined if the header file was not found, in order
28015         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
28016
28017 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
28018
28019         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
28020         initializers for struct pentry_state.
28021         (__argp_error): Check return value of __asprintf
28022         (__argp_failure): Translate error message
28023
28024         * lib/argp-parse.c: Removed braces around the expansion of N_()
28025
28026 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
28027
28028         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
28029         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
28030         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
28031         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
28032         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
28033         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
28034         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
28035         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
28036         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
28037         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
28038         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
28039         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
28040         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
28041         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
28042         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
28043         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
28044         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
28045         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
28046         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
28047         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
28048         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
28049         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
28050         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
28051         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
28052         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
28053         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
28054         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
28055         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
28056         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
28057         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
28058         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
28059         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
28060         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
28061         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
28062         xstrtol.m4, xstrtoumax.m4, yesno.m4:
28063         Use an all-permissive copyright notice, recommended by RMS.
28064
28065 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
28066
28067         * modules/chdir-long (Depends-on): Remove mempcpy.
28068
28069 2005-01-21  Jim Meyering  <jim@meyering.net>
28070
28071         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
28072         same value as for Solaris 9.
28073
28074         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
28075         component length.  This included changing the parameter to be
28076         of type `char *' rather than `char const *'.
28077         * lib/chdir-long.h (chdir_long): Update prototype.
28078
28079         * lib/openat.c (fdopendir, fstatat): New functions.
28080         * lib/openat.h: Include headers required for use of DIR and struct
28081         stat.
28082         [AT_SYMLINK_NOFOLLOW]: Define.
28083         (fdopendir, fstatat): Add prototypes.
28084
28085 2005-01-21  Bruno Haible  <bruno@clisp.org>
28086
28087         * modules/classpath: New file.
28088         * MODULES.html.sh (Java): Add classpath.
28089
28090 2005-01-21  Bruno Haible  <bruno@clisp.org>
28091
28092         * lib/classpath.h: New file, from GNU gettext.
28093         * lib/classpath.c: New file, from GNU gettext.
28094
28095 2005-01-20  Simon Josefsson  <jas@extundo.com>
28096
28097         * modules/version-etc-fsf: New file.
28098
28099 2005-01-20  Simon Josefsson  <jas@extundo.com>
28100
28101         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
28102         * lib/version-etc.c: Remove version_etc_copyright.
28103         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
28104         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
28105
28106 2005-01-20  Simon Josefsson  <jas@extundo.com>
28107
28108         * lib/base64.h (isbase64): Add.
28109
28110         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
28111         using a unsigned prototype, don't inline.
28112         (base64_decode): Use it.
28113
28114 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
28115
28116         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
28117         it.
28118
28119 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
28120
28121         * lib/save-cwd.c (save_cwd): Remove code to support the case
28122         where fchdir is missing or flaky.
28123
28124 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
28125
28126         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
28127
28128 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
28129
28130         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
28131         AC_LIBSOURCES now does this.
28132         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
28133         with new ullong_max module.
28134
28135 2005-01-19  Bruno Haible  <bruno@clisp.org>
28136
28137         * modules/sh-quote: New file.
28138         * MODULES.html.sh (Executing programs): Add sh-quote.
28139
28140 2005-01-19  Bruno Haible  <bruno@clisp.org>
28141
28142         * lib/sh-quote.h: New file, from GNU gettext.
28143         * lib/sh-quote.c: New file, from GNU gettext.
28144
28145 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
28146
28147         Merge from coreutils.
28148         * m4/ullong_max.m4: New file.
28149         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
28150         (gl_MACROS): Assume localeconv exists.
28151
28152 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
28153
28154         Merge changes from coreutils, as described below in several
28155         changelogs dated today.
28156
28157         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
28158         (O_DIRECTORY): Remove; not needed here, since "." must be
28159         a directory.  All uses removed.
28160         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
28161         universal on Suns, and we also need to test for IRIX.
28162         Revamp code to use 'if' rather than '#if'.
28163         Avoid unnecessary comparison of cwd->desc to 0.
28164
28165         * lib/utimens.c (futimens): Robustify the previous patch, by checking
28166         for known valid error numbers rather than observed invalid ones.
28167
28168 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
28169
28170         * modules/ullong_max: New file.
28171
28172         * modules/chdir-long, modules/openat: New files.
28173         * modules/save-cwd (Depends-on): Depend on chdir-long.
28174         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
28175
28176 2005-01-18  Jim Meyering  <jim@meyering.net>
28177
28178         Merge from coreutils.
28179         * m4/chdir-long.m4, m4/openat.m4: New files.
28180         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
28181         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
28182         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
28183         is sane and DOES follow symlinks.  Besides, testing 20 different
28184         systems found no broken chown implementations.
28185         Prompted by a change in rsync's copy of this macro.
28186         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
28187
28188         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
28189
28190         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
28191         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
28192         NULL-means-set-to-current-time semantics.
28193         Remove temporary file immediately, rather than waiting
28194         for configure's at-exit trap code to do it.
28195
28196 2005-01-18  Jim Meyering  <jim@meyering.net>
28197
28198         * lib/version-etc.c (version_etc_copyright): Update copyright date.
28199
28200         * lib/utimens.c (futimens): Account for the fact that futimes
28201         can also fail with errno == ENOSYS or errno == ENOENT.
28202         Patch from Dmitry V. Levin.
28203
28204         Change the name of the robust chdir function from chdir to chdir_long.
28205         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
28206         (restore_cwd): Use chdir_long, not chdir.
28207         * lib/chdir-long.c: Renamed from chdir.c.
28208         * lib/chdir-long.h: Renamed from chdir.h.
28209         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
28210         Hurd.
28211
28212 2005-01-18  Bruno Haible  <bruno@clisp.org>
28213
28214         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
28215         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
28216         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
28217         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
28218         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
28219         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
28220         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
28221         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
28222         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
28223         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
28224         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
28225         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
28226         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
28227         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
28228         Use an all-permissive copyright notice, recommended by RMS.
28229
28230 2005-01-18  Bob Proulx  <bob@proulx.com>
28231
28232         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
28233         simplify offsetof() macro construct to avoid compile failure with
28234         native HP-UX 11.0 ANSI C compiler.
28235
28236 2005-01-17  Bruno Haible  <bruno@clisp.org>
28237
28238         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
28239         redundant because stpncpy.m4 takes care of it.
28240
28241 2005-01-17  Bruno Haible  <bruno@clisp.org>
28242
28243         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
28244
28245 2005-01-17  Bruno Haible  <bruno@clisp.org>
28246
28247         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
28248         used.
28249
28250 2005-01-17  Bruno Haible  <bruno@clisp.org>
28251
28252         * lib/fwriteerror.h (fwriteerror): Change specification to include
28253         fclose.
28254         * lib/fwriteerror.c: Include <stdbool.h>.
28255         (fwriteerror): At the end, close the file stream. Record whether
28256         stdout was already closed.
28257
28258 2005-01-17  Bruno Haible  <bruno@clisp.org>
28259
28260         * lib/execute.c (environ): Declare if needed.
28261         * lib/pipe.c (environ): Likewise.
28262         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
28263
28264 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
28265
28266         * modules/argp: Depend on vsnprintf
28267
28268 2005-01-10  Jim Meyering  <jim@meyering.net>
28269
28270         * modules/closeout (Depends-on): Add atexit.
28271
28272 2005-01-06  Bruno Haible  <bruno@clisp.org>
28273
28274         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
28275
28276 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
28277
28278         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
28279         definitions to be after all include files, to avoid collisions.
28280         Problem reported by Bob Proulx.
28281
28282 2005-01-04  Jim Meyering  <jim@meyering.net>
28283
28284         Changes imported from coreutils.
28285         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
28286         as the mkstemp template, use a temporary directory and an
28287         8.3-friendly template to avoid trouble on systems like DJGPP.
28288         Reported by Juan M. Guerrero via Stepan Kasal.
28289         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
28290         close. Remove the temporary directory right away, rather than waiting
28291         for configure's at-exit trap code to do it.
28292         Suggestion from Stepan Kasal.
28293
28294 2005-01-01  Simon Josefsson  <jas@extundo.com>
28295
28296         * gnulib-tool: Print #include directives when --import'ing.
28297
28298 2004-12-28  Simon Josefsson  <jas@extundo.com>
28299
28300         * tests/test-base64.c: Include required header files.  Remove
28301         unused variables.
28302
28303 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
28304
28305         * modules/error (Depends-on): Remove gettext.
28306
28307 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
28308
28309         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
28310         not needed.  This removes a dependency on the gettext module.
28311         [defined _LIBC]: Do not include <libintl.h>; not needed.
28312
28313 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
28314
28315         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
28316         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
28317
28318 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
28319
28320         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
28321         HAVE_DECL_STRTOLD.
28322
28323 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
28324
28325         * modules/getdate (Depends-on): Remove alloca-opt.
28326
28327 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
28328
28329         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
28330
28331 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
28332
28333         * lib/argp-parse.c: Include <stddef.h>.
28334         (alignof, alignto): New macros.
28335         (parser_init): Don't assume that void * is aligned sufficiently
28336         for struct option.
28337
28338         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
28339         need to extend the stack.
28340         (YYINITDEPTH): New macro, so that the initial stack isn't overly
28341         large.
28342
28343 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
28344
28345         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
28346
28347 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
28348
28349         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
28350         (2004-10-24) change.  Apparently this was a false alarm.
28351
28352         * modules/getdate: Depend on alloca-opt, not alloca.
28353
28354 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
28355
28356         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
28357         Remove now-obsolete comment about AIX.
28358         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
28359         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
28360         (YYMAXDEPTH): New macro.
28361
28362 2004-12-18  Simon Josefsson  <jas@extundo.com>
28363
28364         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
28365
28366 2004-12-18  Bruno Haible  <bruno@clisp.org>
28367
28368         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
28369
28370 2004-12-18  Bruno Haible  <bruno@clisp.org>
28371
28372         * lib/fatal-signal.c (fatal_signals): Make non-const.
28373         (init_fatal_signals): New function.
28374         (uninstall_handlers, install_handlers): Ignore signals that were set to
28375         SIG_IGN.
28376         (at_fatal_signal): Call init_fatal_signals.
28377         (init_fatal_signal_set): Likewise. Ignore signals that were set to
28378         SIG_IGN.
28379         Reported by Paul Eggert.
28380
28381 2004-12-18  Bruno Haible  <bruno@clisp.org>
28382
28383         * doc/alloca.texi: New file.
28384         * doc/alloca-opt.texi: New file.
28385
28386 2004-12-17  Jim Meyering  <jim@meyering.net>
28387
28388         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
28389         Otherwise, install-sh could exit with improper exit status when
28390         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
28391
28392 2004-12-16  Simon Josefsson  <jas@extundo.com>
28393
28394         * tests/test-base64.c: Add license.
28395
28396 2004-12-15  Stepan Kasal  <address@hidden>
28397
28398         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
28399
28400 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
28401
28402         * modules/getcwd (Files): Add m4/d-ino.m4.
28403         Suggested by Mark D. Baushke.
28404
28405 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
28406
28407         * lib/getdate.y (textint): New member "negative".
28408         (time_zone_hhmm): New function.
28409         Expect 14 shift-reduce conflicts, not 13.
28410         (o_colon_minutes): New rule.
28411         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
28412         (yylex): Set the "negative" member of signed numbers.
28413
28414 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
28415
28416         * doc/getdate.texi (Time of day items, Time zone items):
28417         Describe new formats +00:00, UTC+00:00.
28418
28419 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
28420
28421         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
28422         spurious "-l"s.  Problem reported by Stepan Kasal.
28423
28424 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
28425
28426         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
28427         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
28428
28429 2004-12-04  Simon Josefsson  <jas@extundo.com>
28430
28431         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
28432         Vandoorselaere <yoann@prelude-ids.org>.
28433
28434 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
28435
28436         Changes imported from coreutils.
28437         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
28438         exist.
28439         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
28440
28441 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
28442
28443         Changes imported from coreutils.
28444         * lib/hard-locale.c: Assume <locale.h> exists.
28445         Include "strdup.h".
28446         (GLIBC_VERSION): New macro.
28447         (hard_locale): Assume setlocale exists.
28448         Rewrite to avoid #ifdef.
28449         Use strdup rather than malloc + strcpy.
28450         * lib/human.c: Assume <locale.h> exists.
28451         (human_readable): Assume localeconv exists.
28452
28453 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
28454
28455         * modules/hard-locale (Depends-on): Add strdup.
28456
28457 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
28458
28459         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
28460         convert T2, not T.  (Imported from libc.)
28461
28462 2004-11-30  Simon Josefsson  <jas@extundo.com>
28463
28464         * modules/restrict (License): Change to LGPL.
28465
28466 2004-11-30  Simon Josefsson  <jas@extundo.com>
28467
28468         * m4/restrict.m4: Add copyright and copying conditions.
28469
28470 2004-11-30  Simon Josefsson  <jas@extundo.com>
28471
28472         * m4/base64.m4: New file.
28473
28474 2004-11-30  Simon Josefsson  <jas@extundo.com>
28475
28476         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
28477         base64.
28478
28479         * tests/test-base64.c: New file.
28480
28481         * modules/base64: New file.
28482
28483 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
28484
28485         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
28486         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
28487
28488         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
28489
28490 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
28491
28492         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
28493         (__getcwd.c): Don't restore errno; glibc doesn't.
28494         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
28495         first, falling back to our code only if its results look suspicious.
28496         Ensure that the resulting buffer is only as large as necessary.
28497
28498         * lib/readutmp.c: Include readutmp.h first.
28499         Include <errno.h>, since readutmp.h no longer does that.
28500         * lib/readutmp.h: Don't include <errno.h>,
28501         <sys/param.h>, <time.h>; not needed to establish interface.
28502         (errno): Remove decl.
28503         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
28504         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
28505         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
28506
28507 2004-11-28  Simon Josefsson  <jas@extundo.com>
28508
28509         * lib/base64.h, base64.c: New file.
28510
28511 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
28512
28513         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
28514
28515 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
28516
28517         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
28518         (Depends-on): Remove pathmax, same.  Add mempcpy.
28519         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
28520         (Makefile.am): Append getcwd.h to lib_SOURCES.
28521         (Include): Add getcwd.h.
28522         (Maintainer): Change from Jim Meyering to "all, glibc",
28523         since getdate now uses intended-for-glibc code.
28524         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
28525         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
28526
28527 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
28528
28529         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
28530         HP's ANSI C compiler.
28531         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
28532         Declaring int functions causes warnings on some modern systems and
28533         shouldn't be needed to compile on ancient ones.
28534         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
28535         defined.
28536
28537         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
28538         with the following changes.
28539         (__set_errno): Parenthesize properly.
28540         Include <stdbool.h>.
28541         (MIN, MAX, MATCHING_INO): New macros.
28542         (__getcwd): Define with prototype, not K&R form.
28543         Use heuristics to allocate default buffer on stack if possible.
28544         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
28545         behavior, and to avoid the PATH_MAX limit when computing
28546         ../../../../...
28547         Use MATCHING_INO to compare inode number to file.
28548         Check for arithmetic overflow in size calculations.
28549         Fix bug in reallocation of dot array that caused getcwd to fail
28550         on directories nested deeper than 75.
28551         Be more careful about saving errno on error.
28552         Do not use realloc; use only free+malloc, as this is a bit
28553         more flexible and avoids a needless copy operation.
28554         Do not inspect st_dev and st_ino for symbolic links; POSIX
28555         doesn't specify the latter.
28556         Check for closedir errors.
28557         Avoid needless casts.
28558         Use "#ifdef weak_alias" around weak_alias, to be like other
28559         glibc code.
28560         The following changes to getcwd.c have effect only when used in
28561         gnulib; they have no effect inside glibc proper.
28562         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
28563         as alloca isn't used.
28564         (alloca, __alloca): Likewise.
28565         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
28566         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
28567         unconditionally, as gnulib assumes C89 or better.
28568         Do not include <sys/param.h>.
28569         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
28570         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
28571         better.
28572         (NULL) [!defined NULL]: Remove; we assume C89 or better.
28573         Include <dirent.h> in a way that is compatible with modern Autoconf.
28574         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
28575         New macros, if not already defined.
28576         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
28577         Use "_LIBC", not "defined _LIBC", for consistency.
28578         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
28579         a mempcpy module.
28580         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
28581         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
28582         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
28583         credit only to Jim Meyering and adjust the copyright dates.
28584         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
28585         <stdlib.h>, <unistd.h>, "pathmax.h".
28586         Instead, include "xgetcwd.h" (first) and "getcwd.h".
28587         (INITIAL_BUFFER_SIZE): Remove.
28588         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
28589
28590 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
28591
28592         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
28593         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
28594         Use the _ONCE methods, for efficiency.
28595         Check for fcntl.h.  In test program, include <errno.h>
28596         and <fcntl.h> if available.  Remove old K&R cruft from
28597         test program.  Check for common errors in GNU/Linux,
28598         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
28599         don't do AC_LIBOBJ, as that's getcwd.m4's job.
28600         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
28601         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
28602         name accordingly.
28603         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
28604         accommodate new getcwd.c.
28605         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
28606         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
28607         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
28608         that's all we need now.
28609
28610 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
28611
28612         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
28613         argp-parse.c depends on getopt internals, that means we should
28614         always use our getopt, to be on the safe side.
28615         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
28616         order not to spoil the result of an eventual previous invocation
28617         of gl_GETOPT_SUBSTITUTE.
28618
28619 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
28620
28621         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
28622         redefinition warnings. To avoid them, include the defines
28623         in `#if !defined __need_getopt ... #endif'. The only place
28624         where __getopt_argv_const is used is in definitions
28625         of getopt_long and getopt_long_only below, which are as well
28626         protected by `#ifndef __need_getopt'.
28627         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
28628         __need_getopt after including <stdio.h> and <unistd.h> These
28629         headers might have defined it.
28630
28631 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
28632
28633         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
28634
28635 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
28636
28637         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
28638         (futimens): New function, which uses futimes if available.
28639         (futimens, utimens): Support timespec==NULL, with same semantics
28640         as utime and utimens.
28641         * lib/utimens.h (futimens): New decl.
28642
28643 2004-11-23  Jim Meyering  <jim@meyering.net>
28644
28645         * lib/getopt_.h: Remove trailing blanks.
28646
28647 2004-11-23  Jim Meyering  <jim@meyering.net>
28648
28649         * lib/__fpending.c: Add comment.
28650
28651 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
28652
28653         * modules/canonicalize (Depends-on): Add xreadlink.
28654         Problem reported by James Youngman.
28655
28656 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
28657
28658         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
28659         New macros.
28660         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
28661         optopt): Use them instead of invoking ## directly; otherwise, the
28662         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
28663
28664 2004-11-19  Bruno Haible  <bruno@clisp.org>
28665
28666         * lib/strtok_r.c: Move comments from here...
28667         * lib/strtok_r.h: ... to here.
28668
28669 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
28670
28671         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
28672         implementations that mishandle size_t overflow.
28673
28674 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
28675
28676         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
28677         might fail.  Problem reported by Yoann Vandoorselaere.
28678         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
28679         implementations that mishandle size_t overflow.
28680
28681 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
28682
28683         * modules/canon-host (Depends-on): Add strdup.
28684
28685 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
28686
28687         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
28688
28689 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
28690
28691         * lib/canon-host.c: Include "strdup.h".
28692         (canon_host): Use getaddrinfo if available, so that IPv6 works.
28693         Use strdup instead of malloc/strcpy to duplicate strings.
28694
28695         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
28696         (human_space_before_unit): New constant.
28697         * lib/human.c (human_readable): Support it.
28698
28699         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
28700         (xgetcwd): Set errno correctly when failing.
28701         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
28702         the failure is actually due to a PATH_MAX problem.
28703
28704         Further getopt changes to make it more likely that glibc will
28705         buy the changes back.
28706         * lib/getopt.c (POSIXLY_CORRECT): New constant.
28707         (getopt): Use it, so to preserve glibc semantic
28708         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
28709         when compiling for libc.
28710         * lib/getopt_.h (__getopt_argv_const): Bring it back.
28711         (getopt_long, getopt_long_only): Use it.
28712
28713         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
28714         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
28715         (getopt): Argv is now char * const *, as per standard.
28716         (_getopt_internal_r, _getopt_internal): Argv is now char **,
28717         not char *__getopt_argv_const *.
28718         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
28719         _getopt_long_only_r): Likewise.
28720         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
28721         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
28722         _getopt_long_r, _getopt_long_only_r): Likewise.
28723         * lib/getopt_.h (__getopt_argv_const): Remove.
28724         (getopt): Argv is now char * const *, as per standard.
28725
28726         * lib/getdate.y (tORDINAL): New token.
28727         (day, relunit): Allow it for relative times.
28728         (relative_time_table): Use tORDINAL for ordinals.
28729
28730 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
28731
28732         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
28733         Document that "second" isn't allowed as an ordinal number.
28734
28735 2004-11-16  Jim Meyering  <jim@meyering.net>
28736
28737         * modules/closeout (Depends-on): Add fpending.
28738
28739 2004-11-15  Jim Meyering  <jim@meyering.net>
28740
28741         * lib/closeout.c: Include "__fpending.h" once again.
28742         Include <stdbool.h>.
28743         (close_stdout): Don't fail just because stdout was closed initially,
28744         since some programs don't write to stdout in the normal course of
28745         operation (other than --version and --help), and we don't want this
28746         function to make e.g. `touch file >&-' fail.
28747         But do fail if it was closed and someone has tried to write to it.
28748         E.g., `printf foo >&-' must fail.
28749
28750 2004-11-13  Jim Meyering  <jim@meyering.net>
28751
28752         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
28753
28754 2004-11-12  Simon Josefsson  <jas@extundo.com>
28755
28756         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
28757         small doc fix is still pending.
28758
28759 2004-11-11  Simon Josefsson  <jas@extundo.com>
28760
28761         * modules/strtok_r: New file.
28762
28763         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
28764         strtok_r.
28765
28766 2004-11-11  Simon Josefsson  <jas@extundo.com>
28767
28768         * m4/strtok_r.m4: New file.
28769
28770         * m4/getopt.m4: Replace opterr.
28771
28772 2004-11-11  Simon Josefsson  <jas@extundo.com>
28773
28774         * lib/strtok_r.h, strtok_r.c: New file.
28775
28776 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
28777
28778         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
28779         of replacing opterr, getopt, etc.  This should handle the
28780         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
28781
28782 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
28783
28784         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
28785         we can stop lying to compilers about the constness of argv when we
28786         are compiled outside glibc.
28787         (getopt, getopt_long, getopt_long_only): Use it.
28788         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
28789         _getopt_internal, getopt): Likewise.
28790         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
28791         _getopt_long_only_r): Likewise.
28792         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
28793         _getopt_long_r, _getopt_long_only_r): Likewise.
28794
28795         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
28796         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
28797         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
28798         the other external symbols.
28799         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
28800         declaration, since the above renaming now works around collisions.
28801
28802 2004-11-11  Jim Meyering  <jim@meyering.net>
28803
28804         * lib/linebreak.c: Remove trailing blanks.
28805         * lib/alloca_.h: Likewise.
28806         * lib/acosl.c: Likewise.
28807         * lib/euidaccess.c: Likewise.
28808         * lib/allocsa.h: Likewise.
28809
28810 2004-11-10  Simon Josefsson  <jas@extundo.com>
28811
28812         * m4/getaddrinfo.m4: New file.
28813
28814 2004-11-10  Simon Josefsson  <jas@extundo.com>
28815
28816         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
28817
28818 2004-11-10  Simon Josefsson  <jas@extundo.com>
28819
28820         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
28821         getaddrinfo.
28822
28823         * modules/getaddrinfo: New file.
28824
28825 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
28826
28827         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
28828
28829 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
28830
28831         * lib/mktime.c (SHR): New macro, which is a portable
28832         substitute for >> that should work even on Crays.
28833         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
28834         Problem reported by Mark D. Baushke in
28835         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
28836         * lib/getdate.y (SHR): Likewise.
28837         (tm_diff): Use it.
28838         * lib/strftime.c (SHR): Likewise.
28839         (tm_diff): Use it.
28840         * lib/quotearg.c (struct quoting_options): Use unsigned int for
28841         quote_these_too, so that right shifts are well defined.  All uses
28842         changed.
28843
28844 2004-11-10  Jim Meyering  <jim@meyering.net>
28845
28846         Ensure that no close failure goes unreported.
28847         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
28848         return early when it seems there's nothing to flush.
28849         Don't include __fpending.h.
28850
28851 2004-11-10  Jim Meyering  <jim@meyering.net>
28852
28853         * modules/closeout (Depends-on): Remove fpending.
28854
28855 2004-11-10  Jim Meyering  <jim@meyering.net>
28856
28857         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
28858
28859 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
28860
28861         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
28862         gl_FUNC_STRFTIME.
28863         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
28864         and AC_REQUIRE when possible, to avoid duplicate checks.
28865         Check for <wchar.h>.
28866
28867 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
28868
28869         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
28870
28871 2004-11-09  Bruno Haible  <bruno@clisp.org>
28872
28873         * m4/sockpfaf.m4: New file.
28874
28875 2004-11-05  Bruno Haible  <bruno@clisp.org>
28876
28877         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
28878         Reported by Mark D. Baushke <mdb@cvshome.org>.
28879
28880 2004-11-04  Bruno Haible  <bruno@clisp.org>
28881
28882         2004-09-11  Bruno Haible  <bruno@clisp.org>
28883                 * allocsa.valgrind: New file.
28884         2004-02-06  Bruno Haible  <bruno@clisp.org>
28885                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
28886                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
28887                 Reported by Christopher Seip <chris.seip@hp.com>.
28888
28889 2004-11-04  Bruno Haible  <bruno@clisp.org>
28890
28891         * modules/allocsa (Files): Add lib/allocsa.valgrind.
28892         (Makefile.am): Distribute it.
28893
28894 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
28895
28896         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
28897         with errno == ERANGE if the buffer is too small.
28898         Problem reported by Mark D. Baushke.
28899
28900 2004-11-03  Albert Chin  <china@thewrittenword.com>
28901             Paul Eggert  <eggert@cs.ucla.edu>
28902
28903         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
28904         equivalent, substitute $ac_type for equivalent type rather than
28905         blindly using uint32_t *always* which won't work if uint32_t is not
28906         available.  Define _UINT32_T to work around typedef of uint32_t if
28907         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
28908         2.5.1.
28909
28910 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
28911
28912         * m4/jm-macros.m4: Sync from coreutils.
28913         (gl_MACROS): Check for mbrlen, for pathchk.
28914         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
28915
28916 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
28917
28918         * lib/xreadlink.c (MAXSIZE): New macro.
28919         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
28920         size does not exceed MAXSIZE.  Avoid cast.
28921         As suggested by Mark D. Baushke in
28922         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
28923         if readlink fails with buffer size just under MAXSIZE, try again
28924         with MAXSIZE.
28925
28926 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
28927
28928         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
28929
28930 2004-11-02  Derek R. Price  <derek@ximbiot.com>
28931         and  Paul Eggert  <eggert@cs.ucla.edu>
28932
28933         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
28934         (get_date): Overparenthesize to avoid GCC warning.
28935
28936 2004-11-02  Bruno Haible  <bruno@clisp.org>
28937
28938         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
28939         returns void.
28940
28941 2004-11-02  Bruno Haible  <bruno@clisp.org>
28942
28943         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
28944         function returns void.
28945
28946 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
28947
28948         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
28949         fflush_unlocked, flockfile, funlockfile, funlockfile,
28950         fputs_unlocked, putc_unlocked.
28951
28952 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
28953
28954         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
28955         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
28956         already declared.
28957
28958 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
28959
28960         * modules/getdate (Files): Add doc/getdate.texi.
28961         (Depends-on): Add setenv, xalloc.
28962
28963 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
28964
28965         * lib/getdate.y: Add support for TZ="foo" within a date string.
28966         Fix some bugs near time_t boundaries.  Reject dates with
28967         out-of-range components, e.g., "Sept 31".
28968         Include <stdlib.h>, "setenv.h", "xalloc.h".
28969         (ISDIGIT_LOCALE): Remove; unused.
28970         Note that the TZ and time functions used here are not reentrant.
28971         (mktime_ok, get_tz): New functions.
28972         (TZBUFSIZE): New constant.
28973         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
28974         This requires that we sometimes generate our own TZ="XXX..." setting.
28975
28976 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
28977
28978         * doc/getdate.texi: New file, from coreutils with modifications for
28979         the new TZ parsing.
28980
28981 2004-10-27  Derek R. Price  <derek@ximbiot.com>
28982
28983         * lib/mktime.c (not_equal_tm): Remove redundant check.
28984
28985 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
28986
28987         * modules/regex (lib_SOURCES): Add regex.c.
28988         Reported by James Youngman in
28989         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
28990
28991 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
28992
28993         * lib/getdate.y: Use Bison 1.875 features, and some minor
28994         code cleanups.  This change does not affect semantics.
28995         Don't include <stdlib.h>; no longer needed.
28996         Don't include unlocked-io.h; only the "#if TEST" code uses
28997         stdio, and performance isn't crucial there.
28998         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
28999         Bison 1.875 features as described below.
29000         All uses of "PC." replaced by "pc->".
29001         (YYSTYPE): Add a forward declaration.
29002         (yylex, yyerror): Use full prototypes in forward decls.
29003         Use "%pure-parser" rather than obsolescent "%pure_parser".
29004         Use %parse-param and %lex-param instead of obsolescent
29005         YYPARSE_PARAM and YYLEX_PARAM.
29006         (meridian_table, month_and_day_table, time_units_table,
29007         relative_time_table, time_zone_table, military_table,
29008         lookup_zone, lookup_word, get_date):
29009         Use NULL instead of 0 where appropriate.
29010         (to_hour): Avoid abort (), to avoid a dependency on
29011         stdlib.h.
29012         (yyerror, yylex): Now accepts parser_control * arg.
29013         (main) [TEST]: Use '\0' rather than 0 for char.
29014
29015 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
29016
29017         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
29018
29019 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
29020
29021         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
29022         It's now the caller's responsibility to handle the case where
29023         !HAVE_GETPAGESIZE && !defined getpagesize.
29024
29025         * lib/mktime.c (leapyear): Arg is long int, not int.
29026
29027 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
29028
29029         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
29030
29031 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
29032
29033         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
29034         missing.  Problem reported by James Youngman.
29035
29036 2004-10-16  Simon Josefsson  <jas@extundo.com>
29037
29038         * gnulib-tool: Fix comments.  Fix parse problem.
29039         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
29040
29041 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
29042
29043         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
29044         implementation of getopt_long.  Problem reported by Alexander Taler in:
29045         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
29046
29047 2004-10-15  Bruno Haible  <bruno@clisp.org>
29048
29049         * gnulib-tool: Untabify. Initialize supplied_libname.
29050         (func_usage): More homogenous output.
29051         (func_modules_transitive_closure, func_modules_to_filelist,
29052         func_emit_lib_Makefile_am): New functions.
29053         (func_import): New function, extracted from big case statement. Use
29054         func_get_license, func_modules_transitive_closure,
29055         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
29056         opt_lgpl. Don't use test -a, as it's not portable.
29057         (func_create_testdir): Use func_modules_transitive_closure,
29058         func_modules_to_filelist, func_emit_lib_Makefile_am.
29059
29060 2004-10-15  Bruno Haible  <bruno@clisp.org>
29061
29062         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
29063
29064 2004-10-15  Bruno Haible  <bruno@clisp.org>
29065
29066         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
29067         the portions belonging to each module.
29068         Suggested by Derek Robert Price <derek@ximbiot.com>.
29069
29070 2004-10-12  Simon Josefsson  <jas@extundo.com>
29071
29072         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
29073         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
29074         to real functions.
29075
29076 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
29077
29078         * modules/vsnprintf: New file.
29079
29080 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
29081
29082         * m4/vsnprintf.m4: New file.
29083
29084 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
29085
29086         * lib/vsnprintf.h: New file.
29087         * lib/vsnprintf.c: New file.
29088
29089 2004-10-11  Bruno Haible  <bruno@clisp.org>
29090
29091         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
29092         vsnprintf.
29093
29094 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
29095
29096         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
29097
29098 2004-10-07  Bruno Haible  <bruno@clisp.org>
29099
29100         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
29101         fits into the provided buffer.
29102
29103 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
29104
29105         * lib/diacrit.c, diacrit.h: Add GPL notice.
29106
29107         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
29108         notice.
29109         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
29110         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
29111         This avoids a potential constant-folding bug.
29112
29113 2004-10-05  Bruno Haible  <bruno@clisp.org>
29114
29115         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
29116         for the declaration of strsep.
29117
29118 2004-10-05  Bruno Haible  <bruno@clisp.org>
29119
29120         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
29121
29122 2004-10-04  Simon Josefsson  <jas@extundo.com>
29123
29124         * modules/memmem: New file.
29125         * tests/test-memmem.c: New file.
29126         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
29127
29128 2004-10-04  Simon Josefsson  <jas@extundo.com>
29129
29130         * m4/memmem.m4: New file.
29131
29132 2004-10-04  Simon Josefsson  <jas@extundo.com>
29133
29134         * lib/memmem.h: New file.
29135         * lib/memmem.c: New file, taken from glibc.
29136
29137 2004-10-04  Simon Josefsson  <jas@extundo.com>
29138
29139         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
29140         '#ifdef USE_UNLOCKED_IO'.
29141
29142 2004-10-04  Simon Josefsson  <jas@extundo.com>
29143
29144         * config/srclist.txt: Add memmem from glibc.
29145
29146 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
29147
29148         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
29149
29150         * modules/argmatch, modules/argp, modules/closeout, modules/error,
29151         modules/exclude, modules/getdate, modules/getline,
29152         modules/getndelim2, modules/getpass, modules/getpass-gnu,
29153         modules/getusershell, modules/linebuffer, modules/md5,
29154         modules/mountlist, modules/posixtm, modules/readtokens,
29155         modules/readutmp, modules/regex, modules/sha1,
29156         modules/version-etc, modules/yesno:
29157         Remove dependency on unlocked-io.
29158
29159 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
29160
29161         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
29162
29163         * m4/unlocked-io.m4: Add copyright notice.
29164         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
29165
29166 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
29167
29168         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
29169         * lib/xmalloc.c (xmemdup): Likewise.
29170         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
29171         XFREE): Remove these long-obsolescent macros.
29172         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
29173         * lib/xstrdup.c: Remove.
29174
29175         * lib/regex.c (re_comp): Cast gettext return value to char *,
29176         Problem reported by Martin Neitzel via Mark D. Baushke.
29177
29178 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
29179
29180         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
29181         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
29182         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
29183         regex.c, sha1.c, version-etc.c, yesno.c:
29184         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
29185         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
29186         the includer's responsibility.
29187
29188         Sync from coreutils.
29189
29190         * lib/modechange.c (mode_compile): Don't decrement a pointer that
29191         points to the start of a string, as the C Standard says the
29192         resulting behavior is undefined.
29193
29194         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
29195         simple -> simple_backups, numbered_existing ->
29196         numbered_existing_backups, numbered -> numbered_backups
29197         to avoid shadowing problems.  All uses changed.
29198         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
29199         * lib/backupfile.c (check_extension, numbered_backup):
29200         Rename locals to avoid shadowing 'basename'.
29201         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
29202         once.
29203
29204         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
29205         * lib/.cvsignore: Add getopt.h.
29206
29207 2004-10-04  Bruno Haible  <bruno@clisp.org>
29208
29209         * modules/README: New file.
29210         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
29211         not a module.
29212
29213 2004-10-02  Jim Meyering  <jim@meyering.net>
29214
29215         * lib/dirfd.h, getpagesize.h: Add copyright notice.
29216
29217 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
29218
29219         * modules/strsep: New file.
29220
29221 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
29222
29223         * m4/strsep.m4: New file.
29224
29225 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
29226
29227         * lib/strsep.h: New file.
29228         * lib/strsep.c: New file.
29229
29230 2004-10-01  Simon Josefsson  <jas@extundo.com>
29231
29232         * lib/snprintf.c (snprintf): Handle size==0.
29233
29234 2004-10-01  Simon Josefsson  <jas@extundo.com>
29235             Bruno Haible  <bruno@clisp.org>
29236
29237         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
29238         (snprintf): Declare 'args'.
29239
29240 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
29241
29242         * lib/snprintf.c: Remove comments as to why each header is needed.
29243
29244 2004-10-01  Bruno Haible  <bruno@clisp.org>
29245
29246         * MODULES.html.sh: Add strsep.
29247
29248 2004-09-30  Simon Josefsson  <jas@extundo.com>
29249
29250         * modules/snprintf: New file.
29251
29252 2004-09-30  Simon Josefsson  <jas@extundo.com>
29253
29254         * m4/snprintf.m4: New file.
29255
29256 2004-09-30  Simon Josefsson  <jas@extundo.com>
29257
29258         * lib/snprintf.h, lib/snprintf.c: New files.
29259
29260 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
29261
29262         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
29263         (hol_entry_help): Never translate an empty string.
29264         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
29265         * lib/argp.h (OPTION_NO_TRANS): New option.
29266
29267 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
29268
29269         * modules/argp (Maintainer): Replace Simon Josefsson
29270         by Sergey Poznyakoff.
29271
29272 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
29273
29274         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
29275         changes merged back into glibc.
29276
29277 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
29278
29279         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
29280
29281 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
29282
29283         * lib/xvasprintf.c: Include xalloc.h.
29284         (xvasprintf): Use xalloc_die, not xmalloc_die.
29285
29286 2004-09-29  Bruno Haible  <bruno@clisp.org>
29287
29288         * modules/alloca-opt: New file, derived from modules/alloca.
29289         * modules/allocsa: Depend on alloca-opt instead of alloca.
29290         * modules/setenv: Likewise.
29291         * modules/vasnprintf: Likewise.
29292         * MODULES.html.sh: Add alloca-opt.
29293
29294 2004-09-28  Simon Josefsson  <jas@extundo.com>
29295
29296         * gnulib-tool: New parameter --lgpl, to asseert that modules are
29297         LGPL, and to replace license template from GPL to LGPL.
29298
29299 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
29300
29301         * modules/dummy: Change license to LGPL.
29302
29303 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
29304
29305         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
29306
29307 2004-09-24  Simon Josefsson  <jas@extundo.com>
29308
29309         * modules/minmax (License): Change from GPL to LGPL.
29310
29311 2004-09-23  Simon Josefsson  <jas@extundo.com>
29312
29313         * gnulib-tool (--import): Typo.
29314
29315 2004-09-23  Simon Josefsson  <jas@extundo.com>
29316
29317         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
29318
29319 2004-09-22  Bruno Haible  <bruno@clisp.org>
29320
29321         * modules/*: Add 'License' field.
29322         * gnulib-tool: Accept --extract-license option.
29323         (func_get_license): New function.
29324
29325 2004-09-21  Bruno Haible  <bruno@clisp.org>
29326
29327         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
29328         Reported by Simon Josefsson.
29329
29330 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
29331
29332         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
29333         gl_AC_TYPE_LONG_LONG.
29334
29335 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
29336
29337         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
29338
29339 2004-09-18  Simon Josefsson  <jas@extundo.com>
29340         and  Paul Eggert  <eggert@cs.ucla.edu>
29341
29342         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
29343         calls with autoreconf.  Define GL_LIB.
29344
29345 2004-09-14  Karl Berry  <karl@gnu.org>
29346
29347         * config/srclist.txt: unsync setenv.c, sigh.
29348
29349 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
29350
29351         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
29352         Problem reported by Bruno Haible in:
29353         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
29354
29355 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
29356
29357         * config/srclist.txt: Comment out argp-pvh.c.
29358
29359 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
29360
29361         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
29362         in case some system header has #define'd it.  Problem reported by
29363         Soeren D. Schulze in
29364         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
29365
29366 2004-09-09  Karl Berry  <karl@gnu.org>
29367
29368         * regex.[ch]: delete from the root.  These were supposed to be
29369                 synced with emacs cvs, but this has not happened for about
29370                 a year, and anyway nothing else uses emacs regex.[ch].
29371                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
29372                 lib/regex[.ch] is untouched.
29373
29374 2004-09-09  Bruno Haible  <bruno@clisp.org>
29375
29376         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
29377
29378 2004-09-09  Bruno Haible  <bruno@clisp.org>
29379
29380         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
29381         modifications.
29382         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
29383
29384 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
29385
29386         * modules/xvasprintf: New file.
29387         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
29388
29389 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
29390
29391         * lib/xvasprintf.h: New file.
29392         * lib/xvasprintf.c: New file.
29393         * lib/xasprintf.c: New file.
29394
29395 2004-09-08  Bruno Haible  <bruno@clisp.org>
29396
29397         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
29398
29399 2004-09-08  Bruno Haible  <bruno@clisp.org>
29400
29401         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
29402         length is > INT_MAX.
29403         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
29404         more.
29405
29406 2004-09-08  Bruno Haible  <bruno@clisp.org>
29407
29408         * lib/stdint_.h: New file, taken from GNU clisp.
29409
29410 2004-09-08  Bruno Haible  <bruno@clisp.org>
29411             Oskar Liljeblad  <oskar@osk.mine.nu>
29412
29413         * modules/stdint: New file.
29414         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
29415
29416 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
29417
29418         Import from coreutils.
29419         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
29420         strings on unbounded length.  alloca's performance benefits aren't
29421         that important here.
29422         (V_STRDUP): Remove.
29423         (parse_with_separator): New function, with most of the internals
29424         of the old parse_user_spec.  Allow user to omit both user and group,
29425         for compatibility with FreeBSD.
29426         Clone only the user name, not the entire spec.
29427         Do not set *uid, *gid unless entirely successful.
29428         Avoid memory leak in some failing cases.
29429         Fix regression for USER.GROUP reported by Dmitry V. Levin in
29430         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
29431         (parse_user_spec): Rewrite to use parse_with_separator.
29432
29433 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
29434
29435         * modules/userspec: Don't depend on alloca.
29436
29437 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
29438
29439         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
29440
29441 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
29442
29443         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
29444         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
29445         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
29446
29447 2004-08-16  Simon Josefsson  <jas@extundo.com>
29448
29449         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
29450         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
29451         Add --dry-run for --import.
29452         Let user provided command line parameters override configure.ac
29453         settings.
29454
29455 2004-08-12  Simon Josefsson  <jas@extundo.com>
29456
29457         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
29458         as discussed with Paul Eggert in threads rooted at
29459         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
29460         and
29461         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
29462         Before, the test was empty, and relied on ELIDE_CODE in source
29463         code.)
29464         (gl_PREREQ_GETOPT): New macro.
29465         (gl_GETOPT): Use them.
29466
29467 2004-08-12  Simon Josefsson  <jas@extundo.com>
29468
29469         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
29470         * lib/getopt_.h: Renamed from getopt.h.
29471
29472 2004-08-12  Simon Josefsson  <jas@extundo.com>
29473
29474         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
29475         Change default library name from libfoo to libgnu.
29476         Now, if you have a configure.ac that says:
29477                 gl_SOURCE_BASE(gl)
29478                 gl_M4_BASE(gl/m4)
29479                 gl_MODULES(error getopt etcetera)
29480                 gl_INIT
29481         you can import all you need by running:
29482                 ../gnulib/gnulib-tool --import
29483
29484         * modules/getopt (Files): Rename getopt.h to getopt_.h.
29485         (Makefile.am): Rewrite, use logic from argz.
29486         (Include): Use <getopt.h> instead of "getopt.h".
29487
29488 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
29489
29490         * modules/argp (Files): Add m4/unlocked-io.m4.
29491         (Depends-on): Add extensions.
29492
29493 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
29494
29495         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
29496         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
29497         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
29498         Check for program_invocation_name, program_invocation_short_name,
29499         flockfile, funlockfile, features.h, _getopt_long_only_r.
29500
29501 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
29502
29503         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
29504         its complicated substitute.
29505         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
29506         and program_invocation_name.
29507         (__argp_basename) [!_LIBC]: Remove; the only use was
29508         replaced by its body.
29509         (__argp_short_program_name): Change condition from
29510         !defined __argp_short_program_name to
29511         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
29512         to match argp-namefrob.h.
29513         (__argp_failure): Don't assume strerror_r returns char *.
29514         * lib/argp-parse.c (N_): Define unconditionally.
29515         (argp_default_options): Fill out initializers with 0 to avoid
29516         gcc warnings.
29517
29518 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
29519
29520         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
29521         getopt1.c.
29522
29523 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
29524
29525         Merge from coreutils.
29526
29527         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
29528
29529         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
29530         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
29531
29532 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
29533
29534         Merge from coreutils.
29535
29536         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
29537         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
29538         for Reliant Unix 5.43.
29539
29540         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
29541         (union fooround): Use uintmax_t, not long int.
29542         The rest is a merge from libc:
29543         [defined _LIBC]: Include <shlib-compat.h>.
29544         (_obstack) [defined _LIBC]: Remove after 2.3.4.
29545
29546         * lib/settime.c (settime): Recode to avoid warning with
29547         Sun Forte C 6U2.
29548
29549         * lib/strverscmp.c: Convert to UTF-8.
29550
29551 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
29552
29553         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
29554         m4/uintmax_t.m4.
29555
29556 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
29557
29558         * modules/xalloc-die: New file.
29559         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
29560
29561         * modules/md5 (Files): Add m4/uint32_t.m4.
29562         * modules/sha1: Renamed from modules/sha.
29563         (Files):
29564         Rename lib/sha.h to lib/sha1.h.
29565         Rename lib/sha.c to lib/sha1.c.
29566         Rename m4/sha.m4 to m4/sha1.m4.
29567         (lib_SOURCES): Likewise.
29568         (configure.ac): Rename gl_SHA to gl_SHA1.
29569         (Include): sha.h -> sha1.h.
29570
29571 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
29572
29573         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
29574         * m4/sha1.m4: Renamed from sha.m4.
29575         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
29576
29577 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
29578
29579         * lib/obstack.h (obstack_empty_p):
29580         Don't assume that chunk->contents is suitably aligned.
29581         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
29582         Likewise. Problem reported by Benno in
29583         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
29584
29585         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
29586         readable.  This could be improved further but it'd take some work.
29587
29588 2004-08-08  Simon Josefsson  <jas@extundo.com>
29589
29590         * modules/xgethostname (Depends-on): Remove exit and error (not
29591         used).
29592
29593         * modules/getpass-gnu: Add getpass.h.
29594         (Depends-on): Add stdbool.
29595         * modules/getpass: Add getpass.h.
29596
29597 2004-08-08  Simon Josefsson  <jas@extundo.com>
29598
29599         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
29600         Check getpass declaration.
29601
29602 2004-08-08  Simon Josefsson  <jas@extundo.com>
29603
29604         * lib/xgethostname.c: Don't include error.h (not used).
29605
29606         * lib/getpass.h: Add.
29607         * lib/getpass.c: Include getpass.h first.
29608
29609 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
29610
29611         * lib/xalloc-die.c: New file.
29612         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
29613         All uses removed.
29614         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
29615         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
29616         xalloc-die.c.
29617         (_, N_, xalloc_die): Move to xalloc-die.c.
29618         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
29619         so that we needn't mess with xalloc_msg_memory_exhausted.
29620
29621         * lib/sha1.h: Renamed from sha.h.
29622         (SHA1_H): Renamed from _SHA_H.
29623         (sha1_ctx): Renamed from sha_ctx.
29624         (sha1_init_ctx): Renamed from sha_init_ctx.
29625         (sha1_process_block): Renamed from sha_process_block.
29626         (sha1_process_bytes): Renamed from sha_process_bytes.
29627         (sha1_finish_ctx): Renamed from sha_finish_ctx.
29628         (sha1_read_ctx): Renamed from sha_read_ctx.
29629         (sha1_stream): Renamed from sha_stream.
29630         (sha1_buffer): Renamed from sha_buffer.
29631         * lib/sha1.c: Likewise; renamed from sha.c.
29632         Do not include <sys/types.h>.
29633         Include <stddef.h> rather than <stdlib.h>.
29634
29635 2004-08-08  Bruno Haible  <bruno@clisp.org>
29636
29637         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
29638         FILESYSTEM_PREFIX_LEN.
29639         * lib/progreloc.c: Likewise.
29640         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
29641
29642 2004-08-06  Simon Josefsson  <jas@extundo.com>
29643
29644         * modules/progname (Depends-on): Don't depend on stdbool.
29645
29646 2004-08-06  Simon Josefsson  <jas@extundo.com>
29647
29648         * modules/getsubopt: New file.
29649         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
29650         getsubopt.
29651
29652 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
29653
29654         More merge from coreutils.
29655
29656         * m4/utimens.m4, m4/utimecmp.m4: New files.
29657         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
29658         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
29659         prereq.m4, sha.m4: Import changes from coreutils.
29660
29661 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
29662
29663         More merge from coreutils.
29664         * modules/raise, modules/readtokens0, modules/utimens:
29665         * modules/utimecmp, module/xnanosleep: New files.
29666         * modules/strftime: Add lib/strftime.h.
29667         Change include from <time.h> to "strftime.h".
29668         * modules/yesno: Add lib/yesno.h.
29669         * modules/backupfile: Remove lib/addext.c.
29670         * modules/euidaccess: Add stat-macros.h.
29671         * modules/canonicalize, modules/euidaccess,
29672         modules/filemode, modules/lchown, modules/makepath,
29673         modules/rmdir, modules/stat: Likewise.
29674
29675 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
29676
29677         Merge from tar.
29678         * lib/argp-help.c (make_hol, hol_append): Don't assume that
29679         SIZE_MAX is a valid preprocessor constant.
29680         (__argp_basename): Change from "#ifndef _LIBC"
29681         to "#ifndef __argp_short_program_name", so that
29682         we don't compile these functions for tar.
29683
29684         More merges from coreutils.
29685         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
29686         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
29687         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
29688         * lib/addext.c: Remove; no longer needed.
29689         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
29690         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
29691         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
29692         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
29693         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
29694         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
29695         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
29696         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
29697         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
29698         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
29699         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
29700         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
29701         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
29702         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
29703         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
29704         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
29705         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
29706         Import changes from coreutils.
29707
29708 2004-08-05  Simon Josefsson  <jas@extundo.com>
29709
29710         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
29711
29712 2004-08-05  Simon Josefsson  <jas@extundo.com>
29713
29714         * m4/getsubopt.m4: New file.
29715
29716 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
29717
29718         Merge from coreutils.
29719
29720         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
29721         * m4/getcwd-path-max.m4: New files.
29722
29723         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
29724         FILESYSTEM_PREFIX_LEN ->
29725         FILE_SYSTEM_PREFIX_LEN.
29726         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
29727         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
29728         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
29729         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
29730
29731         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
29732         prerequisite modules now handle the DOS stuff.
29733         Don't check for unistd.h.
29734
29735 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
29736
29737         Merge from coreutils.
29738
29739         * lib/.gdb-history: Remove; this doesn't belong here.
29740
29741         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
29742         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
29743         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
29744         * lib/getcwd.c: New files.
29745
29746         * lib/dirname.h: Include <stdbool.h>.
29747         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
29748         for consistency with POSIX terminology.  All uses changed.
29749         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
29750         (strip_trailing_slashes): Use bool for booleans.
29751         * lib/stripslash.c (strip_trailing_slashes): Likewise.
29752
29753         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
29754         sometimes returns a positive errno value even when it succeeds.
29755         (print_errno_message) [!LIBC]: Fall back on strerror if
29756         __strerror_r fails.
29757
29758         * lib/path-concat.c (mempcpy): Don't define if a system header defines
29759         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
29760         (longest_relative_suffix): New function.
29761         (path_concat): Use it.  Assume first argument is not NULL.
29762         Port to DOS.  Omit redundant separators.
29763         Report an error instead of returning NULL.
29764         Use mempcpy instead of memcpy.
29765         (xpath_concat): Remove: not declared or used.
29766
29767         * lib/same.h: Include <stdbool.h>
29768         (same_name): Return bool, not int.
29769         * lib/same.c (same_name): Likewise.
29770         (errno): Don't declare; we assume C89 or better now.
29771
29772         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
29773         if not already defined.
29774
29775         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
29776         * lib/dup-safer.c (errno): Likewise.
29777
29778 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
29779
29780         Merge from coreutils.
29781         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
29782         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
29783         * modules/path-concat: Don't depend on strdup.
29784
29785 2004-08-03  Simon Josefsson  <jas@extundo.com>
29786
29787         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
29788         * lib/progname.h: Don't include stdbool.h.
29789
29790 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
29791
29792         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
29793         * MODULES.html.sh (func_all_modules): Remove fatal.
29794
29795 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
29796
29797         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
29798
29799 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
29800
29801         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
29802         working.
29803
29804 2004-08-02  Simon Josefsson  <jas@extundo.com>
29805
29806         * lib/getsubopt.h: New file, with comments from Bruno Haible.
29807         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
29808         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
29809
29810 2004-08-01  Simon Josefsson  <jas@extundo.com>
29811
29812         * lib/xgetdomainname.c: Include stdlib.h, for free().
29813
29814 2004-07-19  Bruno Haible  <bruno@clisp.org>
29815
29816         * MODULES.html.sh (func_all_modules): Add dummy.
29817
29818 2004-07-16  Simon Josefsson  <jas@extundo.com>
29819
29820         * modules/dummy: New file.
29821
29822 2004-07-16  Simon Josefsson  <jas@extundo.com>
29823
29824         * lib/dummy.c: New file.
29825
29826 2004-07-16  Bruno Haible  <bruno@clisp.org>
29827
29828         * lib/backupfile.h: Add extern "C" for C++.
29829         * lib/closeout.h: Likewise.
29830         * lib/copy-file.h: Likewise.
29831         * lib/findprog.h: Likewise.
29832         * lib/full-write.h: Likewise.
29833         * lib/pathname.h: Likewise.
29834         * lib/progname.h: Likewise.
29835         * lib/stpcpy.h: Likewise.
29836         * lib/stpncpy.h: Likewise.
29837         * lib/strcase.h: Likewise.
29838         * lib/strstr.h: Likewise.
29839         * lib/xalloc.h: Likewise.
29840
29841         * lib/mbswidth.h: Add extern "C" for C++.
29842         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
29843
29844 2004-07-13  Robert Millan  <robertmh@gnu.org>
29845
29846         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
29847
29848 2004-07-09  Simon Josefsson  <jas@extundo.com>
29849
29850         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
29851         failed without this.)
29852
29853 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
29854
29855         * modules/chown (Files): Add lib/fchown-stub.c, since
29856         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
29857
29858 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
29859
29860         * lib/fchown-stub.c: New file.
29861
29862 2004-06-24  Jim Meyering  <jim@meyering.net>
29863
29864         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
29865
29866 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
29867
29868         * modules/argz: Omit "#include".
29869
29870         * MODULES.html.sh (func_all_modules): Add calloc, to match
29871         2004-06-01 addition of calloc module.
29872
29873 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
29874
29875         * m4/argz.m4: New file, which is autoupdated from libtool.
29876
29877 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
29878
29879         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
29880         libtool.
29881
29882 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
29883
29884         * config/srclist-update: Don't insist on "USA." before the
29885         close-comment, as libtool omits the period and puts the */ on a
29886         separate line.
29887         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
29888         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
29889
29890 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
29891
29892         * modules/argz: New file.
29893         * MODULES.html.sh (func_all_modules): Add argz.
29894
29895 2004-06-12  Jim Meyering  <jim@meyering.net>
29896         and  Paul Eggert  <eggert@cs.ucla.edu>
29897
29898         * modules/hash (Files): Add lib/xalloc.h.
29899         * modules/pipe (Depends-on): Add wait-process.
29900         * modules/stat (Depends-on): Add xalloc.
29901         * modules/userspec (Files): Add lib/userspec.h.
29902         * modules/xstrto
29903
29904         Upgrade from gettext-0.13.
29905         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
29906         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
29907         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
29908
29909 2004-06-10  Jim Meyering  <jim@meyering.net>
29910
29911         * lib/calloc.c: New file.
29912
29913 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
29914
29915         * lib/getdate.y (yylex): Allow space between sign and number.
29916         Problem reported by Dan Jacobson.
29917
29918 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
29919
29920         Merge from coreutils CVS.
29921
29922         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
29923         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
29924         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
29925         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
29926         xstrtol.m4: Fix copyright date and/or serial number.
29927
29928         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
29929         See if we need an fchown replacement.
29930         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
29931         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
29932         and use the replacement function if we detect either defect.
29933
29934         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
29935         gl_UTIMECMP.
29936
29937 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
29938         and  Jim Meyering  <jim@meyering.net>
29939
29940         Merge from coreutils CVS.
29941
29942         * lib/stat-macros.h: New file, with contents from file-type.h
29943         and coreutils' system.h.
29944         * lib/file-type.c: Include "stat-macros.h".
29945         * lib/file-type.h (file_type): Move all macro definitions to new file,
29946         stat-macros.h.
29947
29948         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
29949         Wrap old code with this conditional.
29950         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
29951         function that does not dereference symlinks.
29952         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
29953
29954         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
29955         dependency problems.
29956         (xreadlink): Accept new arg SIZE, for efficiency.
29957         All decls and uses changed.
29958         * lib/xreadlink.h: Include <stddef.h>, for size_t.
29959
29960         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
29961         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
29962
29963         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
29964         sysexits.h.
29965
29966 2004-06-01  Jim Meyering  <jim@meyering.net>
29967
29968         * m4/calloc.m4: New file.
29969
29970 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
29971
29972         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
29973         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
29974         Also, fix a typo in a diagnostic.
29975
29976 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
29977
29978         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
29979         or AC_FUNC_REALLOC.
29980
29981 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
29982
29983         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
29984         macros to be defined.
29985         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
29986         the allocator returns NULL because the requested size is zero.
29987
29988 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
29989
29990         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
29991         var.  Add comment explaining why libc still defines it.  This
29992         merges the following patch from glibc:
29993         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
29994
29995 2004-05-20  Andreas Schwab  <schwab@suse.de>
29996
29997         * m4/free.m4: Replace free if it not known to work, not the other
29998         way round.
29999
30000 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
30001
30002         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
30003         present in glibc since revision 1.1 of this file.
30004         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
30005         obstack_alignment_mask, obstack_alloc, obstack_base,
30006         obstack_blank, obstack_blank_fast, obstack_chunk_size,
30007         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
30008         obstack_grow0, obstack_init, obstack_int_grow,
30009         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
30010         obstack_next_free, obstack_object_size, obstack_ptr_grow,
30011         obstack_ptr_grow_fast, obstack_room): Remove declarations of
30012         nonexistent functions.
30013
30014 2004-05-18  Karl Berry  <karl@gnu.org>
30015
30016         * config/srclist.txt: break link for vasnprintf.c.
30017
30018 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
30019
30020         Port obstack to the AS/400, where pointers are 16 bytes wide and
30021         you cannot cast an integer to a valid pointer.  This patch is
30022         currently waiting to be integrated into glibc; see
30023         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
30024
30025         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
30026         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
30027         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
30028         (struct obstack): temp member is now a union of a pointer and
30029         an integer, instead of an integer.  All integer uses changed.
30030         This does not affect the physical layout of struct obstack,
30031         except on hosts (like the AS/400) where the size or alignment of
30032         void * is greater than that of ptrdiff_t.
30033         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
30034         __STDC__)]: Store temporary in pointer member of union, not
30035         integer member.
30036         * lib/obstack.c: Include <stddef.h>, for offsetof.
30037         (struct fooalign): Remove; it doesn't need a name.
30038         (union fooround): Change double to long double, and add void *.
30039         (DEFAULT_ALIGNMENT): Use offsetof to compute.
30040         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
30041         not a macro.  Hence the values are always int; so remove all
30042         casts-to-int in uses.
30043
30044 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
30045
30046         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
30047         we can get this patch merged into glibc.
30048
30049 2004-05-17  Derek R. Price  <derek@ximbiot.com>
30050             Paul Eggert  <eggert@cs.ucla.edu>
30051
30052         * m4/argp: Depend on alloca.
30053
30054 2004-05-17  Derek R. Price  <derek@ximbiot.com>
30055             Paul Eggert  <eggert@cs.ucla.edu>
30056
30057         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
30058         freecoding.
30059
30060 2004-05-17  Bruno Haible  <bruno@clisp.org>
30061
30062         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
30063         precision that consists of a '.' followed by an empty digit string.
30064         Patch by Tor Lillqvist <tml@iki.fi>.
30065
30066 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
30067
30068         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
30069         for backward compatibility with older code.  We need our own
30070         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
30071         it under some other name, and our alloca.h will define it.
30072
30073 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
30074             Derek Price  <derek@ximbiot.com>
30075
30076         * lib/alloca.c: Include <alloca.h>, to get our interface.
30077         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
30078         include <alloca.h> first.  Use C89 prototype for alloca; this
30079         requires including <stddef.h> for size_t.  Use extern "C" if C++.
30080         Use #elif for simplicity, since we can assume C89 now.
30081         Don't try to source the system alloca.h since it will not be found
30082         and to prevent recursively including its replacement.
30083         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
30084         * lib/regex.c: Likewise.
30085
30086 2004-05-16  Derek Price  <derek@ximbiot.com>
30087             Paul Eggert  <eggert@cs.ucla.edu>
30088
30089         getline cleanup.  This changes the getndelim2 API: both order of
30090         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
30091         no delimiter).
30092
30093         * lib/getline.c: Don't include stddef.h or stdio.h, since our
30094         interface does that.
30095         (getline): Always use getdelim, so that we don't have two
30096         copies of this code.
30097         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
30098         if available.
30099         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
30100         (GETNDELIM2_MAXIMUM): New macro.
30101         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
30102         instead of the old practice of delim2==0.  All callers changed.
30103         Return -1 on overflow, instead of returning junk.
30104         Do not set *linesize unless allocation succeeds.
30105         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
30106         that we include sys/types.h.
30107         * lib/getnline.h: Likewise.
30108         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
30109         (getndelim2): Reorder arguments.
30110         * lib/getnline.c (getnline, getndelim):
30111         Don't discard the NMAX argument.
30112         (getnline): Invoke getndelim, to avoid code duplication.
30113         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
30114         of (size_t) -1 by callers of the getnline family.
30115
30116 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
30117
30118         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
30119         Check for gettimeofday.
30120         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
30121         Check for settimeofday, stime.
30122
30123 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
30124
30125         * lib/nanosleep.c (suspended): Change its type from int to
30126         sig_atomic_t volatile.
30127         (first_call): Make it private to rpl_nanosleep, and have it
30128         be zero initially as that's a bit faster.
30129         (my_usleep): Round up fractional times instead of truncating them,
30130         as this is the usual meaning for 'sleep'.
30131
30132         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
30133         doesn't work.
30134         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
30135         (ENOSYS): Define if not defined.
30136         (settime): Fall back on stime if it exists and settimeofday fails.
30137         But don't bother with fallbacks if a method fails with errno == EPERM.
30138
30139 2004-05-11  Jim Meyering  <jim@meyering.net>
30140
30141         Prior to this change, the save_cwd caller required read access to the
30142         current directory on most systems (ones with the fchdir function).
30143
30144         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
30145         fails, try write-only, and finally, resort to using xgetcwd.
30146
30147 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
30148
30149         * lib/obstack.c, obstack.h: Import changes from libc.
30150
30151 2004-04-28  Bruno Haible  <bruno@clisp.org>
30152
30153         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
30154         also implicitly appends .exe to executables.
30155         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
30156         accepts Windows pathnames.
30157         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
30158         Treat Cygwin like Windows, since it now accepts Windows pathnames.
30159         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
30160         Treat Cygwin like Windows, since it now accepts Windows pathnames.
30161         Reported by Derek Robert Price <derek@ximbiot.com>.
30162
30163 2004-04-21  Karl Berry  <karl@gnu.org>
30164
30165         * config/srclist.txt (localcharset.c): break sync.
30166
30167 2004-04-20  Paul Eggert  <eggert@twinsun.com>
30168
30169         * m4/host-os.m4: Add a copyright notice.
30170
30171 2004-04-20  Jim Meyering  <jim@meyering.net>
30172
30173         Change UTILS_ to gl_ in AC_DEFINE'd names.
30174         Change utils_- and jm_-prefixed variables, too.
30175         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
30176         UTILS_FUNC_MKDIR_TRAILING_SLASH.
30177         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
30178
30179         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
30180         Don't emit trailing blanks.
30181         Also rename jm_-prefixed variables to have gl_ prefix.
30182
30183         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
30184         Also rename jm_-prefixed variables to have gl_ prefix.
30185
30186         * m4/jm-macros.m4: Reflect the renamings.
30187         * m4/prereq.m4: Likewise.
30188
30189 2004-04-20  Jim Meyering  <jim@meyering.net>
30190
30191         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
30192         memory.
30193
30194 2004-04-20  Jim Meyering  <jim@meyering.net>
30195             Bruno Haible  <bruno@clisp.org>
30196
30197         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
30198         memory when realloc fails.
30199
30200 2004-04-19  Jim Meyering  <jim@meyering.net>
30201
30202         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
30203         now that readutmp.c may call `free (0)'.
30204
30205 2004-04-19  Bruno Haible  <bruno@clisp.org>
30206
30207         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
30208         * m4/inttypes_h.m4: Likewise.
30209         * m4/stdint_h.m4: Likewise.
30210         * m4/intmax_t.m4: Likewise.
30211         * m4/uintmax_t.m4: Likewise.
30212
30213 2004-04-18  Jim Meyering  <jim@meyering.net>
30214
30215         * m4/prereq.m4: Don't forbid jm_ prefix.
30216
30217         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
30218         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
30219         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
30220         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
30221         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
30222         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
30223         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
30224         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
30225         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
30226         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
30227         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
30228         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
30229         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
30230         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
30231         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
30232         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
30233         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
30234         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
30235         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
30236
30237 2004-04-18  Jim Meyering  <jim@meyering.net>
30238
30239         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
30240         failure, don't leak memory and do call END_UTMP_ENT.
30241
30242 2004-04-16  Jim Meyering  <jim@meyering.net>
30243
30244         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
30245         coreutils' stat program.
30246         (gl_PREREQ): Don't require jm_PREREQ_STAT.
30247
30248 2004-04-11  Paul Eggert  <eggert@twinsun.com>
30249
30250         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
30251         C89.
30252         (CHAR_BIT): Remove, since we assume C89.
30253         Include <stdint.h> if available, as per current Autoconf CVS advice.
30254
30255 2004-03-31  Jim Meyering  <jim@meyering.net>
30256
30257         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
30258         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
30259         * m4/xalloc.m4: Likewise.
30260
30261 2004-03-30  Paul Eggert  <eggert@twinsun.com>
30262
30263         Merge from coreutils.
30264
30265         * m4/inttostr.m4: New file.
30266         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
30267         Require AM_STDBOOL_H and gl_TIMESPEC instead.
30268         Require gl_CLOCK_TIME.
30269         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
30270
30271 2004-03-30  Paul Eggert  <eggert@twinsun.com>
30272
30273         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
30274         not bool, to be more consistent with Unix conventions.
30275         Suggested by Bruno Haible.
30276
30277         Merge from coreutils.
30278
30279         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
30280         * lib/umaxtostr.c: New files.
30281
30282         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
30283         the usual <time.h> dance.
30284         (get_date): Change signature to support fractional time stamps.
30285         All callers changed.
30286         * lib/getdate.y: Include "getdate.h" first, as we can now
30287         assume C89 and don't need to worry about 'const'.
30288         Similarly, include "unlocked-io.h" near start, not in middle.
30289         Include <limits.h>.
30290         (textint.value): Use long int rather than int.
30291         (textint.digits): Use size_t rather than int.
30292         (BILLION, LOG10_BILLION): New constants.
30293         (parser_control): New member rel_ns.  Members day_ordinal,
30294         time_zone, month, day, hour, minutes, rel_year, rel_month,
30295         rel_day, rel_hour, rel_minutes, rel_seconds
30296         are now long int, not int.  Member seconds is now struct timespec,
30297         not int.  New member timespec_seen.  Members dates_seen, days_seen,
30298         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
30299         not int.
30300         (%union.intval): Now long int, not int.
30301         New member timespec.
30302         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
30303         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
30304         (spec): Now is a timespec or an item list.
30305         (timespec, items): New nonterminals.
30306         (time, rel, relunit, number, get_date):
30307         Add support for fractional seconds.
30308         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
30309         (gmtime, localtime, mktime): Remove decls; not needed with C89.
30310         (to_hour): First arg is now long int, not int.
30311         (to_year): Returns long int, not int.
30312         Don't treat year -70 like 70.
30313         (tm_diff): Returns long int, not int.
30314         (lookup_word): Use bool instead of int when appropriate.
30315         (yylex): Use size_t for count, not int.
30316         Detect overflow when parsing large integer constants.
30317         Add support for fractions.
30318         (get_date): Make pointers 'const' if possible.
30319         Use more-portable code to detect integer overflow.
30320         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
30321         Don't use ctime; it's not reliable if the year has >4 digits.
30322
30323         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
30324         This is for compatibility with BSD.
30325
30326         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
30327         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
30328         From coreutils' system.h.
30329
30330         * lib/userspec.c: Don't include "posixver.h".
30331         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
30332         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
30333         compatible extension.  Simplify code by removing a boolean int
30334         that was always nonzero if a string was nonnull.
30335
30336 2004-03-30  Jim Meyering  <jim@meyering.net>
30337
30338         Merge from coreutils.
30339
30340         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
30341         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
30342         on some systems one must include <grp.h> before it.
30343         Reported by Christian Krackowizer.
30344
30345 2004-03-30  Jim Meyering  <jim@meyering.net>
30346
30347         Merge from coreutils.
30348
30349         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
30350
30351         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
30352         an empty input stream.
30353
30354         * lib/readtokens.c: Include <stdbool.h>.
30355         (readtoken): Use `size_t' rather than int/long.
30356         All callers adjusted.
30357         Use `bool' rather than `int' where appropriate.
30358         Use memset rather than an explicit loop.
30359         Use x2nrealloc rather than xrealloc.
30360         Allow the use of `\0' as a delimiter.
30361         (readtokens): Likewise.
30362         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
30363
30364 2004-03-30  Jim Meyering  <jim@meyering.net>
30365
30366         * m4/realloc.m4: Remove file, since now it does no more than
30367         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
30368         the `configure.ac' section of module/realloc.
30369         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
30370
30371 2004-03-30  Bruno Haible  <bruno@clisp.org>
30372
30373         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
30374         nonnull.
30375
30376 2004-03-29  Paul Eggert  <eggert@twinsun.com>
30377
30378         Merge changes to getloadavg.c from coreutils and Emacs.
30379
30380         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
30381         Define to an expression, not to the empty string.
30382         Include cloexec.h and xalloc.h.
30383         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
30384         Use set_cloexec_flag rather than rolling our own.
30385         * lib/cloexec.c, lib/cloexec.h: New files.
30386
30387 2004-03-29  Paul Eggert  <eggert@twinsun.com>
30388
30389         * m4/cloexec.m4: New file.
30390
30391 2004-03-18  Paul Eggert  <eggert@twinsun.com>
30392
30393         * lib/getopt.h: Sync with libc CVS.
30394
30395 2004-03-18  Paul Eggert  <eggert@twinsun.com>
30396             Bruno Haible  <bruno@clisp.org>
30397
30398         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
30399         mbswidth.
30400
30401 2004-03-18  Paul Eggert  <eggert@twinsun.com>
30402             Bruno Haible  <bruno@clisp.org>
30403
30404         * lib/mbswidth.h: Include <wchar.h> only if
30405         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
30406         <wchar.h>.
30407         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
30408
30409 2004-03-09  Paul Eggert  <eggert@twinsun.com>
30410
30411         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
30412         Sync with libc CVS.
30413         * lib/getopt_int.h: New file, also synced from libc.
30414
30415 2004-03-09  Paul Eggert  <eggert@twinsun.com>
30416
30417         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
30418         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
30419         Bring back getopt.c, getopt.h, getopt1.c.
30420
30421 2004-03-07  Paul Eggert  <eggert@twinsun.com>
30422
30423         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
30424         All uses changed.  Check for sa_sigaction member; this fixes
30425         a bug first reported by Jason Andrade in
30426         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
30427
30428 2004-03-07  Paul Eggert  <eggert@twinsun.com>
30429
30430         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
30431         '#if' expressions.  Unlike the code it replaces, it does not
30432         depend on (defined _SC_PAGESIZE).  However, it does depend on
30433         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
30434         first reported by Jason Andrade in
30435         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
30436
30437 2004-02-25  Simon Josefsson  <jas@extundo.com>
30438
30439         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
30440
30441 2004-02-25  Simon Josefsson  <jas@extundo.com>
30442
30443         * lib/strdup.h: New file.
30444         * lib/strdup.c: Include it.
30445         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
30446         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
30447
30448 2004-02-23  Karl Berry  <karl@gnu.org>
30449
30450         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
30451         (from fencepost.gnu.org:/gd/gnuorg).
30452
30453 2004-02-23  Karl Berry  <karl@gnu.org>
30454
30455         * config/srclistvars.sh (GNUORG) [karl]: redefine.
30456         * config/srclist.txt: add maintain/standards documents.
30457
30458 2004-02-18  Bruno Haible  <bruno@clisp.org>
30459
30460         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
30461         Reported by Derek Robert Price <derek@ximbiot.com>.
30462
30463 2004-02-16  Karl Berry  <karl@gnu.org>
30464
30465         * config/mkinstalldirs, install-sh: update from automake.
30466
30467 2004-02-06  Karl Berry  <karl@gnu.org>
30468
30469         * m4/po.m4: update from gettext 0.14.1.
30470
30471 2004-02-06  Karl Berry  <karl@gnu.org>
30472
30473         * lib/config.charset: update from gettext 0.14.1.
30474
30475 2004-02-05  Paul Eggert  <eggert@twinsun.com>
30476
30477         Add comments and code, prompted by suggestions from Bruno Haible
30478         for sh-quote.
30479         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
30480         describing the enum quoting_style values.
30481         * lib/quotearg.c (quotearg_alloc): New function.
30482         (quotearg_buffer_restyled): Treat lone { and } as special.
30483         Treat = as special.  Work around bug with older shells
30484         that "see" a '\' that is really the 2nd byte of a multibyte char.
30485         Quote empty string with shell_quoting_style.
30486
30487 2004-02-03  Bruno Haible  <bruno@clisp.org>
30488
30489         * m4/pipe.m4: New file, from GNU gettext.
30490
30491 2004-02-03  Bruno Haible  <bruno@clisp.org>
30492
30493         * lib/pipe.h: New file, from GNU gettext.
30494         * lib/pipe.c: New file, from GNU gettext.
30495
30496 2004-01-27  Bruno Haible  <bruno@clisp.org>
30497
30498         * m4/execute.m4: New file, from GNU gettext.
30499
30500 2004-01-27  Bruno Haible  <bruno@clisp.org>
30501
30502         * lib/execute.h: New file, from GNU gettext.
30503         * lib/execute.c: New file, from GNU gettext.
30504         * lib/w32spawn.h: New file, from GNU gettext.
30505
30506 2004-01-24  Paul Eggert  <eggert@twinsun.com>
30507
30508         Merge from diffutils.
30509
30510         * lib/file-type.c (file_type): Add typed memory objects.
30511         * lib/file-type.h (S_TYPEISTMO): New macro.
30512
30513         * lib/c-stack.h (c_stack_action): Remove argv argument.
30514         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
30515         (die): Don't calculate message unless segv_action returns.
30516         (get_stack_location, min_address_from_argv, max_address_from_argv,
30517         volatile stack_base, volatile_stack_size): Remove.
30518         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
30519         that every segmentation violation is a stack overflow.  (Ouch!)
30520         See Debian bug 136249 (still outstanding) for more info about why
30521         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
30522
30523 2004-01-24  Paul Eggert  <eggert@twinsun.com>
30524
30525         Exit-status fix from coreutils.
30526
30527         Use exit_failure consistently in place of EXIT_FAILURE,
30528         so that program exit statuses are consistent on failure.
30529
30530         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
30531         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
30532         * lib/argmatch.h: Comment fix to match the above.
30533         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
30534         Now a macro referring to exit_failure, instead of a separate
30535         variable.  Include "exitfail.h" to get it.
30536         * lib/xstrtol.h: Include "exitfail.h".
30537         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
30538
30539         * lib/long-options.c (parse_long_options): Use prototype
30540         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
30541         for clarity.
30542
30543 2004-01-21  Jim Meyering  <jim@meyering.net>
30544
30545         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
30546         so as not to conflict with a different-sized __mktime_internal
30547         function in GNU libc.
30548         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
30549         Problem building statically-linked `ls' reported by Michael Brunnbauer.
30550
30551 2004-01-20  Karl Berry  <karl@gnu.org>
30552
30553         * config/config.guess: update from config.
30554
30555         * config/srclistvars.sh: GNUWWWLICENSES for karl.
30556
30557 2004-01-20  Bruno Haible  <bruno@clisp.org>
30558
30559         Safer stack allocation.
30560         * lib/setenv.c: Include allocsa.h.
30561         (alloca): Remove fallback definition.
30562         (freea): Remove macro.
30563         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
30564         instead of freea.
30565
30566 2004-01-20  Bruno Haible  <bruno@clisp.org>
30567
30568         * m4/eealloc.m4: New file, from GNU gettext.
30569
30570 2004-01-20  Bruno Haible  <bruno@clisp.org>
30571
30572         * m4/allocsa.m4: New file, from GNU gettext.
30573
30574 2004-01-20  Bruno Haible  <bruno@clisp.org>
30575
30576         * lib/xallocsa.h: New file, from GNU gettext.
30577         * lib/xallocsa.c: New file, from GNU gettext.
30578
30579 2004-01-20  Bruno Haible  <bruno@clisp.org>
30580
30581         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
30582
30583 2004-01-20  Bruno Haible  <bruno@clisp.org>
30584
30585         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
30586         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
30587         specially.
30588
30589 2004-01-20  Bruno Haible  <bruno@clisp.org>
30590
30591         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
30592         patch.
30593
30594 2004-01-20  Bruno Haible  <bruno@clisp.org>
30595
30596         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
30597
30598 2004-01-20  Bruno Haible  <bruno@clisp.org>
30599
30600         * lib/eealloc.h: New file.
30601
30602 2004-01-20  Bruno Haible  <bruno@clisp.org>
30603
30604         * lib/binary-io.h: Avoid warnings on Cygwin.
30605
30606 2004-01-20  Bruno Haible  <bruno@clisp.org>
30607
30608         * lib/allocsa.h: New file, from GNU gettext.
30609         * lib/allocsa.c: New file, from GNU gettext.
30610
30611 2004-01-18  Karl Berry  <karl@gnu.org>
30612
30613         * doc/gpl.texi, doc/lgpl.texi: new files.
30614
30615 2004-01-18  Karl Berry  <karl@gnu.org>
30616
30617         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
30618         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
30619
30620 2004-01-15  Paul Eggert  <eggert@twinsun.com>
30621
30622         Merge from coreutils.
30623
30624         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
30625         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
30626         (gl_DEFAULT_POSIX2_VERSION): Move
30627         the documentation from 'configure' into 'config.hin',
30628         so that 'configure --help' isn't burdened by it and
30629         we don't have to worry about its formatting there.
30630         Reword the documentation so that it's more succinct
30631         and can be run together into a single paragraph.
30632         * m4/same.m4 (gl_SAME): Check for pathconf.
30633
30634 2004-01-15  Paul Eggert  <eggert@twinsun.com>
30635
30636         Merge from coreutils.
30637
30638         * lib/posixver.c: Include posixver.h.
30639
30640         * lib/same.c: Include <stdbool.h>, <limits.h>.
30641         (_POSIX_NAME_MAX): Define if not defined.
30642         (MIN): New macro.
30643         (same_name): If file names are silently truncated, report
30644         that the file names are the same if they are the same after
30645         the silent truncation.
30646
30647         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
30648         conversion function.
30649         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
30650         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
30651         longer needed.
30652
30653 2004-01-15  Jim Meyering  <jim@meyering.net>
30654
30655         Merge from coreutils.
30656
30657         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
30658         if no library is required.
30659         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
30660         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
30661         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
30662         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
30663         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
30664         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
30665         value, $ac_cv_search_crypt, if it's "none required".
30666         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
30667         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
30668         not gl_FUNC_GETLOADAVG.
30669         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
30670         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
30671
30672 2004-01-15  Jim Meyering  <jim@meyering.net>
30673
30674         Merge from coreutils.
30675
30676         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
30677         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
30678         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
30679
30680         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
30681         optional configure-time default.
30682
30683         * lib/version-etc.c (version_etc_copyright): Update copyright date.
30684
30685         * lib/xreadlink.c (xreadlink): Correct outdated comment.
30686
30687 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
30688
30689         Merge from coreutils.
30690
30691         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
30692         value, $ac_cv_search_nanosleep, if it's "none required".
30693
30694 2004-01-14  Paul Eggert  <eggert@twinsun.com>
30695
30696         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
30697         with like-named macro in fnmatch.c.
30698         (EXT): Use an internal constant instead.
30699
30700         Merge fnmatch patches from glibc.
30701         * lib/fnmatch.c (mbsinit): Remove define.
30702         Add libc_hidden_ver (__fnmatch, fnmatch).
30703         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
30704         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
30705
30706 2004-01-14  Karl Berry  <karl@gnu.org>
30707
30708         * config/install-sh: update from automake.
30709
30710 2004-01-13  Karl Berry  <karl@gnu.org>
30711
30712         * config/install-sh: update from automake.
30713
30714 2004-01-09  Karl Berry  <karl@gnu.org>
30715
30716         * config/install-sh: update from automake.
30717
30718 2004-01-05  Karl Berry  <karl@gnu.org>
30719
30720         * config/config.{sub,guess}: update from config.
30721
30722 2003-12-31  Karl Berry  <karl@gnu.org>
30723
30724         * config/depcomp: update from automake.
30725
30726 2003-12-14  Karl Berry  <karl@gnu.org>
30727
30728         * lib/config.charset: update from gettext-runtime.
30729
30730 2003-12-03  Paul Eggert  <eggert@twinsun.com>
30731
30732         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
30733         Bug reported by Alfred M. Szmidt.
30734
30735 2003-12-03  Bruno Haible  <bruno@clisp.org>
30736
30737         * m4/gettext.m4: Upgrade from gettext-0.13.
30738         * m4/po.m4: Upgrade from gettext-0.13.
30739         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
30740         * m4/intmax.m4: New file, from gettext-0.13.
30741         * m4/printf-posix.m4: New file, from gettext-0.13.
30742
30743 2003-11-29  Karl Berry  <karl@gnu.org>
30744
30745         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
30746
30747 2003-11-25  Paul Eggert  <eggert@twinsun.com>
30748             Bruno Haible  <bruno@clisp.org>
30749
30750         * lib/printf-parse.h: Don't include sys/types.h.
30751         (ARG_NONE): New macro.
30752         (char_directive): Change type of *arg_index fields to size_t.
30753         * lib/printf-parse.c: Don't include sys/types.h.
30754         (SSIZE_MAX): Remove macro.
30755         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
30756         Remove unnecessary overflow check.
30757         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
30758         fields.
30759
30760 2003-11-25  Bruno Haible  <bruno@clisp.org>
30761
30762         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
30763
30764 2003-11-25  Bruno Haible  <bruno@clisp.org>
30765
30766         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
30767         gt_TYPE_SSIZE_T.
30768
30769 2003-11-24  Paul Eggert  <eggert@twinsun.com>
30770
30771         * modules/alloca: Remove dependency on xalloc.
30772
30773 2003-11-24  Paul Eggert  <eggert@twinsun.com>
30774
30775         * lib/alloca.c: Remove dependency on xalloc module.
30776         (xalloc_die): Remove.
30777         (memory_full) [!defined emacs]: New macro.
30778         [!defined emacs]: Don't include xalloc.h.
30779         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
30780         address arithmetic overflows.  Change datatypes a bit to avoid
30781         unnecessary casts.
30782
30783 2003-11-22  Jim Meyering  <jim@meyering.net>
30784
30785         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
30786         s/size/size_t/.
30787
30788 2003-11-21  Karl Berry  <karl@gnu.org>
30789
30790         * config/config.{sub,guess}: update from config.
30791
30792 2003-11-18  Karl Berry  <karl@gnu.org>
30793
30794         * config/config.{sub,guess}: update from config.
30795
30796         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
30797
30798 2003-11-17  Paul Eggert  <eggert@twinsun.com>
30799
30800         * README: Mention that S+T cannot overflow if S is the size of
30801         an existing object and T is sufficiently small.
30802
30803 2003-11-17  Jim Meyering  <jim@meyering.net>
30804
30805         On systems without utime and without a utimes function capable of
30806         dealing with a NULL struct utimbuf* argument, this utime replacement
30807         could -- in unusual circumstances -- leak a file descriptor.
30808         * lib/utime.c: Include <unistd.h> and <errno.h>.
30809         (utime_null): Be sure to close `fd' and to preserve errno.
30810         Reported by Geoff Collyer via Arnold Robbins.
30811
30812 2003-11-17  Bruno Haible  <bruno@clisp.org>
30813
30814         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
30815         (Depends-on): Add xsize.
30816
30817 2003-11-17  Bruno Haible  <bruno@clisp.org>
30818
30819         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
30820
30821 2003-11-17  Bruno Haible  <bruno@clisp.org>
30822
30823         * lib/vasnprintf.c (alloca): Remove fallback definition.
30824         (freea): Remove definition.
30825         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
30826         Reported by Paul Eggert.
30827
30828 2003-11-16  Paul Eggert  <eggert@twinsun.com>
30829             Bruno Haible  <bruno@clisp.org>
30830
30831         Protect against address arithmetic overflow.
30832         * lib/printf-args.h: Include stddef.h.
30833         (arguments): Change type of field 'count' to size_t.
30834         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
30835         'unsigned int' where appropriate.
30836         * lib/printf-parse.h: Include sys/types.h.
30837         (char_directive): Change type of *arg_index fields to ssize_t.
30838         (char_directives): Change type of fields 'count', max_*_length to
30839         size_t.
30840         * lib/printf-parse.c: Include sys/types.h and xsize.h.
30841         (SSIZE_MAX): Define fallback value.
30842         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
30843         instead of 'int' where appropriate. Check a_allocated, d_allocated
30844         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
30845         * lib/vasnprintf.c: Include xsize.h.
30846         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
30847         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
30848         overflow. Avoid wraparound when converting a width or precision from
30849         decimal to binary.
30850
30851 2003-11-16  Bruno Haible  <bruno@clisp.org>
30852
30853         Update from GNU gettext.
30854         * lib/printf-parse.c: Generalize to it can be compiled for wide
30855         strings.
30856         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
30857         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
30858         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
30859         SNPRINTF): New macros.
30860         Don't include <alloca.h> if the file is used inside libintl.
30861         (local_wcslen): New function, for Solaris 2.5.1.
30862         (VASNPRINTF): Use it instead of wcslen.
30863
30864 2003-11-16  Bruno Haible  <bruno@clisp.org>
30865
30866         * lib/xsize.h (xmax): New function.
30867         (xsum, xsum3, xsum4): Declare as "pure" functions.
30868
30869 2003-11-12  Paul Eggert  <eggert@twinsun.com>
30870
30871         * modules/xalloc (Files): Undo latest change, since xalloc.h
30872         no longer needs SIZE_MAX or PTRDIFF_MAX.
30873
30874 2003-11-12  Paul Eggert  <eggert@twinsun.com>
30875
30876         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
30877         gl_PTRDIFF_MAX.
30878
30879 2003-11-12  Paul Eggert  <eggert@twinsun.com>
30880
30881         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
30882         "return", to pacify some unknown compiler.  Problem reported
30883         by Joerg Schilling.
30884
30885 2003-11-12  Paul Eggert  <eggert@twinsun.com>
30886
30887         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
30888         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
30889         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
30890         heuristic is just as accurate as far as we know, and it removes a
30891         dependency on size_max.m4 and ptrdiff_max.m4.
30892
30893 2003-11-11  Bruno Haible  <bruno@clisp.org>
30894
30895         * modules/xsize (Files): Add m4/size_max.m4.
30896         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
30897
30898 2003-11-11  Bruno Haible  <bruno@clisp.org>
30899
30900         * m4/size_max.m4: New file.
30901         * m4/ptrdiff_max.m4: New file.
30902         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
30903         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
30904         (gl_XALLOC): Invoke it.
30905
30906 2003-11-11  Bruno Haible  <bruno@clisp.org>
30907
30908         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
30909         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
30910         defined.
30911
30912 2003-11-10  Paul Eggert  <eggert@twinsun.com>
30913
30914         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
30915         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
30916         rejected some allocations of exactly SIZE_MAX - 2 bytes.
30917         From Bruno Haible.
30918         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
30919         not (size_t) -1, since it's defined here.
30920
30921 2003-11-09  Karl Berry  <karl@gnu.org>
30922
30923         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
30924
30925 2003-11-06  Paul Eggert  <eggert@twinsun.com>
30926
30927         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
30928         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
30929         Reject sizes of exactly SIZE_MAX bytes.
30930         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
30931         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
30932
30933 2003-11-05  Bruno Haible  <bruno@clisp.org>
30934
30935         * lib/xsize.h: Include limits.h, to avoid a possible collision with
30936         SIZE_MAX defined in <limits.h> on Solaris.
30937
30938 2003-11-04  Jim Meyering  <jim@meyering.net>
30939
30940         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
30941         variable names, rather than @VAR@.
30942         * modules/poll: Likewise.
30943
30944 2003-11-04  Bruno Haible  <bruno@clisp.org>
30945
30946         * modules/xsize: New file.
30947         * modules/linebreak: Depend on xsize.
30948         * MODULES.html.sh (func_all_modules): Add xsize.
30949
30950 2003-11-04  Bruno Haible  <bruno@clisp.org>
30951
30952         * m4/xsize.m4: New file.
30953
30954 2003-11-04  Bruno Haible  <bruno@clisp.org>
30955
30956         * lib/xsize.h: New file.
30957         * lib/linebreak.c: Include xsize.h.
30958         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
30959         argument for overflow.
30960         Suggested by Paul Eggert.
30961
30962 2003-11-03  Karl Berry  <karl@gnu.org>
30963
30964         * config/config.{guess,sub}: update from config.
30965
30966 2003-11-03  Jim Meyering  <jim@meyering.net>
30967
30968         * modules/userspec (lib_SOURCES): Add userspec.h.
30969         (Include): Add "userspec.h".
30970         Improve description.
30971
30972 2003-11-03  Jim Meyering  <jim@meyering.net>
30973
30974         * lib/userspec.c: Include "userspec.h".
30975         * lib/userspec.h: New file.
30976
30977 2003-11-03  Bruno Haible  <bruno@clisp.org>
30978
30979         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
30980
30981 2003-11-03  Bruno Haible  <bruno@clisp.org>
30982
30983         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
30984         available, to avoid (extremely rare) race condition.
30985         Suggested by Paul Eggert.
30986
30987 2003-11-02  Karl Berry  <karl@gnu.org>
30988
30989         * config/srclist.txt (vasprintf.c): sync broken, sigh.
30990
30991 2003-10-31  Paul Eggert  <eggert@twinsun.com>
30992
30993         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
30994         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
30995         (read_filesystem_list): Set and use me_type_malloced.
30996         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
30997         whatever the type happens to be), for brevity and consistency.
30998         Check for size calculation overflow on Alphas running OSF/1.
30999
31000 2003-10-31  Jim Meyering  <jim@meyering.net>
31001
31002         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
31003
31004         * lib/linebuffer.c: Include <string.h> for declaration of memset.
31005
31006 2003-10-30  Paul Eggert  <eggert@twinsun.com>
31007             Bruno Haible  <bruno@clisp.org>
31008
31009         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
31010         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
31011
31012 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
31013
31014         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
31015         netbsd*-gnu*.  Suggested by Robert Millan.
31016
31017 2003-10-29  Paul Eggert  <eggert@twinsun.com>
31018
31019         * modules/group-member: Depend on stdbool.
31020
31021 2003-10-29  Paul Eggert  <eggert@twinsun.com>
31022
31023         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
31024
31025 2003-10-29  Paul Eggert  <eggert@twinsun.com>
31026
31027         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
31028         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
31029         after the 'gnu' in these cases.  This fixes some bugs in the
31030         previous change, and is based on suggestions by Robert Millan.
31031
31032 2003-10-29  Paul Eggert  <eggert@twinsun.com>
31033
31034         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
31035         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
31036         no longer needed.
31037         * lib/quotearg.c (quotearg_n_options): Use it.
31038         * lib/group-member.c: Include <stdbool.h>.
31039         (free_group_info): Arg is now const *; don't free arg.
31040         (get_group_info): Now returns bool and accepts struct group_info *,
31041         rather than returning a malloc'ed struct group_info *.
31042         All uses changed.  Check for overflow in internal size calculation.
31043
31044         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
31045         rather than xmalloc/xrealloc.
31046         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
31047         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
31048         conformance bug: the old code used a pointer after freeing the
31049         storage that it addressed.
31050         * lib/hash.c (hash_initialize): Simplify the code by using
31051         xalloc_oversized rather than doing it by hand.
31052         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
31053         the buffer preserved.  Use free and xmalloc instead.
31054         * lib/quotearg.c (quotearg_n_options): Likewise.
31055         Use a simpler test for size overflow.  Don't use xalloc_oversized
31056         because unsigned int might be wider than size_t (!); this suggests
31057         that we should switch from unsigned int to size_t for slot numbers.
31058
31059 2003-10-28  Paul Eggert  <eggert@twinsun.com>
31060
31061         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
31062         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
31063         NetBSD kernels.  Requested by Richard Stallman.
31064
31065 2003-10-27  Paul Eggert  <eggert@twinsun.com>
31066
31067         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
31068         to allocate the returned structure.  Do not allocate a subarray,
31069         as x2nrealloc will do that.
31070         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
31071         instead of xnrealloc.
31072         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
31073
31074 2003-10-27  Bruno Haible  <bruno@clisp.org>
31075
31076         * lib/stdbool_.h: Better support for BeOS.
31077
31078 2003-10-26  Paul Eggert  <eggert@twinsun.com>
31079
31080         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
31081         now uses inline.
31082
31083 2003-10-26  Paul Eggert  <eggert@twinsun.com>
31084
31085         * lib/xalloc.h (xalloc_oversized): New static inline function, for
31086         callers that want to do their own size-overflow checking.  Include
31087         <stdbool.h>, since xalloc_oversized returns bool.
31088         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
31089         to use xalloc_oversized.
31090
31091         Add two functions x2realloc, x2nrealloc, for programs that grow
31092         arrays dynamically by doubling their sizes.
31093         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
31094         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
31095         New functions.
31096
31097         Port to C99 semantics for 'inline' of external functions.
31098         Bug reported by Bruno Haible.
31099         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
31100         with the old contents of xnmalloc.
31101         (xnmalloc, xmalloc): Use it.
31102         (xnrealloc_inline): New static inline function,
31103         with the old contents of xnrealloc.
31104         (xnrealloc, xrealloc): Use it.
31105
31106         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
31107         that.
31108
31109 2003-10-26  Karl Berry  <karl@gnu.org>
31110
31111         * config/srclist.txt (COPYING.DOC): no longer available from
31112         /gd/gnuorg; don't know where the ultimate source is.
31113
31114 2003-10-25  Paul Eggert  <eggert@twinsun.com>
31115
31116         Fix several address-calculation bugs in the hash modules,
31117         plus some minor code cleanup.
31118
31119         * lib/hash.h: Include <stdbool.h>, for bool.
31120         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
31121         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
31122         hash_get_n_entries, hash_get_max_bucket_length,
31123         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
31124         hash_rehash): Use size_t rather than unsigned.
31125         * lib/hash.c (struct hash_table, hash_get_n_buckets,
31126         hash_get_n_buckets_used, hash_get_n_entries,
31127         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
31128         hash_get_entries, hash_do_for_each, hash_string, is_prime,
31129         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
31130         Likewise.
31131         (SIZE_MAX): Define if not defined.
31132         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
31133         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
31134         hash_print):
31135         Use const * when possible.
31136         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
31137         (check_tuning): Fix bug: if tuning parameters were very close to
31138         0 or 1, rounding errors could have caused subscript violations.
31139         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
31140         (hash_initialize): Add 'fail:' label
31141         to free table and return NULL, and use it to simplify code.
31142         Use calloc rather than clearing the storage ourself.
31143         (hash_initialize, hash_rehash): Check for arithmetic overflow in
31144         buffer size calculations.
31145         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
31146         Include <stddef.h>, for size_t.
31147         * lib/hash-pjw.c (hash_pjw): Likewise.
31148         Switch to method described by Bruno Haible.
31149         Include <limits.h>, for CHAR_BIT.
31150         (SIZE_BITS): New macro.
31151
31152 2003-10-23  Paul Eggert  <eggert@twinsun.com>
31153
31154         * m4/getline.m4 (AM_FUNC_GETLINE):
31155         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
31156         hosts.  Problem reported by Derek Robert Price in
31157         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
31158         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
31159         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
31160
31161 2003-10-21  Paul Eggert  <eggert@twinsun.com>
31162
31163         * lib/getndelim2.c (getndelim2): When size calculation overflows,
31164         ceiling the allocation at NMAX bytes rather than silently
31165         discarding input bytes before NMAX is reached.  This makes
31166         a difference only if NMAX exceeds SIZE_MAX / 2.
31167
31168         * lib/obstack.c: Merge from glibc.
31169         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
31170         Add libc_hidden_def (_obstack_newchunk).
31171         (_obstack_free) [! defined _LIBC]: Remove.
31172         [defined _LIBC]: Make a strong alias from obstack_free, rather than
31173         a clone of the function body.
31174         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
31175         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
31176
31177         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
31178         glibc.
31179         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
31180         arg to memcpy.
31181
31182         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
31183         (obstack_ptr_grow_fast, obstack_int_grow_fast):
31184         Don't use lvalue casts, as GCC plans to remove support for them
31185         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
31186         was also present in the non-GCC version, indicating that this
31187         code had always been buggy and had never been widely used.
31188         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
31189         Use the fast variant of each macro, rather than copying the
31190         definiens of the fast variant; that way, we'll be more likely to
31191         catch future bugs in the fast variants.
31192
31193 2003-10-20  Bruno Haible  <bruno@clisp.org>
31194
31195         * modules/wait-process: New file.
31196         * MODULES.html.sh (func_all_modules): Add wait-process.
31197
31198 2003-10-20  Bruno Haible  <bruno@clisp.org>
31199
31200         * m4/wait-process.m4: New file.
31201
31202 2003-10-20  Bruno Haible  <bruno@clisp.org>
31203
31204         * lib/wait-process.h: New file, from GNU gettext.
31205         * lib/wait-process.c: New file, from GNU gettext.
31206
31207 2003-10-19  Jim Meyering  <jim@meyering.net>
31208
31209         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
31210         HPUX 10.20.
31211
31212 2003-10-18  Karl Berry  <karl@gnu.org>
31213
31214         * config/config.guess: update from config.
31215
31216 2003-10-16  Paul Eggert  <eggert@twinsun.com>
31217
31218         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
31219         (getgroups): First arg is int, not size_t.
31220         Don't let 'free' mangle errno.
31221
31222 2003-10-16  Paul Eggert  <eggert@twinsun.com>
31223
31224         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
31225
31226 2003-10-16  Karl Berry  <karl@gnu.org>
31227
31228         * config/config.{guess,sub}: update from config.
31229
31230 2003-10-16  Jim Meyering  <jim@meyering.net>
31231
31232         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
31233         memcpy.
31234
31235 2003-10-15  Paul Eggert  <eggert@twinsun.com>
31236
31237         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
31238         (SIZE_MAX): Remove.
31239         (new_exclude, add_exclude_file): Initial size no longer needs to
31240         be a power of 2.
31241         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
31242         our own address arithmetic overflow checking.
31243
31244         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
31245         (fnmatch): Do not alloca more than 2000 wide characters;
31246         instead, use malloc for large buffers.
31247         Check for address arithmetic overflow, and return -1
31248         with errno set to ENOMEM in that case.
31249         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
31250         (NEW_PATTERN): Do not alloca more than 8000 bytes;
31251         instead, return -1.  Check for address arithmetic overflow.
31252
31253 2003-10-14  Paul Eggert  <eggert@twinsun.com>
31254
31255         Handle invalid suffixes and overflow independently, so that
31256         callers can treat them independently as needed.  Fix some bugs in
31257         suffix handling, e.g., "100k@" was not diagnosed as an invalid
31258         suffix for a human-readable blocksize.  The major caller-visible
31259         change is the addition of a new
31260         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
31261         that both overflow and suffix chars were found.
31262
31263         * lib/human.c (humblock): Don't check separately for invalid suffix
31264         char; that is xstrtoumax's job (now that its bug is fixed).
31265         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
31266         INTMAX_MAX]: New macros.
31267         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
31268         TYPE_MAXIMUM): New macros.
31269         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
31270         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
31271         if overflow occurs, as it's what __strtol does and it's more useful
31272         in practice.
31273         (__xstrtol): If __strtol reports some error other than ERANGE,
31274         reflect it to the caller as LONGINT_INVALID.  If it reports
31275         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
31276         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
31277         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
31278         value.
31279         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
31280         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
31281         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
31282         [defined UINTMAX_MAX]: New macros.
31283
31284 2003-10-14  Bruno Haible  <bruno@clisp.org>
31285
31286         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
31287
31288 2003-10-14  Bruno Haible  <bruno@clisp.org>
31289
31290         * m4/sig_atomic_t: New file, from GNU gettext.
31291         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
31292
31293 2003-10-14  Bruno Haible  <bruno@clisp.org>
31294
31295         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
31296         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
31297         Also use volatile where needed.
31298
31299 2003-10-12  Paul Eggert  <eggert@twinsun.com>
31300
31301         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
31302         Change maintainer from Bruno Haible to 'all'.
31303
31304 2003-10-12  Paul Eggert  <eggert@twinsun.com>
31305
31306         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
31307
31308 2003-10-12  Paul Eggert  <eggert@twinsun.com>
31309
31310         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
31311         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
31312         and define in terms of the other primitives.
31313         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
31314         (SIZE_MAX): Define if not already defined.
31315         (array_size_overflow): New function.
31316         (xalloc_die): Abort instead of exiting if 'error' returns.
31317         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
31318         (xmalloc, xrealloc): Use them.
31319         (xcalloc): Check for address arithmetic overflow.
31320         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
31321         a bit faster than strcpy.
31322
31323 2003-10-10  Simon Josefsson  <jas@extundo.com>
31324
31325         * modules/argp (Depends-on): Add restrict and strcase.
31326
31327 2003-10-10  Simon Josefsson  <jas@extundo.com>
31328
31329         * m4/argp.m4: Add AC_C_INLINE.
31330
31331 2003-10-08  Paul Eggert  <eggert@twinsun.com>
31332
31333         Merge getpass from libc, plus a few fixes.
31334
31335         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
31336         Include <stdbool.h>.
31337         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
31338         __fsetlocking to empty.
31339         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
31340         do include <bits/libc-lock.h>.
31341         Do not include <fcntl.h>; not needed.
31342         [_LIBC]: Include <wchar.h>.
31343         (NOTCANCEL_MODE): New macro.
31344         (flockfile, funlockfile) [_LIBC]: New macros.
31345         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
31346         [!_LIBC]: New macros.
31347         (call_fclose): New function.
31348         (getpass): Use it.  Save tty stream separately; this simplifies the
31349         code and makes it more reliable if stdin happens to equal stdout.
31350         Invoke __fsetlocking on tty.
31351         Handle thread cancellation if needed.
31352         Namespace cleanup (use __tcgetattr, __getline).
31353         Use bool for Booleans.
31354         [USE_IN_LIBIO]: Handle wide streams.
31355         [!_LIBC]: Unconditionally do the fseek, since we don't know what
31356         stream might go where.
31357
31358         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
31359         doesn't have to include <stdio.h> before us.
31360         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
31361         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
31362         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
31363         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
31364         if not declared, so that we can use getpass.c code from libc without
31365         rewriting it.
31366         (flockfile, ftrylockfile, funlockfile): New macros.
31367
31368 2003-10-08  Paul Eggert  <eggert@twinsun.com>
31369
31370         * modules/getpass: Depend on stdbool.
31371
31372 2003-10-08  Paul Eggert  <eggert@twinsun.com>
31373
31374         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
31375
31376 2003-10-07  Karl Berry  <karl@gnu.org>
31377
31378         * config/config.{guess,sub}: update from config.
31379
31380 2003-10-06  Jim Meyering  <jim@meyering.net>
31381             Bruno Haible  <bruno@clisp.org>
31382
31383         This lets translators provide better translations for the
31384         "Written by ..." part of --version output.
31385         * lib/version-etc.h: Include stdarg.h.
31386         (version_etc_copyright): Declare as readonly.
31387         (version_etc): Make this function variadic with a NULL-terminated list
31388         of author name strings.
31389         (version_etc_va): New declaration.
31390         * lib/version-etc.c: Include stdarg.h, stdlib.h.
31391         (version_etc_copyright): Declare as readonly.
31392         (version_etc_va): New function. Provide a different translatable string
31393         for each possible number of authors < 10. Abbreviate when there are 10
31394         authors or more.
31395         (version_etc): Make this function variadic. Call version_etc_va.
31396         Suggestion from Gary V. Vaughan.
31397
31398         * lib/long-options.h (parse_long_options): Change prototype: the
31399         authors string is moved to the end and becomes variadic.
31400         * lib/long-options.c: Include stdarg.h.
31401         (parse_long_options): Make this function variadic, too.
31402         Call version_etc_va, not version_etc.
31403
31404 2003-10-06  Bruno Haible  <bruno@clisp.org>
31405
31406         * modules/version-etc-2: Remove file.
31407         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
31408
31409 2003-10-06  Bruno Haible  <bruno@clisp.org>
31410
31411         * modules/fatal-signal: New file.
31412         * MODULES.html.sh (func_all_modules): Add fatal-signal.
31413
31414 2003-10-06  Bruno Haible  <bruno@clisp.org>
31415
31416         * m4/fatal-signal.m4: New file.
31417         * m4/signalblocking.m4: New file, from GNU gettext.
31418
31419 2003-10-06  Bruno Haible  <bruno@clisp.org>
31420
31421         * lib/version-etc-2.h: Remove file.
31422         * lib/version-etc-2.c: Remove file.
31423
31424 2003-10-06  Bruno Haible  <bruno@clisp.org>
31425
31426         * lib/fatal-signal.h: New file, from GNU gettext.
31427         * lib/fatal-signal.c: New file, from GNU gettext.
31428
31429 2003-10-05  Paul Eggert  <eggert@twinsun.com>
31430
31431         * README: Rework advice for preventing empty .o files.
31432         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
31433         not <sys/types.h>.
31434
31435 2003-10-04  Karl Berry  <karl@gnu.org>
31436
31437         * lib/argp*: update from libc.
31438
31439 2003-10-04  Karl Berry  <karl@gnu.org>
31440
31441         * config/config.{guess,sub}: update from config.
31442
31443 2003-10-02  Bruno Haible  <bruno@clisp.org>
31444
31445         * modules/lchown (Include): Add lchown.h.
31446         * modules/time_r (Include): Use "..." syntax.
31447         * modules/xgetdomainname (Include): Add xgetdomainname.h.
31448
31449 2003-10-01  Simon Josefsson  <jas@extundo.com>
31450
31451         * MODULES.html.sh (func_all_modules): Move gethostname from section
31452         'based on' to section 'lacking' POSIX:2001.
31453
31454 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
31455
31456         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
31457         to output mode on the same stream.
31458
31459 2003-09-29  Paul Eggert  <eggert@twinsun.com>
31460
31461         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
31462         Fix arg typo in previous patch.
31463
31464 2003-09-28  Jim Meyering  <jim@meyering.net>
31465
31466         * lib/error.c: Correct cpp indentation.
31467
31468 2003-09-27  Paul Eggert  <eggert@twinsun.com>
31469
31470         * modules/free: New file.
31471
31472 2003-09-27  Paul Eggert  <eggert@twinsun.com>
31473
31474         * m4/free.m4: New file.
31475
31476 2003-09-27  Paul Eggert  <eggert@twinsun.com>
31477
31478         * lib/minmax.h (MIN, MAX)
31479         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
31480         Omit the special code that used __typeof__, since we worry that
31481         it could be more trouble than it's worth.  See:
31482         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
31483         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
31484
31485         * lib/free.c: New file.
31486
31487 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
31488
31489         Trivial fixes to Makefile.am parts of module listings.
31490         * modules/strstr: Append strstr.h to lib_SOURCES.
31491         * modules/strcase: Likewise, for strcase.h.
31492
31493 2003-09-27  Karl Berry  <karl@gnu.org>
31494
31495         * config/mkinstalldirs: update from automake.
31496
31497 2003-09-26  Paul Eggert  <eggert@twinsun.com>
31498
31499         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
31500         (error_tail): Do not loop, reallocating temporary buffer, since
31501         the output cannot contain more wide characters than the input
31502         contains bytes, the size must be big enough already.  This avoids
31503         one potential size overflow calculation.  Check for size overflow
31504         when calculating temporary buffer size.  Free temporary buffer
31505         when done, if it was allocated with malloc; this plugs a memory
31506         leak.  Remove casts from void * to pointers, that are no longer
31507         needed now that we're assuming C89 or better.
31508
31509         Merge error changes from glibc.
31510
31511         * lib/error.c, error.h: Update copyright notice header to match glibc.
31512         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
31513         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
31514         Disable cancellation while printing error.
31515         * lib/error.h: Prepend __ to parameter names.
31516
31517 2003-09-26  Jim Meyering  <jim@meyering.net>
31518
31519         * lib/error.c (error_tail): Move some declarations
31520         into inner scope where the local variables are used.
31521
31522 2003-09-26  Bruno Haible  <bruno@clisp.org>
31523
31524         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
31525         stpncpy().
31526         Don't define stpncpy through config.h; it's now done through stpncpy.h.
31527
31528 2003-09-26  Bruno Haible  <bruno@clisp.org>
31529
31530         * lib/stpncpy.h (gnu_stpncpy): New declaration.
31531         (stpncpy): Define as alias for gnu_stpncpy.
31532         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
31533
31534 2003-09-25  Simon Josefsson  <jas@extundo.com>
31535
31536         * lib/xgetdomainname.h: New file.
31537         * lib/xgetdomainname.c: New file.
31538
31539 2003-09-25  Simon Josefsson  <jas@extundo.com>
31540             Bruno Haible  <bruno@clisp.org>
31541
31542         * modules/getdomainname: New file.
31543         * modules/xgetdomainname: New file.
31544         * MODULES.html.sh (func_all_modules): Add getdomainname,
31545         xgetdomainname.
31546
31547 2003-09-25  Simon Josefsson  <jas@extundo.com>
31548             Bruno Haible  <bruno@clisp.org>
31549
31550         * m4/getdomainname.m4: New file.
31551
31552 2003-09-25  Simon Josefsson  <jas@extundo.com>
31553             Bruno Haible  <bruno@clisp.org>
31554
31555         * lib/getdomainname.h: New file.
31556         * lib/getdomainname.c: New file.
31557
31558 2003-09-25  Karl Berry  <karl@gnu.org>
31559
31560         * lib/argp-fmtstream.c, argp-help.c: update from libc.
31561
31562 2003-09-25  Karl Berry  <karl@gnu.org>
31563
31564         * config/install-sh: update from automake.
31565
31566 2003-09-25  Bruno Haible  <bruno@clisp.org>
31567
31568         * modules/version-etc-2: New file, from modules/version-etc with
31569         modifications.
31570         * MODULES.html.sh (func_all_modules): Add version-etc-2.
31571
31572 2003-09-25  Bruno Haible  <bruno@clisp.org>
31573
31574         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
31575         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
31576
31577 2003-09-24  Simon Josefsson  <jas@extundo.com>
31578
31579         * modules/xgethostname: Add xgethostname.h.
31580
31581 2003-09-24  Paul Eggert  <eggert@twinsun.com>
31582
31583         * lib/linebuffer.c (freebuffer): Don't free the argument, just
31584         the buffer associated with the argument.  Bug reported by
31585         Simon Josefsson.
31586
31587 2003-09-24  Paul Eggert  <eggert@twinsun.com>
31588
31589         * README: Document assumptions that 'int' is at least 32 bits
31590         wide, that integer arithmetic is 2's complement without overflow,
31591         that there are no holes in integer values, that adding sizes of
31592         two nonoverlapping objects can't overflow, and that all-bits-zero
31593         yields scalar zero.  Fix spelling and capitalization typos.
31594
31595 2003-09-19  Karl Berry  <karl@gnu.org>
31596
31597         * lib/argp.h: update from libc.
31598
31599 2003-09-17  Paul Eggert  <eggert@twinsun.com>
31600
31601         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
31602         to avoid spurious warnings like "AC_RUN_IFELSE was called before
31603         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
31604
31605 2003-09-17  Paul Eggert  <eggert@twinsun.com>
31606
31607         * gnulib-tool: Use "test -h", not "test -L", for portability
31608         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
31609         (tags_regexp): Remove, since \| doesn't conform to POSIX.
31610         (sed_extract_prog): Issue s commands one-by-one, rather than
31611         using \| in one s command.
31612
31613 2003-09-16  Paul Eggert  <eggert@twinsun.com>
31614
31615         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
31616         input error, instead of returning NULL the next time we are called
31617         (and therefore losing track of errno).
31618
31619 2003-09-16  Bruno Haible  <bruno@clisp.org>
31620
31621         * gnulib-tool (func_create_testdir): Warn about duplicated
31622         dependencies.
31623
31624 2003-09-15  Paul Eggert  <eggert@twinsun.com>
31625
31626         * modules/argmatch, modules/fatal, modules/obstack,
31627         modules/xalloc, modules/xgethostname: Sort dependencies by
31628         importance, not alphabetically.
31629
31630 2003-09-15  Paul Eggert  <eggert@twinsun.com>
31631
31632         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
31633         fails, so that the caller gets the proper errno.
31634
31635         * lib/readutmp.c (read_utmp): Likewise.
31636         Check for fstat error.  Close stream and free storage
31637         when failing.
31638
31639 2003-09-14  Karl Berry  <karl@gnu.org>
31640
31641         * config/srclist.txt (strdup.c): disable for c89 changes.
31642
31643 2003-09-14  Jim Meyering  <jim@meyering.net>
31644
31645         * lib/getloadavg.c: Correct cpp indentation.
31646         * lib/strdup.c: Likewise.
31647         * lib/vasnprintf.c: Likewise.
31648
31649 2003-09-14  Bruno Haible  <bruno@clisp.org>
31650
31651         * modules/fwriteerror: New file.
31652         * MODULES.html.sh (func_all_modules): Add fwriteerror.
31653
31654 2003-09-14  Bruno Haible  <bruno@clisp.org>
31655
31656         * lib/fwriteerror.h: New file.
31657         * lib/fwriteerror.c: New file.
31658
31659 2003-09-12  Paul Eggert  <eggert@twinsun.com>
31660
31661         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
31662         modules/xgethostname, modules/xalloc: Depend on exit.
31663
31664 2003-09-12  Paul Eggert  <eggert@twinsun.com>
31665
31666         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
31667
31668         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
31669         and AC_MINIX, too, so that their extensions are available.
31670
31671         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
31672         This macro has been superseded by gl_BACKUPFILE.
31673
31674         More patches to assume C89 or better.
31675
31676         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
31677
31678         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
31679         unconditionally.
31680         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
31681         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
31682         Include <string.h>, <stdlib.h> unconditionally.
31683         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
31684         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
31685         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
31686         headers or for string.h.
31687         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
31688         or strtoul.
31689
31690         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
31691         headers.
31692         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
31693         * m4/userspec.m4 (gl_USERSPEC): Likewise.
31694         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
31695         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
31696         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
31697         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
31698         memcpy, memset.
31699         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
31700         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
31701         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
31702         strtol.
31703         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
31704         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
31705         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
31706         strtoul.
31707
31708 2003-09-12  Paul Eggert  <eggert@twinsun.com>
31709
31710         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
31711         * lib/obstack.c [!defined _LIBC]: Likewise.
31712         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
31713         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
31714         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
31715
31716         More changes to assume C89 or better.
31717
31718         * lib/error.c (error_tail): Assume vprintf.
31719
31720         * lib/argmatch.c (getenv): Remove decl.
31721         * lib/progreloc.c (get_full_program_name): Define via prototype.
31722         * lib/setenv.c (clearenv): Likewise.
31723         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
31724         needed.
31725         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
31726         (malloc, memcpy): Remove decls.
31727         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
31728         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
31729         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
31730         (memcpy): Remove macro.
31731         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
31732         (__P): Remove.  All uses removed.
31733         (PTR): Remove.  All uses changed to void *.
31734         (CHAR_BIT, NULL): Remove.
31735         (spaces, zeros, memset_space, memset_zero)
31736         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
31737         Remove.
31738         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
31739         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
31740         Define with prototype.
31741         Remove now-unnecessary prototype decl.
31742         (extra_args_spec): Assume ANSI C.  All uses changed.
31743         (extra_args_spec_iso): Remove.
31744         (my_strftime, emacs_strftimeu): Define via prototype.
31745         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
31746         unconditionally.
31747         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
31748         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
31749         (strtoul, strtol): Remove decls.
31750         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
31751         LONG_MAX): Remove.
31752         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
31753         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
31754         (LOCALE_PARAM_PROTO): New macro.
31755         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
31756         (INTERNAL (strtol), strtol): Define with a prototype.
31757         (PARAMS): Remove.  All uses removed.
31758         * lib/tempname.c: Include <string.h> unconditionally.
31759         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
31760         * lib/xgethostname.c (main): Define with a prototype.
31761         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
31762         Include <stdlib.h> unconditionally.
31763         (calloc, malloc, realloc, free): Remove decls.
31764         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
31765         Include <stdlib.h> unconditionally.  Sort include file names.
31766         (strtod): Remove.
31767         (xstrtod): Define with a prototype.
31768         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
31769         (strtol, strtoul): Remove decls.
31770
31771 2003-09-11  Paul Eggert  <eggert@twinsun.com>
31772
31773         More patches to assume C89 or better.
31774         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
31775         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
31776         string.h, memchr, STDC_HEADERS.
31777
31778 2003-09-11  Paul Eggert  <eggert@twinsun.com>
31779
31780         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
31781         Include <stdlib.h>, <string.h> unconditionally.
31782         Remove now-unnecessary cast to char *.
31783         * lib/strnlen.c: Include <string.h> unconditionally.
31784         * lib/yesno.c (yesno): Define with a prototype.
31785
31786 2003-09-11  Bruno Haible  <bruno@clisp.org>
31787
31788         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
31789
31790 2003-09-10  Jim Meyering  <jim@meyering.net>
31791
31792         * lib/error.c: Correct indentation of cpp directives.
31793
31794 2003-09-10  Bruno Haible  <bruno@clisp.org>
31795
31796         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
31797         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
31798         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
31799         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
31800         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
31801         <stdlib.h> and <string.h> checks.
31802         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
31803         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
31804
31805 2003-09-10  Bruno Haible  <bruno@clisp.org>
31806
31807         * lib/strcspn.c: Include <string.h> unconditionally.
31808         * lib/strpbrk.c: Include <string.h> unconditionally.
31809         * lib/strstr.c: Include <string.h> unconditionally.
31810         * lib/unicodeio.c: Include <string.h> unconditionally.
31811         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
31812         * lib/unsetenv.c: Likewise.
31813         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
31814         * lib/yesno.c: Include <stdlib.h> unconditionally.
31815         (rpmatch): Add prototype.
31816
31817 2003-09-09  Paul Eggert  <eggert@twinsun.com>
31818
31819         More patches to assume C89 or better.
31820         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
31821         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
31822         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
31823         or for string.h.
31824         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
31825         stdlib.h.
31826         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
31827         C headers.
31828         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
31829         string.h.
31830         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
31831         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
31832         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
31833         or for string.h.
31834         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
31835         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
31836         C headers.
31837         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
31838         memcpy.
31839         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
31840         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
31841         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
31842         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
31843         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
31844         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
31845         string.h, free.
31846         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
31847         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
31848         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
31849         C headers, or for string.h.
31850         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
31851         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
31852         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
31853         headers, memory.h, stdlib.h, string.h, strings.h.
31854         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
31855         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
31856         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
31857         strchr.
31858         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
31859         headers, memory.h, string.h.
31860         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
31861         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
31862         free.
31863         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
31864         headers.
31865         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
31866         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
31867         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
31868         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
31869         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
31870
31871 2003-09-09  Paul Eggert  <eggert@twinsun.com>
31872
31873         More K&R removal.
31874
31875         * lib/acosl.c (main): Use a prototype.
31876         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
31877         tanl.c: Likewise.
31878
31879         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
31880
31881         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
31882         (getopt, etopt_long, getopt_long_only, _getopt_internal)
31883         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
31884         with a prototype.
31885         * lib/getopt.c (const): Remove macro.
31886         Include <string.h> unconditionally.
31887         (my_index): Remove; all uses changed to strchr.
31888         (strlen): Remove decl.
31889         (exchange): Remove forward decl; no longer needed.
31890         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
31891         Define with prototype.
31892         * lib/getopt1.c (const): Remove macro.
31893         (getopt_long, getopt_long_only, main): Define with prototype.
31894
31895         * lib/getugroups.c: Include <string.h> unconditionally.
31896
31897         * lib/getusershell.c: Include <stdlib.h> unconditionally.
31898         (getusershell, setusershell, endusershell, readname, main):
31899         Define with prototypes.
31900
31901         * lib/group-member.c: Include group-member.h first.
31902         Include <stdlib.h> unconditionally.
31903
31904         * lib/hard-locale.c: Include hard-locale.h first.
31905         Include <stdlib.h>, <string.h> unconditionally.
31906
31907         * lib/hash.c (free, malloc): Remove decls.
31908         Include <stdlib.h> unconditionally.
31909
31910         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
31911         (getenv): Do not declare.
31912
31913         * lib/idcache.c: Include <string.h> unconditionally.
31914
31915         * lib/long-options.c: Include long-options.h first, to test interface.
31916         Include <stdlib.h> unconditionally.
31917
31918         * lib/makepath.c: Include makepath.h first, to test interface.
31919         Include <stdlib.h> and <string.h> unconditionally.
31920
31921         * lib/linebuffer.c: Include <stdlib.h>.
31922         (free): Remove decl.
31923
31924         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
31925         stddef.h. rpl_malloc returns void *, not char *.
31926         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
31927         prototype.
31928
31929         * lib/md5.h: Include <limits.h> unconditionally.
31930         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
31931         (__P): Remove; all uses removed.
31932         * lib/md5.c: Include "md5.h" first.
31933         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
31934         md5_buffer, md5_process_bytes, md5_process_block):
31935         Define with prototypes.
31936         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
31937         * lib/sha.c: Include "sha.h" first.
31938         Include <stdlib.h>, <string.h> unconditionally.
31939
31940         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
31941         * lib/memcmp.c (__ptr_t): Likewise.
31942         * lib/memrchr.c (__ptr_t): Likewise.
31943         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
31944         Include <string.h> unconditionally.
31945         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
31946         * lib/memchr.c: Include <stdlib.h> unconditionally.
31947         * lib/memchr.c (LONG_MAX): Remove.
31948         * lib/memrchr.c (LONG_MAX): Likewise.
31949         * lib/memchr.c (__memchr): Define via a prototype.
31950         * lib/memrchr.c (__memrchr): Likewise.
31951         * lib/memcmp.c (__P): Remove, and remove all uses.
31952         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
31953         Remove forward decls; no longer needed.
31954         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
31955         Use types required by C89 in prototype.
31956
31957         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
31958         * lib/savedir.c: Likewise.
31959         * lib/mkdir.c (free): Remove decl.
31960         * lib/rmdir.c (rmdir): Define with a prototype.
31961         * lib/savedir.c: Include savedir.h first, to test interface.
31962
31963         * lib/mktime.c (STDC_HEADERS): Remove.
31964         Include <stdlib.h>, <string.h> unconditionally.
31965
31966         * lib/modechange.c: Include <stdlib.h> unconditionally.
31967         (malloc): Remove decl.
31968
31969         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
31970         (free): Remove decl.
31971
31972         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
31973         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
31974         (This type really should be intptr_t, but that's a C99ism.)
31975         (_obstack_memcpy): Remove: all uses changed to memcpy.
31976         Include <string.h> unconditionally.
31977         (struct obstack): Assume __STDC__ for types of members
31978         chunkfun, freefun, extra_arg.
31979         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
31980         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
31981         obstack_begin, obstack_specify_allocation,
31982         obstack_specify_allocation_with_arg, obstack_chunkfun,
31983         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
31984         Remove unprototyped decls and the macros that use them.
31985         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
31986         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
31987         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
31988         (defined __STDC__ && __STDC__)]:
31989         Remove nonprototyped code.
31990         Include <stdlib.h> unconditionally.
31991         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
31992         _obstack_allocated_p, _obstack_free, obstack_free,
31993         _obstack_memory_used, print_and_abort):
31994         Define using prototypes.
31995         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
31996         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
31997         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
31998         obstack_next_free, obstack_object_size, obstack_room) [0]:
31999         Remove unused, unprototyped code.
32000
32001         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
32002
32003         * lib/physmem.c (physmem_total, physmem_available, main): Define
32004         with prototypes.
32005
32006         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
32007         (main): Define with a prototype.
32008
32009         * lib/posixver.c (getenv): Remove decl.
32010
32011         * lib/putenv.c (malloc): Returns void *, not char *.
32012         Include <string.h> unconditionally.
32013         (strchr, memcpy, NULL): Do not define.
32014
32015         * lib/readtokens.c: Include readtokens.h first, to test interface.
32016         Include <stdlib.h>, <string.h> unconditionally.
32017         (init_tokenbuffer): Define with a prototype.
32018
32019         * lib/regex.c (PARAMS): Remove.  All uses removed.
32020         All uses of _RE_ARGS removed, too.
32021         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
32022         unconditionally.
32023         (bzero): Assume memset exists.
32024         (memcmp, memcpy, NULL): Remove.
32025         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
32026         char, or assignments to local vars of type signed char.
32027         (init_syntax_once, PREFIX(extract_number_and_incr),
32028         PREFIX(print_partial_compiled_pattern),
32029         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
32030         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
32031         PREFIX(regex_grow_registers), PREFIX(regex_compile),
32032         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
32033         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
32034         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
32035         wcs_compile_range, byte_compile_range, truncate_wchar,
32036         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
32037         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
32038         count_mbs_length, wcs_re_match_2_internal,
32039         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
32040         PREFIX(alt_match_null_string_p),
32041         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
32042         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
32043         regfree, PREFIX(extract_number)): Define with prototype.  Remove
32044         now-unnecessary declaration, if any.
32045         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
32046         regcomp, regexec):
32047         Remove now-unnecessary casts among pointer types.
32048         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
32049
32050         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
32051         (free): Remove decl.
32052
32053         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
32054
32055         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
32056         (free): Remove decl.
32057
32058         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
32059         * lib/xgetcwd.c: Likewise.
32060
32061         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
32062         (free): Remove decl.
32063
32064         * lib/strchrnul.c (strchrnul): Define with a prototype.
32065         Fix bug: c_in was not converted to char before searching.
32066
32067         The following changes are not K&R related:
32068
32069         * lib/group-member.h: Include <sys/types.h>, so that this file is
32070         self-contained.
32071         * lib/makepath.h: Likewise.
32072
32073         * lib/getusershell.c (readname, default_index, line_size, readname):
32074         Use size_t, not int, for sizes.
32075         (readname): If the size overflows, report an error instead of
32076         looping forever.
32077
32078 2003-09-09  Paul Eggert  <eggert@twinsun.com>
32079
32080         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
32081         libc.
32082
32083 2003-09-09  Paul Eggert  <eggert@twinsun.com>
32084
32085         * README: New section: portability guidelines.
32086
32087 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
32088
32089         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
32090         C89 spec.
32091
32092 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
32093
32094         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
32095
32096 2003-09-08  Paul Eggert  <eggert@twinsun.com>
32097
32098         Assume C89 or better; remove K&R cruft.
32099         A few of these changes were first proposed by Derek Robert Price
32100         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
32101
32102         * lib/addext.c: Include <string.h> unconditionally.
32103         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
32104         Don't declare getenv or malloc.
32105
32106         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
32107         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
32108         (NULL): Remove.
32109         (find_stack_direction, alloca): Use prototypes.
32110
32111         * lib/atexit.c (atexit): Define using a prototype.
32112
32113         * lib/basename.c, dirname.c, stripslash.c:
32114         Include <string.h> unconditionally.
32115
32116         * lib/bcopy.c: Include <stddef.h>.
32117         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
32118
32119         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
32120
32121         * lib/error.h (error, error_at_line, error_print_progname)
32122         [! (defined (__STDC__) && __STDC__)]: Remove decls.
32123         * lib/error.c: Include error.h first, to check interface.
32124         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
32125         (VA_START): Remove; all uses changeed to va_start.
32126         (exit, strerror): Remove decls.
32127         (error_print_progname): Prototype uncondionally.
32128         Don't include <errno.h>; no longer needed.
32129         (private_strerror): Remove.
32130         (error_tail): Always define.
32131         (error, error_at_line): Assume C89 or better; always use prototypes.
32132         * lib/fatal.c: Include "fatal.h" first, to test interface.
32133         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
32134         (VA_START): Remove; all uses changed to va_start.
32135         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
32136         this case.
32137         (exit): Remove decl.
32138         (fatal): Prototype unconditionally.  Assume va_start works.
32139         Abort at end, to pacify gcc.
32140
32141         * lib/euidaccess.c (main): Define with a prototype.
32142
32143         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
32144
32145         * lib/exitfail.c: Include <stdlib.h> unconditionally.
32146
32147         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
32148         prototypes.
32149         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
32150         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
32151         (getenv): Remove decl.
32152         (fnmatch): Define using a prototype.
32153         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
32154         (FCT): Define using a prototype.
32155
32156         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
32157
32158         * lib/gethostname.c: Include <stddef.h>.
32159         (gethostname): Define with prototype.  Length is size_t, not int.
32160
32161 2003-09-08  Paul Eggert  <eggert@twinsun.com>
32162
32163         Assume C89 or better; remove K&R cruft.
32164         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
32165         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
32166         string.h, getenv, malloc.
32167         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
32168         headers.
32169         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
32170         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
32171         do not check for strerror.
32172         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
32173         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
32174         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
32175         do not check for doprnt or vprintf.
32176         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
32177         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
32178
32179 2003-09-08  Paul Eggert  <eggert@twinsun.com>
32180
32181         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
32182         getversion.c should have been removed then, but was accidentally
32183         preserved.
32184
32185         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
32186         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
32187
32188 2003-09-08  Karl Berry  <karl@gnu.org>
32189
32190         * config/config.sub, config.guess, srclistvars.sh: update from savannah
32191                 config, forget about prep.
32192
32193         * config/depcomp, missing: update from automake.
32194
32195 2003-09-07  Paul Eggert  <eggert@twinsun.com>
32196
32197         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
32198         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
32199
32200 2003-09-07  Paul Eggert  <eggert@twinsun.com>
32201
32202         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
32203         copy_tm_result.  Bug reported by Simon Josefsson in
32204         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
32205
32206 2003-09-06  Paul Eggert  <eggert@twinsun.com>
32207
32208         * m4/time_r.m4: New file.
32209         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
32210         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
32211         is. Check for timegm declaration.
32212         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
32213         Do not check for gmtime_r.
32214         Replace mktime if __mktime_internal does not exist and if mktime
32215         hasn't been replaced already.
32216
32217 2003-09-06  Paul Eggert  <eggert@twinsun.com>
32218
32219         * lib/time_r.c, lib/time_r.h: New files.
32220
32221         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
32222         __localtime_r.
32223         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
32224         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
32225
32226         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
32227         __gmtime_r.
32228         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
32229         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
32230         Include <time_r.h>.
32231
32232         * lib/timegm.c: Switch to glibc implementation, with the following
32233         changes:
32234         [defined HAVE_CONFIG_H]: Include <config.h>.
32235         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
32236         (__mktime_internal) [!defined _LIBC]: New decl.
32237         (__gmtime_r) [!defined _LIBC]: New macro and function.
32238         (timegm): Use a prototype, since gnulib assumes C89.
32239         Do not bother declaring tmp to be const, as it's not really usefu.
32240         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
32241         (timegm): Declare only if HAVE_DECL_TIMEGM.
32242
32243 2003-09-06  Paul Eggert  <eggert@twinsun.com>
32244
32245         * MODULES.html.sh (func_all_modules): Add time_r.
32246         * modules/time_r: New file.
32247         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
32248         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
32249
32250 2003-09-03  Paul Eggert  <eggert@twinsun.com>
32251
32252         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
32253         Bug reported by Lute Kamstra in
32254         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
32255
32256         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
32257         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
32258         course with correspondingly smaller numbers for tomorrow and
32259         yesterday.  From Tadayoshi Funaba.  Originally installed into
32260         sh-utils on 1999-08-07, but the patch got lost (I guess during the
32261         coreutils merge?).
32262
32263 2003-08-31  Simon Josefsson  <jas@extundo.com>
32264
32265         * modules/timegm: New file.
32266         * MODULES.html.sh (func_all_modules): Add timegm.
32267
32268 2003-08-31  Simon Josefsson  <jas@extundo.com>
32269
32270         * m4/timegm.m4: New file.
32271
32272 2003-08-31  Simon Josefsson  <jas@extundo.com>
32273
32274         * lib/timegm.h: New file.
32275         * lib/timegm.c: New file.  Based on
32276         wget-1.8.2/src/http.c:mktime_from_utc.
32277
32278 2003-08-31  Karl Berry  <karl@gnu.org>
32279
32280         * lib/argp.h: update from libc.
32281
32282 2003-08-28  Bruno Haible  <bruno@clisp.org>
32283
32284         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
32285         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
32286         followed by '#define fnmatch fnmatch_posix' gives an error.
32287
32288 2003-08-28  Bruno Haible  <bruno@clisp.org>
32289
32290         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
32291         warning on QNX, which defines O_BINARY to 000000.
32292
32293 2003-08-27  Jim Meyering  <jim@meyering.net>
32294
32295         * m4/mkstemp.m4: Require that the system mkstemp be able to create
32296         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
32297         would fail after 32.  Reported by Danny Levinson.  Details here:
32298         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
32299
32300 2003-08-24  Bruno Haible  <bruno@clisp.org>
32301
32302         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
32303         MSVC7 <stdio.h> is included later.
32304
32305 2003-08-22  Simon Josefsson  <jas@extundo.com>
32306
32307         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
32308
32309 2003-08-20  Karl Berry  <karl@gnu.org>
32310
32311         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
32312
32313 2003-08-20  Bruno Haible  <bruno@clisp.org>
32314
32315         * modules/progname: New file.
32316         * MODULES.html.sh (func_all_modules): Add progname.
32317
32318 2003-08-20  Bruno Haible  <bruno@clisp.org>
32319
32320         * lib/progname.h: New file, from GNU gettext.
32321         * lib/progname.c: New file, from GNU gettext.
32322         * lib/progreloc.c: New file, from GNU gettext.
32323
32324 2003-08-19  Jim Meyering  <jim@meyering.net>
32325
32326         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
32327         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
32328
32329 2003-08-19  Bruno Haible  <bruno@clisp.org>
32330
32331         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
32332         more.
32333
32334 2003-08-19  Bruno Haible  <bruno@clisp.org>
32335
32336         * lib/xstrdup.c: Assume <string.h> exists.
32337
32338 2003-08-18  Paul Eggert  <eggert@twinsun.com>
32339
32340         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
32341         in makefile rules.
32342
32343 2003-08-18  Jim Meyering  <jim@meyering.net>
32344
32345         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
32346         * m4/lib-ld.m4: Likewise.
32347
32348 2003-08-18  Jim Meyering  <jim@meyering.net>
32349
32350         * lib/setenv.h: Indent nested cpp directive.
32351         * lib/vasnprintf.c: Remove trailing blanks.
32352
32353 2003-08-17  Simon Josefsson  <jas@extundo.com>
32354
32355         * modules/xstrndup: New file.
32356         * MODULES.html.sh (func_all_modules): Add xstrndup.
32357
32358 2003-08-17  Simon Josefsson  <jas@extundo.com>
32359
32360         * modules/argp: Fix autoconf macro name. Add more dependencies.
32361
32362 2003-08-17  Simon Josefsson  <jas@extundo.com>
32363
32364         * m4/xstrndup.m4: New file.
32365
32366 2003-08-17  Simon Josefsson  <jas@extundo.com>
32367
32368         * m4/argp.m4: New file.
32369
32370 2003-08-17  Simon Josefsson  <jas@extundo.com>
32371             Bruno Haible  <bruno@clisp.org>
32372
32373         * lib/xstrndup.h: New file.
32374         * lib/xstrndup.c: New file.
32375
32376 2003-08-17  Bruno Haible  <bruno@clisp.org>
32377
32378         * modules/strndup (Files, Include): Add lib/strndup.h.
32379
32380 2003-08-17  Bruno Haible  <bruno@clisp.org>
32381
32382         * modules/euidaccess (Files): Add lib/euidaccess.h.
32383
32384 2003-08-17  Bruno Haible  <bruno@clisp.org>
32385
32386         * lib/strndup.h: New file.
32387
32388 2003-08-17  Bruno Haible  <bruno@clisp.org>
32389
32390         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
32391         like AC_GNU_SOURCE.
32392         * modules/extensions (configure.ac): Comment out the invocation of
32393         gl_USE_SYSTEM_EXTENSIONS.
32394
32395 2003-08-16  Paul Eggert  <eggert@twinsun.com>
32396
32397         Merges from coreutils, etc.
32398         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
32399         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
32400         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
32401         fixing a typo.
32402         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
32403         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
32404
32405 2003-08-16  Paul Eggert  <eggert@twinsun.com>
32406
32407         Document merge from coreutils.
32408         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
32409         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
32410         * modules/utime: Add m4/utimes-null.m4.
32411
32412 2003-08-16  Paul Eggert  <eggert@twinsun.com>
32413
32414         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
32415         space, undoing this 2003-08-12 change:
32416         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
32417
32418 2003-08-16  Paul Eggert  <eggert@twinsun.com>
32419
32420         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
32421         strtoul.c from libc, undoing this 2003-08-12 change:
32422         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
32423
32424 2003-08-16  Jim Meyering  <jim@meyering.net>
32425
32426         Merges from coreutils.
32427         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
32428         prefix.  Adjust cache variables similarly.  Create 500 rather than
32429         just 300 files, to exercise bug on Darwin6.5, too.
32430         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
32431         $missing_dir.
32432         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
32433         AM_SYS_POSIX_TERMIOS.
32434         Reported by mkc@mathdogs.com.
32435         Also change use of $am_cv_sys_posix_termios
32436         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
32437         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
32438         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
32439         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
32440         in /proc/mounts until it finds one with matching device number.  This
32441         is unnecessary when the FILE argument *is* a mount point.  No stat call
32442         is necessary in that case.  So, disable the statvfs-testing code on
32443         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
32444         as RedHat bug# 84846.
32445         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
32446         to 1MB, so as not to render systems with no stack size limit (e.g.,
32447         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
32448         Include <unistd.h>.  On some systems,
32449         it is required for the definition of _SC_PAGESIZE.
32450
32451 2003-08-16  Jim Meyering  <jim@meyering.net>
32452
32453         Merge from coreutils.
32454         * lib/xstrtoimax.c: #else #if -> #elif.
32455         * lib/xstrtoumax.c: Likewise.
32456
32457 2003-08-16  Jim Meyering  <jim@meyering.net>
32458
32459         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
32460         * m4/utimes.m4: Removed.
32461         * m4/utimes-null.m4: Renamed from utimes.m4.
32462
32463         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
32464         to 1MB, so as not to render systems with no stack size limit (e.g.,
32465         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
32466         Include <unistd.h>.  On some systems,
32467         it is required for the definition of _SC_PAGESIZE.
32468
32469 2003-08-16  Jim Meyering  <jim@meyering.net>
32470         and Paul Eggert  <eggert@cs.ucla.edu>
32471
32472         Merges from coreutils, etc.
32473
32474         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
32475         using the latest version from cvs.  This avoids problems with #line
32476         directives using a vendor (Sun) compiler.
32477         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
32478         Don't set GETGROUPS_LIB here; now it's
32479         done via getgroups.m4's wrapper function.
32480         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
32481         rather than just in sh-util/configure.in, so that the
32482         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
32483         same.
32484         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
32485         AC_FUNC_GETLOADAVG where to find getloadavg.c.
32486         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
32487         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
32488         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
32489         Remove code that is now done by the newly-required macros.
32490         Append $(EXEEXT) to DF_PROG.
32491         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
32492         Do not invoke or require the following here,
32493         since prereq.m4 or some gnulib .m4 now does this for us:
32494         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
32495         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
32496         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
32497         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
32498         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
32499         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
32500         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
32501         AC_FUNC_OBSTACK.
32502         Do not replace the following functions, as this is now the job
32503         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
32504         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
32505         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
32506         atexit getpass, strdup, getpagesize.
32507         Replace 'raise'.
32508         Do not check for the following functions, as this is now the job
32509         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
32510         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
32511         setregid.
32512         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
32513         Check for sys/sysctl.h.
32514         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
32515         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
32516         of checking for ssize_t ourselves.
32517
32518         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
32519         Require every macro that gnulib/modules/* suggests for us.
32520         (jm_PREREQ_ADDEXT): New macro.
32521         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
32522         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
32523
32524         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
32525         (gl_PHYSMEM): Use it.
32526         Also check for `table' function.
32527         Check for new headers and functions.
32528         Add check for sys/sysmp.h.
32529         With suggestions from Kaveh Ghazi.
32530         Ignore headers that are present but cannot be compiled.  This
32531         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
32532         C 5.4.
32533
32534 2003-08-15  Paul Eggert  <eggert@twinsun.com>
32535
32536         Document merge from coreutils.
32537         * modules/userspec: Depend on posixver.
32538         * modules/strftime: Depend on tzset.
32539
32540 2003-08-15  Paul Eggert  <eggert@twinsun.com>
32541
32542         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
32543         rather than tab, after '#' in shell-script copyright notices.
32544         Suggested by Bruno Haible.
32545
32546 2003-08-15  Paul Eggert  <eggert@twinsun.com>
32547
32548         * config/srclist-update: Use three spaces, rather than tab, after '#'
32549         in shell-script copyright notices.  Suggested by Bruno Haible.
32550         Remove unnecessary parenthesization in regular expression.
32551
32552 2003-08-15  Jim Meyering  <jim@meyering.net>
32553
32554         Merge from coreutils.
32555         * lib/xgethostname.c: Include <stdlib.h>.
32556         (xghostname): Don't exit for anything other than memory-related
32557         failure; just return NULL.
32558         * lib/userspec.c: Include "posixver.h".
32559         (parse_user_spec): Accept `.' as a separator only
32560         in pre-POSIX-200112 mode.
32561         * lib/strtoimax.c: Use #elif rather than #else #if.
32562         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
32563         Remove function, now that we can rely on a working tzset function.
32564         [!_LIBC]: Ensure that the required autoconf test has been run.
32565         [!defined _NL_CURRENT && HAVE_STRFTIME]:
32566         Use underlying_strftime for %r.
32567         * lib/sha.c: Merge in some clean-up and optimization changes from
32568         glibc.
32569         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
32570         Ensure that it is a multiple of 64.
32571         Rearrange loop exit tests so as to avoid performing an
32572         additional fread after encountering an error or EOF.
32573         * lib/realloc.c: Update copyright date.
32574
32575 2003-08-15  Jim Meyering  <jim@meyering.net>
32576         and Paul Eggert  <eggert@twinsun.com>
32577
32578         Merge from coreutils.
32579         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
32580         member but strut utmpx does not.  Needed for AIX 4.3.3.
32581         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
32582
32583 2003-08-15  Jim Meyering  <jim@meyering.net>
32584         and Paul Eggert  <eggert@cs.ucla.edu>
32585
32586         Merges from coreutils, etc.
32587         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
32588         Require gl_FUNC_TZSET_CLOBBER.
32589         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
32590         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
32591         members.
32592
32593 2003-08-14  Paul Eggert  <eggert@twinsun.com>
32594
32595         Help the merge from coreutils.
32596         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
32597         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
32598         * m4/tzset.m4: Use it too.
32599
32600 2003-08-14  Paul Eggert  <eggert@twinsun.com>
32601
32602         * modules/tzset: New file.
32603
32604 2003-08-14  Jim Meyering  <jim@meyering.net>
32605
32606         Merges from coreutils.
32607         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
32608         variable names, rather than @FNMATCH_H@.
32609         * modules/alloca: Likewise for $(ALLOCA_H).
32610
32611         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
32612         the three copies of the literal target, `fnmatch.h'.
32613         * modules/alloca (alloca.h): Likewise.
32614
32615 2003-08-14  Jim Meyering  <jim@meyering.net>
32616
32617         Merge from coreutils.
32618         * m4/tzset.m4: New file.
32619         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
32620         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
32621         otherwise, AIX 5.1 systems would end up using the latter.
32622         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
32623         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
32624         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
32625         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
32626
32627 2003-08-14  Jim Meyering  <jim@meyering.net>
32628
32629         Merge from coreutils.
32630         * lib/obstack.h: Whitespace changes.
32631         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
32632         and xcalloc return values.
32633         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
32634         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
32635         hang on OSF/1 5.1 for DIR on both local and remote file systems.
32636         Reported by (and fix confirmed by) Nelson H. F. Beebe.
32637         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
32638         error from mntctl.
32639         Use mntctl's return value to drive the entry-processing loop, since
32640         we can't rely on the value of the vmt_length member in the last
32641         entry.  On some systems doing so could result in exhausting
32642         virtual memory.  Based in part on a patch from Mike Jetzer.
32643
32644 2003-08-14  Jim Meyering  <jim@meyering.net>
32645         and Paul Eggert  <eggert@twinsun.com>
32646
32647         Merges from coreutils, plus other fixes.
32648         * lib/physmem.c: Merge in portability changes from gcc/libiberty
32649         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
32650         for credits and details.  Thanks to Kaveh Ghazi for helping
32651         to keep these files in sync.
32652         (ARRAY_SIZE): Define it.
32653         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
32654         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
32655         (memcasecmp): Don't assume size_t fits in unsigned int.
32656         Remove casts and duplicate code.
32657         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
32658         (memcpy): Remove definition.
32659         Merge in some clean-up and optimization changes from glibc.
32660         [BLOCKSIZE]: Move definition to top of file.
32661         Ensure that it is a multiple of 64.
32662         Rearrange loop exit tests so as to avoid performing an
32663         additional fread after encountering an error or EOF.
32664         * lib/md5.h (md5_uintptr): Define.
32665         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
32666         return to the initial working directory.  Preserve errno
32667         for caller.
32668         * lib/idcache.c: Include "xalloc.h".
32669         (xmalloc, xrealloc): Remove decls.
32670         (getuser): Remove casts no longer required in C89.
32671         * lib/human.c: Include stdio.h, for sprintf.
32672         * lib/group-member.c: Include "xalloc.h".
32673         (xmalloc, xrealloc): Remove decls.
32674         (get_group_info): Remove casts no longer required in C89.
32675         * lib/getusershell.c (readname): Remove casts no longer required in
32676         C89.
32677         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
32678         * lib/getline.c: Whitespace fix, from coreutils.
32679
32680 2003-08-13  Paul Eggert  <eggert@twinsun.com>
32681
32682         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
32683         Check for isascii.
32684
32685         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
32686         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
32687         Undo previous (whitespace-only) change.
32688
32689 2003-08-13  Paul Eggert  <eggert@twinsun.com>
32690
32691         * lib/exclude.c: Include <ctype.h>
32692         (IN_CTYPE_DOMAIN): New macro.
32693         (is_space): New fn.
32694         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
32695         and empty lines.
32696
32697         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
32698         Undo previous (whitespace-only) change.
32699
32700 2003-08-13  Paul Eggert  <eggert@twinsun.com>
32701
32702         * config/srclist-update: Change update back to the old behavior,
32703         leaving whitespace alone.  Use one 'sed' command rather than a
32704         pipeline.
32705         (fixlicense): Now a variable, not a function.
32706         (remove_trailing_blanks): Remove.
32707         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
32708         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
32709         Undo previous (whitespace-only) change.
32710
32711 2003-08-12  Paul Eggert  <eggert@twinsun.com>
32712
32713         Merge from coreutils.
32714         * modules/euidaccess: Add lib_SOURCES, include for new
32715         file euidaccess.h
32716
32717 2003-08-12  Paul Eggert  <eggert@twinsun.com>
32718
32719         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
32720         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
32721         Normalize leading white space and remove trailing white space.
32722
32723         Merge from coreutils
32724         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
32725
32726         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
32727         0.12.1.  These files are now being upgraded automatically by
32728         ../config/srclist-update.
32729
32730 2003-08-12  Paul Eggert  <eggert@twinsun.com>
32731
32732         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
32733         Normalize leading white space and remove trailing white space.
32734         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
32735         notice, as per ../config/srclist-update.
32736
32737         Merge from coreutils.
32738         * lib/euidaccess.h: New file.
32739         * lib/euidaccess.c: Include it.
32740         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
32741         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
32742         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
32743
32744 2003-08-12  Paul Eggert  <eggert@twinsun.com>
32745
32746         * config/srclist-update: Add copyright notice.
32747         (remove_id_lines, remove_trailing_blanks): New constants.
32748         (fixfile): Use them to normalize spacing a bit in copied files.
32749         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
32750         Normalize leading white space and remove trailing white space.
32751
32752         * config/texinfo.tex: Sync with texinfo.
32753
32754         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
32755         strtoul.c from libc, to merge coreutils whitespace changes.
32756
32757         * config/srclist.txt: Get the following m4 files from gettext:
32758         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
32759         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
32760         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
32761         wint_t.m4.
32762
32763 2003-08-12  Karl Berry  <karl@gnu.org>
32764
32765         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
32766         been made.
32767
32768 2003-08-11  Paul Eggert  <eggert@twinsun.com>
32769
32770         * modules/gnu-source, m4/gnu-source.m4:
32771         Remove; we're assuming Autoconf 2.54 or later now.
32772         Suggested by Bruno Haible.
32773         * MODULES.html.sh (func_all_modules): Remove gnu-source.
32774
32775 2003-08-11  Bruno Haible  <bruno@clisp.org>
32776
32777         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
32778
32779 2003-08-11  Bruno Haible  <bruno@clisp.org>
32780
32781         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
32782         (vasnprintf): Use it instead of wcslen.
32783
32784 2003-08-11  Bruno Haible  <bruno@clisp.org>
32785
32786         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
32787         value to ensure that _Bool promotes to int. Use #define for _Bool when
32788         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
32789
32790 2003-08-10  Karl Berry  <karl@gnu.org>
32791
32792         * lib/regex.h: update from libc (whitespace fix).
32793
32794 2003-08-09  Paul Eggert  <eggert@twinsun.com>
32795
32796         Merge some files from coreutils.  These changes were
32797         originally made by Jim Meyering.
32798         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
32799         many older Unixes require this.
32800         * lib/alloca.c (alloca): Remove cast to argument of free;
32801         no longer needed in C89.
32802         * lib/alloca_.h, regex.h: Fix white space to match
32803         what GNU indent does.
32804
32805 2003-08-09  Paul Eggert  <eggert@twinsun.com>
32806
32807         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
32808         apparently Emacs's Unicode mode got confused before my 2003-08-05
32809         checkin.
32810
32811 2003-08-08  Paul Eggert  <eggert@twinsun.com>
32812
32813         * m4/extensions.m4: New file.
32814         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
32815         Require gl_USE_SYSTEM_EXTENSIONS.
32816         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
32817         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
32818
32819 2003-08-08  Paul Eggert  <eggert@twinsun.com>
32820
32821         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
32822         * modules/extensions, modules/gnu-source: New files.
32823         * modules/timespec, modules/unlocked-io: Depend on extensions.
32824
32825 2003-08-07  Paul Eggert  <eggert@twinsun.com>
32826
32827         * modules/restrict: New file.
32828         * MODULES.html.sh (func_all_modules): Add restrict.
32829         * modules/regex: Depend on restrict.
32830
32831 2003-08-07  Paul Eggert  <eggert@twinsun.com>
32832
32833         * m4/restrict.m4: New file.
32834         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
32835
32836 2003-08-07  Bruno Haible  <bruno@clisp.org>
32837
32838         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
32839         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
32840
32841 2003-08-07  Bruno Haible  <bruno@clisp.org>
32842
32843         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
32844         makes the module 'getndelim2' compatible with the module 'getline'.
32845
32846 2003-08-05  Paul Eggert  <eggert@twinsun.com>
32847
32848         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
32849         byte with "\201" to avoid glitches when editing that source file
32850         with multi-gnome-terminal.
32851
32852 2003-08-05  Paul Eggert  <eggert@twinsun.com>
32853
32854         * lib/bumpalloc.h: Remove.
32855
32856 2003-08-05  Paul Eggert  <eggert@twinsun.com>
32857
32858         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
32859         * modules/bumpalloc: Remove.
32860
32861 2003-08-04  Paul Eggert  <eggert@twinsun.com>
32862
32863         * lib/getloadavg.c: Change copyright notice and spacing to conform to
32864         GNU coding style.
32865
32866         Merge from coreutils.
32867         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
32868         1. From glibc.
32869         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
32870         from Karl Berry, implemented by Jim Meyering.
32871         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
32872         from Dmitry V. Levin.
32873         Remove anachronistic cast of xrealloc.
32874         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
32875         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
32876         type. Otherwise, it wouldn't compile with at least /bin/cc on
32877         ymp-cray-unicos9.0.2.X.
32878         Combine two mostly-identical uses of alloca into one.
32879         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
32880
32881 2003-08-04  Dave Love  <d.love@dl.ac.uk>
32882
32883         [From Emacs.]
32884
32885         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
32886         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
32887         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
32888         obsolete NLIST_NAME_UNION.
32889         [__GNU__]: Undef BSD and FSCALE.
32890         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
32891
32892 2003-08-03  Paul Eggert  <eggert@twinsun.com>
32893
32894         * lib/stdbool_.h (_Bool): Make it signed char, instead of
32895         an enum type, so that it's guaranteed to promote to int.  See:
32896         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
32897
32898 2003-08-03  Karl Berry  <karl@gnu.org>
32899
32900         * config/depcomp: update from automake.
32901
32902 2003-07-31  Paul Eggert  <eggert@twinsun.com>
32903
32904         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
32905         (strerror): Don't assume that a printable int fits in 14 bytes.
32906
32907 2003-07-31  Bruno Haible  <bruno@clisp.org>
32908
32909         * modules/getpass-gnu: New file.
32910         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
32911
32912 2003-07-31  Bruno Haible  <bruno@clisp.org>
32913
32914         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
32915
32916 2003-07-24  Karl Berry  <karl@gnu.org>
32917
32918         * config/missing: update from automake.
32919
32920 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
32921             Bruno Haible  <bruno@clisp.org>
32922
32923         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
32924         * lib/getline.c (getline, getdelim): Likewise.
32925         Remove _GNU_SOURCE define; now it's defined in config.h through
32926         m4/getline.m4.
32927
32928 2003-07-23  Karl Berry  <karl@gnu.org>
32929
32930         * config/config.sub: update from prep.
32931
32932 2003-07-22  Paul Eggert  <eggert@twinsun.com>
32933
32934         * modules/xalloc (Depends-on): Add exitfail.
32935         * modules/xmemcoll: Likewise.
32936
32937 2003-07-22  Paul Eggert  <eggert@twinsun.com>
32938
32939         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
32940         over-parenthesization in macros.
32941
32942         Sync with coreutils.
32943
32944         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
32945         required by C99.
32946
32947         Use `exit_failure' for xalloc and xmemcoll instead of their own
32948         private exit-failure variables.
32949         * lib/xalloc.h (xalloc_exit_failure): Remove.
32950         * lib/xmalloc.c: Likewise.  Include exitfail.h.
32951         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
32952         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
32953         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
32954         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
32955
32956 2003-07-20  Jim Meyering  <jim@meyering.net>
32957
32958         * modules/closeout (Depends-on): Add exitfail.
32959         Suggestion from Bruno Haible.
32960
32961 2003-07-19  Karl Berry  <karl@gnu.org>
32962
32963         * config/config.sub: update from prep.
32964
32965 2003-07-18  Paul Eggert  <eggert@twinsun.com>
32966
32967         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
32968         Remove.
32969         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
32970         to test that it can stand by itself.  Include "exitfail.h".
32971         Clients should set exit_failure instead.
32972         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
32973
32974 2003-07-18  Bruno Haible  <bruno@clisp.org>
32975
32976         * modules/getndelim2: New file.
32977         * modules/getline: Share files with module getndelim2.
32978         * modules/getnline: Depend on getndelim2 instead of sharing files with
32979         it. Add getnline.c to lib_SOURCES.
32980         * MODULES.html.sh (func_all_modules): Add getndelim2.
32981
32982 2003-07-18  Bruno Haible  <bruno@clisp.org>
32983
32984         * m4/getndelim2.m4: New file.
32985         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
32986         invoke gl_PREREQ_GETNDELIM2.
32987         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
32988         gl_PREREQ_GETNDELIM2.
32989         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
32990         gl_GETNDELIM2.
32991
32992 2003-07-18  Bruno Haible  <bruno@clisp.org>
32993
32994         * lib/getndelim2.h: New file.
32995         * lib/getndelim2.c: Make into a module of its own. Include config.h,
32996         getndelim2.h.
32997         (getndelim2): Make non-static. Change return type to ssize_t.
32998         * lib/getline.h: Change argument names.
32999         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
33000         * lib/getnline.c: Include getndelim2.h.
33001
33002 2003-07-18  Andreas Schwab  <schwab@suse.de>
33003
33004         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
33005
33006 2003-07-17  Karl Berry  <karl@gnu.org>
33007
33008         * config/config.sub: update from prep.
33009
33010 2003-07-17  Bruno Haible  <bruno@clisp.org>
33011
33012         * modules/getnline: New file.
33013         * modules/getline: Add lib/getndelim2.c to source file list.
33014         * MODULES.html.sh (func_all_modules): Add getnline.
33015
33016 2003-07-17  Bruno Haible  <bruno@clisp.org>
33017
33018         * m4/getnline.m4: New file.
33019
33020 2003-07-17  Bruno Haible  <bruno@clisp.org>
33021
33022         * m4/Makefile.am.in: Remove file.
33023         * m4/Makefile.am: Remove file.
33024         * m4/Makefile.in: Remove file.
33025
33026 2003-07-17  Bruno Haible  <bruno@clisp.org>
33027
33028         * lib/getnline.h: New file.
33029         * lib/getnline.c: New file.
33030         * lib/getndelim2.c: New file, extracted from getline.c.
33031         (getndelim2): Renamed from getdelim2, with added nmax argument.
33032         * lib/getline.c: Include getndelim2.c.
33033         (getdelim2): Moved out to getndelim2.c.
33034         (getline, getdelim): Update.
33035
33036 2003-07-17  Bruno Haible  <bruno@clisp.org>
33037
33038         * lib/Makefile.am: Remove file.
33039         * lib/Makefile.in: Remove file.
33040
33041 2003-07-17  Bruno Haible  <bruno@clisp.org>
33042
33043         * configure.in: Remove file.
33044         * Makefile.in: Remove file.
33045
33046 2003-07-17  Bruno Haible  <bruno@clisp.org>
33047
33048         * MODULES.html.sh: Put the </BODY> right before </HTML>.
33049
33050 2003-07-16  Karl Berry  <karl@gnu.org>
33051
33052         * config/srclist-update: was running fixlicense twice, which caused
33053                 texinfo.tex to be nullified for some reason.  Simplify,
33054                 $gplsrc is no longer needed as far as I can see?
33055
33056 2003-07-16  Jim Meyering  <jim@meyering.net>
33057
33058         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
33059
33060 2003-07-15  Paul Eggert  <eggert@twinsun.com>
33061
33062         * config/srclist.txt: Get the following files from gettext-runtime/intl
33063         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
33064         ref-del.sin.  From Bruno Haible.
33065         * config/srclist-update (fixfile): Change grep pattern again, since the
33066         previous fix didn't work (there was another trailing $).  Use
33067         '[$]' to escape the $s.
33068
33069 2003-07-15  Karl Berry  <karl@gnu.org>
33070
33071         * lib/vasnprintf.c: update from gettext.
33072
33073 2003-07-15  Karl Berry  <karl@gnu.org>
33074
33075         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
33076         gets expanded when surrounded by '$'.
33077
33078 2003-07-15  Jim Meyering  <jim@meyering.net>
33079
33080         * modules/save-cwd: Don't depend on error.  From Derek Price.
33081
33082 2003-07-15  Jim Meyering  <jim@meyering.net>
33083
33084         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
33085
33086 2003-07-14  Simon Josefsson  <jas@extundo.com>
33087
33088         * modules/mempcpy: New file.
33089         * MODULES.html.sh (func_all_modules): Add mempcpy.
33090
33091 2003-07-14  Simon Josefsson  <jas@extundo.com>
33092
33093         * m4/mempcpy.m4: New file.
33094
33095 2003-07-14  Simon Josefsson  <jas@extundo.com>
33096
33097         * lib/mempcpy.h: New file.
33098         * lib/mempcpy.c: New file.
33099
33100 2003-07-14  Paul Eggert  <eggert@twinsun.com>
33101
33102         * modules/getdate, modules/posixtm: Depend on mktime.
33103
33104 2003-07-14  Paul Eggert  <eggert@twinsun.com>
33105
33106         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
33107         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
33108         unicodeio.c, unicodeio.h, unlocked-io.h:
33109         Switch from LGPL to GPL.
33110
33111 2003-07-14  Paul Eggert  <eggert@twinsun.com>
33112
33113         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
33114         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
33115         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
33116         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
33117         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
33118         updated automatically by ../config/srclist-update.  This changes
33119         their license from LPGL to GPL.
33120
33121 2003-07-14  Paul Eggert  <eggert@twinsun.com>
33122
33123         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
33124         assumed to refer to the root of the most recent stable gettext version.
33125         * config/srclistvars.sh: Add defaults for eggert.
33126         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
33127         Match "This program" as well as "The program".  This is needed
33128         for gettext.
33129
33130 2003-07-14  Jim Meyering  <jim@meyering.net>
33131
33132         Don't emit diagnostics.  Let callers do that.
33133         * lib/save-cwd.c: Don't include "error.h".
33134         (save_cwd): Don't call error.  Ensure that errno is valid
33135         when returning nonzero.
33136
33137         * lib/save-cwd.h (restore_cwd): Update prototype.
33138         * lib/save-cwd.c (restore_cwd): Remove two parameters.
33139         Simplify.  Don't call error upon failure.  Let callers do that.
33140         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
33141         when auditing is enabled.  But don't bother updating the #if.
33142
33143 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
33144
33145         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
33146         it breaks C++ compilation.
33147         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
33148
33149 2003-07-10  Simon Josefsson  <jas@extundo.com>
33150
33151         * modules/strchrnul (Makefile.am): Add strchrnul.h.
33152
33153 2003-07-10  Jim Meyering  <jim@meyering.net>
33154
33155         * m4/clock_time.m4: Remove trailing blank.
33156         * m4/intmax_t.m4: Likewise.
33157
33158 2003-07-10  Jim Meyering  <jim@meyering.net>
33159
33160         * lib/vasnprintf.c: Remove trailing blanks.
33161         Make cpp indentation consistent.
33162
33163 2003-07-09  Paul Eggert  <eggert@twinsun.com>
33164
33165         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
33166         posixver.c, strftime.c, strnlen.c, strverscmp.c:
33167         Switch from LGPL to GPL.
33168
33169 2003-07-09  Paul Eggert  <eggert@twinsun.com>
33170
33171         * config/srclist.txt: Sort sublists.  Add
33172         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
33173         that differ from gnulib for one reason or another; we'd like this list
33174         to be smaller but for now let's document what we have.
33175
33176 2003-07-08  Paul Eggert  <eggert@twinsun.com>
33177
33178         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
33179         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
33180         and sweeter "eval x=$x".
33181         * config/srclist.txt: Get lib/argp* from glibc.
33182
33183 2003-07-07  Paul Eggert  <eggert@twinsun.com>
33184
33185         * lib/mktime.c: Fix some boundary cases and remove need for floating
33186         point.
33187
33188         Issue a compile-time diagnostic if time_t is floating point, or if
33189         two's complement arithmetic is not in effect, or if arithmetic
33190         right shift does not propagate the sign.  These assumptions were
33191         all in the original code but they weren't checked.
33192
33193         (TIME_T_MIDPOINT, verify): New macros.
33194         (__isleap): Remove; it has integer overflow problems.
33195         (leapyear): New function, without those problems.
33196         (ydhms_tm_diff): Remove; splitting into two parts.
33197         (ydhms_diff): New function, containing the arithmetic part of
33198         the old ydhms_tm_diff function.  Issue a compile-time
33199         diagnostic if we are not using C99 integer division.
33200         Avoid casts when possible.
33201         (guess_time_tm): New function, containing the checking part of
33202         the old ydhms_tm_diff function.  Return the new value, rather than
33203         the difference between it and the old.  Accept a new argument T
33204         so that *T specifies the old value.  Check for overflow in the result.
33205
33206         (__mktime_internal): Use a time_t offset, not a long int offset.
33207         This undoes the 2003-06-04 change, which is no longer needed now
33208         that we have better overflow checking.
33209         (localtime_offset): Likewise.
33210
33211         (__mktime_internal): Avoid harmful overflow on hosts where time_t
33212         and long are 64-bit but int is only 32-bit.
33213         (ydhms_diff): Use long int to store year1 and yday1.
33214         Issue a compile-time diagnostic if long int is not wide enough.
33215
33216         (__mktime_internal): Use long int to store adjusted year and yday.
33217         Use plain C rather than preprocessor commands, if that doesn't
33218         affect efficiency.
33219         Check for overflow (and try to repair) after each probe
33220         rather than checking only at the very end.  This avoids some bugs
33221         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
33222         does not equal GMT offset at maximum time).
33223         Use integer to check for overflow rather than floating point; this
33224         is more portable to non-IEEE hosts, and is a tad faster.
33225         When we detect that we are oscillating between two values,
33226         don't check whether tm_isdst has the requested value, since
33227         we already know the answer.  When tm_isdst has the wrong value,
33228         use a different heuristic to find the right one, based on the
33229         extreme values actually observed in practice in tz2003a,
33230         rather than the (overly optimistic) "previous 3 calendar quarters".
33231
33232         (not_equal_tm, print_tm, check_result): Use "const T" rather than
33233         "T const" to accommodate glibc style.
33234         (check_result): Use less-confusing report format.  "long" -> "long int.
33235         (main): Likewise.
33236         Don't loop if the iteration overflows time_t.
33237         Allow a negative step in the iteration.
33238
33239 2003-07-06  Karl Berry  <karl@gnu.org>
33240
33241         * config/depcomp: update from automake.
33242         * config/config.sub: update from prep.
33243
33244 2003-07-03  Karl Berry  <karl@gnu.org>
33245
33246         * config/config.guess: update from prep.
33247
33248 2003-07-01  Paul Eggert  <eggert@twinsun.com>
33249
33250         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
33251         xreadlink.c now includes it unconditionally.
33252
33253 2003-07-01  Paul Eggert  <eggert@twinsun.com>
33254
33255         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
33256         having it depend on HAVE_SYS_TYPES_H.
33257
33258 2003-07-01  Bruno Haible  <bruno@clisp.org>
33259
33260         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
33261         <sys/types.h> should be sufficient.
33262         Reported by Paul Eggert.
33263
33264 2003-06-26  Karl Berry  <karl@gnu.org>
33265
33266         * config/depcomp: update from automake.
33267
33268 2003-06-26  Bruno Haible  <bruno@clisp.org>
33269
33270         * modules/human: Depend on module stdbool.
33271
33272 2003-06-25  Bruno Haible  <bruno@clisp.org>
33273
33274         * modules/readlink: New file.
33275         * modules/xreadlink: Depend on it.
33276         * MODULES.html.sh (func_all_modules): Add readlink.
33277
33278 2003-06-25  Bruno Haible  <bruno@clisp.org>
33279
33280         * m4/readlink.m4: New file.
33281
33282 2003-06-25  Bruno Haible  <bruno@clisp.org>
33283
33284         * lib/readlink.c: New file.
33285
33286 2003-06-22  Karl Berry  <karl@gnu.org>
33287
33288         * config/srclist.txt: update mkinstalldirs from automake.
33289         * config/mkinstalldirs: update.
33290
33291 2003-06-22  Bruno Haible  <bruno@clisp.org>
33292
33293         Portability to mingw32.
33294         * m4/ssize_t.m4: New file, from GNU gettext.
33295         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
33296         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
33297
33298 2003-06-22  Bruno Haible  <bruno@clisp.org>
33299
33300         * modules/safe-read: Add m4/ssize_t.m4.
33301         * modules/xreadlink: Add m4/ssize_t.m4.
33302
33303 2003-06-20  Bruno Haible  <bruno@clisp.org>
33304
33305         Assume C89, so PARAMS isn't needed.
33306         * lib/unicodeio.h (PARAMS): Remove.
33307         * lib/unicodeio.c: Don't use PARAMS.
33308
33309 2003-06-18  Karl Berry  <karl@gnu.org>
33310
33311         * config/config.{guess,sub}: update from prep.
33312
33313 2003-06-18  Jim Meyering  <jim@meyering.net>
33314
33315         Merge changes from coreutils.
33316         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
33317         Remove explicit declarations of xmalloc and realloc.
33318         Include xalloc.h.
33319         (read_utmp): Remove anachronistic cast of xmalloc.
33320
33321 2003-06-17  Paul Eggert  <eggert@twinsun.com>
33322
33323         Assume C89, so PARAMS isn't needed.
33324         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
33325         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
33326         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
33327         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
33328         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
33329         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
33330         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
33331         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
33332         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
33333         lib/xstrtod.h, lib/xstrtol.h: Likewise.
33334         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
33335         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
33336         no longer needed. Anyway, config.h should always be included before any
33337         other file.
33338
33339 2003-06-11  Simon Josefsson  <jas@extundo.com>
33340
33341         * modules/sysexits: New file.
33342         * MODULES.html.sh (func_all_modules): Add sysexits.
33343
33344 2003-06-11  Simon Josefsson  <jas@extundo.com>
33345
33346         * lib/sysexit_.h: New file.
33347
33348 2003-06-11  Derek Price  <derek@ximbiot.com>
33349
33350         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
33351         necessary.
33352
33353 2003-06-11  Bruno Haible  <bruno@clisp.org>
33354
33355         * m4/sysexits.m4: New file.
33356
33357 2003-06-10  Simon Josefsson  <jas@extundo.com>
33358
33359         * lib/argp.h: New file, from glibc.
33360         * lib/argp-ba.c: New file, from glibc.
33361         * lib/argp-eexst.c: New file, from glibc.
33362         * lib/argp-fmtstream.c: New file, from glibc.
33363         * lib/argp-fmtstream.h: New file, from glibc.
33364         * lib/argp-fs-xinl.c: New file, from glibc.
33365         * lib/argp-help.c: New file, from glibc.
33366         * lib/argp-namefrob.h: New file, from glibc.
33367         * lib/argp-parse.c: New file, from glibc.
33368         * lib/argp-pv.c: New file, from glibc.
33369         * lib/argp-pvh.c: New file, from glibc.
33370         * lib/argp-xinl.c: New file, from glibc.
33371
33372 2003-06-10  Simon Josefsson  <jas@extundo.com>
33373
33374         * modules/strchrnul: New file.
33375
33376 2003-06-10  Simon Josefsson  <jas@extundo.com>
33377
33378         * modules/argp: New file.
33379
33380 2003-06-10  Simon Josefsson  <jas@extundo.com>
33381
33382         * m4/strchrnul.m4: New file.
33383
33384 2003-06-10  Simon Josefsson  <jas@extundo.com>
33385
33386         * lib/strchrnul.h: New file.
33387         * lib/strchrnul.c: New file.
33388
33389 2003-06-10  Bruno Haible  <bruno@clisp.org>
33390
33391         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
33392
33393 2003-06-07  Karl Berry  <karl@gnu.org>
33394
33395         * config/config.{guess,sub}: update from prep.
33396
33397 2003-06-07  Jim Meyering  <jim@meyering.net>
33398
33399         * modules/strtod: Use $(...) notation, not @...@ for
33400         AC_REPLACE'd variables.
33401         * modules/localcharset: Likewise.
33402
33403 2003-06-07  Jim Meyering  <jim@meyering.net>
33404
33405         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
33406         in place of my name in the copyright comment.
33407         Remove definition and uses of __P.
33408
33409         From coreutils.
33410         * lib/stat.c: Don't declare xmalloc explicitly.
33411         Instead, include "xalloc.h".
33412         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
33413         xrealloc, and xcalloc return values.
33414         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
33415         Improve comment.
33416         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
33417
33418 2003-06-07  Bruno Haible  <bruno@clisp.org>
33419
33420         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
33421         avoid AC_CONFIG_LINKS.
33422         * modules/fnmatch (Makefile.am): Use explicit creation rule for
33423         fnmatch.h, to avoid AC_CONFIG_LINKS.
33424         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
33425
33426 2003-06-07  Bruno Haible  <bruno@clisp.org>
33427
33428         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
33429         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
33430         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
33431         directory.
33432         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
33433         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
33434         directory.
33435
33436 2003-06-06  Jim Meyering  <jim@meyering.net>
33437
33438         Merge from coreutils.
33439         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
33440         Consolidate declarations and initializations of *_base* locals.
33441
33442         Merge from coreutils.
33443         This avoids a core dump on systems without GNU putenv,
33444         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
33445         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
33446         (unsetenv): New static function, from GNU libc.
33447         (rpl_putenv): Use it.
33448
33449         * lib/modechange.c: Remove trailing blanks.
33450
33451         Merge from coreutils.
33452         * lib/fsusage.c: Remove declaration of statfs.
33453         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
33454
33455         * lib/posixtm.c: Include <stdbool.h> unconditionally.
33456
33457 2003-06-06  Jim Meyering  <jim@meyering.net>
33458
33459         * lib/stdbool_.h: Renamed from stdbool.h.in.
33460
33461 2003-06-06  Jim Meyering  <jim@meyering.net>
33462             Bruno Haible  <bruno@clisp.org>
33463
33464         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
33465         Adjust Makefile.am snippet not to redirect directly to target.
33466         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
33467
33468 2003-06-05  Paul Eggert  <eggert@twinsun.com>
33469
33470         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
33471         mismatch, look in future quarters as well as past.  This fixes a
33472         bug when processing fall-backwards gaps immediately after a long
33473         period of daylight-saving time.
33474
33475         * lib/mktime.c: Assume freestanding C89 or better.
33476         (HAVE_LIMITS_H): Remove.  Assume it's 1.
33477         (__P): Remove; not used.
33478         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
33479         (mktime, not_equal_tm, print_tm, check_result,
33480         main): Use prototypes.  Use const * where appropriate.
33481         (main): Fix typo in testing code that uncovered by above changes.
33482         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
33483
33484 2003-06-04  Paul Eggert  <eggert@twinsun.com>
33485
33486         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
33487         locale.h, localeconv.  This merges changes from coreutils.
33488
33489         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
33490         It can be removed after the next Autoconf is released.
33491         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
33492         needed.
33493
33494 2003-06-04  Paul Eggert  <eggert@twinsun.com>
33495
33496         * lib/mktime.c: Fix Debian bug 177940
33497         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
33498         (localtime_offset): Now long int, not time_t, because we want it
33499         to be guaranteed to be signed.  All uses changed.
33500         (__mktime_internal): If overflow would occur when adding offset,
33501         don't add it.
33502
33503         Merge 'human' changes from coreutils.  Rewrite to support
33504         locale-specific notations like thousands separators.
33505         * lib/human.c: Simplify authorship notice.
33506         Include human.h immediately after config.h.
33507         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
33508         <limits.h>: Do not include, since human.h does.
33509         (SIZE_MAX, UINTMAX_MAX): New macros.
33510         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
33511         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
33512         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
33513         (power_letter): Renamed from suffixes.
33514         (generate_suffix_backwards): Remove.
33515         (adjust_value): Now takes int style (because of human.h changes)
33516         and long double value (for greater precision on some platforms).
33517         (group_number): New function.
33518         (human_readable): Use it.  Use integer options, not enum.
33519         Put the options before the sizes in the arg list.
33520         Support all the new options.
33521         The old human_readable function has been removed;
33522         use inttostr.h instead.
33523         (human_readable, default_block_size, humblock):
33524         Use uintmax_t, not int, for block sizes.
33525         (human_readable_inexact, block_size_types): Remove.
33526         (block_size_opts): New constant.
33527         (human_options): Renamed from human_block_size, with new signature
33528         that allows block sizes up to UINTMAX_MAX.  All callers changed.
33529         * lib/human.h: Add copyright and authorship notice.
33530         Include <limits.h> and <stdbool.h> unconditionally.
33531         (PARAMS): Remove.  All uses removed.
33532         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
33533         (enum human_inexact_style): Remove tag; now a nameless enum.
33534         (human_floor, human_ceiling, human_round_to_even): Now have
33535         values 2, 0, 1 rather than -1, 1, 0.
33536         (human_group_digits, human_suppress_point_zero, human_autoscale,
33537         human_base_1024, human_SI, human_B): New constants.
33538         (human_readable_inexact, human_block_size): Remove.
33539         (human_readable): Size args are now uintmax_t, not int.
33540         (human_options): New decl.
33541
33542         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
33543         unnecessary now that we assume C89 or better.  This change
33544         imported from coreutils.
33545
33546         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
33547         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
33548         in the 2003-05-30 sync from glibc.
33549
33550         .h files should stand alone, but we shouldn't include <sys/types.h>
33551         if we can get away with just <stddef.h>.
33552
33553         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
33554         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
33555         rather than <sys/types.h>, as we merely need size_t.
33556         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
33557         to get size_t.
33558         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
33559         Include <stdio.h>, to get FILE.
33560         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
33561         memcasecmp.h has included <stddef.h> and all we need is size_t.
33562         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
33563         our interface, instead of including <sys/types.h>
33564
33565 2003-06-04  Paul Eggert  <eggert@twinsun.com>
33566
33567         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
33568         now, as glibc mktime is buggy on non-glibc systems.
33569
33570 2003-06-03  Karl Berry  <karl@gnu.org>
33571
33572         * config/config.sub: update from prep.
33573
33574 2003-06-02  Paul Eggert  <eggert@twinsun.com>
33575
33576         [from coreutils]
33577         Fix some minor time-related bugs with POSIX time arguments.
33578         Some valid time stamps were being rejected (notably -1, and
33579         time stamps before 1900 on 64-bit hosts).  And some invalid
33580         time stamps were being accepted, e.g. September 31.
33581
33582         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
33583         that we can return (time_t) -1 successfully.
33584         * lib/posixtm.c: Likewise.
33585         [HAVE_STDBOOL_H]: Include <stdbool.h>.
33586         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
33587         (t): Remove static var.
33588         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
33589         of static var.  All uses changed.
33590         (year): Do not reject years before 1900; they can occur with
33591         64-bit time_t.
33592         (posix_time_parse): Do not check for out-of-range components;
33593         that is now the caller's responsibility, since our checks were
33594         only approximations.
33595         (posixtime): Use mktime to check for out-of-range components,
33596         since it knows them exactly.
33597         If mktime returns (time_t) -1, check whether an error actually occurred
33598         by invoking localtime on -1.
33599         (main) [TEST_POSIXTIME]: Check for input data errors, and report
33600         posixtime failures better.
33601         Improve the test data (in comments only).
33602
33603 2003-06-02  Karl Berry  <karl@gnu.org>
33604
33605         * config/mkinstalldirs (version): new variable.
33606         (--version): new option.
33607         (usage): improve message.
33608
33609 2003-05-30  Karl Berry  <karl@gnu.org>
33610
33611         * lib/mktime.c: update from libc.
33612
33613 2003-05-30  Bruno Haible  <bruno@clisp.org>
33614
33615         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
33616         * config/config.rpath: Upgrade to gettext-0.12.1.
33617
33618 2003-05-30  Bruno Haible  <bruno@clisp.org>
33619
33620         * m4/gettext.m4: Upgrade to gettext-0.12.1.
33621         * m4/nls.m4: New file, from gettext-0.12.1.
33622         * m4/po.m4: New file, from gettext-0.12.1.
33623         * m4/progtest.m4: Upgrade to gettext-0.12.1.
33624
33625 2003-05-30  Bruno Haible  <bruno@clisp.org>
33626
33627         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
33628         * lib/localcharset.h: Likewise.
33629         * lib/localcharset.c: Likewise.
33630
33631 2003-05-29  Karl Berry  <karl@gnu.org>
33632
33633         * config/config.rpath: update from gettext.
33634
33635 2003-05-28  Paul Eggert  <eggert@twinsun.com>
33636
33637         Assume the headers required for C89 freestanding compilers.
33638         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
33639         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
33640         * m4/human.m4 (gl_HUMAN): Likewise.
33641         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
33642         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
33643         * m4/userspec.m4 (gl_USERSPEC): Likewise.
33644         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
33645         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
33646         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
33647
33648 2003-05-28  Paul Eggert  <eggert@twinsun.com>
33649
33650         Assume the headers required for C89 freestanding compilers.
33651         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
33652         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
33653         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
33654         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
33655         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
33656         define, since <limits.h> is guaranteed to do that.
33657         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
33658         * lib/exclude.c: Include <stdbool.h> unconditionally.
33659         * lib/tempname.c: Include <stddef.h> unconditionally.
33660         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
33661         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
33662         <stddef.h> does that.
33663         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
33664         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
33665         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
33666         needed.
33667         * lib/xstrtol.c: Likewise.
33668         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
33669         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
33670
33671         * lib/addext.c (addext): Use assignment rather than cast, to avoid
33672         warnings on some platforms.
33673
33674         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
33675         arbitrarily.
33676
33677 2003-05-26  Jim Meyering  <jim@meyering.net>
33678
33679         Merge in a change from coreutils:
33680         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
33681         that is guaranteed to be `no'.  Use `no_such_member' to indicate
33682         that condition, rather than `-1' which is slightly misleading.
33683         Change the name of the cache variable to have the gl_ prefix.
33684         Prompted by a patch from Richard Dawe for DJGPP.
33685
33686 2003-05-24  Karl Berry  <karl@gnu.org>
33687
33688         * config/config.guess: update from prep.
33689
33690 2003-05-22  Karl Berry  <karl@gnu.org>
33691
33692         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
33693
33694 2003-05-20  Karl Berry  <karl@gnu.org>
33695
33696         * config/config.guess: update from prep.
33697
33698 2003-05-18  Karl Berry  <karl@gnu.org>
33699
33700         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
33701         might actually be set by the user.
33702
33703         * config/depcomp, install-sh, mdate-sh: update from automake.
33704
33705 2003-05-17  Bruno Haible  <bruno@clisp.org>
33706
33707         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
33708         invalid expansion for AC_EGREP_CPP.
33709         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
33710         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
33711         Suggested by Akim Demaille <akim@epita.fr> in
33712         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
33713
33714 2003-05-12  Jim Meyering  <jim@meyering.net>
33715
33716         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
33717         the space-padded-by-default conversion specifiers, %e, %k, %l.
33718
33719 2003-05-12  Bruno Haible  <bruno@clisp.org>
33720
33721         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
33722         the string is longer than 4 KB.
33723
33724 2003-05-11  Karl Berry  <karl@gnu.org>
33725
33726         * config/config.{guess,sub}: update from prep.
33727
33728 2003-05-09  Bruno Haible  <bruno@clisp.org>
33729
33730         * modules/error: Add m4/strerror_r.m4 to file list.
33731
33732 2003-05-03  Bruno Haible  <bruno@clisp.org>
33733
33734         Upgrade to Unicode-4.0.
33735         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
33736         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
33737         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
33738         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
33739         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
33740         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
33741         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
33742         Change width of U+E0100..U+E01EF from 1 to 0.
33743
33744 2003-04-25  Jim Meyering  <jim@meyering.net>
33745
33746         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
33747         of type size_t, not int.
33748
33749 2003-04-25  Bruno Haible  <bruno@clisp.org>
33750
33751         * lib/copy-file.c: Include <stddef.h>, for size_t.
33752
33753 2003-04-21  Paul Eggert  <eggert@twinsun.com>
33754
33755         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
33756         code which expansion is under static control.  Patch imported from
33757         Akim Demaille's patch to Bison; see
33758         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
33759
33760 2003-04-14  Bruno Haible  <bruno@clisp.org>
33761
33762         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
33763
33764 2003-04-11  Jim Meyering  <jim@meyering.net>
33765
33766         Merge changes from Coreutils.
33767
33768         2003-03-22  Jim Meyering  <jim@meyering.net>
33769
33770         * lib/strftime.c (widen): Cast alloca return value to proper type.
33771
33772         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
33773
33774         From GNU libc.
33775         * lib/strftime.c (my_strftime): Handle very large width
33776         specifications for numeric values correctly.  Improve checks for
33777         overflow.
33778
33779         2003-01-19  Jim Meyering  <jim@meyering.net>
33780
33781         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
33782         definitions.
33783         (nl_get_alt_digit) [! defined my_strftime]: Define.
33784         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
33785         _nl_get_alt_digit and _nl_get_walt_digit.
33786
33787         * lib/strftime.c (my_strftime): Merge in locale-related changes from
33788         libc. These changes have no effect outside of _LIBC.
33789
33790 2003-04-10  Bruno Haible  <bruno@clisp.org>
33791
33792         * modules/findprog: New file.
33793         * MODULES.html.sh (func_all_modules): Add it.
33794
33795 2003-04-10  Bruno Haible  <bruno@clisp.org>
33796
33797         * m4/findprog.m4: New file.
33798         * m4/eaccess.m4: New file.
33799
33800 2003-04-10  Bruno Haible  <bruno@clisp.org>
33801
33802         * lib/findprog.h: New file, from GNU gettext.
33803         * lib/findprog.c: New file, from GNU gettext.
33804
33805 2003-04-05  Jim Meyering  <jim@meyering.net>
33806
33807         Merge changes from Coreutils.
33808
33809         * lib/exclude.h (PARAMS): Remove definition and uses.
33810         * lib/exclude.c: Remove uses of `PARAMS'.
33811
33812         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
33813         Add test-cases for DOS filenames. Declare program_name.
33814         (main): Set up program_name.  Patch by Rich Dawe.
33815
33816         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
33817         error from mntctl.
33818         Use mntctl's return value to drive the entry-processing loop, since
33819         we can't rely on the value of the vmt_length member in the last
33820         entry.  On some systems doing so could result in exhausting
33821         virtual memory.  Based in part on a patch from Mike Jetzer.
33822
33823 2003-04-04  Bruno Haible  <bruno@clisp.org>
33824
33825         * modules/linebreak: New file.
33826         * MODULES.html.sh (func_all_modules): Add it.
33827
33828 2003-04-04  Bruno Haible  <bruno@clisp.org>
33829
33830         * m4/linebreak.m4: New file.
33831
33832 2003-04-04  Bruno Haible  <bruno@clisp.org>
33833
33834         * lib/linebreak.h: New file, from GNU gettext.
33835         * lib/linebreak.c: New file, from GNU gettext with slight
33836         modifications.
33837         * lib/lbrkprop.h: New file, from GNU gettext.
33838
33839 2003-04-03  Bruno Haible  <bruno@clisp.org>
33840
33841         * modules/utf8-ucs4: New file.
33842         * modules/utf16-ucs4: New file.
33843         * modules/ucs4-utf8: New file.
33844         * modules/ucs4-utf16: New file.
33845         * MODULES.html.sh (func_all_modules): Add them.
33846
33847 2003-04-03  Bruno Haible  <bruno@clisp.org>
33848
33849         * m4/utf-ucs4.m4: New file.
33850         * m4/ucs4-utf.m4: New file.
33851
33852 2003-04-03  Bruno Haible  <bruno@clisp.org>
33853
33854         * lib/utf8-ucs4.h: New file, from GNU gettext.
33855         * lib/utf16-ucs4.h: New file, from GNU gettext.
33856         * lib/ucs4-utf8.h: New file, from GNU gettext.
33857         * lib/ucs4-utf16.h: New file, from GNU gettext.
33858
33859 2003-04-02  Bruno Haible  <bruno@clisp.org>
33860
33861         * modules/binary-io: New file.
33862         * MODULES.html.sh (func_all_modules): Add it.
33863
33864 2003-04-02  Bruno Haible  <bruno@clisp.org>
33865
33866         * lib/binary-io.h: New file, from GNU gettext.
33867
33868 2003-04-01  Bruno Haible  <bruno@clisp.org>
33869
33870         * modules/pathname: New file.
33871         * MODULES.html.sh (func_all_modules): Add it.
33872
33873 2003-04-01  Bruno Haible  <bruno@clisp.org>
33874
33875         * lib/pathname.h: New file, from GNU gettext.
33876         * lib/concatpath.c: New file, from GNU gettext.
33877
33878 2003-03-30  Bruno Haible  <bruno@clisp.org>
33879
33880         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
33881
33882 2003-03-30  Bruno Haible  <bruno@clisp.org>
33883
33884         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
33885         function chown() doesn't exist.
33886
33887 2003-03-28  Bruno Haible  <bruno@clisp.org>
33888
33889         * modules/copy-file: New file.
33890         * MODULES.html.sh (func_all_modules): Add it.
33891
33892 2003-03-28  Bruno Haible  <bruno@clisp.org>
33893
33894         * m4/copy-file.m4: New file.
33895
33896 2003-03-28  Bruno Haible  <bruno@clisp.org>
33897
33898         * lib/copy-file.h: New file, from GNU gettext.
33899         * lib/copy-file.c: New file, from GNU gettext.
33900
33901 2003-03-18  Jim Meyering  <jim@meyering.net>
33902
33903         * lib/quote.c (quote_n): Fix typo in comment.
33904
33905 2003-03-18  Bruno Haible  <bruno@clisp.org>
33906
33907         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
33908         checking.
33909         * m4/onceonly_2_57.m4: Likewise.
33910
33911 2003-03-17  Bruno Haible  <bruno@clisp.org>
33912
33913         * m4/onceonly.m4: Require autoconf 2.54 or newer.
33914         (m4_quote): Remove macro.
33915         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
33916
33917 2003-03-14  Jim Meyering  <jim@meyering.net>
33918
33919         Merge changes from Coreutils.
33920         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
33921         to be const, in order to avoid warnings.
33922         (obstack_room): Likewise.
33923         (obstack_empty_p): Likewise.
33924
33925 2003-03-14  Bruno Haible  <bruno@clisp.org>
33926
33927         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
33928         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
33929
33930 2003-03-13  Paul Eggert  <eggert@twinsun.com>
33931
33932         Merge changes from Bison.
33933         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
33934         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
33935         when compiling Bison 1.875's `bitset bset = obstack_alloc
33936         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
33937         * lib/hash.c: Include <stdbool.h> unconditionally.
33938
33939 2003-03-13  Paul Eggert  <eggert@twinsun.com>
33940
33941         * m4/onceonly.m4 (m4_quote): New macro.
33942         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
33943         Quote AC_FOREACH variable-expansions properly.
33944
33945 2003-03-13  Paul Eggert  <eggert@twinsun.com>
33946
33947         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
33948
33949 2003-03-09  Paul Eggert  <eggert@twinsun.com>
33950
33951         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
33952         Reported by Bruce Becker; see:
33953         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
33954
33955 2003-03-03  Paul Eggert  <eggert@twinsun.com>
33956             Bruno Haible  <bruno@clisp.org>
33957
33958         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
33959         Reported by John Hughes, see
33960         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
33961
33962 2003-02-20  Bruno Haible  <bruno@clisp.org>
33963
33964         * MODULES.html.sh (func_all_modules): Add poll.
33965
33966 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
33967
33968         * modules/poll: New file.
33969
33970 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
33971
33972         * lib/poll_.h: New file.
33973         * lib/poll.c: New file.
33974
33975 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
33976
33977         * m4/poll.m4: New file.
33978
33979 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
33980
33981         * modules/mathl: New file.
33982
33983 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
33984
33985         * lib/mathl.h: New file.
33986         * lib/acosl.c: New file.
33987         * lib/asinl.c: New file.
33988         * lib/atanl.c: New file.
33989         * lib/ceill.c: New file.
33990         * lib/cosl.c: New file.
33991         * lib/expl.c: New file.
33992         * lib/floorl.c: New file.
33993         * lib/frexpl.c: New file.
33994         * lib/ldexpl.c: New file.
33995         * lib/logl.c: New file.
33996         * lib/sincosl.c: New file.
33997         * lib/sinl.c: New file.
33998         * lib/sqrtl.c: New file.
33999         * lib/tanl.c: New file.
34000         * lib/trigl.c: New file.
34001         * lib/trigl.h: New file.
34002
34003 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
34004
34005         * m4/mathl.m4: New file.
34006
34007 2003-02-18  Bruno Haible  <bruno@clisp.org>
34008
34009         * MODULES.html.sh (func_all_modules): Add mathl.
34010
34011 2003-02-17  Bruno Haible  <bruno@clisp.org>
34012
34013         * modules/mkdtemp: New module.
34014         * MODULES.html.sh (func_all_modules): Add it.
34015
34016 2003-02-17  Bruno Haible  <bruno@clisp.org>
34017
34018         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
34019
34020 2003-02-17  Bruno Haible  <bruno@clisp.org>
34021
34022         * lib/mkdtemp.h: New file, from GNU gettext.
34023         * lib/mkdtemp.c: New file, from GNU gettext.
34024
34025 2003-02-02  Jim Meyering  <jim@meyering.net>
34026
34027         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
34028         e.g. glibc-2.2.93.
34029
34030 2003-01-31  Bruno Haible  <bruno@clisp.org>
34031
34032         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
34033         'rpl_rename'.
34034         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
34035         'rpl_strnlen'.
34036         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
34037         'rpl_strtod'.
34038         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
34039         'rpl_utime'.
34040
34041 2003-01-31  Bruno Haible  <bruno@clisp.org>
34042
34043         * lib/rename.c: #undef rename before defining rpl_rename.
34044         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
34045
34046 2003-01-30  Bruno Haible  <bruno@clisp.org>
34047
34048         * modules/vasnprintf, modules/vasprintf: New modules.
34049         * MODULES.html.sh (func_all_modules): Add them.
34050
34051 2003-01-30  Bruno Haible  <bruno@clisp.org>
34052
34053         * m4/signed.m4: New file, from GNU gettext.
34054         * m4/longdouble.m4: New file, from GNU gettext.
34055         * m4/wchar_t.m4: New file, from GNU gettext.
34056         * m4/wint_t.m4: New file, from GNU gettext.
34057         * m4/vasnprintf.m4: New file.
34058         * m4/vasprintf.m4: New file.
34059
34060 2003-01-30  Bruno Haible  <bruno@clisp.org>
34061
34062         * lib/printf-args.h: New file, from GNU gettext.
34063         * lib/printf-args.c: New file, from GNU gettext.
34064         * lib/printf-parse.h: New file, from GNU gettext.
34065         * lib/printf-parse.c: New file, from GNU gettext.
34066         * lib/vasnprintf.h: New file, from GNU gettext.
34067         * lib/vasnprintf.c: New file, from GNU gettext.
34068         * lib/asnprintf.c: New file, from GNU gettext.
34069         * lib/vasprintf.h: New file, from GNU gettext with modifications.
34070         * lib/vasprintf.c: New file, from GNU gettext.
34071         * lib/asprintf.c: New file, from GNU gettext.
34072
34073 2003-01-29  Bruno Haible  <bruno@clisp.org>
34074
34075         * modules/stpncpy: New module.
34076         * MODULES.html.sh (func_all_modules): Add it.
34077
34078 2003-01-29  Bruno Haible  <bruno@clisp.org>
34079
34080         * m4/stpncpy.m4: New file.
34081
34082 2003-01-29  Bruno Haible  <bruno@clisp.org>
34083
34084         * lib/stpncpy.h: New file, from GNU gettext with modifications.
34085         * lib/stpncpy.c: New file, from GNU gettext with modifications.
34086
34087 2003-01-28  Bruno Haible  <bruno@clisp.org>
34088
34089         * modules/c-ctype: New module.
34090         * MODULES.html.sh (func_all_modules): Add it.
34091
34092 2003-01-28  Bruno Haible  <bruno@clisp.org>
34093
34094         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
34095         Paul Eggert.
34096         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
34097         Paul Eggert.
34098
34099 2003-01-27  Bruno Haible  <bruno@clisp.org>
34100
34101         * modules/xsetenv: New module.
34102         * MODULES.html.sh (func_all_modules): Add it.
34103
34104 2003-01-27  Bruno Haible  <bruno@clisp.org>
34105
34106         * lib/xsetenv.h: New file, from GNU gettext.
34107         * lib/xsetenv.c: New file, from GNU gettext.
34108
34109 2003-01-23  Jim Meyering  <jim@meyering.net>
34110
34111         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
34112         from working on systems without dirfd (at least Irix and OSF1/Tru64).
34113
34114 2003-01-23  Bruno Haible  <bruno@clisp.org>
34115
34116         * modules/minmax: New module.
34117         * MODULES.html.sh (func_all_modules): Add it.
34118
34119 2003-01-23  Bruno Haible  <bruno@clisp.org>
34120
34121         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
34122         Eggert.
34123
34124 2003-01-22  Bruno Haible  <bruno@clisp.org>
34125
34126         * modules/exit: New module.
34127         * MODULES.html.sh (func_all_modules): Add it.
34128
34129 2003-01-22  Bruno Haible  <bruno@clisp.org>
34130
34131         * lib/exit.h: New file, from GNU gettext.
34132
34133 2003-01-19  Bruno Haible  <bruno@clisp.org>
34134
34135         * gnulib-tool: Recognize option --extract-maintainer.
34136         (func_get_maintainer): New function.
34137         * modules/*: Add Maintainer entry.
34138
34139 2003-01-16  Jim Meyering  <jim@meyering.net>
34140
34141         * m4/regex.m4: The `regex' struct is both input and output.
34142         Initialize it before each use.  Patch by Tim Waugh.
34143
34144 2003-01-16  Bruno Haible  <bruno@clisp.org>
34145
34146         * MODULES.html.sh: Add a table of contents. Add the module name as
34147         leftmost column. Add hyperlinks.
34148
34149 2003-01-15  Bruno Haible  <bruno@clisp.org>
34150
34151         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
34152
34153 2003-01-15  Bruno Haible  <bruno@clisp.org>
34154
34155         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
34156         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
34157         suffix.
34158
34159 2003-01-15  Bruno Haible  <bruno@clisp.org>
34160
34161         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
34162
34163 2003-01-15  Bruno Haible  <bruno@clisp.org>
34164
34165         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
34166         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
34167
34168 2003-01-14  Jim Meyering  <jim@meyering.net>
34169
34170         * lib/same.c (same_name): Tweak a comment.
34171
34172 2003-01-14  Bruno Haible  <bruno@clisp.org>
34173
34174         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
34175         when a string comparison is sufficient.
34176
34177 2003-01-14  Bruno Haible  <bruno@clisp.org>
34178
34179         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
34180         'unsigned int'.
34181
34182 2003-01-14  Bruno Haible  <bruno@clisp.org>
34183
34184         * lib/hash-pjw.c: Add comment about low quality of this function.
34185
34186 2003-01-13  Bruno Haible  <bruno@clisp.org>
34187
34188         * modules/stpcpy: Distribute lib/stpcpy.h.
34189         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
34190
34191 2003-01-13  Bruno Haible  <bruno@clisp.org>
34192
34193         * modules/*: Add a description.
34194         * modules/strpbrk: Fix Makefile.am snippet.
34195         * modules/strtoimax: Fix dependencies.
34196         * modules/strtoumax: Likewise.
34197
34198 2003-01-13  Bruno Haible  <bruno@clisp.org>
34199
34200         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
34201         * modules/alloca (Makefile.am): All object files depend on alloca.h.
34202         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
34203
34204 2003-01-13  Bruno Haible  <bruno@clisp.org>
34205
34206         * gnulib-tool (func_create_testdir): Store config/* files in the main
34207         directory.
34208         * config.rpath: Move to ...
34209         * config/config.rpath: ... here.
34210         * modules/gettext: Contains config/config.rpath, not config.rpath.
34211         * modules/iconv: Likewise.
34212
34213 2003-01-12  Paul Eggert  <eggert@twinsun.com>
34214
34215         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
34216         to avoid collisions with libcurses and libreadline.
34217
34218         * m4/getstr.m4: Remove.
34219         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
34220
34221 2003-01-12  Paul Eggert  <eggert@twinsun.com>
34222
34223         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
34224         to avoid collisions with libcurses and libreadline.
34225
34226         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
34227         * lib/getstr.h, getstr.c: Remove.
34228         * lib/getline.c: Include "getline.h", to check interface.
34229         Move body of old getstr.c here: this defines MIN_CHUNK and
34230         declares getdelim2, which is renamed from getstr.
34231         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
34232
34233         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
34234         All uses changed.
34235         * lib/linebuffer.h: Likewise.
34236         (readline): Remove backward-compatibility macro.
34237
34238 2003-01-12  Paul Eggert  <eggert@twinsun.com>
34239
34240         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
34241         to avoid collisions with libcurses and libreadline.
34242         * getstr: Remove.
34243         * MODULES.html.sh: Remove getstr.
34244         * modules/getline: Depend on unlocked-io, not getstr.
34245
34246 2003-01-12  Jim Meyering  <jim@meyering.net>
34247
34248         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
34249
34250 2003-01-10  Bruno Haible  <bruno@clisp.org>
34251
34252         * modules/alloca: Change Makefile.am requirements. Simplify Include
34253         requirements. Add lib/alloca_.h to file list.
34254
34255 2003-01-10  Bruno Haible  <bruno@clisp.org>
34256
34257         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
34258
34259 2003-01-10  Bruno Haible  <bruno@clisp.org>
34260
34261         * lib/alloca_.h: New file.
34262         * lib/getdate.y: Unconditionally include alloca.h.
34263         * lib/makepath.c: Likewise.
34264         * lib/setenv.c: Likewise.
34265         * lib/userspec.c: Likewise.
34266
34267 2003-01-09  Karl Berry  <karl@gnu.org>
34268
34269         * MODULES.html.sh: include `dirname $0` in PATH, to find
34270         gnulib-tool.
34271
34272 2003-01-09  Bruno Haible  <bruno@clisp.org>
34273
34274         * modules/stdbool: Change configure.ac, Makefile.am requirements.
34275         Simplify Include requirements. Add lib/stdbool.h.in to file list.
34276
34277 2003-01-09  Bruno Haible  <bruno@clisp.org>
34278
34279         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
34280
34281 2003-01-09  Bruno Haible  <bruno@clisp.org>
34282
34283         * lib/stdbool.h.in: New file.
34284
34285 2003-01-09  Bruno Haible  <bruno@clisp.org>
34286
34287         * gnulib-tool (func_all_modules): Ignore files ending in ~.
34288         * MODULES.html.sh: Likewise.
34289
34290 2003-01-08  Jim Meyering  <jim@meyering.net>
34291
34292         * lib/full-write.c: Undefine and define-away `const' after inclusion
34293         of errno.h, not before.  Suggestion from Bruno Haible.
34294
34295 2003-01-08  Bruno Haible  <bruno@clisp.org>
34296
34297         * modules/full-read: Depend on full-write.
34298
34299 2003-01-08  Bruno Haible  <bruno@clisp.org>
34300
34301         * lib/safe-read.c: Include specification header first, to ensure its
34302         selfcontainedness.
34303         * lib/full-write.c: Likewise.
34304
34305 2003-01-07  Jim Meyering  <jim@meyering.net>
34306
34307         * lib/full-write.c: Rework so that it may serve to define full_read,
34308         too.
34309         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
34310
34311 2003-01-07  Bruno Haible  <bruno@clisp.org>
34312
34313         * lib/strtoimax.c: Include <stdint.h> as an alternative to
34314         <inttypes.h>.
34315         * lib/xstrtol.h: Likewise.
34316         * lib/xstrtoimax.c: Likewise.
34317         * lib/xstrtoumax.c: Likewise.
34318         * lib/human.h: Likewise.
34319
34320         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
34321         on systems that have <inttypes.h> but not <stdint.h>.
34322
34323 2003-01-07  Bruno Haible  <bruno@clisp.org>
34324
34325         * MODULES.html.sh: Add copyright notice.
34326         (missed_files): Omit CVS directory entries.
34327         (func_module): Make it work with sed-3.02.
34328         * MODULES.txt: Remove file.
34329
34330 2003-01-06  Jim Meyering  <jim@meyering.net>
34331
34332         * lib/version-etc.c: Update year in translatable copyright string.
34333
34334 2003-01-03  Karl Berry  <karl@gnu.org>
34335
34336         * config/config.{guess,sub}: update from prep.
34337
34338 2003-01-02  Karl Berry  <karl@gnu.org>
34339
34340         * doc/COPYING.DOC: belatedly updated to 1.2.
34341
34342 2003-01-01  Karl Berry  <karl@gnu.org>
34343
34344         * gnulib-tool (func_verify_module): report module name $module in
34345         error message, not $1.
34346         * gnulib-tool (create-testdir): don't complain if destdir couldn't
34347         be created, only if it doesn't exist.
34348         * gnulib-tool (last_checkin_date): don't expand the $Date here.
34349
34350 2002-12-31  Paul Eggert  <eggert@twinsun.com>
34351
34352         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
34353
34354 2002-12-31  Paul Eggert  <eggert@twinsun.com>
34355
34356         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
34357         memcmp if strcoll doesn't work.
34358
34359 2002-12-31  Bruno Haible  <bruno@clisp.org>
34360
34361         * lib/utime.c (utime_null): No need to call ftruncate if the file was
34362         nonempty.
34363
34364 2002-12-31  Bruno Haible  <bruno@clisp.org>
34365
34366         * lib/memcoll.c (STRCOLL): New macro.
34367         (memcoll): Use it.
34368
34369 2002-12-31  Bruno Haible  <bruno@clisp.org>
34370
34371         * lib/localcharset.h: New file.
34372         * lib/localcharset.c: Include it.
34373         * lib/unicodeio.c: Likewise.
34374
34375 2002-12-31  Bruno Haible  <bruno@clisp.org>
34376
34377         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
34378         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
34379
34380 2002-12-31  Bruno Haible  <bruno@clisp.org>
34381
34382         * lib/getline.h: Include <stddef.h>, for size_t.
34383
34384         * lib/unicodeio.h: Include <stddef.h>, for size_t.
34385         * lib/unicodeio.c: Don't include <stddef.h>.
34386
34387 2002-12-31  Bruno Haible  <bruno@clisp.org>
34388
34389         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
34390         HAVE_TM_ZONE.
34391
34392 2002-12-24  Karl Berry  <karl@gnu.org>
34393
34394         * config/config.guess: update from prep.
34395
34396 2002-12-24  Bruno Haible  <bruno@clisp.org>
34397
34398         General infrasructure.
34399         * m4/README: Rewritten.
34400         * m4/onceonly.m4: New file.
34401         * m4/onceonly_2_57.m4: New file.
34402
34403         Module atexit.
34404         * m4/atexit.m4: New file.
34405
34406         Module strtod.
34407         * m4/strtod.m4: New file.
34408
34409         Module strtol.
34410         * m4/strtol.m4: New file.
34411
34412         Module strtoul.
34413         * m4/strtoul.m4: New file.
34414
34415         Module memchr.
34416         * m4/memchr.m4: New file.
34417
34418         Module memcmp.
34419         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
34420         (jm_FUNC_MEMCMP): Invoke it.
34421
34422         Module memcpy.
34423         * m4/memcpy.m4: New file.
34424
34425         Module memmove.
34426         * m4/memmove.m4: New file.
34427
34428         Module memset.
34429         * m4/memset.m4: New file.
34430
34431         Module strcspn.
34432         * m4/strcspn.m4: New file.
34433
34434         Module strpbrk.
34435         * m4/strpbrk.m4: New file.
34436
34437         Module strstr.
34438         * m4/strstr.m4: New file.
34439
34440         Module strerror.
34441         * m4/strerror.m4: New file.
34442
34443         Module mktime.
34444         * m4/mktime.m4: Renamed from jm-mktime.m4.
34445         (gl_PREREQ_MKTIME): New macro.
34446         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
34447
34448         Module malloc.
34449         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
34450         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
34451         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
34452
34453         Module realloc.
34454         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
34455         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
34456         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
34457
34458         Module strftime.
34459         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
34460         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
34461         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
34462         gl_TM_GMTOFF.
34463         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
34464
34465         Module xalloc.
34466         * m4/xalloc.m4: New file.
34467
34468         Module alloca.
34469         * m4/alloca.m4: New file.
34470
34471         Module putenv.
34472         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
34473         (jm_FUNC_PUTENV): Invoke it.
34474
34475         Module setenv.
34476         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
34477         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
34478         when invoked twice.
34479         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
34480         gt_FUNC_SETENV.
34481
34482         Module memrchr.
34483         * m4/memrchr.m4: New file.
34484
34485         Module stpcpy.
34486         * m4/stpcpy.m4: New file.
34487
34488         Module strcase.
34489         * m4/strcase.m4: New file.
34490
34491         Module strdup.
34492         * m4/strdup.m4: New file.
34493
34494         Module strnlen.
34495         * m4/strnlen.m4: New file.
34496
34497         Module strndup.
34498         * m4/strndup.m4: New file.
34499
34500         Module xstrtod.
34501         * m4/xstrtod.m4: New file.
34502
34503         Module xstrtol.
34504         * m4/xstrtol.m4: New file.
34505
34506         Module getdate.
34507         * m4/getdate.m4: New file.
34508
34509         Module unlocked-io.
34510         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
34511         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
34512         * m4/jm-glibc-io.m4n: Remove file.
34513
34514         Module long-options.
34515         * m4/long-options.m4: New file.
34516
34517         Module md5.
34518         * m4/md5.m4: New file.
34519
34520         Module sha.
34521         * m4/sha.m4: New file.
34522
34523         Module getstr.
34524         * m4/getstr.m4: New file.
34525
34526         Module getline.
34527         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
34528         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
34529         <sys/types.h>, for size_t. Use the function name gnu_getline, not
34530         simply getline. Infoke gl_PREREQ_GETLINE.
34531
34532         Module obstack.
34533         * m4/obstack.m4: New file.
34534
34535         Module hash.
34536         * m4/hash.m4: New file.
34537
34538         Module readtokens.
34539         * m4/readtokens.m4: New file.
34540
34541         Module strverscmp.
34542         * m4/strverscmp.m4: New file.
34543
34544         Module stdbool.
34545         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
34546         OSF/1.
34547
34548         Module strtoll.
34549         * m4/strtoll.m4: New file.
34550
34551         Module strtoull.
34552         * m4/strtoull.m4: New file.
34553
34554         Module strtoimax.
34555         * m4/strtoimax.m4: New file.
34556
34557         Module strtoumax.
34558         * m4/strtoumax.m4: New file.
34559
34560         Module xstrtoimax.
34561         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
34562         jm_AC_PREREQ_XSTRTOIMAX.
34563         Moved the strtol prerequisites to strtol.m4.
34564         Moved the strtoll prerequisites to strtoll.m4.
34565         Moved the strtoimax prerequisites to strtoimax.m4.
34566
34567         Module xstrtoumax.
34568         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
34569         jm_AC_PREREQ_XSTRTOUMAX.
34570         Moved the strtoul prerequisites to strtoul.m4.
34571         Moved the strtoull prerequisites to strtoull.m4.
34572         Moved the strtoumax prerequisites to strtoumax.m4.
34573
34574         Module chown.
34575         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
34576         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
34577
34578         Module dup2.
34579         * m4/dup2.m4: New file.
34580
34581         Module ftruncate.
34582         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
34583         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
34584
34585         Module getgroups.
34586         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
34587         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
34588
34589         Module gettimeofday.
34590         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
34591         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
34592         gl_PREREQ_GETTIMEOFDAY.
34593
34594         Module mkdir.
34595         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
34596         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
34597
34598         Module mkstemp.
34599         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
34600         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
34601         jm_AC_TYPE_UINTMAX_T.
34602         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
34603
34604         Module stat.
34605         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
34606         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
34607
34608         Module lstat.
34609         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
34610         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
34611
34612         Module timespec.
34613         * m4/timespec.m4 (gl_TIMESPEC): New macro.
34614         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
34615         * m4/st_mtim.m4: Indentation.
34616
34617         Module nanosleep.
34618         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
34619         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
34620         gl_PREREQ_NANOSLEEP.
34621
34622         Module regex.
34623         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
34624         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
34625         (gl_REGEX): New macro.
34626
34627         Module rename.
34628         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
34629         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
34630
34631         Module rmdir.
34632         * m4/rmdir.m4: New file.
34633
34634         Module utime.
34635         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
34636         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
34637         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
34638
34639         Module dirname.
34640         * m4/dirname.m4: New file.
34641
34642         Module getopt.
34643         * m4/getopt.m4: New file.
34644
34645         Module unistd-safer.
34646         * m4/unistd-safer.m4: New file.
34647
34648         Module fnmatch.
34649         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
34650         declaration.
34651         (gl_PREREQ_FNMATCH_EXTRA): New macro.
34652         (gl_FUNC_FNMATCH_POSIX): New macro.
34653         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
34654         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
34655         simply fnmatch.
34656
34657         Module exclude.
34658         * m4/exclude.m4: New file.
34659
34660         Module human.
34661         * m4/human.m4: New file.
34662
34663         Module acl.
34664         * m4/acl.m4: Nop.
34665
34666         Module backupfile.
34667         * m4/backupfile.m4: New file.
34668         * m4/d-ino.m4: Indentation.
34669
34670         Module fsusage.
34671         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
34672         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
34673         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
34674
34675         Module dirfd.
34676         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
34677         requirements.
34678
34679         Module euidaccess.
34680         * m4/euidaccess.m4: New file.
34681
34682         Module file-type.
34683         * m4/file-type.m4: New file.
34684
34685         Module fileblocks.
34686         * m4/fileblocks.m4: New file.
34687
34688         Module filemode.
34689         * m4/filemode.m4: New file.
34690
34691         Module isdir.
34692         * m4/isdir.m4: New file.
34693
34694         Module lchown.
34695         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
34696         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
34697
34698         Module makepath.
34699         * m4/makepath.m4: New file.
34700
34701         Module modechange.
34702         * m4/modechange.m4: New file.
34703
34704         Module mountlist.
34705         * m4/mountlist.m4: New file.
34706         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
34707         Indentation.
34708
34709         Module path-concat.
34710         * m4/path-concat.m4: New file.
34711
34712         Module pathmax.
34713         * m4/pathmax.m4: New file.
34714
34715         Module same.
34716         * m4/same.m4: New file.
34717
34718         Module save-cwd.
34719         * m4/save-cwd.m4: New file.
34720
34721         Module savedir.
34722         * m4/savedir.m4: New file.
34723
34724         Module xgetcwd.
34725         * m4/xgetcwd.m4: New file.
34726         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
34727
34728         Module xreadlink.
34729         * m4/xreadlink.m4: New file.
34730
34731         Module safe-read.
34732         * m4/safe-read.m4: New file.
34733
34734         Module safe-write.
34735         * m4/safe-write.m4: New file.
34736
34737         Module closeout.
34738         * m4/closeout.m4: New file.
34739
34740         Module stdio-safer.
34741         * m4/stdio-safer.m4: New file.
34742
34743         Module getpass.
34744         * m4/getpass.m4: New file.
34745
34746         Module getugroups.
34747         * m4/getugroups.m4: New file.
34748
34749         Module group-member.
34750         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
34751         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
34752
34753         Module idcache.
34754         * m4/idcache.m4: New file.
34755
34756         Module userspec.
34757         * m4/userspec.m4: New file.
34758
34759         Module gettime.
34760         * m4/clock_time.m4: New file.
34761         * m4/gettime.m4: New file.
34762
34763         Module settime.
34764         * m4/settime.m4: New file.
34765
34766         Module posixtm.
34767         * m4/posixtm.m4: New file.
34768
34769         Module gethostname.
34770         * m4/gethostname.m4: New file.
34771
34772         Module canon-host.
34773         * m4/canon-host.m4: New file.
34774
34775         Module gettext.
34776         * m4/codeset.m4: New file, from gettext-0.11.5.
34777         * m4/gettext.m4: New file, from gettext-0.11.5.
34778         * m4/glibc21.m4: New file, from gettext-0.11.5.
34779         * m4/iconv.m4: New file, from gettext-0.11.5.
34780         * m4/intdiv0.m4: New file, from gettext-0.11.5.
34781         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
34782         * m4/inttypes.m4: New file, from gettext-0.11.5.
34783         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
34784         * m4/isc-posix.m4: New file, from gettext-0.11.5.
34785         * m4/lcmessage.m4: New file, from gettext-0.11.5.
34786         * m4/lib-ld.m4: New file, from gettext-0.11.5.
34787         * m4/lib-link.m4: New file, from gettext-0.11.5.
34788         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
34789         * m4/progtest.m4: New file, from gettext-0.11.5.
34790         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
34791         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
34792         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
34793
34794         Module localcharset.
34795         * m4/localcharset.m4: New file.
34796
34797         Module hard-locale.
34798         * m4/hard-locale.m4: New file.
34799
34800         Module mbswidth.
34801         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
34802         onceonly macros.
34803         * m4/mbrtowc.m4: Add comment.
34804
34805         Module memcasecmp.
34806         * m4/memcasecmp.m4: New file.
34807
34808         Module memcoll.
34809         * m4/memcoll.m4: New file.
34810
34811         Module unicodeio.
34812         * m4/unicodeio.m4: New file.
34813
34814         Module rpmatch.
34815         * m4/rpmatch.m4: New file.
34816
34817         Module yesno.
34818         * m4/yesno.m4: New file.
34819
34820         Module exitfail.
34821         * m4/exitfail.m4: New file.
34822
34823         Module c-stack.
34824         * m4/c-stack.m4 (gl_C_STACK): New macro.
34825         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
34826
34827         Module error.
34828         * m4/error.m4 (gl_ERROR): New macro.
34829         (jm_PREREQ_ERROR): Use onceonly macros.
34830
34831         Module fatal.
34832         * m4/fatal.m4: New file.
34833
34834         Module getloadavg.
34835         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
34836         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
34837
34838         Module getpagesize.
34839         * m4/getpagesize.m4: New file.
34840
34841         Module getusershell.
34842         * m4/getusershell.m4: New file.
34843
34844         Module physmem.
34845         * m4/physmem.m4: New file.
34846
34847         Module posixver.
34848         * m4/posixver.m4: New file.
34849
34850         Module quotearg.
34851         * m4/quotearg.m4: New file.
34852
34853         Module quote.
34854         * m4/quote.m4: New file.
34855
34856         Module readutmp.
34857         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
34858
34859         Module sig2str.
34860         * m4/sig2str.m4: New file.
34861
34862         Other.
34863         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
34864         ulonglong.m4.
34865         * m4/intmax_t.m4: New file.
34866         * m4/d-type.m4: Indentation.
34867         * m4/jm-macros.m4: Update.
34868         * m4/prereq.m4 (jm_PREREQ): Update.
34869         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
34870         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
34871         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
34872         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
34873         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
34874         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
34875         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
34876         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
34877         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
34878         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
34879         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
34880         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
34881         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
34882         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
34883         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
34884         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
34885         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
34886         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
34887         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
34888
34889 2002-12-24  Bruno Haible  <bruno@clisp.org>
34890
34891         * MODULES.txt: Update according to m4/ changes.
34892
34893         Module gettext.
34894         * config.rpath: New file, from gettext-0.11.5.
34895
34896         * modules/*: New module descriptions.
34897         * gnulib-tool: New file.
34898         * MODULES.html.sh: New file.
34899
34900 2002-12-21  Karl Berry  <karl@gnu.org>
34901
34902         * doc/fdl.texi: update to version 1.2.
34903
34904 2002-12-19  Karl Berry  <karl@gnu.org>
34905
34906         * config/config.guess: update from prep.
34907
34908 2002-12-18  Bruno Haible  <bruno@clisp.org>
34909
34910         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
34911         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
34912
34913 2002-12-17  Bruno Haible  <bruno@clisp.org>
34914
34915         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
34916         stdlib.h, string.h.
34917
34918 2002-12-17  Bruno Haible  <bruno@clisp.org>
34919
34920         * lib/canon-host.c (strdup): Remove unused declaration.
34921
34922         * lib/fsusage.c: Include full_read.h.
34923         (get_fs_usage): Use full_read instead of safe_read.
34924
34925         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
34926
34927 2002-12-12  Karl Berry  <karl@gnu.org>
34928
34929         * config/config.guess: update from prep.
34930
34931 2002-12-11  Bruno Haible  <bruno@clisp.org>
34932
34933         * m4/setenv.m4: New file, from gettext-0.11.5.
34934
34935 2002-12-11  Bruno Haible  <bruno@clisp.org>
34936
34937         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
34938         not unsetenv().
34939         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
34940         modifications:
34941
34942         2002-12-11  Bruno Haible  <bruno@clisp.org>
34943
34944                 * setenv.c (alloca): Fall back to malloc.
34945                 (freea): New macro.
34946                 (setenv): Use freea() to free memory allocated with alloca().
34947
34948         2002-11-13  Bruno Haible  <bruno@clisp.org>
34949
34950                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
34951                 function declarations.
34952                 * unsetenv.c (unsetenv): Likewise.
34953
34954         2002-03-04  Bruno Haible  <bruno@clisp.org>
34955
34956                 Portability to AIX 4.3.3.
34957                 * unsetenv.c: New file, extracted from setenv.c.
34958                 * setenv.c: Move the unsetenv() function to unsetenv.c.
34959
34960         2001-12-20  Bruno Haible  <bruno@clisp.org>
34961
34962                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
34963                 use malloc instead. For SunOS 4.
34964
34965         2001-12-11  Bruno Haible  <bruno@clisp.org>
34966
34967                 * setenv.c: Declare alloca.
34968                 (compar_fn_t): New typedef.
34969                 (KNOWN_VALUE, STORE_VALUE): Use it.
34970
34971         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
34972         setenv.h.
34973
34974 2002-12-10  Paul Eggert  <eggert@twinsun.com>
34975
34976         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
34977         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
34978         Choose values that are less likely to collide with system fnmatch
34979         options.
34980         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
34981         defined (e.g., a pure POSIX system).
34982         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
34983         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
34984
34985 2002-12-06  Paul Eggert  <eggert@twinsun.com>
34986
34987         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
34988         a pain in practice to deal with generated m4 files.  This change
34989         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
34990
34991         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
34992         and jm-glibc-io.m4, as they are no longer a special case.
34993         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
34994         kludge and the auto-generation stuff.  Check only whether the
34995         functions are declared, not whether they exist, since older hosts
34996         that don't declare the functions can't use the optimization anyway.
34997
34998 2002-12-06  Jim Meyering  <jim@meyering.net>
34999
35000         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
35001
35002         Merge in changes from libc's misc/error.c, in preparation
35003         for the merge of gnulib's changes back into libc.
35004
35005         * lib/error.c (_): Define only if not already defined.
35006         Move definition to follow all #include directives.
35007         Include unlocked-io.h only if !_LIBC.
35008         [_LIBC]: Include <libio/libioP.h>.
35009         [USE_IN_LIBIO]: Include <libio/iolibio.h>
35010         (fflush): Tweak definition to use INTUSE.
35011         (putc): Define.
35012
35013 2002-12-05  Paul Eggert  <eggert@twinsun.com>
35014
35015         * lib/alloca.c [defined emacs]: Include "lisp.h".
35016         (xalloc_die) [defined emacs]: New macro.
35017         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
35018         [! defined emacs]: Include <xalloc.h>.
35019         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
35020         (pointer): Typedef to POINTER_TYPE *.
35021         (malloc): Remove decl; we now always use xmalloc.
35022         (alloca): Use old-style definition, since Emacs needs this.
35023         Check for arithmetic overflow when computing combined size.
35024
35025 2002-12-04  Paul Eggert  <eggert@twinsun.com>
35026
35027         Do not generate unlocked-io.h automatically, since it's easier to
35028         maintain it by hand.
35029
35030         * lib/unlocked-io.h: New file, from GNU diffutils,
35031         but with proper copyright notice and attribution.
35032         * lib/gen-uio: Remove.
35033         * lib/Makefile.am: Add copyright notice.
35034         (libfetish_a_SOURCES): Add unlocked-io.h.
35035         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
35036         (DISTCLEANFILES, io_functions): Remove macros.
35037         (EXTRA_DIST): Remove gen_uio.
35038         (unlocked-io.h): Remove rule.
35039
35040 2002-12-04  Jim Meyering  <jim@meyering.net>
35041
35042         Reflect the fact that stat.c and lstat.c are no longer generated.
35043         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
35044         (DISTCLEANFILES): Likewise.
35045         (EXTRA_DIST): Likewise.
35046         (all_local): Don't depend on stat.c or lstat.c.
35047         (stat.c, lstat.c): Remove rules.
35048         (EXTRA_DIST): Remove xstat.in.
35049
35050         * lib/xstat.in: Remove file.  Contents moved into stat.c.
35051         * lib/stat.c: New file.  Contents mostly from xstat.in.
35052         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
35053         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
35054
35055         * lib/safe-read.c: Rework so that it may serve to define safe_write,
35056         too.
35057         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
35058
35059 2002-12-03  Jim Meyering  <jim@meyering.net>
35060
35061         * lib/safe-read.c, safe-write.c: Change variable names and comments,
35062         but not semantics, to minimize the differences between these two files.
35063         (safe_read): Change comment to mention SAFE_READ_ERROR.
35064
35065         * lib/safe-read.c (IS_EINTR): Define.
35066         (safe_read): Use IS_EINTR in place of in-function cpp directives.
35067
35068 2002-12-02  Jim Meyering  <jim@meyering.net>
35069
35070         * lib/safe-read.c (EINTR): Define.
35071         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
35072         (INT_MAX): Provide fallback.
35073         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
35074
35075         * lib/safe-read.h (SAFE_READ_ERROR): Define.
35076
35077 2002-12-02  Bruno Haible  <bruno@clisp.org>
35078
35079         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
35080         Define, taken from safe-read.c.
35081         (INT_MAX): Provide fallback.
35082         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
35083         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
35084
35085         * lib/safe-read.c (EINTR): Remove definition.
35086         (safe_read): Don't use EINTR if it is absent.
35087
35088 2002-12-01  Jim Meyering  <jim@meyering.net>
35089
35090         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
35091         zero.
35092         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
35093
35094 2002-11-27  Paul Eggert  <eggert@twinsun.com>
35095
35096         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
35097         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
35098         with `if (! (value < limit)) abort ();', for readability.
35099
35100 2002-11-26  Karl Berry  <karl@gnu.org>
35101
35102         * lib/strdup.c: copy from libc again, with jim's ok.
35103         * lib/.cppi-disable: re-add strdup.c
35104
35105 2002-11-25  Karl Berry  <karl@gnu.org>
35106
35107         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
35108         instead of "strtol.c".
35109
35110 2002-11-25  Karl Berry  <karl@gnu.org>
35111
35112         * config/install-sh: update from automake for variable quoting, $0 in
35113         error msgs, etc.
35114
35115         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
35116         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
35117         entry.
35118
35119 2002-11-25  Jim Meyering  <jim@meyering.net>
35120
35121         * lib/mktime.c: Sync from libc, now that it has the latest fix.
35122
35123 2002-11-24  Karl Berry  <karl@gnu.org>
35124
35125         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
35126         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
35127
35128 2002-11-24  Jim Meyering  <jim@meyering.net>
35129
35130         Update from coreutils:
35131
35132         * lib/mktime.c: Merge in changes from libc.
35133
35134         Avoid a link-time failure on some Linux systems.
35135         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
35136         (otherwise).
35137         (__mon_yday): Declare with the STATIC attribute.
35138         (__mktime_internal): Likewise.
35139         Based on a report from Greg Schafer.
35140
35141 2002-11-23  Jim Meyering  <jim@meyering.net>
35142
35143         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
35144         Use `unsigned', not `int', as type of index.
35145
35146         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
35147
35148         * lib/fsusage.c: Remove unneeded parentheses around operands of
35149         `defined'.
35150
35151 2002-11-22  Paul Eggert  <eggert@twinsun.com>
35152
35153         * lib/quotearg.h: Allow multiple inclusion by surrounding with
35154         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
35155         so that we can be included first.
35156         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
35157         * lib/quotearg.c: Include quotearg.h immediately after config.h.
35158         No need to include stddef.h or sys/types.h any more.
35159         Surround local include files with "", not "<>".
35160         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
35161         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
35162         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
35163         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
35164         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
35165         (ISPRINT): Remove; no longer needed now that we assume C89.
35166
35167         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
35168         Preserve errno.
35169
35170         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
35171         quotearg_char): Use SIZE_MAX rather than
35172         (size_t) -1 when we are talking about "infinity".
35173
35174         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
35175
35176 2002-11-22  Paul Eggert  <eggert@twinsun.com>
35177
35178         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
35179         hint that one should use `if (! x) abort ();' rather than `assert
35180         (x);', and anyway it's one less thing to worry about configuring.
35181         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
35182         hash_rehash, hash_insert): Use abort rather than assert.
35183
35184 2002-11-22  Bruno Haible  <bruno@clisp.org>
35185
35186         * lib/safe-read.h: Assume C89. Add comments.
35187         (safe_read): Change return type to size_t.
35188         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
35189         byte counts > SSIZE_MAX correctly.
35190         * lib/safe-write.h: New file.
35191         * lib/safe-write.c: New file.
35192         * lib/full-read.h: New file.
35193         * lib/full-read.c: New file.
35194         * lib/full-write.h: Assume C89. Add comments.
35195         * lib/full-write.c: Include safe-write.h.
35196         (full_write): Rewritten to use safe_write.
35197         Suggested by Jim Meyering and Paul Eggert.
35198
35199 2002-11-21  Jim Meyering  <jim@meyering.net>
35200
35201         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
35202
35203         Merge in changes from the coreutils.
35204
35205         2002-09-25  Paul Eggert  <eggert@twinsun.com>
35206         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
35207         <stdint.h>.
35208         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
35209         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
35210         int.  Work more efficiently if X is the same width as uintmax_t.
35211         Do not compare X to -1, to avoid bogus compiler warning.
35212         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
35213         Don't assume that f_frsize and f_bsize are the same type.
35214
35215         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
35216         warning on FreeBSD.
35217
35218         * lib/makepath.c (make_path): Restore umask *before* creating the final
35219         component.
35220         (make_path): Minor reformatting.
35221
35222         * lib/xmalloc.c: Adjust to work with new autoconf macros,
35223         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
35224         HAVE_MALLOC/HAVE_REALLOC.
35225
35226         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
35227         dummy ones.  At least on GNU/Linux systems, `auto' means something
35228         else.
35229         From Michael Stone.
35230
35231 2002-11-21  Bruno Haible  <bruno@clisp.org>
35232
35233         Remove case insensitive option matching.
35234         * lib/argmatch.h (argcasematch): Remove declaration.
35235         (ARGCASEMATCH): Remove macro.
35236         (__xargmatch_internal): Remove case_sensitive argument.
35237         (XARGMATCH): Update.
35238         (XARGCASEMATCH): Remove macro.
35239         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
35240         case_sensitive argument.
35241         (argcasematch): Remove function.
35242         (__xargmatch_internal): Remove case_sensitive argument.
35243         (main): Use XARGMATCH instead of XARGCASEMATCH.
35244
35245         * lib/xmalloc.c: Change compile-time error message. Add comment about
35246         required autoconf version.
35247
35248 2002-11-20  Paul Eggert  <eggert@twinsun.com>
35249
35250         Merge argmatch cleanups from Bison.  Assume C89.
35251
35252         * lib/argmatch.c: Include config.h here, not in argmatch.h.
35253         Include stdlib.h, for EXIT_FAILURE.
35254         Always include <string.h>, since we assume C89.
35255         (EXIT_FAILURE): Remove pre-C89 bug workaround.
35256         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
35257         Include <stddef.h> instead, since it's all we need for size_t.
35258         (PARAMS): Remove.  All uses removed.
35259         (ARRAY_CARDINALITY): Do not bother to #undef.
35260         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
35261         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
35262         Remove unnecessary parentheses.
35263         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
35264         Insert necessary parentheses.
35265         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
35266         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
35267
35268 2002-11-19  Bruno Haible  <bruno@clisp.org>
35269
35270         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
35271         * lib/mbswidth.h: Include <stddef.h>, for size_t.
35272
35273         * lib/mbswidth.h (PARAMS): Remove macro.
35274         (mbswidth, mbsnwidth): Use ANSI C function declarations.
35275         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
35276
35277         * lib/gcd.h (PARAMS): Remove macro.
35278         (gcd): Use ANSI C function declarations.
35279         * lib/gcd.c (gcd): Likewise.
35280
35281 2002-11-15  Bruno Haible  <bruno@clisp.org>
35282
35283         * lib/strcspn.c: Include <stddef.h>.
35284         (strcspn): Use ANSI C function declaration. Change return type to
35285         size_t. Use NULL.
35286         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
35287         (strpbrk): Use NULL.
35288         * lib/strpbrk.h (PARAMS): Remove macro.
35289         (strpbrk): Use ANSI C function declaration.
35290         * lib/strstr.c: Don't include <sys/types.h>.
35291         * lib/strstr.h (PARAMS): Remove macro.
35292         (strstr): Use ANSI C function declarations.
35293
35294 2002-11-14  Karl Berry  <karl@gnu.org>
35295
35296         * config/mkinstalldirs: `do' on separate line, instead of
35297         `for var; do'.
35298
35299 2002-11-06  Bruno Haible  <bruno@clisp.org>
35300
35301         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
35302         * lib/gcd.c (gcd): Likewise.
35303
35304 2002-11-05  Bruno Haible  <bruno@clisp.org>
35305
35306         * lib/gcd.h: New file, from gettext-0.11.5.
35307         * lib/gcd.c: New file, from gettext-0.11.5.
35308
35309 2002-11-05  Bruno Haible  <bruno@clisp.org>
35310
35311         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
35312         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
35313         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
35314         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
35315
35316         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
35317         <libintl.h>.
35318         * lib/makepath.c: Include gettext.h instead of <locale.h> and
35319         <libintl.h>.
35320
35321         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
35322         * lib/human.c: Include gettext.h instead of <libintl.h>.
35323         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
35324         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
35325         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
35326         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
35327         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
35328         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
35329         (textdomain): Remove definition.
35330         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
35331
35332         * lib/long-options.c: Remove include of <libintl.h> and definition of
35333         _.
35334         * lib/same.c: Remove include of <libintl.h> and definition of _.
35335
35336 2002-11-04  Owen Taylor  <otaylor@redhat.com>
35337
35338         * lib/config.charset: A few additions for Solaris.
35339
35340 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
35341
35342         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
35343         * lib/localcharset.c (locale_charset): Declare as extern "C".
35344
35345 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
35346
35347         * lib/config.charset: msdos in uk_UA uses CP1125.
35348
35349 2002-11-04  Bruno Haible  <bruno@clisp.org>
35350
35351         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
35352         * lib/strcase.h: New file, from GNU gettext-0.11.5.
35353         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
35354         * lib/strstr.h: New file, from GNU gettext-0.11.5.
35355         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
35356
35357 2002-11-04  Bruno Haible  <bruno@clisp.org>
35358
35359         * lib/localcharset.c (locale_charset): Don't return an empty string.
35360
35361 2002-11-04  Bruno Haible  <bruno@clisp.org>
35362
35363         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
35364         aliases.
35365
35366 2002-11-04  Bruno Haible  <bruno@clisp.org>
35367
35368         * lib/config.charset: Update for newest glibc. Add canonical names
35369         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
35370
35371 2002-11-04  Bruno Haible  <bruno@clisp.org>
35372
35373         * lib/config.charset: Add support for NetBSD.
35374
35375 2002-11-04  Bruno Haible  <bruno@clisp.org>
35376
35377         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
35378
35379 2002-11-01  Bruno Haible  <bruno@clisp.org>
35380
35381         * configure.in: Add AC_CONFIG_AUX_DIR call.
35382         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
35383         test/Makefile.
35384         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
35385
35386 2002-09-28  Karl Berry  <karl@gnu.org>
35387
35388         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
35389         installed automake until the next release, since changes have been
35390         made.
35391
35392 2002-09-25  Karl Berry  <karl@gnu.org>
35393
35394         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
35395         * lib/getopt*: copy from libc/posix.
35396         * lib/gettext.h: copy from gettext.
35397         * lib/.cppi-disable: add strdup.c, gettext.h.
35398
35399 2002-09-25  Karl Berry  <karl@gnu.org>
35400
35401         * config/srclist.txt: enable gettext.h check.
35402         * config/config.{guess,sub}: update from prep.
35403         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
35404                 from automake 1.6.3.
35405         See srclist*.
35406
35407 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
35408
35409         * regex.c (PATFETCH): Remove the translating fetch.
35410         (PATFETCH_RAW): Rename to PATFETCH.
35411         (set_image_of_range): New fun.
35412         (SET_RANGE_TABLE_WORK_AREA): Use it.
35413         (regex_compile): Don't translate the pattern chars so eagerly.
35414         Only do it when inserting an `exactn' bytecode or when handling
35415         a char-range.
35416         (mutually_exclusive_p): Avoid empty statement.
35417
35418 2002-07-06  Jim Meyering  <meyering@lucent.com>
35419
35420         * m4/README: Don't mention Makefile.am.in.
35421         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
35422
35423 2002-07-01  Jim Meyering  <meyering@lucent.com>
35424
35425         * lib/c-stack.c: Include sys/time.h.
35426         From Volker Borchert.
35427
35428 2002-06-26  Paul Eggert  <eggert@twinsun.com>
35429
35430         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
35431
35432 2002-06-26  Paul Eggert  <eggert@twinsun.com>
35433
35434         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
35435         New macro.  Use it uniformly instead of
35436         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
35437         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
35438         reported by Vin Shelton.
35439
35440 2002-06-22  Paul Eggert  <eggert@twinsun.com>
35441
35442         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
35443         Do not assume SA_SIGINFO behavior.
35444         Bug reported by Jim Meyering on NetBSD 1.5.2.
35445
35446 2002-06-22  Jim Meyering  <meyering@lucent.com>
35447
35448         * m4/c-stack.m4: New file, from diffutils-2.8.2.
35449         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
35450
35451         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
35452         now that configure.ac uses AC_GNU_SOURCE.
35453         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
35454         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
35455
35456         Update to latest tools.  Suggestions from Paul Eggert.
35457         * m4/stdbool.m4: New file, from diffutils-2.8.2.
35458         * m4/gnu-source.m4: Update from diffutils-2.8.2.
35459         * m4/fnmatch.m4: Likewise.
35460         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
35461         to AC_HEADER_STDBOOL
35462
35463 2002-06-22  Jim Meyering  <meyering@lucent.com>
35464
35465         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
35466         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
35467
35468 2002-06-22  Jim Meyering  <meyering@lucent.com>
35469
35470         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
35471
35472         * lib/exitfail.c, exitfail.h: Likewise.
35473         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
35474
35475         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
35476         of fnmatch.h.
35477         (EXTRA_DIST): Add fnmatch_loop.c.
35478         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
35479
35480         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
35481         * lib/fnmatch.c: Update from diffutils-2.8.2.
35482         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
35483         * lib/fnmatch.h: Remove file.
35484
35485 2002-06-21  Jim Meyering  <meyering@lucent.com>
35486
35487         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
35488         * m4/mbrtowc.m4: Likewise.
35489
35490         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
35491         * m4/mbswidth.m4: Reflect name change:
35492         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
35493         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
35494
35495         * m4/lib-link.m4: Update from gettext-0.11.2.
35496         * m4/gettext.m4: Likewise.
35497
35498         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
35499         From Alfred M. Szmidt.
35500
35501 2002-06-18  Paul Eggert  <eggert@twinsun.com>
35502
35503         * lib/file-type.h: Report an error if neither S_ISREG nor
35504         S_IFREG is defined, instead of using a test specific to glibc
35505         2.2.  This should be safe, since POSIX requires S_ISREG and
35506         Unix Version 7 had S_IFREG.  We don't need to check for
35507         <sys/types.h> since we don't use any symbols that it defines.
35508
35509 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
35510
35511         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
35512         $@-t, so that each temporary file name is unique and valid in the first
35513         8 characters, for operation under DOS.
35514
35515 2002-06-15  Paul Eggert  <eggert@twinsun.com>
35516
35517         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
35518
35519 2002-06-15  Jim Meyering  <meyering@lucent.com>
35520
35521         Work even with DJGPP 2.03, which lacks support for symlinks.
35522         From Richard Dawe.
35523         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
35524         is defined.
35525         * lib/lchown.c (S_ISLNK): Likewise.
35526
35527 2002-06-15  Jim Meyering  <meyering@lucent.com>
35528
35529         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
35530         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
35531         have been included before this file.
35532
35533 2002-06-14  Jim Meyering  <meyering@lucent.com>
35534
35535         * lib/file-type.h: Use the version from diffutils-2.8.2.
35536         * lib/file-type.c: Likewise.
35537
35538 2002-06-07  Jim Meyering  <meyering@lucent.com>
35539
35540         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
35541         They're needed at least for NetBSD 1.5.2.
35542         ($statxfs_includes): Include those same headers.
35543         ($statxfs_includes): Include sys/vfs.h if available.
35544         ($statxfs_includes): Likewise for sys/statvfs.h.
35545         Check for the following members in both structs statfs and statvfs:
35546         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
35547
35548 2002-06-01  Jim Meyering  <meyering@lucent.com>
35549
35550         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
35551         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
35552
35553 2002-05-28  Jim Meyering  <meyering@lucent.com>
35554
35555         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
35556         Reported by Volker Borchert.
35557
35558 2002-05-27  Jim Meyering  <meyering@lucent.com>
35559
35560         Fix a problem seen only on nonconforming systems whereby ls.c's
35561         use of localtime, and then of gettimeofday would cause trouble:
35562         the localtime call used to initialize rpl_gettimeofday's save
35563         mechanism would clobber ls's current local time information so
35564         that in any long listing the first file would always be listed
35565         with date 1970-01-01.  Analysis by Volker Borchert.
35566
35567         * lib/gettimeofday.c (localtime): Undefine.
35568         (rpl_localtime): New function.
35569
35570 2002-05-27  Jim Meyering  <meyering@lucent.com>
35571
35572         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
35573         localtime.
35574
35575         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
35576         use the replacement function; it wouldn't resolve at link time.
35577         Reported by Volker Borchert.
35578
35579 2002-05-22  Jim Meyering  <meyering@lucent.com>
35580
35581         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
35582         file-type.h.
35583         * lib/file-type.h: New file.
35584         * lib/file-type.c (file_type): New file/function.  Extracted from
35585         diffutils.
35586
35587 2002-04-30  Jim Meyering  <meyering@lucent.com>
35588
35589         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
35590
35591 2002-04-29  Paul Eggert  <eggert@twinsun.com>
35592
35593         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
35594
35595 2002-04-29  Paul Eggert  <eggert@twinsun.com>
35596
35597         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
35598         Do not check for alloca.h (no longer used) or stdbool.h (was never
35599         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
35600
35601 2002-04-29  Paul Eggert  <eggert@twinsun.com>
35602
35603         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
35604
35605 2002-04-29  Jim Meyering  <meyering@lucent.com>
35606
35607         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
35608         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
35609         Use AC_FUNC_STRNLEN here instead.
35610
35611         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
35612         With autoconf-2.53a, it's part of AC_PROG_CC.
35613
35614 2002-04-28  Paul Eggert  <eggert@twinsun.com>
35615
35616         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
35617         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
35618
35619 2002-04-28  Paul Eggert  <eggert@twinsun.com>
35620
35621         * lib/sig2str.h, lib/sig2str.c: New files.
35622         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
35623
35624 2002-04-28  Paul Eggert  <eggert@twinsun.com>
35625
35626         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
35627         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
35628         of 127, since 64 is the largest conceivable number for ancient
35629         nonstandard hosts.
35630         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
35631
35632 2002-04-28  Jim Meyering  <meyering@lucent.com>
35633
35634         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
35635
35636 2002-04-24  Jim Meyering  <meyering@lucent.com>
35637
35638         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
35639         (jm_PREREQ): Use it.
35640
35641         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
35642         mach/mach.h fcntl.h.
35643         Check for this function: setlocale.
35644
35645 2002-04-24  Jim Meyering  <meyering@lucent.com>
35646
35647         * lib/gettext.h: New file, from Gettext.
35648         * lib/Makefile.am (INCLUDES): Remove -I../intl.
35649         (libfetish_a_SOURCES): Add gettext.h.
35650
35651 2002-04-16  Jim Meyering  <meyering@lucent.com>
35652
35653         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
35654         ut_pid, ut_id, ut_exit.
35655
35656 2002-04-16  Jim Meyering  <meyering@lucent.com>
35657
35658         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
35659         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
35660         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
35661
35662 2002-04-12  Jim Meyering  <meyering@lucent.com>
35663
35664         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
35665         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
35666         existence of the getmntinfo function.  Needed for Darwin 5.3.
35667
35668         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
35669         This is necessary at least on Darwin 5.3.
35670
35671         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
35672         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
35673         strnlen.o in the library, and that makes some versions of ranlib
35674         object.
35675
35676 2002-04-12  Jim Meyering  <meyering@lucent.com>
35677
35678         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
35679
35680 2002-04-09  Jim Meyering  <meyering@lucent.com>
35681
35682         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
35683         to be more precise.  Rather than saying we're checking whether the
35684         function `works', say what we're testing.
35685         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
35686         Reported by Bruno Haible.
35687
35688 2002-03-10  Jim Meyering  <meyering@lucent.com>
35689
35690         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
35691         Suggestion from Santiago Vila.
35692
35693 2002-03-08  Jim Meyering  <meyering@lucent.com>
35694
35695         * lib/rename.c: Mention that this wrapper is needed also on
35696         mips-dec-ultrix4.4 systems.
35697
35698 2002-03-02  Jim Meyering  <meyering@lucent.com>
35699
35700         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
35701         not HAVE_CLOCK_SETTIME.
35702
35703 2002-02-27  Paul Eggert  <eggert@twinsun.com>
35704
35705         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
35706         Check for clock_settime.
35707
35708 2002-02-27  Paul Eggert  <eggert@twinsun.com>
35709
35710         * lib/nanosleep.h: Rename to....
35711         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
35712
35713         * lib/gettime.c: New file.
35714         * lib/settime.c: New file.
35715         * lib/stime.c: Remove.
35716
35717         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
35718         timespec.h.  Remove nanosleep.h.
35719
35720 2002-02-25  Paul Eggert  <eggert@twinsun.com>
35721
35722         * m4/acl.m4: New file.
35723         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
35724         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
35725
35726 2002-02-25  Paul Eggert  <eggert@twinsun.com>
35727
35728         * lib/acl.c, lib/acl.h: New files.
35729         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
35730
35731 2002-02-24  Jim Meyering  <meyering@lucent.com>
35732
35733         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
35734         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
35735         cause trouble.  Reported by Nelson Beebe.
35736
35737 2002-02-23  Paul Eggert  <eggert@twinsun.com>
35738
35739         * lib/path-concat.c (xpath_concat): Reorder code to pacify
35740         compilers that don't know that xalloc_die never returns.
35741
35742 2002-02-20  Jim Meyering  <meyering@lucent.com>
35743
35744         * lib/getdate.c: Regenerate using bison-1.33.
35745
35746 2002-02-17  Jim Meyering  <meyering@lucent.com>
35747
35748         * config/config.guess (main): Don't use `head -1'; it's no longer
35749         portable. Use `sed 1q' instead.
35750
35751 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
35752
35753         * m4/codeset.m4: Upgrade to gettext-0.11.
35754         * m4/gettext.m4: Upgrade to gettext-0.11.
35755         * m4/glibc21.m4: Upgrade to gettext-0.11.
35756         * m4/iconv.m4: Upgrade to gettext-0.11.
35757         * m4/isc-posix.m4: Upgrade to gettext-0.11.
35758         * m4/lcmessage.m4: Upgrade to gettext-0.11.
35759         * m4/lib-ld.m4: New file, from gettext-0.11.
35760         * m4/lib-link.m4: New file, from gettext-0.11.
35761         * m4/lib-prefix.m4: New file, from gettext-0.11.
35762         * m4/progtest.m4: Upgrade to gettext-0.11.
35763
35764 2002-02-15  Paul Eggert  <eggert@twinsun.com>
35765
35766         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
35767         (jm_PREREQ): Use it.
35768
35769 2002-02-15  Paul Eggert  <eggert@twinsun.com>
35770
35771         * lib/posixver.c, lib/posixver.h: New files.
35772         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
35773
35774 2002-02-02  Paul Eggert  <eggert@twinsun.com>
35775             Bruno Haible  <bruno@clisp.org>
35776
35777         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
35778         (fwrite_success_callback): New declaration.
35779         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
35780         print_unicode_char. Call failure callback instead of error.
35781         (fwrite_success_callback): New function.
35782         (exit_failure_callback): New function.
35783         (fallback_failure_callback): New function.
35784         (print_unicode_char): Call unicode_to_mb.
35785
35786 2002-01-26  Jim Meyering  <meyering@lucent.com>
35787
35788         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
35789         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
35790
35791 2002-01-26  Jim Meyering  <meyering@lucent.com>
35792
35793         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
35794
35795 2002-01-22  Paul Eggert  <eggert@twinsun.com>
35796
35797         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
35798
35799 2002-01-22  Jim Meyering  <meyering@lucent.com>
35800
35801         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
35802         Otherwise, some versions of automake would omit the rule that makes
35803         Makefile from Makefile.in.
35804
35805 2002-01-21  Paul Eggert  <eggert@twinsun.com>
35806
35807         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
35808         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
35809         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
35810         (memcoll): Set errno to zero if there is no error.
35811
35812         * lib/quotearg.c (quotearg_buffer_restyled):
35813         Fix bug with quoting buffers containing NUL when backslashing escapes.
35814         This bug was exposed by the other changes in this patch.
35815         (quotearg_n_options): New arg ARGSIZE.
35816         All callers changed.
35817         (quoting_options_from_style): New function.
35818         (quotearg_n_style): Use it.
35819         (quotearg_n_style_mem): New function.
35820
35821         * lib/quotearg.h (quotearg_n_style_mem): New function.
35822
35823 2002-01-19  Jim Meyering  <meyering@lucent.com>
35824
35825         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
35826         Remove useless quotes: DF_PROG="df".
35827         * m4/strnlen.m4: New file.
35828
35829 2002-01-16  Paul Eggert  <eggert@twinsun.com>
35830
35831         * lib/backupfile.c (ISDIGIT): Comment fix.
35832         * lib/getdate.y (ISDIGIT): Likewise.
35833         * lib/posixtm.c (ISDIGIT, year): Likewise.
35834         * lib/strverscmp.c (ISDIGIT): Likewise.
35835         * lib/userspec.c (ISDIGIT): Likewise.
35836
35837 2002-01-16  Jim Meyering  <meyering@lucent.com>
35838
35839         * lib/getdate.y: Add three semicolons, each just before a closing
35840         brace. Bison (as of version 1.31) no longer papers over that mistake.
35841
35842 2002-01-05  Jim Meyering  <meyering@lucent.com>
35843
35844         * lib/version-etc.c (version_etc_copyright): Update copyright year.
35845
35846 2001-12-19  Paul Eggert  <eggert@twinsun.com>
35847
35848         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
35849         not silently exit merely because the output buffer happens to
35850         have nothing pending.
35851
35852 2001-12-18  Paul Eggert  <eggert@twinsun.com>
35853
35854         See the big note in ../ChangeLog.
35855         * lib/human.c (suffixes): Prefer K to k for 1024.
35856         (generate_suffix_backwards): New function.
35857         (human_readable_inexact): Use it.
35858         * lib/xstrtol.c (__xstrtol): If there is no number but there
35859         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
35860         Accept 'K' as well as 'k'.
35861
35862 2001-12-15  Jim Meyering  <meyering@lucent.com>
35863
35864         * lib/regex.h (__restrict_arr): Update from libc.
35865
35866         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
35867         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
35868         (STREQ): Define.
35869
35870 2001-12-14  Jim Meyering  <meyering@lucent.com>
35871
35872         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
35873         Suggestion from Bruno Haible.
35874
35875 2001-12-10  Jim Meyering  <meyering@lucent.com>
35876
35877         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
35878         xrealloc, Instead, include "xalloc.h".
35879         (initbuffer): Don't cast xmalloc return value to char*.
35880         (readline): Reword comment.
35881         Don't cast xrealloc return value to char*
35882         Return NULL, not 0.
35883
35884 2001-12-09  Jim Meyering  <meyering@lucent.com>
35885
35886         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
35887         about `signed and unsigned type in conditional expression'.
35888         * lib/posixtm.c (posix_time_parse): Likewise.
35889
35890         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
35891
35892         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
35893         to avoid a pedantic warning.
35894
35895         * lib/getstr.c: Don't include assert.h.
35896         (getstr): Remove warning-evoking assertions.
35897         Return -1 if offset parameter is out of bounds.
35898         Change the type of a local from int to size_t.
35899
35900         * lib/strftime.c (my_strftime_localtime_r): Include this function
35901         definition in the `#if ! HAVE_TM_GMTOFF' block.
35902
35903         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
35904         Include xalloc.h instead.
35905
35906 2001-12-02  Jim Meyering  <meyering@lucent.com>
35907
35908         * lib/tempname.c: Don't declare getenv, thus reverting the change of
35909         2001-11-18.  It's no longer necessary, now that stdlib.h is always
35910         included.
35911
35912         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
35913         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
35914
35915 2001-11-30  Akim Demaille  <akim@epita.fr>
35916
35917         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
35918         before being defined.
35919
35920 2001-11-27  Paul Eggert  <eggert@twinsun.com>
35921
35922         * lib/quotearg.h (quotearg_n, quotearg_n_style):
35923         First arg is int, not unsigned.
35924         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
35925         (SIZE_MAX, UINT_MAX): New macros.
35926         (quotearg_n_options): Abort if N is negative.
35927         Avoid overflow check on hosts where size_t is 64 bits and int
35928         is 32 bits, as overflow is impossible there.
35929         Fix off-by-one typo that caused unnecessary reallocation.
35930
35931 2001-11-27  Jim Meyering  <meyering@lucent.com>
35932
35933         * lib/tempname.c: Merge with version from libc.
35934         * lib/regex.c: Likewise.
35935
35936         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
35937         systems for which STDC_HEADERS is 0, it was not included, resulting in
35938         a warning about an integer-to-pointer conversion problem with getenv.
35939         Reported by Volker Borchert.
35940
35941 2001-11-26  Jim Meyering  <meyering@lucent.com>
35942
35943         * lib/gtod.h: Remove file.
35944         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
35945         * lib/gettimeofday.c: Don't include gtod.h.
35946         (GTOD_init): Remove function.
35947         (rpl_gettimeofday): Do its job here instead, rather than aborting.
35948         Suggestion from Volker Borchert.
35949
35950 2001-11-23  Jim Meyering  <meyering@lucent.com>
35951
35952         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
35953         it.
35954         * lib/hash.c (struct hash_table): Define it here instead.
35955
35956 2001-11-22  Jim Meyering  <meyering@lucent.com>
35957
35958         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
35959
35960 2001-11-20  Jim Meyering  <meyering@lucent.com>
35961
35962         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
35963         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
35964
35965 2001-11-19  Jim Meyering  <meyering@lucent.com>
35966
35967         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
35968         directory.  Use "conftestXXXXXX" as the template.
35969         Suggestion from Paul Eggert.
35970
35971         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
35972         immediately, so the test doesn't mistakenly hit the max-open-files
35973         limit.
35974
35975 2001-11-18  Paul Eggert  <eggert@twinsun.com>
35976
35977         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
35978         (TEMPORARIES): New macro.
35979         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
35980         removes an artificial limitation (e.g. HP-UX 10.20, where
35981         TMP_MAX is 17576).
35982
35983 2001-11-18  Jim Meyering  <meyering@lucent.com>
35984
35985         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
35986
35987 2001-11-18  Jim Meyering  <meyering@lucent.com>
35988
35989         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
35990         on SunOS 4.
35991
35992         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
35993         files will be created before anything else.
35994
35995 2001-11-17  Paul Eggert  <eggert@twinsun.com>
35996
35997         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
35998         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
35999
36000 2001-11-17  Jim Meyering  <meyering@lucent.com>
36001
36002         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
36003         Prompted by a report from Bob Proulx.
36004
36005         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
36006         Instead, require UTILS_FUNC_MKSTEMP.
36007
36008 2001-11-17  Jim Meyering  <meyering@lucent.com>
36009
36010         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
36011         Now, that's done as part of AC_FUNC_STRTOD.
36012
36013 2001-11-17  Jim Meyering  <meyering@lucent.com>
36014
36015         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
36016         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
36017         rather than group writable.  Patch by Juan F. Codagnone.
36018
36019         * lib/readtokens.c: Remove explicit declarations of xmalloc and
36020         xrealloc, Instead, include "xalloc.h".
36021
36022         * lib/mountlist.c: Include unlocked-io.h after all system headers.
36023         Remove explicit declarations of xmalloc, xrealloc,
36024         and xstrdup.  Instead, include "xalloc.h".
36025
36026         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
36027         unlocked-io.h.
36028         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
36029         Likewise.
36030         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
36031
36032         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
36033         Reported by Padraig Brady.
36034
36035         * lib/mkstemp.c: #undef mkstemp.
36036         Include config.h.
36037         (rpl_mkstemp): Rename from mkstemp.
36038         Protoize.
36039
36040 2001-11-16  Jim Meyering  <meyering@lucent.com>
36041
36042         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
36043         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
36044         determine the amount of total physical memory, use pstat_getstatic.
36045         HPUX-11 doesn't define _SC_PHYS_PAGES.
36046         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
36047         If sysconf couldn't be used to determine the amount of available
36048         physical memory, use both pstat_getstatic and pstat_getdynamic.
36049         Based on a patch from Bob Proulx.
36050
36051 2001-11-10  Jim Meyering  <meyering@lucent.com>
36052
36053         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
36054         (jm_PREREQ): Use it.
36055
36056 2001-11-09  Jim Meyering  <meyering@lucent.com>
36057
36058         * m4/jm-macros.m4: Require autoconf-2.52f.
36059         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
36060         Use these AC_-prefixed names, not the AM_-prefixed ones.
36061
36062         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
36063
36064 2001-11-05  Jim Meyering  <meyering@lucent.com>
36065
36066         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
36067
36068 2001-11-04  Jim Meyering  <meyering@lucent.com>
36069
36070         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
36071         $DEFS.
36072
36073 2001-11-03  Jim Meyering  <meyering@lucent.com>
36074
36075         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
36076         of AC_DEFUN.
36077
36078         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
36079         know the name of the variable in the macro definition.
36080
36081 2001-11-03  Jim Meyering  <meyering@lucent.com>
36082
36083         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
36084         in argmatch_to_argument call.
36085
36086         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
36087         argument.
36088
36089         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
36090         e.g., a fault due to an attempt to free a NULL pointer.
36091
36092 2001-11-01  Jim Meyering  <meyering@lucent.com>
36093
36094         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
36095         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
36096
36097 2001-11-01  Jim Meyering  <meyering@lucent.com>
36098
36099         * lib/dirfd.c, lib/dirfd.h: New files.
36100         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
36101
36102         * lib/hash.c (hash_print) [TESTING]: Clean up.
36103
36104 2001-10-22  Paul Eggert  <eggert@twinsun.com>
36105
36106         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
36107         to avoid a warning if -Wall.
36108
36109 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
36110
36111         * README: New file
36112         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
36113         (per RMS's instructions, this is now the canonical source)
36114         * lgpl/, gpl/: New directories.
36115
36116 2001-10-21  Paul Eggert  <eggert@twinsun.com>
36117
36118         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
36119
36120 2001-10-21  Jim Meyering  <meyering@lucent.com>
36121
36122         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
36123         this code would end up calling gettext even in packages built
36124         with --disable-nls.
36125         * lib/getopt.c (_): Likewise.
36126         * lib/regex.c (_): Likewise.
36127
36128 2001-10-20  Paul Eggert  <eggert@twinsun.com>
36129
36130         * m4/error.m4 (jm_PREREQ_ERROR):
36131         Do not invoke AC_CHECK_FUNCS with strerror_r, as
36132         AC_FUNC_STRERROR_R does that.
36133         Check for strerror declaration.
36134
36135         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
36136         are supposed to have them these days.
36137         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
36138         Merge changes from latest Autoconf CVS.
36139         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
36140         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
36141         POSIX decided to standardize on the int flavor of strerror_r.
36142
36143 2001-10-20  Paul Eggert  <eggert@twinsun.com>
36144
36145         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
36146         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
36147         Use strerror_r that is only a macro, even if it is not a function.
36148         (strerror): Check for HAVE_DECL_STRERROR before declaring.
36149         (private_strerror): Use prototypes, not old-style function definition.
36150         (print_errno_message): New function.
36151         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
36152         char*-flavored one.
36153         (error_tail, error, error_at_line): Use it.
36154
36155 2001-10-11  Jim Meyering  <meyering@lucent.com>
36156
36157         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
36158         and quote_n (1, ... to avoid clobbering a buffer.
36159
36160 2001-10-05  Jim Meyering  <meyering@lucent.com>
36161
36162         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
36163         hash-pjw.h.
36164         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
36165         * lib/hash-pjw.h: New file.
36166
36167 2001-09-30  Jim Meyering  <meyering@lucent.com>
36168
36169         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
36170         `struct fsstat' has the `f_fstypename' member.
36171         Use that to define FS_TYPE, which is now used to make
36172         the getfsstat link test tighter.
36173
36174 2001-09-30  Jim Meyering  <meyering@lucent.com>
36175
36176         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
36177         Include <sys/ucred.h>, for Apple Darwin.
36178         Include sys/mount.h and sys/fs_types.h only if available.
36179         (FS_TYPE): Define.
36180         (read_filesystem_list): Use FS_TYPE.
36181
36182 2001-09-29  Paul Eggert  <eggert@twinsun.com>
36183
36184         * lib/exclude.c (excluded_filename): 0 -> false, since it's
36185         a boolean context.
36186
36187 2001-09-29  Jim Meyering  <meyering@lucent.com>
36188
36189         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
36190         [one-argument getmntent function]): Include stdio.h before mntent.h.
36191         SunOS 4.1.x needs it for the declaration of `FILE'.
36192         Patch by Volker Borchert.
36193
36194         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
36195         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
36196         sys/fs_types.h, and make the link-test for getfsstat guard #include
36197         directives with appropriate #if HAVE_*_H tests so that we can
36198         detect getfsstat on Apple Darwin1.3.7 systems.
36199         Reported by Nelson Beebe.
36200         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
36201
36202 2001-09-28  Paul Eggert  <eggert@twinsun.com>
36203
36204         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
36205         #defines strtoimax.  Also treat the other strto* functions
36206         like strtoimax.
36207
36208         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
36209         Check for strtoul and strtoumax,
36210         as those declarations are made even in the signed case.
36211         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
36212         Likewise, for strtol and strtoimax.
36213
36214 2001-09-28  Paul Eggert  <eggert@twinsun.com>
36215
36216         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
36217         #defines strtoimax.  Also treat the other strto* functions
36218         like strtoimax.
36219
36220         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
36221         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
36222         (strtoimax, strtoumax): Do not declare if already defined as a macro.
36223
36224 2001-09-26  Jim Meyering  <meyering@lucent.com>
36225
36226         Most macros in unlocked-io.h had the wrong number of arguments.
36227         * lib/gen-uio: New script.
36228         (USE_UNLOCKED_IO): Define to 1 if not already defined.
36229         * lib/unlocked-io.hin: Remove file.
36230         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
36231         rather than trying to embed it here.
36232         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
36233         Reported by Padraig Brady.
36234
36235 2001-09-25  Volker Borchert  <bt@teknon.de>
36236
36237         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
36238         `result'.
36239
36240 2001-09-24  Jim Meyering  <meyering@lucent.com>
36241
36242         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
36243
36244 2001-09-23  Jim Meyering  <meyering@lucent.com>
36245
36246         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
36247         instead of the mere test for existence of mntent.h.  The latter
36248         would get a false-positive on AIX 3.4 systems.
36249         In the outer getmntent if-block, don't die if neither of the getmntent
36250         tests succeeds.  Instead, just fall through and continue with the
36251         remaining tests.
36252
36253 2001-09-23  Jim Meyering  <meyering@lucent.com>
36254
36255         * lib/mountlist.c: Remove useless parentheses in #if directives.
36256         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
36257         the deprecated MOUNTED symbol is no longer defined in mntent.h.
36258
36259 2001-09-22  Jim Meyering  <meyering@lucent.com>
36260
36261         * m4/gettext.m4: New file.  From gettext.
36262         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
36263         * m4/progtest.m4: Likewise
36264         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
36265         * m4/glibc21.m4: Likewise.
36266
36267         * m4/libintl.m4: Remove.  No longer used.
36268
36269 2001-09-22  Jim Meyering  <meyering@lucent.com>
36270
36271         * lib/localcharset.c: Update from latest gettext.
36272         * lib/config.charset: Likewise.
36273
36274 2001-09-20  Jim Meyering  <meyering@lucent.com>
36275
36276         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
36277         strtoimax.
36278         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
36279         strtoumax.
36280
36281 2001-09-20  Jim Meyering  <meyering@lucent.com>
36282
36283         * lib/xstrtol.c (strtoimax): Guard declaration with
36284         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
36285         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
36286         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
36287         (strtoumax): Likewise, for completeness (it wasn't necessary).
36288
36289 2001-09-17  Paul Eggert  <eggert@twinsun.com>
36290
36291         * lib/strtoimax.c (HAVE_LONG_LONG):
36292         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
36293         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
36294         to work around bug in IBM C compiler.
36295
36296 2001-09-17  Jim Meyering  <meyering@lucent.com>
36297
36298         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
36299         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
36300         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
36301         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
36302         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
36303         whenever the right hand side need not be expanded by the shell.
36304
36305 2001-09-16  Paul Eggert  <eggert@twinsun.com>
36306
36307         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
36308         library.  It's not correct, as some older glibcs are buggy.
36309         fnmatch wasn't fixed until glibc 2.2.
36310
36311         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
36312         special shell magic here.
36313
36314 2001-09-16  Jim Meyering  <meyering@lucent.com>
36315
36316         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
36317         * m4/jm-macros.m4: Require it.
36318
36319 2001-09-16  Jim Meyering  <meyering@lucent.com>
36320
36321         * lib/mkdir.c: New file.
36322
36323 2001-09-15  Jim Meyering  <meyering@lucent.com>
36324
36325         * m4/jm-macros.m4: Check for help2man.
36326
36327 2001-09-11  Jim Meyering  <meyering@lucent.com>
36328
36329         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
36330         The body, by Paul Eggert, was moved here from configure.in.
36331         * m4/jm-macros.m4: Require UTILS_HOST_OS.
36332
36333 2001-09-04  Paul Eggert  <eggert@twinsun.com>
36334
36335         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
36336         (jm_PREREQ): Use it.
36337
36338 2001-09-04  Paul Eggert  <eggert@twinsun.com>
36339
36340         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
36341         Use ssize_t, not int, to store result of readlink.
36342         Check for ssize_t overflow as well as size_t overflow,
36343         as POSIX says the result of readlink is implementation-defined
36344         when ssize_t overflows.
36345         Remove unnecessary cast to char*.
36346         Use free+malloc instead of realloc, as the storage doesn't need
36347         to be preserved and it's clearer and can be more efficient that way.
36348         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
36349         * lib/xreadlink.h (xreadlink): Update prototype.
36350
36351 2001-09-04  Paul Eggert  <eggert@twinsun.com>
36352
36353         * lib/xgetcwd.c: Revert some of the previous change; intead,
36354         fix the HAVE_GETCWD_NULL code to behave more like the
36355         !HAVE_GETCWD_NULL code used to.
36356
36357         Include "xalloc.h".
36358         (xgetcwd): Do not return NULL when memory is exhausted; instead,
36359         invoke xalloc_die.
36360
36361 2001-09-03  Paul Eggert  <eggert@twinsun.com>
36362
36363         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
36364         sys/param.h, as pathmax.h includes them.
36365
36366 2001-09-03  Paul Eggert  <eggert@twinsun.com>
36367
36368         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
36369         (jm_PREREQ_XGETCWD): New macro.
36370
36371         * m4/getcwd.m4: New file.
36372
36373 2001-09-03  Paul Eggert  <eggert@twinsun.com>
36374
36375         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
36376         like the HAVE_GETCWD_NULL code.
36377         Include pathmax.h if not HAVE_GETCWD.
36378         Do not include xalloc.h.
36379         (INITIAL_BUFFER_SIZE): New symbol.
36380         Do not use xmalloc / xrealloc, since the caller is responsible for
36381         handling errors.  Preserve errno around `free' during failure.
36382         Do not overrun buffer when using getwd.
36383
36384 2001-09-03  Paul Eggert  <eggert@twinsun.com>
36385
36386         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
36387         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
36388         getcwd (NULL, 0).
36389
36390 2001-09-03  Paul Eggert  <eggert@twinsun.com>
36391
36392         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
36393         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
36394         spotted by Jim Meyering.
36395
36396 2001-09-03  Jim Meyering  <meyering@lucent.com>
36397
36398         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
36399         failure.
36400
36401 2001-09-02  Jim Meyering  <meyering@lucent.com>
36402
36403         * lib/error.c: Update from GNU libc.
36404
36405 2001-09-01  Jim Meyering  <meyering@lucent.com>
36406
36407         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
36408         Used by df.
36409
36410 2001-09-01  Jim Meyering  <meyering@lucent.com>
36411
36412         * lib/xreadlink.c: New file.
36413         * lib/xreadlink.h: New file.
36414         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
36415         xreadlink.h.
36416
36417         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
36418         doesn't conflict with sparc Solaris 7's definition in
36419         /usr/include/sys/int_types.h.
36420
36421         * lib/exclude.c: Use `""', not `<>' to #include non-system header
36422         files.
36423         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
36424         and strncasecmp as r-values.  Unixware didn't have declarations.
36425
36426 2001-08-31  Paul Eggert  <eggert@twinsun.com>
36427
36428         * lib/xstrtol.h: Add copyright notice.
36429         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
36430         LONGINT_INVALID_SUFFIX_CHAR.
36431
36432 2001-08-31  Paul Eggert  <eggert@twinsun.com>
36433
36434         * lib/xstrtol.c (strtoimax): New decl.
36435
36436 2001-08-31  Paul Eggert  <eggert@twinsun.com>
36437
36438         * lib/xgetcwd.c: Don't include pathmax.h.
36439         Include stdlib.h and unistd.h if available.
36440         Include xalloc.h.
36441         (xmalloc, xstrdup, free): Remove decls.
36442         (xgetcwd): Don't assume sizes fit in unsigned.
36443         Check for overflow when computing sizes.
36444         Simplify reallocation code.
36445
36446 2001-08-31  Paul Eggert  <eggert@twinsun.com>
36447
36448         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
36449         a directory's st_size can have an arbitrary value, so the old
36450         usage could waste an arbitrary amount of memory.  All uses
36451         changed.
36452         * lib/savedir.h: Update prototype.
36453
36454 2001-08-31  Paul Eggert  <eggert@twinsun.com>
36455
36456         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
36457
36458         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
36459         old strtoimax.c.
36460
36461         Also, make the following further changes to make this file's
36462         configuration more similar to that of strtol.c:
36463         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
36464         (strtoumax, uintmax_t, strtoull, strtol): Remove.
36465         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
36466         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
36467         changed to signed values.
36468
36469         And make the following changes as well:
36470         Fix copyright notice, as 1999 was missing.
36471         (verify): New macro.
36472         (strtoimax): Check sizes at compile-time, not run-time.
36473         Prefer strtol to strtoll if both work.
36474         (main): Remove; it was not that useful and was a pain to maintain.
36475
36476         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
36477
36478 2001-08-31  Jim Meyering  <meyering@lucent.com>
36479
36480         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
36481         Use an initial, malloc'd, buffer of length 128 rather than
36482         a statically allocated one of length 1024.
36483
36484 2001-08-30  Paul Eggert  <eggert@twinsun.com>
36485
36486         Simplify code, partly by assuming autoconf 2.52 semantics.
36487
36488         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
36489
36490         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
36491         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
36492         All uses removed.
36493         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
36494         Move AC_REQUIRE to next-to-top level, to avoid confusion.
36495         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
36496         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
36497         jm_AC_HEADER_INTTYPES_H.
36498         * m4/jm-macros.m4 (jm_MACROS): Likewise.
36499
36500         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
36501
36502         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
36503         Quote first arg of AC_DEFUN.
36504         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
36505         since they are needed to parse the include file even if we need
36506         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
36507         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
36508         but with opposite signedness.
36509
36510 2001-08-30  Paul Eggert  <eggert@twinsun.com>
36511
36512         Merge 'exclude' changes from tar 1.13.22.
36513         This fixes one or two unlikely storage allocation overflow bugs,
36514         but doesn't change user-visible behavior otherwise.
36515
36516 2001-08-30  Paul Eggert  <eggert@twinsun.com>
36517
36518         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
36519         (jm_PREREQ_EXCLUDE): New macro.
36520
36521 2001-08-30  Paul Eggert  <eggert@twinsun.com>
36522
36523         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
36524         tm to be declared.
36525
36526 2001-08-30  Paul Eggert  <eggert@twinsun.com>
36527
36528         * lib/hash.c: Remove '2001' from copyright notice.
36529
36530 2001-08-30  Paul Eggert  <eggert@twinsun.com>
36531
36532         * lib/full-write.h: New file.
36533         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
36534         * lib/full-write.c: Correct credits, as cccp.c no longer
36535         exists and anyway it was so heavily changed from the old cccp
36536         code as to be unrecognizable.  Include full-write.h.
36537         (full_write) Return size_t, with short writes meaning failure.
36538         All callers changed.  This fixes a bug with large buffers
36539         on 64-bit hosts.
36540         * lib/utime.c: Include full-write.h.
36541
36542 2001-08-30  Paul Eggert  <eggert@twinsun.com>
36543
36544         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
36545         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
36546         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
36547         Include if available.
36548         (<xalloc.h>): Include
36549         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
36550         (verify): New macro.  Use it to verify that EXCLUDE macros do not
36551         collide with FNM macros.
36552         (struct patopts): New struct.
36553         (struct exclude): Use it, as exclude patterns now come with options.
36554         (new_exclude): Support above changes.
36555         (new_exclude, add_exclude_file):
36556         Initial size must now be a power of two to simplify overflow checking.
36557         (free_exclude, fnmatch_no_wildcards): New function.
36558         (excluded_filename): No longer requires options arg, as the options
36559         are determined by add_exclude.  Now returns bool, not int.
36560         (excluded_filename, add_exclude):
36561         Add support for the fancy new exclusion options.
36562         (add_exclude, add_exclude_file): Now takes int options arg.
36563         Check for arithmetic overflow when computing sizes.
36564         (add_exclude_file): xrealloc might modify errno, so don't
36565         realloc until after errno might be used.
36566
36567         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
36568         New macros.
36569         (free_exclude): New decl.
36570         (add_exclude, add_exclude_file): Now takes int options arg.
36571         (excluded_filename): No longer requires options arg, as the options
36572         are determined by add_exclude.  Now returns bool, not int.
36573
36574 2001-08-30  Paul Eggert  <eggert@twinsun.com>
36575
36576         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
36577
36578 2001-08-27  Jim Meyering  <meyering@lucent.com>
36579
36580         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
36581
36582         * lib/version-etc.c (N_): Remove definition.
36583         Revert most of last change.
36584         Instead, simply don't mark the `Copyright...' string for translation.
36585         Based on advice from Paul Eggert.
36586
36587         * lib/strtoxmax.c: Tweak comment.
36588
36589 2001-08-26  Jim Meyering  <meyering@lucent.com>
36590
36591         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
36592
36593         * m4/xstrtoimax.m4: New file.
36594         * m4/xstrtoumax.m4: Add comments explaining why we
36595         AC_REPLACE_FUNCS(strtol).
36596
36597 2001-08-26  Jim Meyering  <meyering@lucent.com>
36598
36599         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
36600         of copyright with `%s' so translators don't get an untranslated
36601         message in 2002.
36602         (COPYRIGHT_YEAR): Define.
36603         (version_etc): Use fprintf rather than fputs.
36604         Suggestion from Ulrich Drepper.
36605
36606         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
36607
36608         * lib/strtoll.c: New file, from GNU libc.
36609         * lib/xstrtoimax.c: New file.
36610
36611         * lib/xstrtol.h: Add xstrtoimax.
36612         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
36613         * lib/strtoimax.c: New file.  Likewise, but first define
36614         STRTOUXMAX_SIGNED.
36615
36616         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
36617         ...
36618         * lib/strtoxmax.c: ... then renamed to this.
36619
36620 2001-08-18  Paul Eggert  <eggert@twinsun.com>
36621
36622         * m4/inttypes.m4: Add AC_PREREQ(2.13).
36623         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
36624         (jm_AC_TYPE_INTMAX_T): New macro.
36625         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
36626
36627         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
36628
36629         * m4/longlong.m4: Renamed from ulonglong.m4.
36630         * m4/inttypes.m4: Renamed from inttypes_h.m4.
36631         * m4/uintmax_t.m4: Removed.
36632
36633 2001-08-13  Paul Eggert  <eggert@twinsun.com>
36634
36635         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
36636         Port to Solaris 8, where 'sed' requires a space after the 'r'
36637         command, and where sh dislikes "$/".  Clean up the spacing a bit.
36638         Redirect output to $tmp just once.
36639
36640 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
36641
36642         * lib/addext.c (<errno.h>): Include.
36643         (errno): Declare if not defined.
36644         (addext): Work correctly when pathconf returns -1 and leaves
36645         errno alone because there is no limit.  Also, work even if
36646         pathconf returns a value greater than SIZE_MAX.
36647
36648 2001-08-12  Jim Meyering  <meyering@lucent.com>
36649
36650         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
36651         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
36652         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
36653         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
36654         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
36655         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
36656         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
36657         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
36658         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
36659         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
36660         utime.m4, utimes.m4, xstrtoumax.m4:
36661         Quote the first argument in each use of AC_DEFUN.
36662
36663 2001-08-12  Jim Meyering  <meyering@lucent.com>
36664
36665         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
36666         Simply `return getcwd (NULL, 0);'.
36667         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
36668         Use 1300 as initial value for length, not PATH_MAX.
36669
36670         * lib/pathmax.h: Clean up cpp syntax.
36671
36672 2001-08-12  Jim Meyering  <meyering@lucent.com>
36673
36674         * lib/gettimeofday.c: New file.
36675         * lib/gtod.h: New file.
36676         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
36677
36678 2001-08-05  Jim Meyering  <meyering@lucent.com>
36679
36680         * m4/jm-macros.m4: Require autoconf-2.52.
36681
36682 2001-08-04  Jim Meyering  <meyering@lucent.com>
36683
36684         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
36685         stmt, to get in sync with glibc.
36686
36687 2001-08-03  Paul Eggert  <eggert@twinsun.com>
36688
36689         The following changes are from gettext 0.10.39 as maintained by
36690         Bruno Haible.
36691
36692         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
36693         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
36694         with inverted sense.  All uses changed.
36695
36696         * lib/mbswidth.c: Don't include <limits.h>.
36697         Include <stdlib.h> and <string.h> unconditionally.
36698         (iswcntrl, mbsinit, ISCNTRL): New macros.
36699         (mbsnwidth): Use K&R style function declarations.
36700         Don't bother checking for MB_LEN_MAX == 1, since the compiler
36701         can optimize it when MB_CUR_MAX == 1.
36702         The width of control characters is zero, not 1.
36703
36704 2001-08-03  Paul Eggert  <eggert@twinsun.com>
36705
36706         The following changes are from gettext 0.10.39 as maintained by
36707         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
36708
36709         * m4/codeset.m4: Upgrade to serial AM1.
36710         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
36711         all uses changed.  Quote first arg of AC_DEFUN.
36712         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
36713
36714         * m4/iconv.m4: Upgrade to serial AM2.
36715         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
36716         Add --with-libconv-prefix.
36717         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
36718         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
36719         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
36720         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
36721         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
36722
36723         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
36724         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
36725         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
36726         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
36727         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
36728         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
36729         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
36730         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
36731         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
36732
36733         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
36734         string.h any more.
36735
36736         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
36737         not the default value.
36738
36739         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
36740         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
36741         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
36742         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
36743         Also check for iswcntrl, used for wcwidth fallback.
36744         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
36745         to Autoconf 2.13.
36746
36747 2001-08-03  Jim Meyering  <meyering@lucent.com>
36748
36749         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
36750         as it was in the original.  Reported by Paul Eggert.
36751
36752 2001-07-16  Jim Meyering  <meyering@lucent.com>
36753
36754         * m4/gettimeofday.m4: New file.
36755         Prompted by a report from Bernhard Baehr.
36756
36757 2001-07-15  Jim Meyering  <meyering@lucent.com>
36758
36759         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
36760         stuff. Now it's in ../Makefile.cfg.
36761
36762 2001-07-15  Jim Meyering  <meyering@lucent.com>
36763
36764         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
36765         (BUILT_SOURCES): Add unlocked-io.h.
36766         (io_functions): Define.
36767         (unlocked-io.h): New rule.
36768         (DISTCLEANFILES): Add unlocked-io.h.
36769         (all-local): Depend on unlocked-io.h, to ensure it is created.
36770
36771         * lib/unlocked-io.hin: New file
36772
36773         * lib/regex.c: Update from glibc.
36774
36775 2001-07-05  Jim Meyering  <meyering@lucent.com>
36776
36777         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
36778         recommendation.
36779         (libfetish_a_SOURCES): Put all .h files here instead.
36780         Remove a thus-exposed (better checks in automake) duplicate and
36781         two unnecessary .h files.
36782
36783 2001-07-04  Jim Meyering  <meyering@lucent.com>
36784
36785         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
36786         that generates jm-glibc-io.m4 so that it doesn't trigger any make
36787         distcheck failure.
36788
36789 2001-07-02  Jim Meyering  <meyering@lucent.com>
36790
36791         The following changes were prompted by suggestions from Bruno Haible.
36792
36793         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
36794         is now generated.
36795         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
36796         definition of EXTRA_DIST.
36797         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
36798         ensure that the generated file is created/updated whenever the list
36799         of $(unlocked_functions) is changed.
36800         (jm-glibc-io.m4): New rule.
36801         (unlocked-io.h): New rule -- currently unused.
36802
36803 2001-06-24  Jim Meyering  <meyering@lucent.com>
36804
36805         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
36806         unmatched right bracket, rather than kludging it with an extra,
36807         falsely-matching quote in a comment.  Patch by Akim Demaille.
36808
36809 2001-06-11  Jim Meyering  <meyering@lucent.com>
36810
36811         * lib/regex.c: Update from GNU libc.
36812
36813 2001-05-27  Jim Meyering  <meyering@lucent.com>
36814
36815         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
36816         Check for ut_type in struct utmp.
36817
36818 2001-05-27  Jim Meyering  <meyering@lucent.com>
36819
36820         * lib/readutmp.h (UT_TYPE): Define.
36821
36822 2001-05-24  Jim Meyering  <meyering@lucent.com>
36823
36824         * lib/argmatch.c: Include "quote.h".
36825         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
36826         quote function.  Reported by Göran Uddeborg.
36827
36828 2001-05-22  Jim Meyering  <meyering@lucent.com>
36829
36830         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
36831         now that we use the package-supplied version unconditionally.
36832         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
36833
36834 2001-05-21  Jim Meyering  <meyering@lucent.com>
36835
36836         * m4/regex.m4: Change a couple backticks to single quotes to avoid
36837         shell syntax errors.
36838
36839 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
36840
36841         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
36842
36843 2001-05-20  Paul Eggert  <eggert@twinsun.com>
36844
36845         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
36846         Don't bother to check library strftime, since
36847         we'll be using our own my_strftime function anyway.
36848         Define my_strftime instead of strftime.
36849
36850 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
36851
36852         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
36853         which is not yet declared.
36854
36855 2001-05-15  Jim Meyering  <meyering@lucent.com>
36856
36857         * m4/regex.m4: Use proper quoting so brackets appear in the test
36858         program.
36859         Reported by, and with help from, Bruno Haible.
36860
36861 2001-05-13  Jim Meyering  <meyering@lucent.com>
36862
36863         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
36864         undefined.
36865
36866 2001-05-11  Paul Eggert  <eggert@twinsun.com>
36867
36868         dirname code cleanup.  base_name now behaves more compatibly
36869         with POSIX basename when given file names that have trailing
36870         slashes, and similarly for dir_name.  Add new primitives
36871         base_len and dir_len.  Put the directory-name-related decls
36872         into dirname.h.
36873
36874         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
36875         * lib/backupfile.c (base_name): Likewise.
36876         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
36877         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
36878         * lib/makepath.c (strip_trailing_slashes): Likewise.
36879         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
36880         ISSLASH): Likewise.
36881         * lib/rename.c (strip_trailing_slashes): Likewise.
36882         * lib/same.c (base_name): Likewise.
36883         * lib/stripslash.c (ISSLASH): Likewise.
36884
36885         * lib/addext.c: Include <dirname.h> after size_t is defined.
36886         * lib/backupfile.c: Likewise.
36887
36888         * lib/addext.c (addext): Use base_len to trim redundant
36889         trailing slashes instead of doing it ourselves.
36890         But do not trim the last slash if it is not redundant.
36891
36892         * lib/backupfile.c (find_backup_file_name,
36893         max_backup_version): Use base_len instead of rolling it ourselves.
36894         Handle the case of "" and (on DOS) "C:" correctly.
36895
36896         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
36897         needed. Include <string.h>, <dirname.h>.
36898         (base_name): Allow file names ending in slashes, other than names
36899         that are all slashes.  In this case, return the basename followed
36900         by the slashes.  This is more general, and can be used in places
36901         where the original base_name purposely had an assertion failure.
36902         (base_len): New function.
36903
36904         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
36905         Do not include <assert.h>; no longer needed.
36906         Include xalloc.h.
36907         (memrchr): Remove decl.
36908         (dir_name_r): Remove.
36909         (dir_len): Renamed from dirlen.  All callers changed.
36910         Rewrite in terms of base_name, for simplicity and consistency.
36911         (dir_name): Never return NULL.  All callers changed.
36912         Do not include <stdlib.h> in test program; no longer needed.
36913         return 0; is fine for test program.
36914
36915         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
36916         New macros.
36917         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
36918
36919         * lib/path-concat.c (path_concat): Use base_len to compute
36920         base length, not strlen; this means we cannot rely on memcpy
36921         to null-terminate.
36922
36923         * lib/same.c (STREQ): Remove.
36924         (same_name): Handle the case where the basename ends in trailing '/'.
36925
36926         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
36927         a slash was stripped.  Do not strip the last slash after a
36928         file system prefix.
36929
36930 2001-05-11  Paul Eggert  <eggert@twinsun.com>
36931
36932         * lib/Makefile.am (libfetish_a_SOURCES):
36933         Add strftime.c, since we now compile it on all hosts.
36934
36935         * lib/strftime.c (my_strftime):
36936         Define to nstrftime if emacs, but only if my_strftime is not defined.
36937         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
36938         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
36939         Add one more extra argument: a nanoseconds value.
36940         All uses changed.
36941         (ns): New macro.
36942         (my_strftime function): Add %N format.
36943         (emacs_strftimeu): Renamed from emacs_strftime,
36944         with extra ut argument.
36945
36946 2001-05-09  Paul Eggert  <eggert@twinsun.com>
36947
36948         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
36949
36950 2001-04-21  Jim Meyering  <meyering@lucent.com>
36951
36952         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
36953         doesn't interfere.
36954
36955 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
36956
36957         * m4/ftruncate.m4: Check for chsize.
36958         Link with ftruncate.o unconditionally if ftruncate is missing.
36959         This was required when cross-compiling to i586-mingw32msvc.
36960
36961 2001-04-08  Jim Meyering  <meyering@lucent.com>
36962
36963         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
36964         recomputed; that's necessary when the offset spans a DST transition.
36965         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
36966
36967 2001-04-02  Jim Meyering  <meyering@lucent.com>
36968
36969         * lib/regex.h, regex.c: Update from GNU libc.
36970
36971 2001-03-24  Jim Meyering  <meyering@lucent.com>
36972
36973         * m4/jm-macros.m4: Require autoconf-2.49d.
36974
36975 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
36976
36977         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
36978
36979 2001-03-19  Paul Eggert  <eggert@twinsun.com>
36980
36981         * lib/version-etc.c (version_etc_copyright): Update to 2001.
36982
36983 2001-03-17  Jim Meyering  <meyering@lucent.com>
36984
36985         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
36986         now that the version in autoconf is equivalent.
36987         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
36988
36989         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
36990         Suggestion from Akim Demaille.
36991
36992         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
36993         (jm_PREREQ_TEMPNAME): New function.
36994
36995 2001-03-16  Paul Eggert  <eggert@twinsun.com>
36996
36997         * lib/tempname.c (uint64_t): Define to uintmax_t if
36998         not defined, and if UINT64_MAX is not defined.
36999         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
37000         Reported by John David Anglin.
37001
37002 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
37003
37004         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
37005         resolve alias if codeset is empty.
37006         * lib/config.charset (BeOS): Use wildcard syntax.
37007
37008 2001-03-13  Jim Meyering  <meyering@lucent.com>
37009
37010         * lib/path-concat.c (path_concat)
37011         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
37012         concatenating e.g., `C:' and `foo'.
37013         From Bruno Haible.
37014
37015 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
37016
37017         * lib/localcharset.c (locale_charset): Don't use
37018         setlocale(LC_CTYPE,NULL). Don't return NULL.
37019         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
37020
37021 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
37022
37023         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
37024         support for DOS/DJGPP.
37025
37026 2001-03-01  Paul Eggert  <eggert@twinsun.com>
37027
37028         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
37029         lacks mkstemp.  Compile our own tempname.c if we compile our own
37030         mkstemp.c, as mkstemp relies on tempname.
37031
37032 2001-03-01  Jim Meyering  <meyering@lucent.com>
37033
37034         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
37035         AH_VERBATIM really does output its argument verbatim.
37036
37037 2001-02-28  Paul Eggert  <eggert@twinsun.com>
37038
37039         * lib/Makefile.am (libfetish_a_SOURCES):
37040         Add dup-safer.c, fopen-safer.c.
37041         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
37042
37043         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
37044         * lib/unistd-safer.h: New files.
37045
37046 2001-02-25  Paul Eggert  <eggert@twinsun.com>
37047
37048         The mkstemp replacement is taken from glibc 2.2.2, with some
37049         portability fixes for use outside glibc, as follows:
37050
37051         * lib/tempname.c (struct_stat64): New macro.
37052         (direxists, __gen_tempname): Use it.
37053         This avoids a portability problem with Solaris 8.
37054
37055         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
37056         (<stddef.h>, <stdint.h>, <string.h>):
37057         Include only if STDC_HEADERS || _LIBC.
37058         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
37059         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
37060         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
37061         (__set_errno): Define this macro if <errno.h> doesn't.
37062         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
37063         Define these macros if <stdio.h> doesn't.
37064         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
37065         Define these macros if <sys/stat.h>
37066         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
37067         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
37068         __xstat64): Define if not _LIBC.
37069         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
37070         (__gen_tempname): Invoke gettimeofday only if
37071         HAVE_GETTIMEOFDAY || _LIBC;
37072         otherwise, fall back on plain "time".
37073         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
37074
37075         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
37076
37077         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
37078
37079 2001-02-18  Paul Eggert  <eggert@twinsun.com>
37080
37081         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
37082
37083 2001-02-17  Paul Eggert  <eggert@twinsun.com>
37084
37085         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
37086         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
37087         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
37088         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
37089
37090 2001-02-17  Paul Eggert  <eggert@twinsun.com>
37091
37092         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
37093         Remove workaround macros for hosts that have mbrtowc but not
37094         mbstate_t, as we now insist on proper declarations for both
37095         before using mbrtowc.
37096
37097 2001-02-17  Jim Meyering  <meyering@lucent.com>
37098
37099         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
37100         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
37101         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
37102         UnixWare 7.1.1.
37103
37104         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
37105         rather than AC_CACHE_VAL.
37106
37107 2001-02-17  Jim Meyering  <meyering@lucent.com>
37108
37109         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
37110         around included file name.
37111
37112         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
37113
37114         * lib/strftime.c: Update from GNU libc (the only changes were to
37115         comments).
37116
37117 2001-02-17  Jim Meyering  <meyering@lucent.com>
37118
37119         * lib/regex.c: Update from libc.
37120
37121 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
37122
37123         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
37124         clash.
37125
37126 2001-02-16  Paul Eggert  <eggert@twinsun.com>
37127
37128         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
37129         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
37130         Reported by Mark Hounschell via Paul Eggert.
37131
37132 2001-02-07  Jim Meyering  <meyering@lucent.com>
37133
37134         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
37135
37136 2001-02-05  Jim Meyering  <meyering@lucent.com>
37137
37138         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
37139         it includes the patch required for `large file' support with at least
37140         HP-UX's 10.20 /bin/cc.
37141
37142 2001-02-03  Jim Meyering  <meyering@lucent.com>
37143
37144         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
37145         AS_IF, now that it works once again (mysteriously).
37146         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
37147
37148 2001-01-30  Jim Meyering  <meyering@lucent.com>
37149
37150         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
37151         * m4/chown.m4: Rename conftestchown to conftest.chown.
37152         * m4/rename.m4: s/conftestdir/conftest.d1/ and
37153         s/conftestdir2/conftest.d2/.
37154         * m4/utimes.m4: s/conftestdata/conftest.data/
37155         Inspired by Pavel Roskin's change in autoconf.
37156
37157 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
37158
37159         * lib/config.charset: Update for FreeBSD 4.2.
37160
37161 2001-01-27  Jim Meyering  <meyering@lucent.com>
37162
37163         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
37164         a use of AS_IF.
37165         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
37166
37167 2001-01-26  Jim Meyering  <meyering@lucent.com>
37168
37169         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
37170         quotearg.c includes it.
37171
37172 2001-01-26  Jim Meyering  <meyering@lucent.com>
37173
37174         * lib/quotearg.c: Include stddef.h.
37175         * lib/quote.c: Include stddef.h.
37176         Reported by Axel Kittenberger.
37177
37178         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
37179         line in double quotes so that it evokes a better diagnostic.
37180         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
37181         Reported by Axel Kittenberger.
37182
37183 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
37184
37185         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
37186         as if it was a `charset'.
37187
37188 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
37189
37190         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
37191         has const.
37192
37193 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
37194
37195         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
37196         to avoid a warning.  Add back 'const' to inptr.
37197
37198 2001-01-20  Jim Meyering  <meyering@lucent.com>
37199
37200         Be sure that headers are checked before used in code compiled
37201         for the type checks.
37202         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
37203         In place of that, invoke jm_CHECK_ALL_TYPES.
37204         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
37205         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
37206         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
37207         The check for ssize_t was mistakenly run before the test for unistd.h.
37208
37209         The configure-time check for stdbool.h was missing.
37210         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
37211         (jm_PREREQ_HASH): New function.
37212
37213 2001-01-17  Jim Meyering  <meyering@lucent.com>
37214
37215         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
37216         for autoconf-2.49c.
37217         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
37218
37219 2001-01-16  Jim Meyering  <meyering@lucent.com>
37220
37221         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
37222         From Bruno Haible.
37223
37224 2001-01-14  Jim Meyering  <meyering@lucent.com>
37225
37226         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
37227         foo and bar.  Create conftestdir/ in the script, not in the C code.
37228         Remove directories in the script, not in the C code.
37229         Remove conftestdir{,2} before trying to create the directory.
37230         Make the entire configure script fail if the mkdir fails.
37231
37232 2001-01-14  Jim Meyering  <meyering@lucent.com>
37233
37234         * lib/rename.c: New file.  From Volker Borchert.
37235         Include stdlib.h, string.h or strings.h, and xalloc.h.
37236         Use strip_trailing_slashes rather than open-coding it.
37237
37238 2001-01-03  Paul Eggert  <eggert@twinsun.com>
37239
37240         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
37241
37242 2001-01-03  Jim Meyering  <meyering@lucent.com>
37243
37244         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
37245         of local `inptr' to avoid warning with some system declarations of
37246         iconv.
37247
37248 2001-01-02  Volker Borchert  <bt@teknon.de>
37249
37250         * m4/rename.m4: New file.
37251         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
37252
37253 2001-01-01  Jim Meyering  <meyering@lucent.com>
37254
37255         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
37256         even on systems with utmpx.h.  It's necessary for the declaration of
37257         utmp's ut_user member.  Reported by Andreas Jaeger.
37258
37259         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
37260         available. They are required for the declarations of getgrgid and
37261         getpwuid resp.
37262         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
37263         Reported by Andreas Jaeger.
37264
37265 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
37266
37267         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
37268         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
37269         so `make install' also works in VPATH builds.
37270
37271 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
37272
37273         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
37274         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
37275         can be used in subdirectories.
37276
37277 2000-12-29  Paul Eggert  <eggert@twinsun.com>
37278
37279         * lib/modechange.c: Do not assume that mode_t uses the
37280         traditional octal encoding.  E.g. "chmod 1 FOO" should set
37281         the other-execute bit of FOO even if S_IXOTH != 1.
37282
37283         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
37284         WOTH, XOTH, ALLM): New macros.
37285         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
37286          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
37287         Use them.
37288         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
37289         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
37290         (mode_compile):
37291         No need to use uintmax_t; unsigned long is long enough.
37292         Don't bother to get suffix since we don't use it.
37293
37294 2000-12-26  Jim Meyering  <meyering@lucent.com>
37295
37296         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
37297         better with autoheader.
37298
37299 2000-12-24  Jim Meyering  <meyering@lucent.com>
37300
37301         * lib/hash.c (is_prime): Return explicit boolean values.
37302         (hash_get_first): Return NULL to appease Irix5.6's 89.
37303         Reported by Nelson Beebe.
37304
37305 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
37306
37307         * lib/localcharset.c (locale_charset): Add support for Win32.
37308
37309 2000-12-18  Paul Eggert  <eggert@twinsun.com>
37310
37311         * lib/physmem.h, lib/physmem.c: New files.
37312
37313         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
37314         (noinst_HEADERS): Add physmem.h.
37315
37316         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
37317         't' for compatibility with Solaris 8 sort.
37318
37319 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
37320
37321         * lib/config.charset: Add support for BeOS.
37322
37323 2000-12-17  Jim Meyering  <meyering@lucent.com>
37324
37325         * m4/dos.m4 (jm_AC_DOS): New file and macro.
37326         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
37327
37328 2000-12-16  Jim Meyering  <meyering@lucent.com>
37329
37330         This bug had a serious impact on chown: `chown N:M FILE' (for integer
37331         N and M) would have treated it like `chown N:N FILE'.
37332
37333         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
37334
37335 2000-12-16  Jim Meyering  <meyering@lucent.com>
37336
37337         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
37338         SHELLS_FILE to a file name that's useful on djgpp systems.
37339         Include stdlib.h.
37340         (ADDITIONAL_DEFAULT_SHELLS): Define.
37341         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
37342         Based mostly on a patch from Prashant TR.
37343
37344 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
37345
37346         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
37347         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
37348         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
37349
37350 2000-12-08  Andreas Schwab  <schwab@suse.de>
37351
37352         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
37353         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
37354
37355 2000-12-07  Jim Meyering  <meyering@lucent.com>
37356
37357         * lib/stripslash.c (ISSLASH): Define.
37358         (strip_trailing_slashes): Use ISSLASH rather than comparing against
37359         `/'.
37360         From Prashant TR.
37361
37362         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
37363         (dir_name_r): Declare this function as static.
37364         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
37365         manifest itself on a name containing a mix of slashes and
37366         backslashes.
37367         Make this function work with names starting with a DOS-style
37368         drive letter and colon prefix.
37369         (dir_name): Append `.' if necessary.
37370         Based mostly on patches from Prashant TR and Eli Zaretskii.
37371
37372         * lib/dirname.h (dir_name_r): Remove prototype.
37373
37374 2000-12-06  Paul Eggert  <eggert@twinsun.com>
37375
37376         * m4/off_t-format.m4: Remove this file.
37377         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
37378
37379 2000-12-06  Jim Meyering  <meyering@lucent.com>
37380
37381         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
37382         replacement strtoull, we may well need the replacement strtoul, too.
37383         Check for declarations of strtoul and strtoull.
37384         Check for strtol.  Mainly as a cue to cause automake to include
37385         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
37386         Check for limits.h -- strtol.c needs it.
37387
37388 2000-12-05  Jim Meyering  <meyering@lucent.com>
37389
37390         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
37391
37392 2000-12-04  Jim Meyering  <meyering@lucent.com>
37393
37394         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
37395         Also include memory.h, stdlib.h, unistd.h if appropriate.
37396         Reported by Andreas Jaeger (conflicting declaration of malloc).
37397
37398 2000-12-02  Jim Meyering  <meyering@lucent.com>
37399
37400         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
37401         * m4/jm-macros.m4 (jm_MACROS): require it.
37402
37403 2000-12-02  Jim Meyering  <meyering@lucent.com>
37404
37405         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
37406
37407 2000-12-01  Paul Eggert  <eggert@twinsun.com>
37408
37409         * lib/memrchr.c: Include <config.h> before any system include file.
37410
37411 2000-11-30  Jim Meyering  <meyering@lucent.com>
37412
37413         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
37414
37415 2000-11-30  Jim Meyering  <meyering@lucent.com>
37416
37417         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
37418
37419 2000-11-29  Paul Eggert  <eggert@twinsun.com>
37420
37421         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
37422
37423 2000-11-26  Jim Meyering  <meyering@lucent.com>
37424
37425         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
37426
37427 2000-11-22  Paul Eggert  <eggert@twinsun.com>
37428
37429         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
37430         size of (size_t) -1; it's not portable.
37431
37432 2000-11-17  Jim Meyering  <meyering@lucent.com>
37433
37434         * lib/strstr.c: Update from GNU libc.
37435
37436 2000-11-17  Akim Demaille  <akim@epita.fr>
37437
37438         * lib/obstack.h: Formatting changes.
37439         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
37440         prevent type checking.
37441         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
37442         cast the value to (void *): assigning a `foo *' to a `void *'
37443         variable is valid.
37444         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
37445
37446 2000-11-16  Jim Meyering  <meyering@lucent.com>
37447
37448         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
37449
37450 2000-11-11  Jim Meyering  <meyering@lucent.com>
37451
37452         * lib/error.c: Add a couple #includes, merging from GNU libc version.
37453
37454 2000-11-10  Jim Meyering  <meyering@lucent.com>
37455
37456         * lib/obstack.h: Update from GNU libc.
37457         * lib/obstack.c: Likewise.
37458
37459 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
37460
37461         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
37462
37463 2000-11-06  Paul Eggert  <eggert@twinsun.com>
37464
37465         * lib/getusershell.c (setusershell): Use rewind rather than
37466         fseek/fseeko, to avoid configuration hassles with fseeko.
37467         Don't bother opening SHELLS_FILE if shellstream is NULL;
37468         it's not necessary.
37469
37470 2000-11-05  Jim Meyering  <meyering@lucent.com>
37471
37472         * lib/makepath.h (make_dir): Declare.
37473         * lib/makepath.c (make_dir): Remove `static' attribute.
37474         Tweak a comment.
37475
37476 2000-11-04  Jim Meyering  <meyering@lucent.com>
37477
37478         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
37479
37480 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
37481
37482         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
37483         last one in a bucket, advance to the next bucket.
37484
37485 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
37486
37487         * lib/fnmatch.c: Do not comment out all the code if we are using
37488         the GNU C library, because in some cases we are replacing buggy
37489         code in the GNU C library itself.
37490
37491 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
37492
37493         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
37494         (regex_compile): Catch bogus \(\1\).
37495
37496 2000-10-30  Paul Eggert  <eggert@twinsun.com>
37497
37498         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
37499         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
37500         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
37501
37502 2000-10-30  Paul Eggert  <eggert@twinsun.com>
37503
37504         * lib/error.h, getline.h, modechange.h:
37505         Remove "2000" from Copyright line, as the file hasn't been
37506         changed this year other than in the copyright notice.
37507
37508         * lib/xalloc.h: Add "2000" to Copyright line, as this file
37509         was changed this year.
37510
37511 2000-10-29  Jim Meyering  <meyering@lucent.com>
37512
37513         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
37514         renaming.
37515         * m4/ls-mntd-fs.m4: Likewise
37516
37517 2000-10-29  Jim Meyering  <meyering@lucent.com>
37518
37519         * lib/xstat.in: Fix grammar in comment.
37520
37521 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
37522
37523         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
37524         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
37525         doesn't define __restrict_arr.
37526
37527 2000-10-28  Jim Meyering  <meyering@lucent.com>
37528
37529         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
37530         (jm_PREREQ_MEMCHR): New function.
37531
37532 2000-10-28  Jim Meyering  <meyering@lucent.com>
37533
37534         * lib/memchr.c: Update from libc.
37535         Adjust for portability:
37536         [HAVE_STDLIB_H]: Include stdlib.h.
37537         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
37538         Undef __memchr, too.
37539         [!weak_alias]: Define __memchr to memchr.
37540
37541         * lib/regex.c: Update from libc.
37542         * lib/regex.h: Likewise.
37543         * lib/getopt1.c: Likewise.
37544         * lib/memcmp.c: Likewise.
37545
37546         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
37547         Avoid using fseek, when possible -- it's broken by design.
37548         Patch by Ulrich Drepper.
37549
37550 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
37551
37552         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
37553         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
37554         Giving in to popular pressure to shut up the compiler with casts.
37555
37556 2000-10-26  Jim Meyering  <meyering@lucent.com>
37557
37558         * lib/strftime.c: Update from libc.
37559
37560 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
37561
37562         * regex.c: More `unsigned char' -> `re_char' changes.
37563         Also change several `int' into `re_wchar_t'.
37564         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
37565         (PUSH_FAILURE_POINTER): Don't cast any more.
37566         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
37567         We want GCC to complain, since this piece of code makes
37568         re_match non-reentrant, which *should* be fixed.
37569         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
37570         (EXTEND_BUFFER): Use RETALLOC.
37571         (SET_LIST_BIT): Don't cast.
37572         (re_wchar_t): New type.
37573         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
37574         that those two functions will always properly return.
37575         (IMMEDIATE_QUIT_CHECK): Cast to void.
37576         (analyse_first): Use recursion rather than an explicit stack.
37577         (re_compile_fastmap): Can't fail anymore.
37578         (re_search_2): Don't check re_compile_fastmap for failure.
37579         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
37580         Now also sets the new value (passed in a new argument).
37581         (re_match_2_internal): Use it.
37582         Also, use a new var `reg' of type size_t when looping through regs
37583         rather than reuse the inappropriate `mcnt'.
37584
37585 2000-10-25  Jim Meyering  <meyering@lucent.com>
37586
37587         * lib/obstack.c: Update from libc.
37588
37589 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
37590
37591         * regex.c (regex_compile): Change the way of handling a range from
37592         a char less than 256 to a char not less than 256.
37593
37594 2000-10-24  Andrew Innes  <andrewi@gnu.org>
37595
37596         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
37597         NT-Emacs only.
37598         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
37599         so that re_search functions only quit when callers expect them to.
37600
37601 2000-10-23  Jim Meyering  <meyering@lucent.com>
37602
37603         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
37604         wrong.  That set_locale call must not have any side effects.
37605         From Paul Eggert.
37606
37607 2000-10-22  Jim Meyering  <meyering@lucent.com>
37608
37609         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
37610         [CYCLIC]: Remove now-unused definition.
37611
37612         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
37613         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
37614         Suggestion from Ulrich Drepper.
37615
37616 2000-10-21  Jim Meyering  <meyering@lucent.com>
37617
37618         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
37619         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
37620         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
37621
37622 2000-10-21  Jim Meyering  <meyering@lucent.com>
37623
37624         * lib/dirname.c (memrchr): Declare if necessary.
37625         (dir_name): Remove the restriction that there be no
37626         trailing slashes.  Now, this code skips past them, effectively
37627         ignoring them.
37628         [TEST_DIRNAME] (main): New unit tests.
37629
37630         * lib/memrchr.c: New file from GNU libc.
37631         Undef __memrchr, too.
37632         [!weak_alias]: Define __memrchr to memrchr.
37633         Guard weak_alias use with `#ifdef weak_alias'.
37634
37635 2000-10-21  Jim Meyering  <meyering@lucent.com>
37636
37637         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
37638         (dir_name): Use dir_name_r.
37639         * lib/dirname.h (dir_name_r): Declare it.
37640
37641 2000-10-17  Jim Meyering  <meyering@lucent.com>
37642
37643         * lib/quote.h (PARAMS): Define and use.
37644         Reported by Akim Demaille.
37645
37646         * lib/getopt.c: Update from libc.
37647
37648 2000-10-16  Jim Meyering  <meyering@lucent.com>
37649
37650         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
37651         setlocale.
37652         From Jan Fedak.
37653
37654 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
37655
37656         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
37657
37658 2000-09-25  Jim Meyering  <meyering@lucent.com>
37659
37660         * lib/md5.h (rol): Define (from GnuPG).
37661
37662         * lib/sha.c: Give credit (GnuPG) where due.
37663         (M): Use rol rather than open-coding it.
37664         Add a FIXME comment.
37665
37666 2000-09-21  Jim Meyering  <meyering@lucent.com>
37667
37668         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
37669         Reported by Michael Stone.
37670
37671 2000-09-20  Jim Meyering  <meyering@lucent.com>
37672
37673         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
37674         (noinst_HEADERS): Add sha.h.
37675         Based on code from Scott G. Miller and from GnuPG.
37676
37677 2000-09-18  Jim Meyering  <meyering@lucent.com>
37678
37679         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
37680         LIBS. Otherwise, everyone ends up linking with -lelf for some
37681         configurations.
37682         Reported by Mike Stone.
37683
37684 2000-09-15  Jim Meyering  <meyering@lucent.com>
37685
37686         * lib/regex.c: Update from libc.
37687
37688 2000-09-10  Jim Meyering  <meyering@lucent.com>
37689
37690         * lib/getopt.c (_getopt_internal): Update from glibc.
37691
37692 2000-09-09  Jim Meyering  <meyering@lucent.com>
37693
37694         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
37695         think it should be used as a general replacement for isascii.
37696         * lib/fnmatch.c: Likewise.
37697         * lib/mbswidth.c: Likewise
37698         * lib/regex.c: Likewise.
37699
37700         Don't use atoi.
37701         * lib/userspec.c: Include sys/param.h and limits.h.
37702         Include xstrtol.h.
37703         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
37704         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
37705         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
37706         UID, GID.  Check range.
37707
37708 2000-09-06  Jim Meyering  <meyering@lucent.com>
37709
37710         * lib/getopt.c (_getopt_internal): Update from glibc.
37711
37712 2000-08-30  Jim Meyering  <meyering@lucent.com>
37713
37714         * lib/strftime.c: Merge in changes from GNU libc.
37715
37716 2000-08-26  Jim Meyering  <meyering@lucent.com>
37717
37718         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
37719         * m4/fpending.m4: New file.
37720
37721 2000-08-26  Jim Meyering  <meyering@lucent.com>
37722
37723         * lib/closeout.c: Include "__fpending.h".
37724         (close_stdout_status): Return right away if there's nothing to flush.
37725
37726         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
37727         * lib/__fpending.c: New file.
37728         * lib/__fpending.h: New file.
37729
37730 2000-08-20  Jim Meyering  <meyering@lucent.com>
37731
37732         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
37733         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
37734         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
37735
37736 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
37737
37738         Improve fileutils installation on systems where running
37739         programs (like install) can't be unlinked.
37740         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
37741         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
37742
37743 2000-08-07  Paul Eggert  <eggert@twinsun.com>
37744
37745         Standardize on "memory exhausted" instead of "Memory exhausted"
37746         or "virtual memory exhausted".
37747         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
37748         "virtual memory exhausted".
37749         * lib/same.c (same_name): Invoke xalloc_die instead of printing
37750         our own message.
37751         * lib/userspec.c (parse_user_spec): Likewise.
37752         * lib/bumpalloc.h: comment fix
37753         * lib/same.c, userspec.c: Include xalloc.h.
37754
37755         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
37756         not char *const and pointing to a constant array.
37757         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
37758         (xrealloc): Comment fix.
37759
37760         * lib/userspec.c (parse_user_spec):
37761         Don't translate a message until just before returning,
37762         to avoid unnecessary translation.
37763
37764 2000-08-07  Jim Meyering  <meyering@lucent.com>
37765
37766         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
37767         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
37768         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
37769         getgroups.c, gethostname.c, getopt.h, group-member.c,
37770         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
37771         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
37772         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
37773         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
37774         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
37775         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
37776         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
37777         yesno.c: Back out Copyright date changes for each file with no change
37778         this year.  This eases coordination with other programs using the same
37779         source code modules.  From Paul Eggert.
37780
37781 2000-08-06  Paul Eggert  <eggert@twinsun.com>
37782
37783         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
37784         not char, for compatibility with glibc 2.1.3 strftime.c.
37785
37786 2000-08-03  Greg McGary  <greg@mcgary.org>
37787
37788         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
37789         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
37790         (EXTEND_BUFFER): Use them.
37791
37792 2000-08-01  Jim Meyering  <meyering@lucent.com>
37793
37794         * lib/dirname.c (ISSLASH): Define.
37795         (BACKSLASH_IS_PATH_SEPARATOR): Define.
37796         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
37797         both `\' and `/' may be use as path separators.
37798         Based on a patch from Prashant TR.
37799
37800 2000-07-31  Paul Eggert  <eggert@twinsun.com>
37801
37802         * lib/quotearg.c (quotearg_n_options): Don't make the initial
37803         slot vector a constant, since it might get modified.
37804
37805 2000-07-31  Jim Meyering  <meyering@lucent.com>
37806
37807         * lib/xmalloc.c: Use `virtual memory exhausted', not
37808         `Memory exhausted'.
37809         * lib/obstack.c (print_and_abort): Likewise.
37810
37811 2000-07-30  Paul Eggert  <eggert@twinsun.com>
37812
37813         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
37814         buffer, so that the caller can always quote one small
37815         component of a "memory exhausted" message in slot 0.
37816         From a suggestion by Jim Meyering.
37817
37818 2000-07-30  Jim Meyering  <meyering@lucent.com>
37819
37820         * lib/makepath.c (make_path): Quote the other instance, too.
37821
37822         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
37823         (STATIC_BUF_SIZE): Define.
37824         (quotearg_n_options): Use only statically allocated storage when
37825         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
37826         than STATIC_BUF_SIZE.
37827
37828 2000-07-29  Jim Meyering  <meyering@lucent.com>
37829
37830         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
37831         * lib/dirname.c (dir_name): Likewise.
37832
37833         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
37834         `/'.
37835
37836         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
37837         (dir_name): Assert that there are no trailing slashes.
37838
37839 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
37840
37841         * lib/mbswidth.h (mbswidth): Add a flags argument.
37842         (mbswidth): New declaration.
37843         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
37844         * lib/mbswidth.c (mbswidth): Add a flags argument.
37845         (mbsnwidth): New function.
37846
37847 2000-07-24  Jim Meyering  <meyering@lucent.com>
37848
37849         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
37850
37851 2000-07-23  Paul Eggert  <eggert@twinsun.com>
37852
37853         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
37854
37855 2000-07-23  Paul Eggert  <eggert@twinsun.com>
37856
37857         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
37858         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
37859         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
37860         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
37861         invoke multibyte primitives.
37862
37863 2000-07-23  Paul Eggert  <eggert@twinsun.com>
37864
37865         * lib/quotearg.c:
37866         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
37867         so that mbstate_t is always defined.
37868
37869         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
37870         be 1 in at least one GCC installation, and this configuration
37871         error is likely to be common.  Ignoring MB_LEN_MAX hurts
37872         performance on hosts that have mbrtowc but have only unibyte
37873         locales, but I assume these hosts are rare.
37874
37875 2000-07-23  Paul Eggert  <eggert@twinsun.com>
37876
37877         * lib/mbswidth.c (_XOPEN_SOURCE):
37878         Don't define; this causes problems on Solaris 7.
37879         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
37880
37881 2000-07-23  Jim Meyering  <meyering@lucent.com>
37882
37883         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
37884         too: getgrgid, getpwuid, getuid.
37885
37886 2000-07-23  Jim Meyering  <meyering@lucent.com>
37887
37888         * lib/basename.c (base_name): Add an assertion.
37889
37890 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
37891
37892         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
37893         shadow its mbsinit function.
37894
37895 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
37896
37897         * lib/mbswidth.h: New file.
37898         * lib/mbswidth.c: New file.
37899         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
37900         (noinst_HEADERS): Add mbswidth.h.
37901
37902 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
37903
37904         * lib/config.charset: Add support for FreeBSD. Improve support for
37905         HP-UX and IRIX 6.
37906
37907 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
37908
37909         * m4/mbswidth.m4: New file.
37910         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
37911
37912 2000-07-15  Jim Meyering  <meyering@lucent.com>
37913
37914         * lib/makepath.c: Include quote.h.
37915         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
37916         corresponding argument in a `quote (...)' call.
37917         Give better diagnostics.
37918
37919         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
37920         (noinst_HEADERS): Add quote.h.
37921
37922         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
37923         from tar's src/misc.c.
37924         * lib/quote.h: New file.  Prototypes for same.
37925
37926 2000-07-14  Paul Eggert  <eggert@twinsun.com>
37927
37928         From a suggestion by Bruno Haible.
37929         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
37930         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
37931         to decide whether to define the BeOS workaround macro;
37932         this adjusts to the change to AC_MBSTATE_T.
37933
37934 2000-07-14  Jim Meyering  <meyering@lucent.com>
37935
37936         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
37937         jm_AC_TYPE_UINTMAX_T.
37938
37939 2000-07-13  Paul Eggert  <eggert@twinsun.com>
37940
37941         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
37942
37943         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
37944         quotearg_buffer_restyled): Add support for
37945         clocale_quoting_style.  Undo previous change to
37946         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
37947         and "{RIGHT QUOTATION MARK}" msgids.
37948
37949 2000-07-10  Paul Eggert  <eggert@twinsun.com>
37950
37951         From a suggestion by Bruno Haible.
37952         * m4/mbstate_t.m4 (AC_MBSTATE_T):
37953         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
37954         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
37955         and mbstate_t, to a single-part test that simply defines mbstate_t.
37956         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
37957         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
37958
37959 2000-07-10  Jim Meyering  <meyering@lucent.com>
37960
37961         * m4/strerror_r.m4: Mirror the correction made in autoconf.
37962
37963         * m4/gnu-source.m4: Output to confdefs.h directly.
37964         Suggestion from Akim Demaille.
37965
37966 2000-07-09  Paul Eggert  <eggert@twinsun.com>
37967
37968         The old behavior of quoting `like this' doesn't look good with
37969         newer, ISO-style fonts.  See:
37970         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
37971
37972         Instead, quote "like this" by default.  Let the translator
37973         tailor the locale-specific quoting behavior by providing
37974         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
37975
37976         * lib/quotearg.c (N_): New macro.
37977         (gettext_default): New function.
37978         (quotearg_buffer_restyled): Use
37979         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
37980         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
37981
37982 2000-07-09  Jim Meyering  <meyering@lucent.com>
37983
37984         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
37985         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
37986
37987         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
37988         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
37989
37990 2000-07-09  Jim Meyering  <meyering@lucent.com>
37991
37992         * lib/Most files: Update copyright dates to include 2000.
37993
37994 2000-07-08  Jim Meyering  <meyering@lucent.com>
37995
37996         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
37997         if not defined.
37998         (xgethostname): Remove now-unnecessary #ifdef.
37999         Move declaration of `err' into loop where it's used.
38000
38001 2000-07-05  Paul Eggert  <eggert@twinsun.com>
38002         and Bruno Haible  <haible@clisp.cons.org>
38003
38004         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
38005         only if the test for an object-type mbstate_t fails.  This
38006         prevents us from mistakenly reporting that mbstate_t is a
38007         system object type after we "#define mbstate_t int" to work
38008         around its lack.
38009
38010 2000-07-05  Paul Eggert  <eggert@twinsun.com>
38011         and Bruno Haible  <haible@clisp.cons.org>
38012
38013         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
38014
38015 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
38016
38017         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
38018         to strerror_r.
38019         Include <ctype.h> for use of isalpha.
38020
38021 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
38022
38023         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
38024         by allocating a larger buffer. Test the gethostname return value for
38025         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
38026         returns an error and ENAMETOOLONG isn't defined.
38027
38028 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
38029
38030         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
38031         dimension.
38032
38033 2000-07-04  Jim Meyering  <meyering@lucent.com>
38034
38035         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
38036         of the deprecated AC_CHECKING.
38037
38038 2000-07-04  Jim Meyering  <meyering@lucent.com>
38039
38040         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
38041         Reported by Bruno Haible.
38042
38043 2000-07-04  Jim Meyering  <meyering@lucent.com>
38044
38045         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
38046         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
38047         lacks mbrtowc.
38048
38049 2000-07-03  Paul Eggert  <eggert@twinsun.com>
38050
38051         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
38052         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
38053
38054 2000-07-03  Paul Eggert  <eggert@twinsun.com>
38055         and Bruno Haible  <haible@clisp.cons.org>
38056
38057         * lib/quotearg.c (mbrtowc):
38058         Assign to *pwc, and return 1 only if result is nonzero.
38059         (iswprint): Use ISPRINT when substituting our own mbrtowc.
38060
38061 2000-07-03  Jim Meyering  <meyering@lucent.com>
38062
38063         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
38064
38065 2000-07-03  Jim Meyering  <meyering@lucent.com>
38066
38067         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
38068         This is necessary to get a definition of e.g., UTMP_FILE on
38069         HP-UX 10.20.
38070         From Bob Proulx.
38071
38072 2000-07-02  Jim Meyering  <meyering@lucent.com>
38073
38074         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
38075
38076         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
38077         AC_LIBOBJ(function_name).
38078         * m4/chown.m4: Likewise.
38079         * m4/fnmatch.m4: Likewise.
38080         * m4/ftruncate.m4: Likewise.
38081         * m4/getgroups.m4: Likewise.
38082         * m4/getline.m4: Likewise.
38083         * m4/group-member.m4: Likewise.
38084         * m4/jm-macros.m4: Likewise.
38085         * m4/lstat.m4: Likewise.
38086         * m4/malloc.m4: Likewise.
38087         * m4/memcmp.m4: Likewise.
38088         * m4/nanosleep.m4: Likewise.
38089         * m4/putenv.m4: Likewise.
38090         * m4/realloc.m4: Likewise.
38091         * m4/regex.m4: Likewise.
38092         * m4/stat.m4: Likewise.
38093         * m4/strftime.m4: Likewise.
38094
38095 2000-07-02  Jim Meyering  <meyering@lucent.com>
38096
38097         * lib/quotearg.c (mbstate_t): Don't define here.
38098
38099 2000-07-02  Jim Meyering  <meyering@lucent.com>
38100
38101         * lib/nanosleep.c (SIGCONT): Define if not already defined.
38102
38103 2000-07-01  Jim Meyering  <meyering@lucent.com>
38104
38105         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
38106
38107 2000-07-01  Jim Meyering  <meyering@lucent.com>
38108
38109         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
38110         problem.
38111
38112 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
38113
38114         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
38115         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
38116
38117 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
38118
38119         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
38120         per change in ../m4/ls-mntd-fs.m4.
38121         (read_filesystem_list): Ignore symbolic links.
38122
38123 2000-06-29  Jim Meyering  <meyering@lucent.com>
38124
38125         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
38126         for declaration of strcmp.
38127
38128         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
38129
38130         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
38131         Avoid warning by casting result to `char *' to remove `const'.
38132
38133 2000-06-28  Jim Meyering  <meyering@lucent.com>
38134
38135         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
38136         included by quotearg.c, for which we perform this test.  From
38137         Bruno Haible.
38138
38139 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
38140
38141         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
38142         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
38143         <utmpx.h> exists, put readutmp.o into LIBOBJS.
38144
38145 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
38146
38147         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
38148
38149 2000-06-26  Paul Eggert  <eggert@twinsun.com>
38150
38151         savedir now sets errno on failure and invokes xmalloc to get memory.
38152         Fix a couple of other minor bugs while we're at it.
38153
38154         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
38155         (NAMLEN): Remove macro.
38156         (malloc, realloc): Remove decls.
38157         (stpcpy): Likewise.
38158         ("xalloc.h"): Include.
38159         (NAME_SIZE_DEFAULT): New macro.
38160         (savedir): Use xmalloc / xrealloc to allocate memory.
38161         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
38162         Skip "" directory entries.
38163         Use strlen to calculate directory entry length, since the old method
38164         is rarely used these days and isn't worth supporting.
38165         Don't use a pointer after freeing it.
38166         Check for integer overflow when calculating allocation size.
38167         Use memcpy to copy entries, instead of stpcpy.
38168         Set errno properly when returning NULL.
38169         Check for readdir error.
38170
38171 2000-06-26  Jim Meyering  <meyering@lucent.com>
38172
38173         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
38174
38175 2000-06-25  Jim Meyering  <meyering@lucent.com>
38176
38177         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
38178         Linux header bug when _XOPEN_SOURCE is defined to 500.
38179
38180 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
38181
38182         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
38183         deficiency.
38184
38185 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
38186
38187         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
38188         Include xalloc.h.
38189         Don't include <stdlib.h>.  Don't declare malloc, realloc.
38190
38191 2000-06-24  Jim Meyering  <meyering@lucent.com>
38192
38193         * m4/strerror_r.m4: Revive this file -- to try out an experimental
38194         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
38195         for which strerror does return char*, but which lacks a conveniently
38196         accessible declaration of the function.  If the compile-test says
38197         strerror_r doesn't work, then resort to a `run'-test that works on
38198         BeOS and segfaults on DEC Unix.
38199
38200 2000-06-24  Jim Meyering  <meyering@lucent.com>
38201
38202         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
38203
38204 2000-06-23  Paul Eggert  <eggert@twinsun.com>
38205
38206         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
38207         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
38208
38209 2000-06-23  Paul Eggert  <eggert@twinsun.com>
38210
38211         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
38212         (mbrtowc, mbstate_t): Define substitutes if
38213         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
38214         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
38215         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
38216
38217 2000-06-23  Jim Meyering  <meyering@lucent.com>
38218
38219         * m4/afs.m4: Add missing AC_MSG_RESULT.
38220         Reported by Bruno Haible.
38221
38222         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
38223         Suggestion from Bruno Haible.
38224
38225 2000-06-23  Jim Meyering  <meyering@lucent.com>
38226
38227         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
38228
38229 2000-06-21  Jim Meyering  <meyering@lucent.com>
38230
38231         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
38232
38233 2000-06-21  Jim Meyering  <meyering@lucent.com>
38234
38235         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
38236         (noinst_HEADERS): Add getstr.h.
38237
38238         * lib/getline.c (getstr): Move into a separate file.
38239         * lib/getstr.c (getstr): New file, extracted from getline.c, with
38240         the following changes: new parameter, delim2; both delim[12]
38241         parameters have type `int', not `char'.  The latter would lose
38242         with 8-bit delimiters.
38243         * lib/getstr.h: New file.
38244
38245 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
38246
38247         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
38248         than 1024, return a memory chunk of least possible size, instead
38249         of size PATH_MAX + 2. In the loop, increment the size proportionally.
38250         Use free/xmalloc instead of xrealloc to avoid copying for very long
38251         paths.
38252
38253 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
38254
38255         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
38256         the empty string.
38257
38258 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
38259
38260         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
38261         address, not strdup.  Include <stdlib.h> and don't declare free().
38262
38263 2000-06-19  Jim Meyering  <meyering@lucent.com>
38264
38265         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
38266
38267 2000-06-18  Jim Meyering  <meyering@lucent.com>
38268
38269         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
38270
38271         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
38272         `checking whether...' message to be consistent with that of the
38273         lstat test.
38274
38275 2000-06-18  Jim Meyering  <meyering@lucent.com>
38276
38277         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
38278         Besides, these days every porting target provides a mkdir function.
38279
38280         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
38281         needed. (this snippet comes from src/system.h).
38282
38283 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
38284
38285         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
38286
38287 2000-06-15  Paul Eggert  <eggert@twinsun.com>
38288
38289         * lib/human.c (adjust_value): New function.
38290         (human_readable_inexact): Apply rounding style even when
38291         printing approximate values.
38292
38293 2000-06-14  Paul Eggert  <eggert@twinsun.com>
38294
38295         * lib/human.c (human_readable_inexact): Allow an input block
38296         size that is not a multiple of the output block size, and vice versa.
38297         Reported by Piergiorgio Sartor.
38298
38299 2000-06-14  Paul Eggert  <eggert@twinsun.com>
38300
38301         * lib/getdate.y (get_date): Apply relative times after time
38302         zone indicator, not before.  Reported by Todd A. Jacobs.
38303
38304 2000-06-13  Jim Meyering  <meyering@lucent.com>
38305
38306         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
38307
38308         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
38309
38310 2000-06-12  Paul Eggert  <eggert@twinsun.com>
38311
38312         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
38313
38314 2000-06-12  Jim Meyering  <meyering@lucent.com>
38315
38316         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
38317         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
38318         optional argument.
38319         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
38320         the optional argument, `lib'.
38321
38322 2000-06-08  Jim Meyering  <meyering@lucent.com>
38323
38324         * m4/largefile.m4: Remove file (now that it's part of autoconf).
38325
38326 2000-06-04  Paul Eggert  <eggert@twinsun.com>
38327
38328         Rewrite largefile configuration so that we don't need to run
38329         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
38330         AC_CANONICAL_HOST in configure.in -- jmm]
38331
38332         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
38333         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
38334         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
38335         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
38336         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
38337         All uses changed.
38338         Instead of inspecting the output of getconf, try to compile the
38339         test program without and with the macro definition.
38340         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
38341         for getconf.  Instead, check for the needed flags by compiling
38342         test programs.
38343
38344 2000-06-04  Paul Eggert  <eggert@twinsun.com>
38345
38346         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
38347
38348 2000-06-04  Jim Meyering  <meyering@lucent.com>
38349
38350         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
38351         SunOS 4.1.4 for which gid_t is an unsigned type.
38352
38353 2000-06-03  Jim Meyering  <meyering@lucent.com>
38354
38355         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
38356         now that autoconf requires that.
38357
38358         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
38359         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
38360         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
38361
38362 2000-06-03  Jim Meyering  <meyering@lucent.com>
38363
38364         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
38365
38366 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
38367
38368         * m4/glibc21.m4: New file.
38369         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
38370
38371 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
38372
38373         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
38374         newer, don't install charset.alias.
38375         * lib/config.charset: Change the Linux/glibc rules so they become empty
38376         on glibc-2.1 or newer.
38377
38378 2000-06-02  Jim Meyering  <meyering@lucent.com>
38379
38380         * lib/mountlist.c: Back out last change.  Instead, do this...
38381         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
38382         me_dummy member using the same `ignore'-testing code.
38383         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
38384         fs_type strings.
38385         From Mark D. Roth.
38386
38387 2000-05-29  Jim Meyering  <meyering@lucent.com>
38388
38389         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
38390         mounts with the `ignore' attribute.  Based on a patch from
38391         Mark D. Roth.
38392
38393 2000-05-28  Jim Meyering  <meyering@lucent.com>
38394
38395         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
38396         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
38397         * m4/stat.m4: Likewise.
38398         * m4/lstat.m4: Likewise.
38399         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
38400
38401         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
38402         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
38403
38404 2000-05-26  Jim Meyering  <meyering@lucent.com>
38405
38406         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
38407
38408 2000-05-24  Jim Meyering  <meyering@lucent.com>
38409
38410         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
38411         autoconf requires that.
38412         * m4/lib-check.m4: Likewise.
38413         * m4/jm-macros.m4: Likewise.
38414         * m4/strftime.m4: Likewise.
38415
38416         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
38417         AC_CHECK_DECLS, now that autoconf requires that.
38418
38419 2000-05-22  Jim Meyering  <meyering@lucent.com>
38420
38421         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
38422         * m4/lstat.m4: Likewise.
38423
38424 2000-05-22  Jim Meyering  <meyering@lucent.com>
38425
38426         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
38427
38428 2000-05-20  Jim Meyering  <meyering@lucent.com>
38429
38430         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
38431         (jm_PREREQ): Use it.
38432
38433 2000-05-18  Jim Meyering  <meyering@lucent.com>
38434
38435         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
38436         back, too, since it may have been modified by allocate_entry.
38437         (hash_delete): Rewrite to use neither the assignment operator
38438         nor the comma operator in an if-expression.
38439
38440 2000-05-15  Paul Eggert  <eggert@twinsun.com>
38441
38442         * lib/closeout.c:
38443         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
38444         Remove; no longer needed.
38445         "quotearg.h": Add include.
38446         (file_name): Do not bother to explicitly initialize to NULL; it's less
38447         efficient on some hosts.
38448         (close_stdout_status): Remove test as to whether stdout was already
38449         closed; it breaks for the case "echo x | sort >&-".
38450         Quote file name colons.
38451         Do not assume that _("write error") lacks format strings.
38452
38453 2000-05-15  Jim Meyering  <meyering@lucent.com>
38454
38455         * lib/version-etc.c (version_etc_copyright): Update the copyright
38456         string used in all --version output.
38457
38458 2000-05-14  Jim Meyering  <meyering@lucent.com>
38459
38460         * lib/closeout.c (close_stdout_set_file_name): New function.
38461         (close_stdout_status): Use new file-scoped global.
38462         Return right away if fstat says the stdout file descriptor is invalid.
38463         * lib/closeout.h (close_stdout_set_file_name): Declare.
38464
38465 2000-05-10  Jim Meyering  <meyering@lucent.com>
38466
38467         * lib/closeout.c [default_exit_status]: New file-scoped variable.
38468         (close_stdout_set_status): New function.
38469         * lib/closeout.h (close_stdout_set_status): Declare.
38470
38471 2000-05-09  Jim Meyering  <meyering@lucent.com>
38472
38473         * m4/gettext.m4: Rename this...
38474         * m4/libintl.m4: ...to this.
38475
38476 2000-05-08  Jim Meyering  <meyering@lucent.com>
38477
38478         * lib/long-options.c: Don't include closeout.h.
38479         (parse_long_options): Don't call close_stdout for --version.
38480
38481 2000-05-06  Paul Eggert  <eggert@twinsun.com>
38482
38483         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
38484         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
38485         2.1.3 bug.  This avoids a clash when files like regex.c define
38486         _GNU_SOURCE.
38487
38488 2000-05-06  Jim Meyering  <meyering@lucent.com>
38489
38490         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
38491         (AC_REPLACE_FUNCS): Add strnlen.
38492
38493         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
38494         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
38495
38496         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
38497         AC_SEARCH_LIBS call for nanosleep.
38498         (LIB_NANOSLEEP): Set and AC_SUBST.
38499
38500 2000-05-06  Jim Meyering  <meyering@lucent.com>
38501
38502         * lib/strnlen.c: Undefine __strnlen and strnlen.
38503         [!weak_alias]: Define __strnlen to strnlen.
38504
38505         * lib/atexit.c: New file, from libiberty.
38506
38507 2000-05-06  Jim Meyering  <meyering@lucent.com>
38508
38509         * lib/closeout.c (close_stdout_status): Also check for errors on the
38510         stderr stream.
38511
38512 2000-05-05  Jim Meyering  <meyering@lucent.com>
38513
38514         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
38515         AC_SEARCH_LIBS call for clock_gettime.
38516         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
38517
38518         * m4/search-libs.m4: Update from autoconf.
38519
38520         su doesn't work on Solaris 2.6.
38521         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
38522         <shadow.h>.  Reported by Dragos Harabor.
38523
38524 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
38525
38526         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
38527         memcpy instead of xmalloc, xrealloc, path_concat.
38528         (locale_charset): Treat empty environment variables as absent.
38529         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
38530
38531 2000-05-04  Jim Meyering  <meyering@lucent.com>
38532
38533         * lib/getopt.c: Update from glibc.
38534         * lib/obstack.c: Likewise.
38535         * lib/obstack.h: Likewise.
38536         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
38537         file
38538
38539         * lib/regex.h: Likewise.
38540         * lib/strndup.c: Likewise.
38541         * lib/strnlen.c: New file, from glibc.
38542
38543 2000-05-03  Jim Meyering  <meyering@lucent.com>
38544
38545         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
38546
38547 2000-05-02  Paul Eggert  <eggert@twinsun.com>
38548
38549         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
38550         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
38551         compile-time test, rather than inspecting host and OS, to
38552         decide whether to define _LARGEFILE_SOURCE.
38553
38554 2000-05-01  Jim Meyering  <meyering@lucent.com>
38555
38556         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
38557
38558         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
38559         Based on a patch from Bruno Haible.
38560
38561 2000-05-01  Jim Meyering  <meyering@lucent.com>
38562
38563         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
38564
38565 2000-04-29  Jim Meyering  <meyering@lucent.com>
38566
38567         * lib/path-concat.c: Declare strdup only if it's not defined.
38568         * lib/canon-host.c: Likewise.
38569
38570 2000-04-28  Jim Meyering  <meyering@lucent.com>
38571
38572         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
38573         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
38574         is included first, then limits.h is included by locale.h by libintl.h.
38575         From John David Anglin.
38576
38577 2000-04-25  Jim Meyering  <meyering@lucent.com>
38578
38579         * lib/makepath.c (S_IRWXUGO): Define.
38580         (make_path): Always perform explicit chmod if MODE specifies any
38581         of the `special' permission bits.  Prompted by a bug report against
38582         install from Mate Wierdl and Joost van Baal.
38583
38584 2000-04-18  Jim Meyering  <meyering@lucent.com>
38585
38586         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
38587         (jm_PREREQ): Use it.
38588
38589 2000-04-18  Jim Meyering  <meyering@lucent.com>
38590
38591         * lib/README: New file.
38592
38593         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
38594         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
38595
38596 2000-04-17  Jim Meyering  <meyering@lucent.com>
38597
38598         Get it right :-)
38599         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
38600         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
38601         Suggestion from Akim Demaille.
38602
38603 2000-04-17  Jim Meyering  <meyering@lucent.com>
38604
38605         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
38606         the definition of it to rpl_strftime also defined-away the system's
38607         declaration.
38608
38609 2000-04-15  Jim Meyering  <meyering@lucent.com>
38610
38611         Use `C' to denote so-called `contiguous' files, the same way
38612         that tar does.
38613         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
38614         (ftypelet): Use S_ISCTG.
38615         From Michael Deutschmann.
38616
38617 2000-04-14  Jim Meyering  <meyering@lucent.com>
38618
38619         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
38620         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
38621         clobbered.
38622
38623 2000-04-14  Jim Meyering  <meyering@lucent.com>
38624
38625         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
38626
38627 2000-04-13  Jim Meyering  <meyering@lucent.com>
38628
38629         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
38630         AH_VERBATIM to insert required #ifndef into config.h.in.
38631         Suggestion from Akim Demaille.
38632
38633 2000-04-12  Jim Meyering  <meyering@lucent.com>
38634
38635         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
38636         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
38637         Christian Krackowizer.
38638
38639         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
38640         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
38641         (AC_SYS_LARGEFILE): Require.
38642         (AM_C_PROTOTYPES): Require.
38643
38644 2000-04-08  Jim Meyering  <meyering@lucent.com>
38645
38646         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
38647         names don't conflict.  Reported by Eli Zaretskii.
38648
38649 2000-04-07  Jim Meyering  <meyering@lucent.com>
38650
38651         * lib/putenv.c: Move inclusion of errno.h so it follows that of
38652         sys/types.h, to work around system header problems on AIX 3.2.5.
38653         From Bruno Haible.
38654
38655 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
38656
38657         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
38658         bug.  Deal with the different error behavior of Irix iconv.
38659
38660 2000-04-05  Paul Eggert  <eggert@twinsun.com>
38661
38662         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
38663         IRIX if the installer said otherwise.
38664
38665 2000-04-05  Jim Meyering  <meyering@lucent.com>
38666
38667         Portability tweaks required for ultrix4.3.
38668         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
38669         (jm_CHECK_DECLS): Add getutent to the list of functions.
38670         (_jm_DECL_HEADERS): Add utmpx.h.
38671         From John David Anglin.
38672
38673         * m4/strftime.m4: Back out the 2000-04-02 change.
38674         Instead of that change, simply undefine putenv in the test program.
38675
38676 2000-04-05  Jim Meyering  <meyering@lucent.com>
38677
38678         Portability tweaks required for ultrix4.3.
38679         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
38680         getutent.
38681         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
38682         * lib/canon-host.c: Declare strdup.
38683         * lib/path-concat.c: Likewise.
38684         From John David Anglin.
38685
38686 2000-04-04  Jim Meyering  <meyering@lucent.com>
38687
38688         Be more DOS 8.3-friendly.
38689         * lib/ref-add.sin: Renamed from ref-add.sed.in.
38690         * lib/ref-del.sin: Renamed from ref-del.sed.in.
38691         * lib/Makefile.am: Reflect renaming.
38692         Reported by Eli Zaretskii.
38693
38694         Use a temporary file name that won't clash with `charset.alias'
38695         in the DOS 8.3 name space.
38696         * lib/Makefile.am (charset_tmp): Define.
38697         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
38698         (uninstall-local): Likewise.
38699         Reported by Eli Zaretskii.
38700
38701 2000-04-03  Jim Meyering  <meyering@lucent.com>
38702
38703         * m4/gettext.m4: Fix typo in comment.
38704
38705         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
38706         textutils/configure.in).  Suggestion from Paul Eggert.
38707         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
38708
38709 2000-04-02  Paul Eggert  <eggert@twinsun.com>
38710
38711         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
38712         variable in the shell rather than using putenv, which isn't
38713         portable.  This avoids the configure-time inter-test dependency
38714         on the potentially-renamed putenv function.
38715
38716 2000-03-30  Paul Eggert  <eggert@twinsun.com>
38717
38718         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
38719         before checking struct stat.st_blksize, so that
38720         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
38721
38722 2000-03-29  Paul Eggert  <eggert@twinsun.com>
38723
38724         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
38725         since strftime.c uses HAVE_STRFTIME to decide whether to use
38726         the underlying strftime.
38727
38728 2000-03-29  Paul Eggert  <eggert@twinsun.com>
38729
38730         * lib/time/strftime.c (my_strftime): Make sure we call the system
38731         strftime, not ourselves, when invoking the underlying strftime.
38732
38733 2000-03-24  Jim Meyering  <meyering@lucent.com>
38734
38735         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
38736         (charset_alias): Define.
38737         (install-exec-local): Factor out common code.
38738         (uninstall-local): Split lines longer than 80.
38739         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
38740         (SUFFIXES): Define.
38741         (.sed.in.sed): New rule.  Don't redirect directly to $@.
38742         (CLEANFILES): Add ref-add.sed and ref-del.sed.
38743
38744 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
38745
38746         * lib/config.charset: Output a line containing "Packages using this
38747         file".
38748         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
38749         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
38750         ref-del.sed): New rules.
38751
38752 2000-03-17  Jim Meyering  <meyering@lucent.com>
38753
38754         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
38755         Otherwise, include <strings.h>
38756
38757 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
38758
38759         * lib/unicodeio.c (utf8_wctomb): New function.
38760         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
38761         format instead of in UCS-4 with platform dependent endianness.
38762
38763 2000-03-10  Jim Meyering  <meyering@lucent.com>
38764
38765         * m4/lib-check.m4: Look for getspnam in -lgen, too.
38766         From Marco Franzen.
38767
38768 2000-03-07  Paul Eggert  <eggert@twinsun.com>
38769
38770         * lib/savedir.c (savedir): Work even if directory size is
38771         negative; this can happen with some screwy NFS configurations.
38772
38773 2000-03-06  Jim Meyering  <meyering@lucent.com>
38774
38775         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
38776         if it's NULL (because we ran out of memory).  From Bruno Haible.
38777
38778 2000-03-05  Jim Meyering  <meyering@lucent.com>
38779
38780         * lib/localcharset.c ("path-concat.h"): Include.
38781         (get_charset_aliases): Use path_concat instead of ANSI string
38782         concatenation.
38783
38784         * lib/unicodeio.h (PARAMS): Define.
38785         Use it to guard prototype.
38786
38787 2000-03-04  Jim Meyering  <meyering@lucent.com>
38788
38789         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
38790         for lib/localcharset.c.
38791
38792 2000-03-04  Jim Meyering  <meyering@lucent.com>
38793
38794         * lib/Makefile.am (install-exec-local): Create $(libdir) before
38795         installing into it.
38796         (uninstall-local): Uncomment this rule so `make distcheck' works
38797         once again.
38798
38799         * lib/unicodeio.c (<errno.h>): Include it.
38800         (errno): Declare if not defined.
38801
38802         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
38803
38804         * lib/config.charset: New version, incorporating remarks from a linux
38805         i18n mailing list.  From Bruno Haible.
38806
38807 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
38808
38809         * m4/codeset.m4: New file.
38810         * m4/iconv.m4: New file.
38811         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
38812
38813 2000-03-03  Jim Meyering  <meyering@lucent.com>
38814
38815         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
38816
38817 2000-03-02  Jim Meyering  <meyering@lucent.com>
38818
38819         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
38820         the messages come out on separate lines.
38821
38822         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
38823         rather than jm_CHECK_DECLARATIONS.
38824         * m4/decl.m4: Remove now-unused file.
38825
38826         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
38827         geteuid.
38828
38829 2000-03-02  Jim Meyering  <meyering@lucent.com>
38830
38831         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
38832
38833 2000-03-01  Jim Meyering  <meyering@lucent.com>
38834
38835         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
38836         * lib/unicodeio.c: Likewise.
38837
38838 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
38839
38840         * lib/config.charset: New file.
38841         * lib/localcharset.c: New file.
38842         * lib/unicodeio.h, lib/unicodeio.c: New files.
38843         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
38844         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
38845         (noinst_HEADERS): Add unicodeio.h.
38846         (all-local, install-exec-local, charset.alias): New targets.
38847
38848 2000-02-28  Paul Eggert  <eggert@twinsun.com>
38849
38850         * lib/quotearg.c (ALERT_CHAR): New macro.
38851         (quotearg_buffer_restyled): Use it.
38852
38853 2000-02-27  Jim Meyering  <meyering@lucent.com>
38854
38855         * m4/check-decl.m4: Add getenv to the list.
38856
38857 2000-02-27  Jim Meyering  <meyering@lucent.com>
38858
38859         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
38860         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
38861
38862         * lib/backupfile.c: Guard inclusion of stdlib.h with
38863         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
38864         Declare malloc if needed.
38865
38866         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
38867         `#ifndef HAVE_DECL..'
38868         now that autoconf always defines the HAVE_DECL_ symbols.
38869         * lib/human.c: Likewise.
38870         * lib/same.c: Likewise.
38871         * lib/strtoumax.c: Likewise.
38872
38873         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
38874         declaration check was not run.
38875         * lib/hash.c: Likewise.
38876         * lib/human.c: Likewise.
38877         * lib/same.c: Likewise.
38878         * lib/strtoumax.c: Likewise.
38879
38880         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
38881         `.', then first look up the entire `.'-containing string as a login
38882         name.
38883
38884 2000-02-23  Jim Meyering  <meyering@lucent.com>
38885
38886         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
38887         in place of my hack.
38888
38889 2000-02-18  Paul Eggert  <eggert@twinsun.com>
38890
38891         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
38892         (textint): New typedef.
38893         (parser_control): Member year changed from int to textint.
38894         All uses changed.
38895         (YYSTYPE): Removed; replaced by %union with int and textint members.
38896         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
38897         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
38898         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
38899         (tSNUMBER, tUNUMBER): Now of type <textintval>.
38900         (date, number, to_year): Use width of number in digits, not its value,
38901         to determine whether it's a 2-digit year, or a 2-digit time.
38902         (yylex): Store number of digits of numeric tokens.
38903         Reported by John Kendall.
38904
38905         (parser_control): Changed from struct parser_control to typedef (for
38906         consistency).  All uses changed.
38907
38908         (tID): Removed; not used.
38909         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
38910
38911 2000-02-14  Paul Eggert  <eggert@twinsun.com>
38912
38913         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
38914         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
38915
38916 2000-02-12  Jim Meyering  <meyering@lucent.com>
38917
38918         * lib/userspec.c (ISDIGIT): Define it.
38919         (isdigit): Remove definition.
38920         (is_number): Use ISDIGIT, not isdigit.
38921         <libintl.h>: Include.
38922         (_ and N_): Define.
38923         (parse_user_spec): Mark translatable strings.
38924
38925 2000-02-10  Jim Meyering  <meyering@lucent.com>
38926
38927         With these changes, nanosleep.[ch] are finally enough like the other
38928         lib/* replacement files to compile on a few more losing systems.
38929
38930         * lib/nanosleep.h: Don't include config.h.
38931         Remove prototype from declaration of nanosleep.
38932         (PARAMS): Remove now-unneeded definition.
38933         * lib/nanosleep.c: #undef nanosleep.
38934         (rpl_nanosleep): Rename from nanosleep.
38935
38936 2000-02-10  Jim Meyering  <meyering@lucent.com>
38937
38938         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
38939         gnu_nanosleep to rpl_nanosleep.
38940
38941 2000-02-09  Jim Meyering  <meyering@lucent.com>
38942
38943         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
38944         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
38945
38946 2000-02-08  Akim Demaille  <akim@epita.fr>
38947
38948         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
38949         `[' and `]' and remove uses of `changequote'.
38950         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
38951         (AC_SYS_LARGEFILE): Likewise.
38952         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
38953         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
38954         of changequote.
38955         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
38956         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
38957         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
38958         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
38959
38960 2000-02-05  Jim Meyering  <meyering@lucent.com>
38961
38962         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
38963         Remove explicit use of AC_HEADER_TIME.  It is required by
38964         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
38965         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
38966         in autoconf whereby the expansion of the latter ended up preceding
38967         the expansion of its prerequisite, AC_HEADER_TIME.
38968         Reported by Volker Borchert.
38969
38970 2000-02-03  Jim Meyering  <meyering@lucent.com>
38971
38972         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
38973
38974 2000-02-03  Jim Meyering  <meyering@lucent.com>
38975
38976         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
38977         rather than with `#if HAVE_UTMPNAME'.
38978
38979 2000-02-02  Jim Meyering  <meyering@lucent.com>
38980
38981         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
38982         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
38983         Reported by Eli Zaretskii.
38984
38985 2000-02-01  Jim Meyering  <meyering@lucent.com>
38986
38987         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
38988
38989 2000-01-31  Jim Meyering  <meyering@lucent.com>
38990
38991         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
38992         functions.  Add the time.h and sys/time.h headers along with the
38993         AC_REQUIRE'ment of AC_HEADER_TIME.
38994
38995 2000-01-31  Jim Meyering  <meyering@lucent.com>
38996
38997         * lib/nanosleep.h (nanosleep): Guard declaration with
38998         `#if ! HAVE_DECL_NANOSLEEP'.
38999         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
39000         the declaration in that vendor's sys/timers.h.
39001         Reported by Christian Krackowizer.
39002
39003         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
39004         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
39005         (ISPRINT): Likewise.
39006         Reported by Tom Tromey.
39007
39008 2000-01-30  Jim Meyering  <meyering@lucent.com>
39009
39010         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
39011
39012         * m4/prereq.m4 (utmp_includes): Define.
39013         Check for ut_user and ut_name members in both struct utmpx
39014         and struct utmp.
39015
39016 2000-01-30  Jim Meyering  <meyering@lucent.com>
39017
39018         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
39019         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
39020         header files where only utmpx.ut_user is declared.
39021
39022         * lib/readutmp.h (UT_USER): Define.
39023
39024 2000-01-29  Jim Meyering  <meyering@lucent.com>
39025
39026         * m4/lib-check.m4: New file containing library-related checks from
39027         fileutils and sh-utils (textutils had none).
39028
39029 2000-01-28  Jim Meyering  <meyering@lucent.com>
39030
39031         * m4/perl.m4: Change format of warning message to look more like that
39032         from the missing script.  Suggestion from François Pinard.
39033
39034 2000-01-25  Jim Meyering  <meyering@lucent.com>
39035
39036         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
39037         well as time.h in the compile check.
39038         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
39039         Fix typo in cross-compiling case: s/yes/no/.
39040
39041 2000-01-23  Jim Meyering  <meyering@lucent.com>
39042
39043         * m4/jm-macros.m4: Move df-related tests here from
39044         fileutils/configure.in
39045
39046         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
39047         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
39048
39049         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
39050         s/space/ac_fsusage_space/.
39051         (jm_FILE_SYSTEM_USAGE): Take two parameters.
39052
39053         * m4/ftruncate.m4: New file (derived from part of
39054         fileutils/configure.in).
39055         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
39056         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
39057
39058         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
39059         AC_SUBST these here, rather than just in sh-util/configure.in, so
39060         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
39061         all the same.
39062         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
39063         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
39064         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
39065         (AC_SUBST(POW_LIBM)): Likewise.
39066         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
39067
39068 2000-01-23  Jim Meyering  <meyering@lucent.com>
39069
39070         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
39071         obstack.c.
39072
39073 2000-01-22  Jim Meyering  <meyering@lucent.com>
39074
39075         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
39076
39077         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
39078
39079         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
39080         configure.in
39081         (AC_CHECK_HEADERS): Likewise for sh-utils.
39082         (AC_CHECK_HEADERS): Likewise for textutils.
39083         Merge the three lists of headers.
39084
39085         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
39086         from fileutils' configure.in.
39087
39088         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
39089         code. Moved tests into their own function (_jm_DECL_HEADERS) in
39090         check-decl.m4.
39091
39092         * m4/check-decl.m4: Use #if rather than #ifdef.
39093         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
39094         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
39095         (_jm_DECL_HEADERS): Define new function.
39096         (jm_CHECK_DECLARATIONS): Require it.
39097
39098 2000-01-22  Jim Meyering  <meyering@lucent.com>
39099
39100         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
39101         [! HAVE_DECL_STRTOULL]: Declare strtoull.
39102         Required for some AIX systems.  Reported by Christian Krackowizer.
39103         [TESTING] (main): New function.
39104
39105         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
39106         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
39107         letters.
39108
39109         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
39110         iswprint.
39111
39112         * lib/strverscmp.c (ISDIGIT): Define.
39113         (strverscmp): Use ISDIGIT, not isdigit.
39114
39115 2000-01-19  Jim Meyering  <meyering@lucent.com>
39116
39117         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
39118         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
39119         defines `struct timespec' in <sys/time.h>
39120
39121         * m4/c-bs-a.m4: Remove uses of changequote altogether.
39122         Thanks to Akim for explaining.
39123
39124 2000-01-17  Paul Eggert  <eggert@twinsun.com>
39125
39126         * lib/nanosleep.c (nanosleep):
39127         Don't use SA_INTERRUPT to decide whether to call sigaction, as
39128         POSIX.1 doesn't require SA_INTERRUPT and some systems
39129         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
39130         it's been part of POSIX.1 since day 1 (in 1988).
39131
39132 2000-01-17  Jim Meyering  <meyering@lucent.com>
39133
39134         * lib/interlock: Remove unused file.  Reported by François Pinard.
39135
39136 2000-01-16  Paul Eggert  <eggert@twinsun.com>
39137
39138         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
39139         alert, backslash, formfeed, and vertical tab unnecessarily in
39140         shell quoting style.
39141
39142 2000-01-16  Jim Meyering  <meyering@lucent.com>
39143
39144         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
39145         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
39146         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
39147         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
39148
39149 2000-01-16  Jim Meyering  <meyering@lucent.com>
39150
39151         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
39152         because the latter didn't work.
39153
39154 2000-01-15  Jim Meyering  <meyering@lucent.com>
39155
39156         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
39157         (AC_REPLACE_FUNCS): Add memcpy and memset.
39158         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
39159         Add strpbrk.
39160         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
39161
39162 2000-01-12  Jim Meyering  <meyering@lucent.com>
39163
39164         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
39165         (jm_PREREQ): Use it.
39166         (jm_PREREQ_READUTMP): New macro.
39167         (jm_PREREQ): Use it.
39168
39169 2000-01-11  Paul Eggert  <eggert@twinsun.com>
39170
39171         Quote multibyte characters correctly.
39172         * m4/c-bs-a.m4: New file.
39173         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
39174         (jm_PREREQ): Use it.
39175
39176 2000-01-11  Paul Eggert  <eggert@twinsun.com>
39177
39178         * m4/uintmax_t.m4: Port to autoconf 2.13.
39179
39180 2000-01-08  Jim Meyering  <meyering@ascend.com>
39181
39182         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
39183         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
39184
39185 2000-01-04  Jim Meyering  <meyering@ascend.com>
39186
39187         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
39188         jm_STRUCT_DIRENT_D_TYPE.
39189         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
39190         jm_STRUCT_DIRENT_D_INO.
39191         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
39192         jm_STRUCT_UTIMBUF.
39193         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
39194         renamings.
39195         * m4/utime.m4: Likewise.
39196
39197         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
39198         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
39199
39200 2000-01-03  Paul Eggert  <eggert@twinsun.com>
39201
39202         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
39203         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
39204
39205 2000-01-02  Jim Meyering  <meyering@ascend.com>
39206
39207         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
39208         remember if this is necessary.
39209
39210 1999-12-26  Jim Meyering  <meyering@ascend.com>
39211
39212         * m4/jm-macros.m4: Use it here.
39213         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
39214
39215 1999-12-23  Jim Meyering  <meyering@ascend.com>
39216
39217         * m4/jm-macros.m4: Check for clock_gettime (moved from
39218         fileutils/configure.in)
39219         Check for gettimeofday.
39220
39221 1999-12-20  Jim Meyering  <meyering@ascend.com>
39222
39223         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
39224         autoconf-2.14a-1999-12-20.
39225
39226 1999-12-19  Jim Meyering  <meyering@ascend.com>
39227
39228         * m4/lstat-slash.m4: New file.
39229         * m4/jm-macros.m4: Use the new macro:
39230         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
39231
39232 1999-12-07  Jim Meyering  <meyering@ascend.com>
39233
39234         * m4/perl.m4: Require that File::Compare be available, too.
39235         Too many systems seem to lack it.
39236
39237         * m4/strftime.m4: Add checks for most of the cpp macros tested in
39238         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
39239
39240 1999-11-18  Paul Eggert  <eggert@twinsun.com>
39241
39242         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
39243         problem with the QNX 4.25 shell, which doesn't propagate exit
39244         status of failed commands inside shell assignments.
39245
39246 1999-11-17  Jim Meyering  <meyering@ascend.com>
39247
39248         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
39249
39250 1999-11-07  Jim Meyering  <meyering@ascend.com>
39251
39252         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
39253
39254 1999-11-06  Jim Meyering  <meyering@ascend.com>
39255
39256         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
39257         * m4/jm-macros.m4 (jm_MACROS): Use it here.
39258
39259 1999-11-05  Jim Meyering  <meyering@ascend.com>
39260
39261         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
39262         configure.in of textutils, fileutils, and sh-utils into this one
39263         (shared between those packages) file.
39264         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
39265         AC_STRUCT_ST_BLKSIZE.
39266
39267 1999-11-03  Jim Meyering  <meyering@ascend.com>
39268
39269         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
39270         of AC_CHECK_TYPE checks includes unistd.h.
39271         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
39272         Suggestion from Akim Demaille.
39273
39274 1999-10-30  Jim Meyering  <meyering@ascend.com>
39275
39276         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
39277         m4-quoted string.
39278         * m4/ls-mntd-fs.m4: Likewise.
39279         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
39280         * m4/jm-winsz1.m4: Likewise.
39281
39282         * m4/const.m4: Remove file, since the fix made it into the experimental
39283         version of autoconf.
39284         * m4/mktime.m4: Likewise.
39285
39286         * m4/check-type.m4: Remove file, now that the latest version of
39287         AC_CHECK_TYPE takes a third arg to specify additional #includes.
39288
39289         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
39290         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
39291         AC_CHECK_TYPE.
39292
39293 1999-10-04  Jim Meyering  <meyering@ascend.com>
39294
39295         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
39296
39297 1999-09-22  Paul Eggert  <eggert@twinsun.com>
39298
39299         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
39300         2.95.1 bug with HP-UX 10.20.
39301
39302 1999-09-17  Jim Meyering  <meyering@ascend.com>
39303
39304         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
39305         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
39306         due to missing strdup (against sh-utils-2.0).
39307
39308 1999-08-29  Jim Meyering  <meyering@ascend.com>
39309
39310         * m4/jm-macros.m4: Require jm_BISON.
39311         * m4/bison.m4: New file.
39312
39313 1999-08-17  Paul Eggert  <eggert@twinsun.com>
39314
39315         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
39316         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
39317
39318 1999-08-05  Jim Meyering  <meyering@ascend.com>
39319
39320         * m4/getline.m4: Rename test file from conftestdata to conftest.data
39321         to avoid conflicts with `conftest' on 8+3 filesystems.
39322         Suggestion from Eli Zaretskii.
39323
39324 1999-08-04  Jim Meyering  <meyering@ascend.com>
39325
39326         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
39327         fileutils and sh-utils (textutils's getline test was inadequate).
39328         (AM_FUNC_GETLINE): Run this test.
39329         (AC_CHECK_FUNCS): Check for getdelim.
39330         Reported by Bob Proulx.
39331
39332 1999-08-02  Jim Meyering  <meyering@ascend.com>
39333
39334         * m4/jm-macros.m4: Add a comment.
39335
39336 1999-08-01  Paul Eggert  <eggert@twinsun.com>
39337
39338         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
39339         <inttypes.h> defines strtoumax as a macro (and not as a
39340         function).
39341
39342 1999-08-01  Paul Eggert  <eggert@twinsun.com>
39343
39344         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
39345         that we can shift, multiply and divide unsigned long long
39346         values; Ultrix cc can't do it.
39347
39348 1999-08-01  Paul Eggert  <eggert@twinsun.com>
39349
39350         * m4/mktime.m4: New file, which is a preview of what should appear
39351         in the next public autoconf release.
39352
39353 1999-08-01  Paul Eggert  <eggert@twinsun.com>
39354
39355         * m4/lfs.m4: Remove this file.
39356         * m4/largefile.m4: New file.  It contains the old contents of
39357         lfs.m4, except that all names with prefix AC_LFS have been
39358         changed to use the prefix AC_SYS_LARGEFILE instead, to be
39359         compatible with future autoconf versions.  Also, some minor m4
39360         quoting problems have been fixed.
39361
39362 1999-08-01  Paul Eggert  <eggert@twinsun.com>
39363
39364         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
39365         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
39366         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
39367         and simplify the shell code.
39368
39369 1999-08-01  Jim Meyering  <meyering@ascend.com>
39370
39371         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
39372         m4.
39373
39374 1999-07-20  Jim Meyering  <meyering@ascend.com>
39375
39376         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
39377
39378 1999-07-15  Jim Meyering  <meyering@ascend.com>
39379
39380         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
39381
39382 1999-05-22  Jim Meyering  <meyering@ascend.com>
39383
39384         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
39385
39386 1999-05-20  Jim Meyering  <meyering@ascend.com>
39387
39388         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
39389         Add a colon after each `then' in case $4 is empty.
39390
39391 1999-05-16  Jim Meyering  <meyering@ascend.com>
39392
39393         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
39394
39395 1999-05-10  Jim Meyering  <meyering@ascend.com>
39396
39397         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
39398
39399         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
39400         AC_FUNC_MKTIME.
39401
39402 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
39403
39404         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
39405
39406 1999-05-04  Paul Eggert  <eggert@twinsun.com>
39407
39408         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
39409         not CPPFLAGS, so that linking works correctly in IRIX.
39410
39411 1999-04-30  Paul Eggert  <eggert@twinsun.com>
39412
39413         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
39414
39415 1999-04-20  Paul Eggert  <eggert@twinsun.com>
39416
39417         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
39418         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
39419         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
39420         jm_AC_TYPE_UNSIGNED_LONG_LONG.
39421         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
39422
39423         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
39424
39425 1999-04-20  Jim Meyering  <meyering@ascend.com>
39426
39427         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
39428         AC_REPLACE xstroull if necessary.  From Paul Eggert.
39429         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
39430
39431 1999-04-18  Jim Meyering  <meyering@ascend.com>
39432
39433         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
39434         * m4/jm-macros.m4: Use it.
39435
39436 1999-04-06  Jim Meyering  <meyering@ascend.com>
39437
39438         * m4/strftime.m4: Remove test for %f.
39439
39440 1999-03-29  Jim Meyering  <meyering@ascend.com>
39441
39442         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
39443         superset of the AC_TYPE_* checks in the textutils, fileutils,
39444         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
39445         AC_TYPE_PID_T.
39446
39447 1999-03-28  Jim Meyering  <meyering@ascend.com>
39448
39449         * m4/jm-macros.m4: Define GNU_PACKAGE here.
39450         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
39451         replaced e.g., in the *.sh files of the sh-utils.
39452
39453 1999-03-20  Jim Meyering  <meyering@ascend.com>
39454
39455         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
39456         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
39457         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
39458
39459 1999-03-19  Jim Meyering  <meyering@ascend.com>
39460
39461         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
39462
39463 1999-03-12  Jim Meyering  <meyering@ascend.com>
39464
39465         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
39466
39467 1999-03-07  Jim Meyering  <meyering@ascend.com>
39468
39469         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
39470         declared.
39471
39472 1999-02-17  Jim Meyering  <meyering@ascend.com>
39473
39474         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
39475         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
39476
39477 1999-02-07  Jim Meyering  <meyering@ascend.com>
39478
39479         * m4/group-member.m4: New file -- extracted from sh-utils'
39480         configure.in.
39481
39482         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
39483         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
39484
39485 1999-02-06  Jim Meyering  <meyering@ascend.com>
39486
39487         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
39488         * m4/fnmatch.m4: Likewise.
39489         * m4/getgroups.m4: Likewise.
39490         * m4/lstat.m4: Likewise.
39491         * m4/malloc.m4: Likewise.
39492         * m4/putenv.m4: Likewise.
39493         * m4/realloc.m4: Likewise.
39494         * m4/regex.m4: Likewise.
39495         * m4/stat.m4: Likewise.
39496         * m4/strftime.m4: Likewise.
39497         Suggestion from Alain Magloire.
39498
39499         * m4/chown.m4: Use `.$ac_objext', not `.o'.
39500         * m4/fnmatch.m4: Likewise.
39501         * m4/getgroups.m4: Likewise.
39502         * m4/getline.m4: Likewise.
39503         * m4/lstat.m4: Likewise.
39504         * m4/malloc.m4: Likewise.
39505         * m4/memcmp.m4: Likewise.
39506         * m4/putenv.m4: Likewise.
39507         * m4/realloc.m4: Likewise.
39508         * m4/regex.m4: Likewise.
39509         * m4/stat.m4: Likewise.
39510         * m4/strftime.m4: Likewise.
39511         Suggestion from Alain Magloire.
39512
39513         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
39514         an argument.
39515
39516         * m4/regex.m4: Add a run-time Test for proper operation of
39517         re_compile_pattern.
39518
39519 1999-01-31  Jim Meyering  <meyering@ascend.com>
39520
39521         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
39522
39523 1999-01-30  Jim Meyering  <meyering@ascend.com>
39524
39525         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
39526
39527         * m4/jm-mktime.m4: Make this a wrapper around the official
39528         AM_FUNC_MKTIME rather than my private copy, now that the official one
39529         is up to date.
39530         * m4/mktime.m4: Remove file.
39531
39532         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
39533         * m4/uptime.m4: Likewise.
39534         * m4/uintmax_t.m4: Likewise.
39535
39536 1999-01-28  Jim Meyering  <meyering@ascend.com>
39537
39538         * m4/jm-macros.m4: Use jm_AFS.
39539         * m4/afs.m4: New file (from fileutils' configure.in).
39540
39541         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
39542         * m4/chown.m4: Likewise.
39543         * m4/d-ino.m4: Likewise.
39544         * m4/d-type.m4: Likewise.
39545         * m4/fnmatch.m4: Likewise.
39546         * m4/getgroups.m4: Likewise.
39547         * m4/gettext.m4: Likewise.
39548         * m4/jm-mktime.m4: Likewise.
39549         * m4/jm-winsz2.m4: Likewise.
39550         * m4/lcmessage.m4: Likewise.
39551         * m4/ls-mntd-fs.m4: Likewise.
39552         * m4/malloc.m4: Likewise.
39553         * m4/memcmp.m4: Likewise.
39554         * m4/putenv.m4: Likewise.
39555         * m4/realloc.m4: Likewise.
39556         * m4/st_mtim.m4: Likewise.
39557         * m4/strftime.m4: Likewise.
39558
39559 1999-01-16  Jim Meyering  <meyering@ascend.com>
39560
39561         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
39562         (ARGMATCH_DIE_DECL): Define.
39563
39564 1999-01-12  Jim Meyering  <meyering@ascend.com>
39565
39566         * m4/Makefile.am.in: Rewrite to avoid using fmt.
39567         Reported by Lars Hecking.
39568
39569 1999-01-10  Jim Meyering  <meyering@ascend.com>
39570
39571         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
39572         gross kludge.
39573         * m4/inttypes_h.m4: Likewise.
39574         * m4/lstat.m4: Likewise.
39575         * m4/malloc.m4: Likewise.
39576         * m4/readdir.m4: Likewise.
39577         * m4/realloc.m4: Likewise.
39578         * m4/st_dm_mode.m4: Likewise.
39579         * m4/stat.m4: Likewise.
39580         * m4/utimbuf.m4: Likewise.
39581         * m4/utimes.m4: Likewise.
39582
39583         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
39584         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
39585         comments in config.h.in are meaningful.
39586
39587         * m4/jm-macros.m4: Require autoconf-2.13 here.
39588
39589         * m4/regex.m4: By default, don't use the included regex.c on systems
39590         with glibc 2.  Suggestion from Uli Drepper.
39591
39592 1999-01-02  Jim Meyering  <meyering@ascend.com>
39593
39594         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
39595
39596 1998-12-18  Jim Meyering  <meyering@ascend.com>
39597
39598         * m4/Makefile.am.in (Makefile.am): Simplify rule.
39599         Based on a suggestion from Lars Hecking.
39600
39601 1998-11-16  Paul Eggert  <eggert@twinsun.com>
39602
39603         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
39604
39605 1998-11-16  Jim Meyering  <meyering@ascend.com>
39606
39607         * m4/lfs.m4: Double-quote the `uname...` expression.
39608
39609 1998-11-14  Jim Meyering  <meyering@ascend.com>
39610
39611         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
39612         * m4/stat.m4: Likewise.
39613
39614 1998-11-03  Jim Meyering  <meyering@ascend.com>
39615
39616         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
39617         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
39618
39619 1998-10-18  Jim Meyering  <meyering@ascend.com>
39620
39621         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
39622
39623 1998-10-17  Jim Meyering  <meyering@ascend.com>
39624
39625         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
39626         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
39627         calls for those previously hard-coded headers.  Instead, take a new
39628         parameter.
39629         (jm_CHECK_DECLARATIONS): Reflect interface change.
39630         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
39631         (jm_CHECK_DECL_LOCALTIME_R): New macro.
39632
39633         * m4/mktime.m4: Test for spring-forward gap before long-running test.
39634
39635 1998-10-14  Jim Meyering  <meyering@ascend.com>
39636
39637         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
39638         instead of "TZ=America/Vancouver".  From Paul Eggert.
39639
39640 1998-10-11  Jim Meyering  <meyering@ascend.com>
39641
39642         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
39643         This adds a test for a recently added compatibility fix for mktime.c.
39644         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
39645
39646 1998-09-27  Jim Meyering  <meyering@ascend.com>
39647
39648         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
39649
39650         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
39651         ../configure.in, including a change from Gordon Matzigkeit to allow
39652         cross-compiling for the Hurd.
39653
39654         * m4/glibc.m4: New file/macro to test for the GNU C Library
39655         versions 1 and 2.  From Gordon Matzigkeit.
39656         Indent.
39657
39658 1998-09-21  Jim Meyering  <meyering@ascend.com>
39659
39660         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
39661
39662 1998-08-18  Paul Eggert  <eggert@twinsun.com>
39663
39664         Port nanosecond-resolution times to UnixWare 2.1.2 and
39665         pedantic Solaris 2.6.
39666
39667         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
39668         AC_STRUCT_ST_MTIM.
39669         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
39670         Generate name of ns member, instead of just 1 or undef.
39671         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
39672
39673 1998-08-15  Jim Meyering  <meyering@ascend.com>
39674
39675         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
39676         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
39677         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
39678         instead of jm_TYPE_SSIZE_T.
39679
39680 1998-08-12  Jim Meyering  <meyering@ascend.com>
39681
39682         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
39683
39684 1998-08-02  Jim Meyering  <meyering@ascend.com>
39685
39686         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
39687         in acconfig.h manually.
39688
39689 1998-07-31  Paul Eggert  <eggert@twinsun.com>
39690
39691         * m4/st_mtim.m4: New file.
39692
39693 1998-07-28  Jim Meyering  <meyering@ascend.com>
39694
39695         * m4/utimes.m4: Undef stat.
39696
39697 1998-07-25  Jim Meyering  <meyering@ascend.com>
39698
39699         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
39700         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
39701
39702 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
39703
39704         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
39705         uid and gid actually remain unchanged.
39706
39707 1998-07-07  Jim Meyering  <meyering@ascend.com>
39708
39709         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
39710
39711 1998-07-04  Jim Meyering  <meyering@ascend.com>
39712
39713         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
39714         to prove that this macro can be used in packages without regex.c.
39715
39716 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
39717
39718         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
39719         is to be used.
39720
39721 1998-07-03  Jim Meyering  <meyering@ascend.com>
39722
39723         * m4/gettext.m4: Add -lintl if it's found to be necessary.
39724
39725         * m4/gettext.m4: New file -- from gettext-0.10.35.
39726         * m4/lcmessage.m4: Likewise.
39727         * m4/progtest.m4: Likewise.
39728
39729         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
39730         * m4/jm-macros.m4: Require the new macro.
39731
39732 1998-06-29  Jim Meyering  <meyering@ascend.com>
39733
39734         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
39735         for the definition of NGROUPS (used in a system header included
39736         by sys/mount.h).
39737
39738 1998-06-28  Jim Meyering  <meyering@ascend.com>
39739
39740         * m4/ls-mntd-fs.m4: New file.
39741         * m4/fstypename.m4: New file.
39742
39743         * m4/jm-macros.m4: Require the new macro.
39744         * m4/jm-glibc-io.m4: New file.
39745
39746 1998-05-19  Jim Meyering  <meyering@ascend.com>
39747
39748         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
39749         * m4/lchown.m4: New file.
39750
39751         * m4/Makefile.am.in: New file.
39752         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
39753
39754 1998-05-14  Jim Meyering  <meyering@ascend.com>
39755
39756         * m4/Makefile.am (EXTRA_DIST): Add them.
39757         * m4/jm-macros.m4: New file.
39758         * m4/utimbuf.m4: New file.
39759
39760 1998-05-12  Jim Meyering  <meyering@ascend.com>
39761
39762         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
39763
39764 1998-05-11  Jim Meyering  <meyering@ascend.com>
39765
39766         * m4/isc-posix.m4: New file.
39767
39768 1998-05-10  Jim Meyering  <meyering@ascend.com>
39769
39770         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
39771
39772 1998-05-09  Jim Meyering  <meyering@ascend.com>
39773
39774         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
39775         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
39776         with automake.
39777
39778         * m4/ssize_t.m4: New file.
39779         * m4/mktime.m4: Remove file -- the new automake has this now.
39780
39781 1998-04-26  Jim Meyering  <meyering@ascend.com>
39782
39783         * m4/assert.m4: New file.
39784         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
39785
39786 1998-04-05  Jim Meyering  <meyering@ascend.com>
39787
39788         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
39789         (jm_PREREQ): Use it here.
39790
39791 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
39792
39793         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
39794         in acconfig.h.
39795
39796 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
39797
39798         * m4/prereq.m4: New file.
39799         * m4/error.m4: New file.
39800         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
39801
39802 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
39803
39804         * m4/getline.m4: Don't set am_cv_func_working_getline before the
39805         cache-check for the same variable -- that defeated the purpose of
39806         the test; the test program was never run.  This was a problem only
39807         on systems with losing getline functions -- HP-UX 10.20 is one.
39808         Reported by Bjorn Helgaas.
39809
39810 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
39811
39812         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
39813
39814 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
39815
39816         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
39817
39818         * m4/const.m4: New file.  Use an initializer in this declaration
39819         typedef int charset[2]; const charset x;
39820         Reported by Bob Glickstein.
39821
39822 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
39823
39824         * m4/chown.m4: Fix reversed types on -1 args to chown.
39825         From Kaveh Ghazi.
39826
39827 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
39828
39829         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
39830         Add lseek and memchr.
39831
39832         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
39833         T.E.Dickey <dickey@clark.net> said that some older preprocessors
39834         have a 20-character limit on names.
39835
39836 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
39837
39838         * m4/inttypes_h.m4: New file.
39839         * m4/uintmax_t.m4: New file.
39840         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
39841
39842
39843         -----
39844
39845         Copyright (C) 1997-2008 Free Software Foundation, Inc.
39846
39847         Copying and distribution of this file, with or without
39848         modification, are permitted provided the copyright notice
39849         and this notice are preserved.