87c3de2eba9c46dc724192dc1f66f66966539302
[gnulib.git] / ChangeLog
1 2008-04-19  Bruno Haible  <bruno@clisp.org>
2
3         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
4         from 0.0058 to less than 10^-7.
5
6 2008-04-19  Bruno Haible  <bruno@clisp.org>
7
8         Fix rounding when a precision is given.
9         * lib/vasnprintf.c (is_borderline): New function.
10         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
11         9...9x.
12         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
13         %e, %g.
14         * tests/test-vasprintf-posix.c (test_function): Likewise.
15         * tests/test-snprintf-posix.h (test_function): Likewise.
16         * tests/test-sprintf-posix.h (test_function): Likewise.
17         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
18         * tests/test-printf-posix.h (test_function): Likewise.
19         * tests/test-printf-posix.output: Update.
20         Reported by John Darrington <john@darrington.wattle.id.au> via
21         Ben Pfaff <blp@cs.stanford.edu>.
22
23 2008-04-18  Simon Josefsson  <simon@josefsson.org>
24
25         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
26         Suggested by Bruno Haible <bruno@clisp.org>.
27
28 2008-04-17  Bruno Haible  <bruno@clisp.org>
29
30         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
31         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
32         implementation.
33         Patch by Bruce Merry <bmerry@gmail.com>.
34
35 2008-04-17  Simon Josefsson  <simon@josefsson.org>
36
37         * doc/posix-functions/strftime.texi (strftime): Mention that %e
38         doesn't work under Windows.
39
40 2008-04-16  Bruno Haible  <bruno@clisp.org>
41
42         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
43         New macros.
44         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
45         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
46         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
47         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
48         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
49         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
50         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
51         macros.
52         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
53         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
54         Northern Sotho, Uighur.
55
56 2008-04-16  Bruno Haible  <bruno@clisp.org>
57
58         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
59         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
60         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
61         Reported by Daniel Bergström <daniel@octocode.com>.
62
63 2008-04-16  Eric Blake  <ebb9@byu.net>
64
65         Adjust strtod detection to catch glibc 2.7 bug.
66         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
67         Reported by John Gatewood Ham.
68
69 2008-04-16  Bruno Haible  <bruno@clisp.org>
70
71         Add tentative support for Linux libc5.
72         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
73         * lib/fpurge.c (fpurge): Likewise.
74         * lib/freadable.c (freadable): Likewise.
75         * lib/freadahead.c (freadahead): Likewise.
76         * lib/freading.c (freading): Likewise.
77         * lib/freadptr.c (freadptr): Likewise.
78         * lib/freadseek.c (freadptrinc): Likewise.
79         * lib/fseeko.c (rpl_fseeko): Likewise.
80         * lib/fseterr.c (fseterr): Likewise.
81         * lib/fwritable.c (fwritable): Likewise.
82         * lib/fwriting.c (fwriting): Likewise.
83         Reported by Alain Guibert <alguibert+bts@free.fr>.
84
85 2008-04-15  Bruno Haible  <bruno@clisp.org>
86
87         * modules/mathl (configure.ac): Define module indicator.
88
89 2008-04-15  Bruno Haible  <bruno@clisp.org>
90
91         * lib/logl.c (logl): Remove unused variables.
92
93 2008-04-15  Bruno Haible  <bruno@clisp.org>
94
95         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
96         fails.
97
98 2008-04-15  Bruno Haible  <bruno@clisp.org>
99
100         * lib/trim.c (trim2): Fix argument of isspace() macro.
101
102 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
103
104         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
105         to 0.
106         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
107
108 2008-04-14  Bruno Haible  <bruno@clisp.org>
109
110         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
111         AC_LANG_PROGRAM argument.
112         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
113         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
114         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
115         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
116         * m4/math_h.m4 (gl_MATH_H): Likewise.
117         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
118         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
119         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
120         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
121         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
122         * m4/regex.m4 (gl_REGEX): Likewise.
123         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
124         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
125         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
126         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
127         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
128         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
129         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
130         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
131
132 2008-04-14  Jim Meyering  <meyering@redhat.com>
133
134         test-strtod: fix typos: s/abs/fabs/
135         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
136
137 2008-04-13  Bruno Haible  <bruno@clisp.org>
138
139         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
140         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
141         module is also used and while not building the reloc-wrapper.
142
143 2008-04-13  Bruno Haible  <bruno@clisp.org>
144
145         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
146
147 2008-04-13  Bruno Haible  <bruno@clisp.org>
148
149         Fix AIX compilation failure introduced on 2008-04-02.
150         * tests/test-frexp.c (exp): Undefine before redefining.
151         * tests/test-frexpl.c (exp): Likewise.
152
153 2008-04-13  Bruno Haible  <bruno@clisp.org>
154
155         Work around a HP-UX stdio bug.
156         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
157         * tests/test-ftello.c (main): Likewise.
158         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
159         * doc/posix-functions/ftello.texi: Likewise.
160
161 2008-04-13  Bruno Haible  <bruno@clisp.org>
162
163         Make test-signbit pass on HP-UX/hppa.
164         * tests/test-signbit.c (minus_zerol): New variable.
165         (test_signbitl): Use it.
166
167 2008-04-13  Bruno Haible  <bruno@clisp.org>
168
169         Make truncl work on OSF/1 4.0.
170         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
171         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
172         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
173         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
174         HAVE_DECL_TRUNCL.
175         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
176         HAVE_DECL_TRUNCL.
177         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
178
179 2008-04-13  Bruno Haible  <bruno@clisp.org>
180
181         * lib/unictype.h: Remove trailing comma from enumeration definitions.
182
183 2008-04-13  Bruno Haible  <bruno@clisp.org>
184
185         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
186         expression, so as to avoid HP-UX 11 cc compiler bug.
187
188 2008-04-13  Bruno Haible  <bruno@clisp.org>
189
190         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
191
192 2008-04-13  Bruno Haible  <bruno@clisp.org>
193
194         * lib/git-merge-changelog.c: Remove empty declaration outside of
195         functions.
196
197 2008-04-13  Bruno Haible  <bruno@clisp.org>
198
199         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
200
201 2008-04-13  Bruno Haible  <bruno@clisp.org>
202
203         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
204         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
205         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
206         also if it exists but lacks definitions of the SHUT_* macros.
207         * modules/sys_socket (Description): Update.
208         Reported by Elbert Pol <e.pol@chello.nl>.
209
210 2008-04-13  Bruno Haible  <bruno@clisp.org>
211
212         * lib/localcharset.c (OS2): Don't redefine if already defined.
213         Reported by Elbert Pol <e.pol@chello.nl>.
214
215 2008-04-13  Bruno Haible  <bruno@clisp.org>
216
217         * lib/binary-io.h [__EMX__]: Include <io.h>.
218         Reported by Elbert Pol <e.pol@chello.nl>.
219
220 2008-04-12  Bruno Haible  <bruno@clisp.org>
221
222         * lib/fpucw.h: Enable the definitions also for x86_64.
223         Needed for NetBSD/x86_64.
224         Reported by Thomas Klausner <tk@giga.or.at>.
225
226 2008-04-12  Bruno Haible  <bruno@clisp.org>
227
228         * tests/test-strtod.c: Include isnand.h.
229         (main): Use isnand instead of isnan.
230         Reported by Jim Meyering.
231
232 2008-04-12  Bruno Haible  <bruno@clisp.org>
233
234         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
235         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
236
237 2008-04-12  Jim Meyering  <meyering@redhat.com>
238
239         * m4/math_h.m4 (gl_MATH_H): Fix typos.
240
241 2008-04-12  Bruno Haible  <bruno@clisp.org>
242
243         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
244         Reported by Elbert Pol <e.pol@chello.nl>.
245
246 2008-04-12  Eric Blake  <ebb9@byu.net>
247
248         Work around Solaris 10 math.h bug.
249         * m4/math_h.m4 (gl_MATH_H): Check for bug.
250         (gl_MATH_H_DEFAULTS): Set up default.
251         * modules/math (Makefile.am): Replace new indicators.
252         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
253         * tests/test-math.c (main): Test this.
254         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
255         * doc/posix-headers/math.texi (math.h): Mention bug.
256         Reported by Nelson H. F. Beebe and Jim Meyering.
257
258 2008-04-11  Bruno Haible  <bruno@clisp.org>
259
260         Adapt to future versions of Apple GCC.
261         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
262         Reported by Peter O'Gorman <peter@pogma.com>.
263
264 2008-04-11  Bruno Haible  <bruno@clisp.org>
265
266         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
267
268 2008-04-11  Bruno Haible  <bruno@clisp.org>
269
270         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
271
272         * modules/getaddrinfo-tests (Makefile.am): Define
273         test_getaddrinfo_LDADD.
274
275 2008-04-11  Bruno Haible  <bruno@clisp.org>
276
277         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
278         (init): Fix syntax error.
279         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
280         is declared.
281
282 2008-04-11  Bruno Haible  <bruno@clisp.org>
283
284         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
285         * modules/glob (Depends-on): Add stdbool.
286
287 2008-04-11  Bruno Haible  <bruno@clisp.org>
288
289         * lib/trim.c: Include <string.h>.
290
291 2008-04-11  Eric Blake  <ebb9@byu.net>
292
293         Avoid compile failure on OS/2.
294         * lib/regex_internal.h (internal_function): Disable optimization
295         on OS/2 (__EMX__), where it caused compiler error.
296         Reported by Elbert Pol.
297
298 2008-04-11  Bruno Haible  <bruno@clisp.org>
299
300         Flush the standard error stream before aborting. Needed on mingw.
301         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
302         * tests/test-array_list.c (ASSERT): Likewise.
303         * tests/test-array_oset.c (ASSERT): Likewise.
304         * tests/test-avltree_list.c (ASSERT): Likewise.
305         * tests/test-avltree_oset.c (ASSERT): Likewise.
306         * tests/test-avltreehash_list.c (ASSERT): Likewise.
307         * tests/test-binary-io.c (ASSERT): Likewise.
308         * tests/test-byteswap.c (ASSERT): Likewise.
309         * tests/test-c-ctype.c (ASSERT): Likewise.
310         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
311         * tests/test-c-strcasestr.c (ASSERT): Likewise.
312         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
313         * tests/test-c-strstr.c (ASSERT): Likewise.
314         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
315         * tests/test-canonicalize.c (ASSERT): Likewise.
316         * tests/test-carray_list.c (ASSERT): Likewise.
317         * tests/test-ceilf1.c (ASSERT): Likewise.
318         * tests/test-ceilf2.c (ASSERT): Likewise.
319         * tests/test-ceill.c (ASSERT): Likewise.
320         * tests/test-count-one-bits.c (ASSERT): Likewise.
321         * tests/test-fbufmode.c (ASSERT): Likewise.
322         * tests/test-fflush2.c (ASSERT): Likewise.
323         * tests/test-floorf1.c (ASSERT): Likewise.
324         * tests/test-floorf2.c (ASSERT): Likewise.
325         * tests/test-floorl.c (ASSERT): Likewise.
326         * tests/test-fopen.c (ASSERT): Likewise.
327         * tests/test-fpending.c (ASSERT): Likewise.
328         * tests/test-fprintf-posix.c (ASSERT): Likewise.
329         * tests/test-fpurge.c (ASSERT): Likewise.
330         * tests/test-freadable.c (ASSERT): Likewise.
331         * tests/test-freadahead.c (ASSERT): Likewise.
332         * tests/test-freading.c (ASSERT): Likewise.
333         * tests/test-freadptr.c (ASSERT): Likewise.
334         * tests/test-freadptr2.c (ASSERT): Likewise.
335         * tests/test-freadseek.c (ASSERT): Likewise.
336         * tests/test-freopen.c (ASSERT): Likewise.
337         * tests/test-frexp.c (ASSERT): Likewise.
338         * tests/test-frexpl.c (ASSERT): Likewise.
339         * tests/test-fseek.c (ASSERT): Likewise.
340         * tests/test-fseeko.c (ASSERT): Likewise.
341         * tests/test-fstrcmp.c (ASSERT): Likewise.
342         * tests/test-ftell.c (ASSERT): Likewise.
343         * tests/test-ftello.c (ASSERT): Likewise.
344         * tests/test-func.c (ASSERT): Likewise.
345         * tests/test-fwritable.c (ASSERT): Likewise.
346         * tests/test-fwriting.c (ASSERT): Likewise.
347         * tests/test-getdelim.c (ASSERT): Likewise.
348         * tests/test-getline.c (ASSERT): Likewise.
349         * tests/test-i-ring.c (ASSERT): Likewise.
350         * tests/test-iconv-utf.c (ASSERT): Likewise.
351         * tests/test-iconv.c (ASSERT): Likewise.
352         * tests/test-isfinite.c (ASSERT): Likewise.
353         * tests/test-isnand.c (ASSERT): Likewise.
354         * tests/test-isnanf.c (ASSERT): Likewise.
355         * tests/test-isnanl.h (ASSERT): Likewise.
356         * tests/test-ldexpl.c (ASSERT): Likewise.
357         * tests/test-linked_list.c (ASSERT): Likewise.
358         * tests/test-linkedhash_list.c (ASSERT): Likewise.
359         * tests/test-localename.c (ASSERT): Likewise.
360         * tests/test-lseek.c (ASSERT): Likewise.
361         * tests/test-mbscasecmp.c (ASSERT): Likewise.
362         * tests/test-mbscasestr1.c (ASSERT): Likewise.
363         * tests/test-mbscasestr2.c (ASSERT): Likewise.
364         * tests/test-mbscasestr3.c (ASSERT): Likewise.
365         * tests/test-mbscasestr4.c (ASSERT): Likewise.
366         * tests/test-mbschr.c (ASSERT): Likewise.
367         * tests/test-mbscspn.c (ASSERT): Likewise.
368         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
369         * tests/test-mbspbrk.c (ASSERT): Likewise.
370         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
371         * tests/test-mbsrchr.c (ASSERT): Likewise.
372         * tests/test-mbsspn.c (ASSERT): Likewise.
373         * tests/test-mbsstr1.c (ASSERT): Likewise.
374         * tests/test-mbsstr2.c (ASSERT): Likewise.
375         * tests/test-mbsstr3.c (ASSERT): Likewise.
376         * tests/test-memchr2.c (ASSERT): Likewise.
377         * tests/test-memmem.c (ASSERT): Likewise.
378         * tests/test-open.c (ASSERT): Likewise.
379         * tests/test-printf-frexp.c (ASSERT): Likewise.
380         * tests/test-printf-frexpl.c (ASSERT): Likewise.
381         * tests/test-printf-posix.c (ASSERT): Likewise.
382         * tests/test-quotearg.c (ASSERT): Likewise.
383         * tests/test-rbtree_list.c (ASSERT): Likewise.
384         * tests/test-rbtree_oset.c (ASSERT): Likewise.
385         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
386         * tests/test-round1.c (ASSERT): Likewise.
387         * tests/test-roundf1.c (ASSERT): Likewise.
388         * tests/test-roundl.c (ASSERT): Likewise.
389         * tests/test-signbit.c (ASSERT): Likewise.
390         * tests/test-sleep.c (ASSERT): Likewise.
391         * tests/test-snprintf-posix.c (ASSERT): Likewise.
392         * tests/test-snprintf.c (ASSERT): Likewise.
393         * tests/test-sprintf-posix.c (ASSERT): Likewise.
394         * tests/test-stat-time.c (ASSERT): Likewise.
395         * tests/test-strcasestr.c (ASSERT): Likewise.
396         * tests/test-strerror.c (ASSERT): Likewise.
397         * tests/test-striconv.c (ASSERT): Likewise.
398         * tests/test-striconveh.c (ASSERT): Likewise.
399         * tests/test-striconveha.c (ASSERT): Likewise.
400         * tests/test-strsignal.c (ASSERT): Likewise.
401         * tests/test-strstr.c (ASSERT): Likewise.
402         * tests/test-strtod.c (ASSERT): Likewise.
403         * tests/test-trunc1.c (ASSERT): Likewise.
404         * tests/test-trunc2.c (ASSERT): Likewise.
405         * tests/test-truncf1.c (ASSERT): Likewise.
406         * tests/test-truncf2.c (ASSERT): Likewise.
407         * tests/test-truncl.c (ASSERT): Likewise.
408         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
409         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
410         * tests/test-vasnprintf.c (ASSERT): Likewise.
411         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
412         * tests/test-vasprintf.c (ASSERT): Likewise.
413         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
414         * tests/test-vprintf-posix.c (ASSERT): Likewise.
415         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
416         * tests/test-vsnprintf.c (ASSERT): Likewise.
417         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
418         * tests/test-wcwidth.c (ASSERT): Likewise.
419         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
420         * tests/test-xprintf-posix.c (ASSERT): Likewise.
421         * tests/test-xvasprintf.c (ASSERT): Likewise.
422         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
423         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
424         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
425         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
426         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
427         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
428         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
429         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
430         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
431         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
432         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
433         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
434         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
435         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
436         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
437         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
438         * tests/unictype/test-block_list.c (ASSERT): Likewise.
439         * tests/unictype/test-block_of.c (ASSERT): Likewise.
440         * tests/unictype/test-block_test.c (ASSERT): Likewise.
441         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
442         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
443         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
444         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
445         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
446         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
447         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
448         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
449         * tests/unictype/test-combining.c (ASSERT): Likewise.
450         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
451         * tests/unictype/test-digit.c (ASSERT): Likewise.
452         * tests/unictype/test-mirror.c (ASSERT): Likewise.
453         * tests/unictype/test-numeric.c (ASSERT): Likewise.
454         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
455         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
456         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
457         * tests/unictype/test-scripts.c (ASSERT): Likewise.
458         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
459         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
460         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
461         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
462         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
463         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
464         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
465         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
466         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
467         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
468         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
469         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
470         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
471         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
472         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
473         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
474         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
475         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
476         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
477         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
478         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
479         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
480         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
481         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
482         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
483         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
484         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
485         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
486         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
487         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
488         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
489         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
490         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
491         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
492         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
493         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
494         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
495         Reported by Eric Blake.
496
497 2008-04-11  Bruno Haible  <bruno@clisp.org>
498
499         * lib/wchar.in.h: Tweak comment.
500
501 2008-04-11  Bruno Haible  <bruno@clisp.org>
502
503         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
504         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
505         gl_COMMON.
506         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
507
508 2008-04-11  Bruno Haible  <bruno@clisp.org>
509
510         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
511
512 2008-04-11  Simon Josefsson  <simon@josefsson.org>
513
514         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
515         of attempting to use non-existing /dev/*random.  Based on patch
516         from Adam Strzelecki <ono@java.pl> in
517         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
518
519 2008-04-08  Bruno Haible  <bruno@clisp.org>
520
521         Add tentative support for emx+gcc.
522         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
523         * lib/fpurge.c (fpurge): Likewise.
524         * lib/freadable.c (freadable): Likewise.
525         * lib/freadahead.c (freadahead): Likewise.
526         * lib/freading.c (freading): Likewise.
527         * lib/freadptr.c (freadptr): Likewise.
528         * lib/freadseek.c (freadptrinc): Likewise.
529         * lib/fseeko.c (rpl_fseeko): Likewise.
530         * lib/fseterr.c (fseterr): Likewise.
531         * lib/fwritable.c (fwritable): Likewise.
532         * lib/fwriting.c (fwriting): Likewise.
533         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
534
535 2008-04-09  Eric Blake  <ebb9@byu.net>
536
537         Avoid some autoconf warnings.
538         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
539         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
540         * m4/afs.m4 (gl_AFS): Likewise.
541         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
542         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
543         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
544         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
545         (gl_INTEGER_TYPE_SUFFIX): Likewise.
546         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
547         (AC_CHECK_DECLS_ONCE): Likewise.
548         Rename file...
549         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
550         gnulib-tool requires autoconf 2.59 or better.
551         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
552
553 2008-04-08  Eric Blake  <ebb9@byu.net>
554
555         Use 'git describe --match' if present (added in git 1.5.5).
556         * build-aux/git-version-gen: Limit result to tags that match 'v*'
557         if possible.
558
559 2008-04-08  Bruno Haible  <bruno@clisp.org>
560
561         Add tentative support for OpenServer.
562         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
563         _ptr, _cnt.
564         * lib/fpurge.c (fpurge): Likewise.
565         * lib/freadable.c (freadable): Likewise.
566         * lib/freadahead.c (freadahead): Likewise.
567         * lib/freading.c (freading): Likewise.
568         * lib/freadptr.c (freadptr): Likewise.
569         * lib/freadseek.c (freadptrinc): Likewise.
570         * lib/fseeko.c (rpl_fseeko): Likewise.
571         * lib/fseterr.c (fseterr): Likewise.
572         * lib/fwritable.c (fwritable): Likewise.
573         * lib/fwriting.c (fwriting): Likewise.
574         Reported by Roger Cornelius <rac@tenzing.org> and
575         Brian K. White <brian@aljex.com>.
576
577 2008-04-06  Jim Meyering  <meyering@redhat.com>
578
579         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
580
581 2008-04-06  Bruno Haible  <bruno@clisp.org>
582
583         Avoid possible error with non-ASCII bytes in UTF-8 locales.
584         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
585         * tests/test-printf-posix.sh: Likewise.
586         * tests/test-vfprintf-posix.sh: Likewise.
587         * tests/test-vprintf-posix.sh: Likewise.
588         * tests/test-xprintf-posix.sh: Likewise.
589
590 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
591
592         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
593         hide error from 'ls', needed on OS/2.
594         Report by Elbert Pol <elbert.pol@gmail.com>.
595
596 2008-04-04  Eric Blake  <ebb9@byu.net>
597
598         Make test-fseeko.c failures meaningful.
599         * tests/test-fseeko.c: Print line number on failure.
600         * tests/test-fseek.c: Likewise.
601         Reported by Nelson H. F. Beebe.
602
603         Improve strtod bug detection check.
604         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
605         required for Solaris 10.
606         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
607
608 2008-04-04  Bruno Haible  <bruno@clisp.org>
609
610         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
611         by m4/setenv.m4.
612
613 2008-04-03  Eric Blake  <ebb9@byu.net>
614
615         Ensure sane .version contents.
616         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
617         version string.
618         * build-aux/git-version-gen: Improve documentation.
619
620         Make GNU make output nicer.
621         * top/GNUmakefile [!_have-Makefile]: Add dependency on
622         MAKECMDGOALS to enforce message for all command line targets.  Set
623         srcdir for use in maint.mk.
624
625         Another maintainer tweak.
626         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
627         a target that regenerates version.
628
629 2008-04-03  Jim Meyering  <meyering@redhat.com>
630
631         vc-list-files: don't cause coreutils "make po-check" failure
632         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
633
634 2008-04-03  Eric Blake  <ebb9@byu.net>
635
636         Allow VPATH usage of vc-list-files.
637         * build-aux/vc-list-files (scriptversion): Add timestamp.
638         (options): Add --help, --version, -C.
639         (CVS): Support installed cvsu.
640
641 2008-04-02  Bruno Haible  <bruno@clisp.org>
642
643         Avoid some "statement with no effect" warnings from gcc.
644         * tests/test-wctype.c (main): Explicitly ignore unused values.
645         Reported by Jim Meyering.
646
647 2008-04-02  Jim Meyering  <meyering@redhat.com>
648
649         Avoid some warnings from "gcc -Wshadow".
650         * tests/test-frexp.c (exp): Define to a different identifier.
651         * tests/test-frexpl.c (exp): Likewise.
652
653 2008-04-03  Jim Meyering  <meyering@redhat.com>
654
655         bootstrap: remove dangling *.[ch] symlinks from lib
656         * build-aux/bootstrap [dangling symlink removal]: Move find's
657         -depth option to precede all others, to avoid a warning.
658         Remove *.[ch] files too, and from "$source_base" (usually lib/).
659
660 2008-04-02  Bruno Haible  <bruno@clisp.org>
661
662         Avoid some warnings from "gcc -Wshadow".
663         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
664         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
665         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
666         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
667         Reported by Jim Meyering.
668
669 2008-04-01  Bruno Haible  <bruno@clisp.org>
670
671         Fix test to work on IRIX 6.5 with cc.
672         * tests/test-math.c (numeric_equal): New function.
673         (main): Use it.
674
675 2008-04-01  Bruno Haible  <bruno@clisp.org>
676
677         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
678
679 2008-04-01  Bruno Haible  <bruno@clisp.org>
680
681         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
682         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
683         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
684         (Depends-on): Remove math.
685
686         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
687         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
688         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
689         (Depends-on): Remove math.
690
691         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
692         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
693         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
694         (Depends-on): Remove math.
695         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
696         (Depends-on): Remove math.
697
698         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
699         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
700         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
701         (Depends-on): Remove math.
702         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
703         (Depends-on): Remove math.
704
705         * tests/test-round1.c: Include nan.h.
706         (main): Use NaNd instead of NAN.
707         * modules/round-tests (Files): Add tests/nan.h.
708
709         * tests/test-trunc1.c: Include nan.h.
710         (main): Use NaNd instead of NAN.
711         * modules/trunc-tests (Files): Add tests/nan.h.
712
713         * tests/test-roundf1.c: Include nan.h.
714         (main): Use NaNf instead of NAN.
715         * modules/roundf-tests (Files): Add tests/nan.h.
716
717         * tests/test-truncf1.c: Include nan.h.
718         (main): Use NaNf instead of NAN.
719         * modules/truncf-tests (Files): Add tests/nan.h.
720
721         * tests/test-ceilf1.c: Include nan.h.
722         (main): Use NaNf instead of NAN.
723         * modules/ceilf-tests (Files): Add tests/nan.h.
724
725         * tests/test-floorf1.c: Include nan.h.
726         (main): Use NaNf instead of NAN.
727         * modules/floorf-tests (Files): Add tests/nan.h.
728
729         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
730         (main): Use NaNf instead of NAN.
731         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
732
733         * tests/test-isnand.c: Include nan.h instead of <math.h>.
734         (main): Use NaNd instead of NAN.
735         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
736
737         * tests/test-frexp.c: Include nan.h.
738         (main): Use NaNd instead of NAN.
739         * modules/frexp-tests (Files): Add tests/nan.h.
740
741         * lib/isnan.c: Don't include <math.h>.
742         (FUNC): Don't use NAN macro.
743         * modules/isnand-nolibm (Depends-on): Remove math.
744         * modules/isnanf-nolibm (Depends-on): Remove math.
745         * modules/isnanl (Depends-on): Remove math.
746         * modules/isnanl-nolibm (Depends-on): Remove math.
747
748         * tests/nan.h: New file.
749
750 2008-04-01  Eric Blake  <ebb9@byu.net>
751
752         Fix typos.
753         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
754         values to be the right type.
755
756         For now, cater to gnulib strtod inaccuracies.
757         * tests/test-strtod.c (main): Allow 1-ulp error on expected
758         fractional results.  While not as nice from a QoI perspective, it
759         is a quicker patch than correctly implementing decimal to binary
760         rounding.
761
762 2008-03-31  Eric Blake  <ebb9@byu.net>
763
764         Guarantee a definition of NAN.
765         * lib/math.in.h (NAN): Define if missing.
766         * tests/test-math.c (main): Test it.
767         * doc/posix-headers/math.texi (math.h): Document this.
768         * lib/isnan.c (rpl_isnand): Use it.
769         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
770         * tests/test-floorf1.c (NaN): Likewise.
771         * tests/test-frexp.c (NaN): Likewise.
772         * tests/test-isnand.c (NaN): Likewise.
773         * tests/test-isnanf.c (NaN): Likewise.
774         * tests/test-round1.c (NaN): Likewise.
775         * tests/test-roundf1.c (NaN): Likewise.
776         * tests/test-snprintf-posix.h (NaN): Likewise.
777         * tests/test-sprintf-posix.h (NaN): Likewise.
778         * tests/test-trunc1.c (NaN): Likewise.
779         * tests/test-truncf1.c (NaN): Likewise.
780         * tests/test-vasnprintf-posix.c (NaN): Likewise.
781         * tests/test-vasprintf-posix.c (NaN): Likewise.
782         * modules/isnand-nolibm (Depends-on): Add math.
783         * modules/isnanf-nolibm (Depends-on): Likewise.
784         * modules/isnanl (Depends-on): Likewise.
785         * modules/isnanl-nolibm (Depends-on): Likewise.
786         * modules/snprintf-posix-tests (Depends-on): Likewise.
787         * modules/sprintf-posix-tests (Depends-on): Likewise.
788         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
789         * modules/vsprintf-posix-tests (Depends-on): Likewise.
790         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
791         * modules/vasprintf-posix-tests (Depends-on): Likewise.
792
793 2008-03-31  Bruno Haible  <bruno@clisp.org>
794
795         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
796         * doc/posix-functions/strtod.texi: Likewise.
797
798 2008-03-31  Bruno Haible  <bruno@clisp.org>
799
800         * tests/test-strtod.c (main): Don't use C99 syntax.
801
802 2008-03-31  Bruno Haible  <bruno@clisp.org>
803
804         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
805         Reported by Eric Blake.
806
807 2008-03-31  Jim Meyering  <meyering@redhat.com>
808
809         Don't compare actual signbit return values.
810         * tests/test-strtod.c (main): Rather, compare only their
811         zero/non-zero nature.
812
813 2008-03-31  Eric Blake  <ebb9@byu.net>
814
815         More strtod documentation.
816         * doc/posix-functions/strtod.texi (strtod): Interpret more test
817         failures as distinct bugs.
818
819 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
820
821         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
822         Problem reported by Erik Benada in
823         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
824
825 2008-03-30  Bruno Haible  <bruno@clisp.org>
826
827         * tests/test-strtod.c: Add comments about which assertion fails on which
828         platform.
829         * doc/posix-functions/strtod.texi: Add info about many more platforms.
830
831 2008-03-30  Eric Blake  <ebb9@byu.net>
832
833         Test signbit behavior on zeros.
834         * tests/test-signbit.c (test_signbitf): Add tests for zero.
835         (test_signbitd, test_signbitl): Likewise.
836
837         More strtod touchups.
838         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
839         sign of negative underflow, for now.  Use .5, not .1.
840         * doc/posix-functions/strtod.texi (strtod): Mention these
841         limitations.
842         Reported by Jim Meyering.
843
844 2008-03-30  Bruno Haible  <bruno@clisp.org>
845
846         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
847         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
848
849 2008-03-30  Bruno Haible  <bruno@clisp.org>
850
851         Avoid failure when attempting to return empty iconv results on some
852         platforms.
853         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
854         allocation, don't report ENOMEM when the resulting string is empty.
855
856 2008-03-30  Bruno Haible  <bruno@clisp.org>
857
858         Fix buffer overrun.
859         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
860         Don't consider the width for tmp_length. Check count against tmp_length
861         before doing the padding. Ensure enough allocation during padding.
862
863 2008-03-30  Eric Blake  <ebb9@byu.net>
864
865         strtod touchups.
866         * lib/strtod.c (strtod): Avoid compiler warnings.
867         Reported by Jim Meyering.
868
869 2008-03-30  Bruno Haible  <bruno@clisp.org>
870
871         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
872         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
873         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
874         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
875         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
876         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
877         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
878         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
879
880         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
881         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
882         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
883         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
884         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
885         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
886         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
887         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
888
889         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
890         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
891         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
892         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
893         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
894         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
895         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
896         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
897
898         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
899         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
900
901         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
902         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
903
904         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
905         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
906
907         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
908         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
909         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
910
911         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
912         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
913         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
914
915         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
916         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
917         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
918
919         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
920         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
921         * modules/vasprintf (Depends-on): Add EOVERFLOW.
922
923         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
924         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
925         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
926         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
927         (Depends-on): Add EOVERFLOW.
928         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
929         (Depends-on): Add EOVERFLOW.
930         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
931         (Depends-on): Add EOVERFLOW.
932         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
933         (Depends-on): Add EOVERFLOW.
934         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
935         (Depends-on): Add EOVERFLOW.
936         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
937         (Depends-on): Add EOVERFLOW.
938         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
939         (Depends-on): Add EOVERFLOW.
940         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
941         (Depends-on): Add EOVERFLOW.
942
943         * lib/sprintf.c (EOVERFLOW): Remove fallback.
944         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
945         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
946
947         * lib/snprintf.c (EOVERFLOW): Remove fallback.
948         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
949         * modules/snprintf (Depends-on): Add EOVERFLOW.
950
951         * lib/poll.c (EOVERFLOW): Remove fallback.
952         * modules/poll (Depends-on): Add EOVERFLOW.
953
954         * lib/getugroups.c (EOVERFLOW): Remove fallback.
955         * modules/getugroups (Depends-on): Add EOVERFLOW.
956
957         * lib/getdelim.c (EOVERFLOW): Remove fallback.
958         * modules/getdelim (Depends-on): Add EOVERFLOW.
959
960         * lib/ftell.c (EOVERFLOW): Remove fallback.
961         * modules/ftell (Depends-on): Add EOVERFLOW.
962
963         * lib/fprintf.c (EOVERFLOW): Remove fallback.
964         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
965         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
966
967         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
968
969         * modules/EOVERFLOW-tests: New file.
970         * tests/test-EOVERFLOW.c: New file.
971
972         * modules/EOVERFLOW: New file.
973         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
974
975 2008-03-30  Bruno Haible  <bruno@clisp.org>
976
977         Fix bug introduced on 2007-06-10.
978         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
979         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
980
981 2008-03-30  Bruno Haible  <bruno@clisp.org>
982
983         Improve freadseek's efficiency after ungetc.
984         * lib/freadseek.c: Include freadahead.h.
985         (freadptrinc): New function, extracted from freadseek.
986         (freadseek): Use it in a loop. Use freadahead to determine the number
987         of loop iterations.
988         * modules/freadseek (Depends-on): Add freadahead.
989         (configure.ac): Require AC_C_INLINE.
990
991 2008-03-30  Bruno Haible  <bruno@clisp.org>
992
993         * lib/freadseek.c (freadseek): Don't ignore the return value of
994         freadptr.
995
996 2008-03-29  Eric Blake  <ebb9@byu.net>
997
998         Add hex float support.
999         * modules/strtod (Depends-on): Add c-ctype.
1000         (Link): Mention POW_LIB.
1001         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
1002         whitespace between 'e' and exponent.
1003         * tests/test-strtod.c (main): Enable hex float tests.
1004         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
1005         now provides.
1006
1007         Document various strtod bugs, with some fixes.
1008         * doc/posix-functions/strtod.texi (strtod): Document bugs with
1009         "-0x", "inf", "nan", and hex constants.
1010         * doc/posix-functions/atof.texi (atof): Likewise.
1011         * modules/stdlib (Makefile.am): Support strtod.
1012         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
1013         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
1014         detect additional strtod bugs.
1015         * lib/stdlib.in.h (rpl_strtod): Add declarations.
1016         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
1017         bool where appropriate.  Parse 'inf' and 'nan'.
1018         * tests/test-strtod.c: New file.
1019         * modules/strtod (Depends-on): Add stdbool, stdlib.
1020         (configure.ac): Turn on module indicator.
1021         * modules/strtod-tests: New module.
1022
1023 2008-03-29  Eric Blake  <ebb9@byu.net>
1024
1025         Fix ftell on mingw.
1026         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
1027         * modules/ftell-tests (Depends-on): Add binary-io.
1028         * modules/ftello-tests (Depends-on): Likewise.
1029         * tests/test-ftell.c (main): Enhance test to cover behavior after
1030         ungetc.  Enforce binary mode.
1031         * tests/test-ftello.c (main): Likewise.
1032
1033         Pass test-freadseek on cygwin.
1034         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
1035         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
1036         ungetc buffer.
1037
1038         * tests/test-fflush2.c (main): Fix typo.
1039
1040 2008-03-29  Bruno Haible  <bruno@clisp.org>
1041
1042         * tests/test-fflush2.c (main): Temporarily disable the contents of
1043         this test.
1044         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
1045         Reported by Eric Blake.
1046
1047 2008-03-28  Simon Josefsson  <simon@josefsson.org>
1048
1049         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
1050         (GC_SHA224_DIGEST_SIZE): Add.
1051
1052         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
1053         (gc_hash_digest_length): Likewise.
1054         (gc_hash_buffer): Likewise.
1055
1056 2008-03-25  Bruno Haible  <bruno@clisp.org>
1057
1058         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
1059         detail which gettext release to use.
1060         Reported by Simon Josefsson.
1061
1062 2008-03-26  Jim Meyering  <meyering@redhat.com>
1063
1064         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
1065         * modules/gnumakefile (clean-GNUmakefile): Also, use
1066         test ... && ... || : syntax rather than if-then ... fi.
1067
1068         gnumakefile: Don't double-quote-expand $(VPATH) value.
1069         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
1070
1071 2008-03-24  Eric Blake  <ebb9@byu.net>
1072
1073         Alter GNUmakefile to install into top directory.
1074         * modules/maintainer-makefile: Split, and add dependency...
1075         * modules/gnumakefile: to this new module.
1076         * build-aux/GNUmakefile: Move...
1077         * top/GNUmakefile: ...here.
1078         * build-aux/maint.mk: Move...
1079         * top/maint.mk: ...here.
1080         * MODULES.html.sh (Support for maintaining...): Document new
1081         module.
1082
1083 2008-03-23  Bruno Haible  <bruno@clisp.org>
1084
1085         * gnulib-tool: New options --vc-files, --no-vc-files.
1086         (func_usage): Document them.
1087         (vc_files): New variable.
1088         (func_import): Consider vc_files.
1089         (func_create_testdir): Set vc_files to empty.
1090         Suggested by Jim Meyering and Karl Berry.
1091
1092 2008-03-23  Bruno Haible  <bruno@clisp.org>
1093
1094         Fix regex compilation error on HP-UX 11.
1095         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
1096         * modules/regex (Files): Add m4/mbstate_t.m4.
1097         Reported by Ton Voon <ton.voon@altinity.com>.
1098
1099 2008-03-23  Bruno Haible  <bruno@clisp.org>
1100
1101         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
1102
1103 2008-03-23  Eric Blake  <ebb9@byu.net>
1104             Bruno Haible  <bruno@clisp.org>
1105
1106         Install files from top/ in the destination directory.
1107         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
1108         augmentation also for the files from top/.
1109         (func_import, func_create_testdir): Rewrite file names:
1110         top/filename -> filename.
1111
1112 2008-03-23  Bruno Haible  <bruno@clisp.org>
1113
1114         Tweak "gnulib --version" output.
1115         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
1116
1117 2008-03-23  Bruno Haible  <bruno@clisp.org>
1118
1119         Tweak "gnulib --version" output.
1120         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
1121         rather than contents of ChangeLog, when possible.
1122
1123 2008-03-21  Eric Blake  <ebb9@byu.net>
1124
1125         More --version tweaks.
1126         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
1127         date of last ChangeLog entry.
1128
1129 2008-03-21  Jim Meyering  <meyering@redhat.com>
1130
1131         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
1132
1133 2008-03-20  Eric Blake  <ebb9@byu.net>
1134
1135         VPATH fix.
1136         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
1137
1138 2008-03-20  Simon Josefsson  <simon@josefsson.org>
1139
1140         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
1141         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
1142
1143 2008-03-20  Eric Blake  <ebb9@byu.net>
1144
1145         Sync GNUmakefile with coreutils.
1146         * build-aux/GNUmakefile (have-Makefile): Rename...
1147         (_have-Makefile): ...to this, for namespace consideration.
1148         (GNUmakefile.cfg): Include, if present.
1149         (_autoreconf): Define a default.
1150         (_is-dist-target): New rule for rebuilds to pick up intra-release
1151         version.
1152         (maint-cfg.mk): Rename...
1153         (cfg.mk): ...to this.
1154
1155 2008-03-18  Jim Meyering  <meyering@redhat.com>
1156
1157         New script and module: mktempd
1158         * MODULES.html.sh (maint+release support): Add mktempd.
1159         * build-aux/mktempd: New file.
1160         * modules/mktempd: New file.
1161
1162 2008-03-15  Jim Meyering  <meyering@redhat.com>
1163
1164         Undo last change.
1165         * lib/sha1.c, lib/md5.c: 63 != ~63.
1166         Reported by Andreas Schwab.
1167
1168         sha1.c, md5.c: Hoist a redundant expression.
1169         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
1170         "ctx->buflen" only once, before calling *_process_block.
1171         * lib/md5.c (md5_process_bytes): Likewise.
1172
1173 2008-03-14  Eric Blake  <ebb9@byu.net>
1174
1175         Bump copyright year in files generated by gnulib-tool.
1176         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
1177         gnulib-tool, rather than hard-coding it.
1178
1179         Fix 'gnulib-tool --version' output to work with git.
1180         * gnulib-tool (func_gnulib_dir): New function, extracted from...
1181         (startup): ...here.
1182         (func_version): Use it to invoke git-version-gen, rather than
1183         relying on CVS keyword expansion.  Modernize wording.
1184         (cvsdatestamp, last_checkin_date, version): Kill unused
1185         variables.
1186
1187 2008-03-12  Jim Meyering  <meyering@redhat.com>
1188
1189         Recognize optional cast of the argument to free.
1190         * build-aux/useless-if-before-free: Update regexps.
1191
1192         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
1193
1194 2008-03-11  Bruno Haible  <bruno@clisp.org>
1195
1196         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
1197         by a single package.
1198         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
1199         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
1200         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
1201         Reported by Sam Steingold <sds@gnu.org>.
1202
1203 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
1204
1205         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
1206         repositories.
1207
1208 2008-03-11  Bruno Haible  <bruno@clisp.org>
1209
1210         Avoid conflicts between local macro definitions.
1211         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
1212         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
1213
1214 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
1215             Bruno Haible  <bruno@clisp.org>
1216
1217         Make va_copy work with some version of xlc on AIX 5.1.
1218         * lib/stdarg.in.h: New file.
1219         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
1220         On AIX, use a <stdarg.h> file substitute.
1221         * modules/stdarg (Files): Add lib/stdarg.in.h.
1222         (Depends-on): Add include_next.
1223         (Makefile.am): Build a stdarg.h substitute if requested.
1224         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
1225
1226 2008-03-10  Bruno Haible  <bruno@clisp.org>
1227
1228         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
1229         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
1230         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
1231
1232 2008-03-10  Bruno Haible  <bruno@clisp.org>
1233
1234         * modules/stdlib (Depends-on): Add include_next, remove
1235         absolute-header.
1236
1237 2008-03-09  Bruno Haible  <bruno@clisp.org>
1238
1239         * lib/freadahead.h (freadahead): Document more precisely.
1240         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
1241         the sum of both buffer sizes.
1242         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
1243         * NEWS: Document the change.
1244
1245 2008-03-09  Bruno Haible  <bruno@clisp.org>
1246
1247         Extend freadptr to return also the buffer size.
1248         * lib/freadptr.h (freadptr): Add sizep argument.
1249         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
1250         (freadptr): Add sizep argument. Determine buffer size like freadahead
1251         does.
1252         * tests/test-freadptr.c: Don't include freadahead.h.
1253         (main): Adapt for new calling convention of freadptr.
1254         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
1255         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
1256         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
1257         tests/test-freadptr2.sh.
1258         (Depends): Remove freadahead.
1259         (TESTS): Add test-freadptr2.sh.
1260         (check_PROGRAMS): Add test-freadptr2.
1261
1262 2008-03-09  Bruno Haible  <bruno@clisp.org>
1263
1264         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
1265         Report and solution by Simon Josefsson.
1266
1267 2008-03-06  Bruno Haible  <bruno@clisp.org>
1268
1269         Make fflush after ungetc work on BSD platforms.
1270         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
1271         * tests/test-fflush2.c: New file.
1272         * tests/test-fflush2.sh: New file.
1273         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
1274         tests/test-fflush2.c.
1275         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
1276         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
1277
1278 2008-03-06  Eric Blake  <ebb9@byu.net>
1279
1280         Likewise for ftello.
1281         * modules/ftello (Dependencies): Add extensions.
1282         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
1283
1284 2008-03-06  Bruno Haible  <bruno@clisp.org>
1285
1286         * modules/fseeko (Dependencies): Add extensions.
1287         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
1288         Needed on glibc systems.
1289
1290 2008-03-06  Bruno Haible  <bruno@clisp.org>
1291
1292         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
1293         email address.
1294         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
1295
1296 2008-03-06  Bruno Haible  <bruno@clisp.org>
1297
1298         * users.txt: Add libgnupdf.
1299
1300 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
1301
1302         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
1303         (Header File Substitutes, Function Substitutes,
1304         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
1305         (Build robot for gnulib): Fix typo.
1306
1307 2008-03-06  Bruno Haible  <bruno@clisp.org>
1308
1309         * doc/gnulib-tool.texi (VCS Issues): Small updates.
1310         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
1311
1312 2008-03-06  Bruno Haible  <bruno@clisp.org>
1313
1314         * doc/func.texi: New file, extracted from doc/gnulib.texi.
1315         * doc/gnulib.texi: Include it.
1316
1317 2008-03-06  Simon Josefsson  <simon@josefsson.org>
1318
1319         * modules/func (License): Change license to unlimited; there was
1320         no LGPL parts in the module anyway.
1321
1322 2008-03-06  Simon Josefsson  <simon@josefsson.org>
1323
1324         * modules/__func__: Renamed to modules/func.
1325         * modules/__func__-tests: Renamed to modules/func-tests.
1326         * tests/test-__func__.c: Renamed to tests/test-func.c.
1327         * m4/__func__.m4: Renamed to m4/func.m4.
1328         * doc/gnulib.texi (__func__): Section renamed to func.
1329         Suggested by Eric Blake <ebb9@byu.net>.
1330
1331 2008-03-06  Simon Josefsson  <simon@josefsson.org>
1332
1333         * doc/gnulib.texi (__func__): Use C99 terminology when talking
1334         about __func__.  Make example self-contained.  Suggested by Eric
1335         Blake <ebb9@byu.net>.
1336
1337         * tests/test-__func__.c (main): Avoid extraneous () around __func.
1338         Suggested by Eric Blake <ebb9@byu.net>.
1339
1340 2008-03-06  Simon Josefsson  <simon@josefsson.org>
1341
1342         * modules/__func__: New file.
1343         * modules/__func__-tests: New file.
1344         * tests/test-__func__.c: New file.
1345         * m4/__func__.m4: New file.
1346         * doc/gnulib.texi (__func__): Document __func__ module.
1347
1348 2008-03-05  Simon Josefsson  <simon@josefsson.org>
1349
1350         * modules/byteswap (License): Re-license as LGPLv2+.
1351
1352 2008-03-05  Simon Josefsson  <simon@josefsson.org>
1353
1354         * doc/Makefile: Add pdf target.
1355
1356 2008-03-05  Simon Josefsson  <simon@josefsson.org>
1357
1358         * modules/inline (License): Use 'unlimited', since there are only
1359         *.m4 files in this module.
1360
1361 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
1362             Bruno Haible  <bruno@clisp.org>
1363
1364         Add support for HP C 7.1 on OpenVMS 8.3.
1365         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
1366
1367 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
1368
1369         Update VMS specifics.
1370         * lib/getopt.c [VMS]: Remove include of unixlib.h.
1371
1372 2008-03-02  Jim Meyering  <meyering@redhat.com>
1373
1374         Remove the last dependency on the "free" module.
1375         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
1376         Reported by Bob Proulx.
1377
1378         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
1379
1380         Remove useless "if" tests before free.  Deprecate "free" module.
1381         * doc/posix-functions/free.texi: Mention that this
1382         module is no longer useful.
1383         * modules/free (Notice): Say this module is obsolete.
1384         * modules/readutmp (Depends-on): Remove free.
1385         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
1386         * lib/putenv.c (putenv): Likewise.
1387         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
1388         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
1389         * tests/test-c-strcasestr.c (main): Likewise.
1390         * tests/test-c-strstr.c (main): Likewise.
1391         * tests/test-mbscasestr1.c (main): Likewise.
1392         * tests/test-mbscasestr2.c (main): Likewise.
1393         * tests/test-mbsstr1.c (main): Likewise.
1394         * tests/test-mbsstr2.c (main): Likewise.
1395         * tests/test-memmem.c (main): Likewise.
1396         * tests/test-strcasestr.c (main): Likewise.
1397         * tests/test-striconv.c (main): Likewise.
1398         * tests/test-striconveh.c (main): Likewise.
1399         * tests/test-striconveha.c (main): Likewise.
1400         * tests/test-strstr.c (main): Likewise.
1401
1402         * build-aux/git-version-gen: Adjust a comment and the Usage string.
1403
1404         bootstrap: sync from coreutils again
1405         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
1406
1407 2008-03-01  Jim Meyering  <meyering@redhat.com>
1408
1409         bootstrap: sync from coreutils
1410         * build-aux/bootstrap (update_po_files): Copy a .po file into place
1411         also when the target doesn't exist.
1412
1413 2008-03-01  Eric Blake  <ebb9@byu.net>
1414
1415         Fix bugs in last patch.
1416         * lib/memchr2.c (memchr2): Fix typo.
1417         * tests/test-memchr2.c: Test previous bug, and don't use GNU
1418         extension.
1419         Reported by Bruce Korb.
1420
1421         New module 'memchr2'.
1422         * modules/memchr2: New file.
1423         * modules/memchr2-tests: Likewise.
1424         * lib/memchr2.h: Likewise.
1425         * lib/memchr2.c: Likewise, based on memchr.c.
1426         * tests/test-memchr2.c: New test.
1427         * MODULES.html.sh (String handling): Add memchr2.
1428
1429 2008-02-29  Bruno Haible  <bruno@clisp.org>
1430
1431         * modules/freadseek-tests: New file.
1432         * tests/test-freadseek.sh: New file.
1433         * tests/test-freadseek.c: New file.
1434
1435         New module 'freadseek'.
1436         * modules/freadseek: New file.
1437         * lib/freadseek.h: New file.
1438         * lib/freadseek.c: New file.
1439         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
1440
1441 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
1442
1443         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
1444         wydawca.
1445
1446         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
1447         program_invocation_name and program_invocation_short_name are
1448         present.
1449
1450 2008-02-28  Bruno Haible  <bruno@clisp.org>
1451
1452         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
1453         * tests/test-freadptr.sh: Also test non-seekable stdin.
1454
1455 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
1456
1457         * build-aux/bootstrap (source_base, m4_base)
1458         (doc_base, tests_base): New variables.
1459         (gnulib_tool_options): Do not hardcode base directories, use
1460         the above variables instead.
1461
1462 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
1463
1464         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
1465
1466 2008-02-28  Bruno Haible  <bruno@clisp.org>
1467
1468         * modules/freadptr-tests: New file.
1469         * tests/test-freadptr.sh: New file.
1470         * tests/test-freadptr.c: New file.
1471
1472         New module 'freadptr'.
1473         * modules/freadptr: New file.
1474         * lib/freadptr.h: New file.
1475         * lib/freadptr.c: New file.
1476         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
1477
1478 2008-02-26  Karl Berry  <karl@freefriends.org>
1479
1480         Sync from Libtool:
1481         * libltdl/argz.c (argz_add, argz_count): New functions.
1482         * libltdl/argz.in.h: Declare them.
1483         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
1484
1485 2008-02-22  Bruno Haible  <bruno@clisp.org>
1486
1487         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
1488         is a pointer type.  Needed for HP-UX 10.
1489         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
1490         * doc/posix-functions/gmtime_r.texi: Likewise.
1491         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
1492
1493 2008-02-24  Bruno Haible  <bruno@clisp.org>
1494
1495         * modules/environ-tests: New file.
1496         * tests/test-environ.c: New file.
1497
1498         New module 'environ'.
1499         * modules/environ: New file.
1500         * lib/unistd.in.h (environ): New declaration.
1501         * m4/environ.m4: New file.
1502         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
1503         after use.
1504         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
1505         HAVE_DECL_ENVIRON.
1506         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
1507         HAVE_DECL_ENVIRON.
1508         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
1509         wrong claim that 'environ' is missing on some systems.
1510         * modules/execute (Depends-on): Add environ.
1511         * lib/execute.c (environ): Remove fallback declaration.
1512         * modules/pipe (Depends-on): Add environ.
1513         * lib/pipe.c (environ): Remove fallback declaration.
1514         * modules/setenv (Depends-on): Add environ.
1515         * lib/setenv.c (environ): Remove fallback declaration.
1516         * modules/unsetenv (Depends-on): Add environ.
1517         * lib/unsetenv.c (environ): Remove fallback declaration.
1518         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
1519         m4/environ.m4.
1520         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
1521         (gl_PREREQ_UNSETENV): Likewise.
1522
1523 2008-02-24  Bruno Haible  <bruno@clisp.org>
1524
1525         * doc/posix-functions/environ.texi: Document the MacOS X problem.
1526
1527 2008-02-20  Bob Proulx  <bob@proulx.com>
1528
1529         Enable use of older two part flavor 'git describe'.
1530         * build-aux/git-version-gen: If using the older two part flavor of
1531         git version then recreate the third part now present in the
1532         newer three part flavor of git describe.
1533
1534 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
1535
1536         * lib/fts.c (fts_build): Typo correction to comment.
1537
1538 2008-02-17  Bruno Haible  <bruno@clisp.org>
1539
1540         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
1541         generating no-op conflicts.
1542
1543 2008-02-17  Bruno Haible  <bruno@clisp.org>
1544
1545         Speed up by 10%.
1546         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
1547         result_entries, rather than an index-based loop.
1548
1549 2008-02-17  Bruno Haible  <bruno@clisp.org>
1550
1551         Speed up by 25%.
1552         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
1553         'hashcode_cached'.
1554         (entry_create): New function.
1555         (entry_hashcode): Use the cached hashcode if possible.
1556         (read_changelog_file, try_split_merged_entry): Use entry_create.
1557
1558 2008-02-17  Bruno Haible  <bruno@clisp.org>
1559
1560         Speed up from O(n^2) to O(n) for long ChangeLog files.
1561         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
1562         (read_changelog_file): Change implementation of entries_reversed list
1563         to rbtreehash.
1564         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
1565
1566 2008-02-17  Bruno Haible  <bruno@clisp.org>
1567
1568         New option --split-merged-entry.
1569         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
1570         (find_paragraph_end, try_split_merged_entry): New functions.
1571         (long_options): Add option --split-merged-entry.
1572         (usage): Document option --split-merged-entry.
1573         (main): Implement option --split-merged-entry.
1574         Reported by Eric Blake.
1575
1576 2008-02-17  Bruno Haible  <bruno@clisp.org>
1577
1578         * lib/git-merge-changelog.c: Include c-strstr.h.
1579         (main): Support the "git pull --rebase" situation.
1580         * modules/git-merge-changelog (Depends-on): Add c-strstr.
1581         Reported by Eric Blake.
1582
1583 2008-02-16  Eric Blake  <ebb9@byu.net>
1584
1585         Avoid doubling \ in common case of "c-maybe" quoting style.
1586         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
1587         eliding outer quotes.
1588         * lib/quotearg.h: Document this.
1589         * tests/test-quotearg.c (result_strings, inputs, results_g)
1590         (flag_results, locale_results): Test it by adding a new string to
1591         each test group.
1592         (compare_strings): Test new string.
1593
1594 2008-02-13  Eric Blake  <ebb9@byu.net>
1595
1596         Avoid trigraph quoting in default output.
1597         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
1598         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
1599         unless explicitly requested.
1600         * tests/test-quotearg.c (flag_results, main): Add additional tests.
1601
1602 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
1603
1604         Don't rely on signed integer overflowing to negative value.
1605         * lib/getugroups.c (getugroups): Include <limits.h>.
1606         Instead, compare against INT_MAX, and increment only if the test passes.
1607
1608 2008-02-13  Jim Meyering  <meyering@redhat.com>
1609         and Eric Blake  <ebb9@byu.net>
1610
1611         Avoid shadowing warning and compile errors on Linux.
1612         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
1613         forwarding macros on Linux.
1614         (dcgettext): Define a stub, for Linux.
1615         (results_g, main): Avoid warnings.
1616
1617 2008-02-12  Eric Blake  <ebb9@byu.net>
1618
1619         Silence warning in last patch.
1620         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
1621
1622         Quotearg part 4: add tests, fix c-maybe colon quoting.
1623         * lib/quotearg.h: Improve documentation.
1624         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
1625         escapes when adding outer quotes.  When quoting trigraphs, use
1626         valid C notation.  When quoting NUL, omit extra characters if next
1627         character is not digit.  Alter prototype.
1628         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
1629         callers.
1630         * modules/quotearg-tests: New module.
1631         * tests/test-quotearg.c: New test.
1632
1633 2008-02-07  Eric Blake  <ebb9@byu.net>
1634
1635         Quotearg part 3: add flag to control outer quote elision.
1636         * lib/quotearg.h (c_maybe_quoting_style): New style.
1637         (enum quoting_flags): Better documentation of flags.
1638         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
1639         c-maybe style.
1640         (quotearg_buffer_restyled): Handle new flag to elide outer
1641         quotes.
1642
1643         Quotearg part 2: add flag that can control NUL elision.
1644         * lib/quotearg.h (set_quoting_flags): New prototype.
1645         * lib/quotearg.c (struct quoting_options): Add flag field.
1646         (set_quoting_flags): New function.
1647         (quotearg_buffer_restyled): Add flags parameter.
1648         (quotearg_alloc_mem): Set the flag if length cannot be returned.
1649         (quotearg_n_options): Set the flag, since length cannot be
1650         returned.
1651         (quoting_options_from_style): Default flags correctly.
1652
1653         Quotearg part 1: more wrappers, restore quotearg_char state.
1654         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
1655         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
1656         (quotearg_colon_mem): New wrappers.
1657         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
1658         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
1659         functions.
1660         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
1661         (quotearg_colon_mem): New functions.
1662
1663 2008-02-11  Bruno Haible  <bruno@clisp.org>
1664
1665         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
1666         library in the current directory: it does not work with parallel make.
1667         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1668
1669 2008-02-11  Bruno Haible  <bruno@clisp.org>
1670
1671         * .gitattributes: New file.
1672
1673 2008-02-11  Jim Meyering  <meyering@redhat.com>
1674
1675         useless-if-before-free: Fix reversed exit values.
1676         * build-aux/useless-if-before-free: Use correct values
1677         for EXIT_MATCH and EXIT_NO_MATCH.
1678
1679         * build-aux/useless-if-before-free: Close stdout carefully.
1680
1681 2008-02-10  Bruno Haible  <bruno@clisp.org>
1682
1683         New module 'git-merge-changelog'.
1684         * modules/git-merge-changelog: New file.
1685         * lib/git-merge-changelog.c: New file.
1686
1687 2008-02-10  Jim Meyering  <meyering@redhat.com>
1688
1689         useless-if-before-free: New option: --list (-l).
1690
1691         useless-if-before-free: Don't exit immediately upon open failure.
1692         * build-aux/useless-if-before-free: Exit 2 for errors.
1693         Upon failure to open a file, don't exit immediately.
1694         Rather, just warn and continue with any remaining files.
1695
1696 2008-02-10  Bruno Haible  <bruno@clisp.org>
1697
1698         New abstract list operation 'node_set_value'.
1699         * lib/gl_list.h (gl_list_node_set_value): New function.
1700         (struct gl_list_implementation): New field node_set_value.
1701         * lib/gl_list.c (gl_list_node_set_value): New function.
1702         * lib/gl_array_list.c (gl_array_node_set_value): New function.
1703         (gl_array_list_implementation): Update.
1704         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
1705         (gl_carray_list_implementation): Update.
1706         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
1707         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
1708         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
1709         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
1710         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
1711         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
1712         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
1713         Update.
1714         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
1715         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
1716         (gl_sublist_list_implementation): Update.
1717
1718 2008-02-10  Bruno Haible  <bruno@clisp.org>
1719
1720         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
1721         Needed when ELEMENT is #defined to 'some_type *'.
1722
1723 2008-02-10  Jim Meyering  <meyering@redhat.com>
1724
1725         New script and module: useless-if-before-free
1726         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
1727         * build-aux/useless-if-before-free: New file.
1728         * modules/useless-if-before-free: New file.
1729
1730         * build-aux/gitlog-to-changelog: Use committer date, not author date.
1731
1732         xstrtol_error: Fix typo.
1733         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
1734         s/exit_failure/exit_status/.
1735
1736 2008-02-09  Jim Meyering  <meyering@redhat.com>
1737
1738         New script and module: gitlog-to-changelog
1739         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
1740         * modules/gitlog-to-changelog: New file.
1741         * build-aux/gitlog-to-changelog: New file.
1742
1743 2008-02-08  Jim Meyering  <meyering@redhat.com>
1744
1745         Avoid two "parameter unused" warnings.
1746         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
1747         Mark "st" as used.
1748
1749         Use "git COMMAND", not "git-COMMAND".
1750         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
1751         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
1752         * build-aux/git-version-gen: Use "git status", not "git-status".
1753
1754 2008-02-07  Bruno Haible  <bruno@clisp.org>
1755
1756         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
1757         Avoids a crash on Windows Vista.
1758         Reported by Adam Strzelecki <ono@java.pl> via
1759         Simon Josefsson <simon@josefsson.org>.
1760
1761 2008-02-06  Bruno Haible  <bruno@clisp.org>
1762
1763         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
1764         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
1765         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
1766         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
1767         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
1768         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
1769         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
1770         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
1771         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
1772         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
1773         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
1774         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
1775         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
1776         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
1777         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
1778         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
1779         left-adjust flag.
1780         * tests/test-snprintf-posix.h (test_function): Likewise.
1781         * tests/test-sprintf-posix.h (test_function): Likewise.
1782         * tests/test-vasprintf-posix.c (test_function): Likewise.
1783         * doc/posix-functions/fprintf.texi: Update.
1784         * doc/posix-functions/printf.texi: Update.
1785         * doc/posix-functions/snprintf.texi: Update.
1786         * doc/posix-functions/sprintf.texi: Update.
1787         * doc/posix-functions/vfprintf.texi: Update.
1788         * doc/posix-functions/vprintf.texi: Update.
1789         * doc/posix-functions/vsnprintf.texi: Update.
1790         * doc/posix-functions/vsprintf.texi: Update.
1791         Reported by Peter Fales <psfales@alcatel-lucent.com>.
1792
1793 2008-02-06  Bruno Haible  <bruno@clisp.org>
1794
1795         Fix bug introduced on 2008-01-26.
1796         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
1797
1798 2008-02-06  Bruno Haible  <bruno@clisp.org>
1799
1800         Fix bug introduced on 2007-06-10.
1801         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
1802         !NEED_PRINTF_FLAG_ZERO.
1803
1804 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
1805
1806         getloadavg: use libperfstat on AIX5
1807         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
1808
1809 2008-02-03  Bruno Haible  <bruno@clisp.org>
1810
1811         * lib/diffseq.h: Add comments about required #includes.
1812         Reported by Michael Biggs <gnulib@doubleplum.net>.
1813
1814 2008-02-01  Bruno Haible  <bruno@clisp.org>
1815
1816         * users.txt: Add gnuit.
1817
1818 2008-01-31  Bruno Haible  <bruno@clisp.org>
1819
1820         * lib/md4.c (set_uint32): Mark as inline.
1821         * lib/md5.c (set_uint32): Likewise.
1822         * lib/sha1.c (set_uint32): Likewise.
1823         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
1824         * m4/md5.m4 (gl_MD5): Likewise.
1825         * m4/sha1.m4 (gl_SHA1): Likewise.
1826
1827 2008-01-31  Jim Meyering  <meyering@redhat.com>
1828
1829         Use "sizeof VAR", rather than a literal "4".
1830         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
1831         * lib/md4.c (md4_read_ctx): Likewise.
1832         * lib/sha1.c (sha1_read_ctx): Likewise.
1833
1834 2008-01-31  Simon Josefsson  <simon@josefsson.org>
1835
1836         * tests/test-sha1.c: New file, based on test-md5.c.
1837
1838         * modules/crypto/sha1-tests: New file.
1839
1840 2008-01-31  Simon Josefsson  <simon@josefsson.org>
1841
1842         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
1843
1844 2008-01-31  Jim Meyering  <meyering@redhat.com>
1845
1846         Prefer "sizeof v" over the equivalent "4".
1847         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
1848         * lib/md5.c (set_uint32): Likewise.
1849         * lib/sha1.c (set_uint32): Likewise.
1850
1851 2008-01-31  Simon Josefsson  <simon@josefsson.org>
1852
1853         * lib/sha1.c (set_uint32): Mark function as static.
1854
1855 2008-01-31  Simon Josefsson  <simon@josefsson.org>
1856
1857         md2: clarify comments to say that alignment is not required.
1858         * lib/md2.h: Remove warning about alignment in comment.
1859         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
1860         never been required.
1861
1862 2008-01-31  Simon Josefsson  <simon@josefsson.org>
1863
1864         md4: adapt alignment constraint fix from sha1.
1865         * lib/md4.c (set_uint32): New function, from sha1.c
1866         (md4_read_ctx): Use it.
1867         (md4_finish_ctx): Doc fix.
1868         * lib/md4.h: Doc fix.
1869
1870 2008-01-31  Simon Josefsson  <simon@josefsson.org>
1871
1872         md5: adapt alignment constraint fix from sha1.
1873         * lib/md5.c (set_uint32): New function, from sha1.c
1874         (md5_read_ctx): Use it.
1875         (md5_finish_ctx): Doc fix.
1876         * lib/md5.h: Doc fix.
1877
1878 2008-01-30  Peter Palfrader  <weasel@debian.org>
1879
1880         sha1: remove the result buffer alignment constraint
1881         * lib/sha1.c (set_uint32): New function.
1882         (sha1_read_ctx): Rewrite to remove the result buffer alignment
1883         constraint.
1884         (sha1_finish_ctx): Remove comment warning about alignment constraint.
1885         * lib/sha1.h: Likewise.
1886
1887 2008-01-30  Andreas Schwab  <schwab@suse.de>
1888             Bruno Haible  <bruno@clisp.org>
1889
1890         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
1891         correct definition of LDBL_MIN_EXP.
1892
1893 2008-01-30  Karl Berry  <karl@gnu.org>
1894
1895         * config/srclist-update: try to preserve x bit on updates.
1896         * config/srclistvars.sh: update for karl.
1897
1898 2008-01-29  Jim Meyering  <meyering@redhat.com>
1899
1900         vasnprintf.c: Avoid warning about unused label
1901         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
1902         "overflow" label definition and associated code with the
1903         same cpp condition that guards the sole use of that label.
1904
1905 2008-01-26  Bruno Haible  <bruno@clisp.org>
1906
1907         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
1908         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
1909         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
1910         * lib/isnanl-nolibm.h (isnanl): Likewise.
1911         Reported by Paul Eggert <eggert@cs.ucla.edu>.
1912
1913 2008-01-26  Bruno Haible  <bruno@clisp.org>
1914
1915         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
1916         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
1917
1918 2008-01-26  Bruno Haible  <bruno@clisp.org>
1919
1920         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
1921         GCC >= 4.0 built-in.
1922         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
1923
1924 2008-01-26  Bruno Haible  <bruno@clisp.org>
1925
1926         Rename isnan, applicable to 'double' only, to isnand.
1927         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
1928         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
1929         (configure.ac): Update.
1930         (Include): Replace "isnan.h" with "isnand.h".
1931         * m4/isnand.m4: Renamed from m4/isnan.m4.
1932         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
1933         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
1934         instead of isnan.c.
1935         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
1936         instead of HAVE_ISNAN_IN_LIBC.
1937         (isnand): Renamed from isnan.
1938         * lib/isnand.c: New file.
1939         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
1940         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
1941         (Makefile.am): Update.
1942         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
1943         Include isnand.h instead of isnan.h.
1944         (main): Test isnand instead of isnan.
1945         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
1946         isnan-nolibm.
1947         * modules/frexp (Depends-on): Likewise.
1948         * modules/frexp-tests (Depends-on): Likewise.
1949         * modules/frexp-nolibm (Depends-on): Likewise.
1950         * modules/frexp-nolibm-tests (Depends-on): Likewise.
1951         * modules/isfinite (Depends-on): Likewise.
1952         * modules/round-tests (Depends-on): Likewise.
1953         * modules/signbit (Depends-on): Likewise.
1954         * modules/signbit-tests (Depends-on): Likewise.
1955         * modules/snprintf-posix (Depends-on): Likewise.
1956         * modules/sprintf-posix (Depends-on): Likewise.
1957         * modules/trunc-tests (Depends-on): Likewise.
1958         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
1959         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
1960         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
1961         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
1962         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
1963         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
1964         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
1965         * modules/vasnprintf-posix (Depends-on): Likewise.
1966         * modules/vasprintf-posix (Depends-on): Likewise.
1967         * modules/vfprintf-posix (Depends-on): Likewise.
1968         * modules/vsnprintf-posix (Depends-on): Likewise.
1969         * modules/vsprintf-posix (Depends-on): Likewise.
1970         * lib/frexp.c: Include isnand.h instead of isnan.h.
1971         (ISNAN): Set to isnand instead of isnan.
1972         * lib/isfinite.c: Include isnand.h instead of isnan.h.
1973         (gl_isfinited): Use isnand instead of isnan.
1974         * lib/signbitd.c: Include isnand.h instead of isnan.h.
1975         (gl_signbitd): Use isnand instead of isnan.
1976         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
1977         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
1978         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
1979         (main): Use isnand instead of isnan.
1980         * tests/test-round1.c: Include isnand.h.
1981         (main): Use isnand instead of isnan.
1982         * tests/test-round2.c: Include isnand.h instead of isnan.h.
1983         (ISNAN): Set to isnand instead of isnan.
1984         * tests/test-trunc1.c: Include isnand.h.
1985         (main): Use isnand instead of isnan.
1986         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
1987         (equal): Use isnand instead of isnan.
1988         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
1989         isnand-nolibm.
1990         * NEWS: Mention the change.
1991
1992 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
1993             Bruno Haible  <bruno@clisp.org>
1994
1995         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
1996         the GCC builtins for signbits are present and set
1997         REPLACE_SIGNBIT_USING_GCC if so.
1998         * lib/math.in.h (signbit): Define using GCC builtins if
1999         REPLACE_SIGNBIT_USING_GCC is set.
2000         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
2001         REPLACE_SIGNBIT_USING_GCC.
2002         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
2003
2004 2008-01-25  Jim Meyering  <meyering@redhat.com>
2005
2006         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
2007         * lib/poll.c: Include <config.h>, not "config.h".
2008         * tests/test-getaddrinfo.c: Likewise.
2009
2010 2008-01-25  Simon Josefsson  <simon@josefsson.org>
2011
2012         * modules/sockets-tests: New file.
2013
2014 2008-01-24  Simon Josefsson  <simon@josefsson.org>
2015
2016         * modules/sockets: New module, can be used to call WSA_Startup and
2017         WSA_Cleanup when needed.
2018
2019         * lib/sockets.h, lib/sockets.c: New files.
2020
2021         * m4/sockets.m4: New file.
2022
2023         * tests/test-sockets.c: New file.
2024
2025 2008-01-19  Bruno Haible  <bruno@clisp.org>
2026
2027         * doc/posix-headers: Renamed from doc/headers.
2028         * doc/posix-functions: Renamed from doc/functions.
2029         * doc/gnulib.texi: Update.
2030
2031 2008-01-19  Bruno Haible  <bruno@clisp.org>
2032
2033         * doc/glibc-functions/strcasestr.texi: Include contents of
2034         doc/functions/strcasestr.texi, fixing the list of platforms.
2035         * doc/functions/strcasestr.texi: Remove file.
2036
2037 2008-01-19  Bruno Haible  <bruno@clisp.org>
2038
2039         * doc/glibc-functions/memmem.texi: Include contents of
2040         doc/functions/memmem.texi.
2041         * doc/functions/memmem.texi: Remove file.
2042
2043 2008-01-18  Bruno Haible  <bruno@clisp.org>
2044
2045         * doc/glibc-functions/*.texi: New files.
2046         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
2047         to use the new files.
2048
2049 2008-01-17  Bruno Haible  <bruno@clisp.org>
2050
2051         * tests/test-gethostname.c (main): Fix printf statement.
2052
2053 2008-01-17  Simon Josefsson  <simon@josefsson.org>
2054
2055         * modules/gethostname-tests: New file.
2056
2057         * tests/test-gethostname.c: New file.
2058
2059 2008-01-17  Simon Josefsson  <simon@josefsson.org>
2060
2061         * lib/gethostname.c: Include string.h unconditionally, strncpy is
2062         used by the UNAME case.  Reported by Bruno Haible
2063         <bruno@clisp.org>.
2064
2065 2008-01-17  Eric Blake  <ebb9@byu.net>
2066
2067         Convert c-strcasestr to be more efficient.
2068         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
2069         (Depends-on): Add c-strcase, remove malloca, strnlen.
2070         * tests/test-c-strcasestr.c (main): Enhance test.
2071         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
2072
2073 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
2074
2075         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
2076         Use it in creating po/Makevars.
2077
2078 2008-01-15  Simon Josefsson  <simon@josefsson.org>
2079
2080         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
2081         Applications that requires it should initialize libgcrypt
2082         manually.
2083
2084 2008-01-16  Simon Josefsson  <simon@josefsson.org>
2085
2086         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
2087
2088 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
2089
2090         Fix problem with getdate on mingw32 reported by Simon Josefsson
2091         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
2092         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
2093         tzname", when deciding whether to declare tzname.
2094         * lib/strftime.c (tzname): Likewise.
2095
2096 2008-01-15  Bruno Haible  <bruno@clisp.org>
2097
2098         Work around a MacOS X 10.5 bug in frexpl().
2099         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
2100         * doc/functions/frexpl.texi: Document the bug.
2101         Reported by Elias Pipping <pipping@gentoo.org>.
2102
2103 2008-01-14  Eric Blake  <ebb9@byu.net>
2104
2105         Touch up previous patch.
2106         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
2107         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
2108
2109         Convert strcasestr module to use Two-Way algorithm.
2110         * modules/strcasestr-simple: New module, based on the old
2111         strcasestr, but with Two-Way rather than KMP.
2112         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
2113         * lib/string.in.h (rpl_strcasestr): Declare.
2114         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
2115         performance.
2116         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
2117         * modules/string (Makefile.am): Support strcasestr.
2118         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
2119         * modules/strcasestr-tests (Depends-on): Check for alarm.
2120         * tests/test-strcasestr.c: Augment test.
2121         * lib/str-two-way.h: Clean up stray macro.
2122         * NEWS: Document new module.
2123         * MODULES.html.sh (string handling): Likewise.
2124         * doc/functions/strcasestr.texi: New file.
2125         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
2126         here, since it is not a POSIX function.
2127
2128 2008-01-14  Colin Watson  <cjwatson@debian.org>
2129             Bruno Haible  <bruno@clisp.org>
2130
2131         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
2132         works fine; if not, set REPLACE_STRSIGNAL.
2133         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
2134         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
2135         REPLACE_STRSIGNAL.
2136         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
2137         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
2138         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
2139
2140 2008-01-14  Bruno Haible  <bruno@clisp.org>
2141
2142         * modules/strsignal (Include): Change to <string.h>.
2143
2144 2008-01-14  Colin Watson  <cjwatson@debian.org>
2145
2146         * modules/argp (Notice): Add a notice recommending to change
2147         XGETTEXT_OPTIONS.
2148         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
2149
2150 2008-01-13  Colin Watson  <cjwatson@debian.org>
2151
2152         * modules/strsignal-tests: New file.
2153         * tests/test-strsignal.c: New file.
2154
2155         * lib/strsignal.c: New file, from glibc with modifications.
2156         * lib/siglist.h: New file, from glibc with modifications.
2157         * lib/string.in.h (strsignal): New declaration.
2158         * m4/strsignal.m4: New file.
2159         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
2160         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
2161         * modules/strsignal: New file.
2162         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
2163         HAVE_DECL_STRSIGNAL.
2164
2165 2008-01-13  Bruno Haible  <bruno@clisp.org>
2166
2167         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
2168         locale encoding is not ASCII. Needed for OpenBSD 4.0.
2169         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
2170         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
2171
2172 2008-01-13  Bruno Haible  <bruno@clisp.org>
2173
2174         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
2175         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
2176         * lib/argp.h (__attribute__): Likewise.
2177         * lib/c-stack.c (__attribute__): Likewise.
2178         * lib/error.h (__attribute__): Likewise.
2179         * lib/fts.c (__attribute__): Likewise.
2180         * lib/openat.h (__attribute__): Likewise.
2181         * lib/stdio.in.h (__attribute__): Likewise.
2182         * lib/string.in.h (__attribute__): Likewise.
2183         * lib/utimens.c (__attribute__): Likewise.
2184         * lib/vasnprintf.h (__attribute__): Likewise.
2185         * lib/xalloc.h (__attribute__): Likewise.
2186         * lib/xprintf.h (__attribute__): Likewise.
2187         * lib/xstrtol.h (__attribute__): Likewise.
2188         * lib/xvasprintf.h (__attribute__): Likewise.
2189
2190 2008-01-12  Bruno Haible  <bruno@clisp.org>
2191
2192         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
2193         * doc/glibc-headers/a.out.texi: New file.
2194         * doc/glibc-headers/aliases.texi: New file.
2195         * doc/glibc-headers/alloca.texi: New file.
2196         * doc/glibc-headers/ar.texi: New file.
2197         * doc/glibc-headers/argp.texi: New file.
2198         * doc/glibc-headers/argz.texi: New file.
2199         * doc/glibc-headers/byteswap.texi: New file.
2200         * doc/glibc-headers/crypt.texi: New file.
2201         * doc/glibc-headers/endian.texi: New file.
2202         * doc/glibc-headers/envz.texi: New file.
2203         * doc/glibc-headers/err.texi: New file.
2204         * doc/glibc-headers/error.texi: New file.
2205         * doc/glibc-headers/execinfo.texi: New file.
2206         * doc/glibc-headers/fpu_control.texi: New file.
2207         * doc/glibc-headers/fstab.texi: New file.
2208         * doc/glibc-headers/fts.texi: New file.
2209         * doc/glibc-headers/getopt.texi: New file.
2210         * doc/glibc-headers/ieee754.texi: New file.
2211         * doc/glibc-headers/ifaddrs.texi: New file.
2212         * doc/glibc-headers/libintl.texi: New file.
2213         * doc/glibc-headers/mcheck.texi: New file.
2214         * doc/glibc-headers/mntent.texi: New file.
2215         * doc/glibc-headers/obstack.texi: New file.
2216         * doc/glibc-headers/paths.texi: New file.
2217         * doc/glibc-headers/printf.texi: New file.
2218         * doc/glibc-headers/pty.texi: New file.
2219         * doc/glibc-headers/resolv.texi: New file.
2220         * doc/glibc-headers/shadow.texi: New file.
2221         * doc/glibc-headers/sysexits.texi: New file.
2222         * doc/glibc-headers/ttyent.texi: New file.
2223
2224 2008-01-12  Jim Meyering  <meyering@redhat.com>
2225
2226         announce-gen: emit Gnulib's git-based version string.
2227         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
2228         New option --gnulib-version=V, where V is expected to be
2229         the output of running git describe in the gnulib directory.
2230         (get_tool_versions): Request feedback on xdelta.  I suspect it's
2231         not useful, and plan to stop publishing an xdelta file with each
2232         coreutils release.
2233
2234         * build-aux/announce-gen: Also check for lzma-compressed files.
2235
2236 2008-01-11  Bruno Haible  <bruno@clisp.org>
2237
2238         * tests/test-memmem.c (main): Increase maximum allowed time.
2239         * tests/test-strstr.c (main): Likewise.
2240
2241 2008-01-11  Bruno Haible  <bruno@clisp.org>
2242
2243         * doc/functions/memmem.texi: Add more precisions about platforms.
2244         * doc/functions/strstr.texi: Likewise.
2245
2246 2008-01-10  Eric Blake  <ebb9@byu.net>
2247
2248         * m4/strstr.m4: Delete cruft from copy-n-paste.
2249         Reported by Bruno Haible.
2250
2251 2008-01-10  Bruno Haible  <bruno@clisp.org>
2252
2253         Make c-strstr rely on strstr.
2254         * lib/c-strstr.c: Don't include str-kmp.h.
2255         (c_strstr): Define in terms of strstr.
2256         * modules/c-strstr (Files): Remove lib/str-kmp.h.
2257         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
2258
2259 2008-01-10  Bruno Haible  <bruno@clisp.org>
2260
2261         * doc/gnulib.texi (String Functions in C Locale): New section.
2262         * doc/c-ctype.texi: New file.
2263         * doc/c-strcase.texi: New file.
2264         * doc/c-strcaseeq.texi: New file.
2265         * doc/c-strcasestr.texi: New file.
2266         * doc/c-strstr.texi: New file.
2267         * doc/c-strtod.texi: New file.
2268         * doc/c-strtold.texi: New file.
2269
2270 2008-01-10  Eric Blake  <ebb9@byu.net>
2271
2272         * lib/relocatable.h: Fix a comment.
2273
2274 2008-01-10  Eric Blake  <ebb9@byu.net>
2275
2276         Share two-way algorithm.
2277         * lib/str-two-way.h: New file, merged from...
2278         * lib/memmem.c: ...here...
2279         * lib/strstr.c: ...and here.
2280         * modules/memmem (Files): Use it.
2281         * modules/strstr (Files): Likewise.
2282
2283         Avoid quadratic strstr implementations.
2284         * lib/strstr.c: New file.
2285         * m4/strstr.m4: Likewise.
2286         * modules/strstr: Likewise.
2287         * modules/strstr-tests: Likewise.
2288         * tests/test-strstr.c: Likewise.
2289         * lib/string.in.h (rpl_strstr): Declare.
2290         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
2291         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
2292         * modules/string (Makefile.am): Likewise.
2293         * MODULES.html.sh (string handling): Mention new module.
2294         * doc/functions/strstr.texi (strstr): Document the bug.
2295
2296 2008-01-10  Bruno Haible  <bruno@clisp.org>
2297
2298         * lib/relocatable.h (relocate): State whether result is freshly
2299         allocated or not.
2300         * lib/relocatable.c (relocate): Return a freshly allocated string
2301         instead of a pointer to a privately held string.
2302         Reported by Sylvain Beucler <beuc@gnu.org>.
2303
2304 2008-01-10  Colin Watson  <cjwatson@debian.org>
2305
2306         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
2307         s/S_ISNLK/S_ISLNK/.
2308
2309 2008-01-09  Bruno Haible  <bruno@clisp.org>
2310
2311         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
2312         and other files.
2313         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
2314         if it's only a guess.
2315         * modules/memmem: Simplify by depending on memmem-simple.
2316
2317 2008-01-09  Bruno Haible  <bruno@clisp.org>
2318
2319         Work around OpenBSD 4.0 tdelete() bug.
2320         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
2321         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
2322         macros and don't redefine the enum values.
2323         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
2324         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
2325         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
2326
2327 2008-01-09  Bruno Haible  <bruno@clisp.org>
2328
2329         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
2330         (main): Don't perform the tests if setlocale did not install a UTF-8
2331         locale. Needed on OpenBSD 4.0.
2332         * modules/wcwidth-tests (Depends-on): Add localcharset.
2333
2334 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
2335
2336         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
2337         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
2338         * NEWS: announce this.
2339         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
2340
2341 2008-01-09  Simon Josefsson  <simon@josefsson.org>
2342         and Eric Blake  <ebb9@byu.net>
2343
2344         Add memmem-simple module.
2345         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
2346         (gl_FUNC_MEMMEM): Separate performance from presence checks.
2347         * modules/memmem-simple: New file.
2348         * modules/memmem (Description): Tweak.
2349         * MODULES.html.sh (string handling): Mention new module.
2350         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
2351         addressed by memmem-simple.
2352         * NEWS: Document the difference.
2353
2354 2008-01-09  Eric Blake  <ebb9@byu.net>
2355
2356         Give gcc some memmem optimization hints.
2357         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
2358         (strcasestr): Declare as pure.
2359         * modules/memmem (Maintainer): Claim my implementation.
2360
2361 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2362
2363         Support AIX 6.1 and higher.
2364         * build-aux/config.libpath: Likewise.
2365         * build-aux/config.rpath: Likewise.
2366
2367 2008-01-08  Jim Meyering  <meyering@redhat.com>
2368             Bruno Haible  <bruno@clisp.org>
2369
2370         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
2371         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
2372         Reported by Peter Fales in
2373         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
2374
2375 2008-01-08  Bruno Haible  <bruno@clisp.org>
2376
2377         * modules/unictype/category-of (Depends-on): Add
2378         unictype/category-none.
2379         * modules/unictype/category-and-tests (Depends-on): Add
2380         unictype/category-{L,N,Lu,Nd}.
2381         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
2382         * modules/unictype/category-or-tests (Depends-on): Add
2383         unictype/category-{L,N}.
2384         * modules/unictype/category-name-tests (Depends-on): Add
2385         unictype/category-{Z,Nl}.
2386         Reported by Simon Josefsson.
2387
2388 2008-01-08  Bruno Haible  <bruno@clisp.org>
2389
2390         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
2391         convention better.
2392         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
2393         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
2394         Reported by Peter Miller <millerp@canb.auug.org.au>.
2395
2396 2008-01-08  Eric Blake  <ebb9@byu.net>
2397
2398         Rewrite memmem to guarantee linear complexity without malloc.
2399         * lib/memmem.c (memmem): Use Two-Way rather than
2400         Knuth-Morris-Pratt, to allow O(1) space usage.
2401         (critical_factorization, two_way_short_needle)
2402         (two_way_long_needle): New functions.
2403         (knuth_morris_pratt): Delete.
2404         * modules/memmem (Depends-on): No longer need malloca or stdbool.
2405         Add stdint.
2406         * tests/test-memmem.c (main): Add tests for periodic needle and
2407         sublinear performance.
2408         * doc/functions/memmem.texi (memmem): Document other deficiencies
2409         in cygwin and older glibc.
2410
2411 2008-01-08  Bruno Haible  <bruno@clisp.org>
2412
2413         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
2414         augmentation.
2415
2416 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
2417
2418         Add a configure time option: --disable-acl.
2419         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
2420         AC_ARG_ENABLE(acl).
2421
2422 2008-01-06  Simon Josefsson  <simon@josefsson.org>
2423
2424         * tests/test-localename.c: Don't include obsolete "setenv.h".
2425
2426         * modules/localename-tests (Depends-on): Need unsetenv.
2427
2428 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2429
2430         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
2431
2432 2008-01-06  Colin Watson  <cjwatson@debian.org>
2433
2434         * users.txt: Add man-db.
2435
2436 2008-01-07  Bruno Haible  <bruno@clisp.org>
2437
2438         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
2439         previous section name.
2440
2441 2008-01-07  Bruno Haible  <bruno@clisp.org>
2442
2443         * lib/progname.c (set_program_name): Don't strip off a leading
2444         "lt-" prefix outside a .libs directory.
2445         Suggested by Paul Eggert.
2446
2447 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
2448             Bruno Haible  <bruno@clisp.org>
2449
2450         Improve memory cleanup in 'relocatable' module.
2451         * lib/relocatable.h (compute_curr_prefix): Change return type to
2452         'char *'.
2453         * lib/relocatable.c (compute_curr_prefix): Change return type to
2454         'char *'. Free curr_installdir after use.
2455         (relocate): Free curr_prefix_better after use.
2456         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
2457
2458 2008-01-01  Bruno Haible  <bruno@clisp.org>
2459
2460         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
2461         failure on older glibc systems.
2462         Reported by Peter Fales <psfales@alcatel-lucent.com>.
2463
2464 2008-01-05  Eric Blake  <ebb9@byu.net>
2465
2466         Avoid quadratic system memmem.
2467         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
2468         Reported by Ralf Wildenhues.
2469
2470         Fix memmem test for mingw.
2471         * modules/memmem-tests (configure.ac): Check for alarm.
2472         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
2473         it.
2474         * doc/functions/memmem.texi: New file.
2475         * doc/gnulib.texi (Function Substitutes): Add memmem.
2476         Reported by Bruno Haible.
2477
2478 2008-01-04  Bruno Haible  <bruno@clisp.org>
2479
2480         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
2481         Require gl_HEADER_STRINGS_H_DEFAULTS, not
2482         gl_HEADER_STRING_H_DEFAULTS.
2483
2484 2008-01-04  Eric Blake  <ebb9@byu.net>
2485
2486         Shorten duration of memmem test.
2487         * tests/test-memmem.c (main): Use alarm to declare failure if test
2488         is taking too long.
2489         Reported by Ralf Wildenhues.
2490
2491 2007-12-21  Simon Josefsson  <simon@josefsson.org>
2492
2493         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
2494         string, needed by strerror.
2495
2496 2008-01-03  Colin Watson  <cjwatson@debian.org>
2497             Bruno Haible  <bruno@clisp.org>
2498
2499         * doc/gnulib-tool.texi (Localization): New section.
2500
2501 2008-01-02  Bruno Haible  <bruno@clisp.org>
2502
2503         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
2504         variables to 'unsigned char *' type.
2505         Reported by Paul Eggert.
2506
2507 2008-01-02  Jim Meyering  <jim@meyering.net>
2508
2509         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
2510
2511 2007-12-31  Jim Meyering  <jim@meyering.net>
2512
2513         Avoid use of private FTS type name.
2514         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
2515
2516 2007-12-30  Karl Berry  <karl@gnu.org>
2517
2518         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
2519         work around defect in Texinfo and/or the standalone Info browser.
2520
2521 2007-12-30  Bruno Haible  <bruno@clisp.org>
2522
2523         Unify 5 copies of the KMP code.
2524         * lib/str-kmp.h: New file.
2525         * lib/c-strcasestr.c: Include str-kmp.h.
2526         (knuth_morris_pratt): Remove function.
2527         (c_strcasestr): Update.
2528         * lib/c-strstr.c: Include str-kmp.h.
2529         (knuth_morris_pratt): Remove function.
2530         (c_strcasestr): Update.
2531         * lib/mbscasestr.c: Include str-kmp.h.
2532         (knuth_morris_pratt_unibyte): Remove function.
2533         * lib/mbsstr.c: Include str-kmp.h.
2534         (knuth_morris_pratt_unibyte): Remove function.
2535         * lib/strcasestr.c: Include str-kmp.h.
2536         (knuth_morris_pratt): Remove function.
2537         (strcasestr): Update.
2538         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
2539         * modules/c-strstr (Files): Likewise.
2540         * modules/mbscasestr (Files): Likewise.
2541         * modules/mbsstr (Files): Likewise.
2542         * modules/strcasestr (Files): Likewise.
2543         Suggested by Paul Eggert.
2544
2545 2007-12-30  Bruno Haible  <bruno@clisp.org>
2546
2547         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
2548         defined.
2549
2550 2007-12-30  Bruno Haible  <bruno@clisp.org>
2551
2552         * lib/xmalloca.h: Include xalloc.h.
2553         (xnmalloca): New macro.
2554
2555 2007-12-30  Bruno Haible  <bruno@clisp.org>
2556
2557         * lib/malloca.h (nmalloca): New macro.
2558         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
2559         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
2560         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
2561         knuth_morris_pratt_multibyte): Likewise.
2562         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
2563         knuth_morris_pratt_multibyte): Likewise.
2564         * lib/memmem.c (knuth_morris_pratt): Likewise.
2565         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
2566
2567 2007-12-25  Bruno Haible  <bruno@clisp.org>
2568
2569         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
2570         * lib/glob.c: Don't include openat.h.
2571         (link_exists2_p): Add back the code that deals with the
2572         !GLOB_ALTDIRFUNC case.
2573         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
2574         let it do the filename concatenation.
2575         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
2576         * modules/glob (Depends-on): Remove openat.
2577
2578 2007-12-31  Bruno Haible  <bruno@clisp.org>
2579
2580         * modules/dirfd (License): Change to LGPLv2+.
2581         Approved by Jim Meyering.
2582
2583 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
2584
2585         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
2586         when multiplying M by sizeof (size_t).
2587
2588 2007-12-10  Martin Lambers  <marlam@marlam.de>
2589
2590         Override getpagesize on mingw.
2591         * lib/getpagesize.c: New file.
2592         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
2593         * modules/getpagesize (Files): Add lib/getpagesize.c.
2594         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
2595         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
2596         REPLACE_GETPAGESIZE.
2597         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
2598
2599 2007-12-25  Bruno Haible  <bruno@clisp.org>
2600
2601         * modules/localcharset (Notice): New field.
2602         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
2603         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
2604
2605 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
2606             Bruno Haible  <bruno@clisp.org>
2607
2608         Avoid using the syntax symbol() in formatted documentation.
2609         * MODULES.html.sh (func_module): When replacing symbol() with a
2610         hyperlink, remove the parentheses. Show an error if some remain.
2611         Recognize and render the '...' syntax.
2612         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
2613         Rework. Add paragraph about GCC's inlining.
2614         * doc/alloca.texi: Likewise.
2615         * doc/error.texi: Remove parentheses from symbol reference.
2616         * doc/gnulib-intro.texi: Likewise.
2617         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
2618         * modules/fnmatch (Description): Reword to say "the ... function".
2619         * modules/full-read (Description): Likewise.
2620         * modules/full-write (Description): Likewise.
2621         * modules/safe-read (Description): Likewise.
2622         * modules/safe-write (Description): Likewise.
2623         * modules/strchrnul (Description): Likewise.
2624         * modules/trim (Description): Likewise.
2625         * modules/error (Description): Remove parentheses from symbol
2626         references.
2627         * modules/verror (Description): Likewise.
2628         Reported by Karl Berry.
2629
2630 2007-12-25  Bruno Haible  <bruno@clisp.org>
2631
2632         Fixup after 2007-10-16 commit.
2633         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
2634
2635 2007-12-24  Bruno Haible  <bruno@clisp.org>
2636
2637         Make --enable-relocatable work with DESTDIR.
2638         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
2639         to compute installdir from destprog.
2640         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
2641         also set the RELOC_DESTDIR variable.
2642         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
2643
2644 2007-12-24  Bruno Haible  <bruno@clisp.org>
2645
2646         Fix link error due to xalloc_die().
2647         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
2648         of xreadlink.
2649         * lib/relocwrapper.c: Update comments.
2650         * build-aux/install-reloc: Remove xreadlink.c from file list.
2651         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
2652         xreadlink.c.
2653         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
2654
2655 2007-12-24  Bruno Haible  <bruno@clisp.org>
2656
2657         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
2658         * lib/setenv.h: Remove file.
2659         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
2660         lib/setenv.h.
2661         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
2662         (Depends-on): Add stdlib.
2663         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
2664         gl_FUNC_UNSETENV.
2665         (Include): Replace setenv.h with <stdlib.h>.
2666         * modules/unsetenv: New file.
2667         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
2668         * lib/unsetenv.c: Include <stdlib.h> first.
2669         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
2670         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
2671         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
2672         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
2673         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
2674         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
2675         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
2676         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
2677         * doc/functions/unsetenv.texi: Update.
2678         * modules/xsetenv (Depends-on): Add unsetenv.
2679         * modules/getdate (Depends-on): Likewise.
2680         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
2681         * lib/xsetenv.c: Don't include setenv.h.
2682         * lib/getdate.y: Likewise.
2683         * lib/relocwrapper.c: Likewise.
2684         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
2685         (Depends-on): Add stdlib.
2686         * NEWS: Mention the changes.
2687         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
2688
2689 2007-12-23  Bruno Haible  <bruno@clisp.org>
2690
2691         * lib/memmem.c (memmem): Use lowercase variable names. Tab
2692         indentation.
2693
2694 2007-12-23  Bruno Haible  <bruno@clisp.org>
2695
2696         * lib/c-strcasestr.c: Add more comments.
2697         * lib/c-strstr.c: Likewise.
2698         * lib/mbscasestr.c: Likewise.
2699         * lib/mbsstr.c: Likewise.
2700         * lib/strcasestr.c: Likewise.
2701         * lib/memmem.c: Likewise.
2702
2703 2007-12-23  Bruno Haible  <bruno@clisp.org>
2704
2705         * tests/test-memmem.c: Include <string.h> first.
2706
2707 2007-12-22  Bruno Haible  <bruno@clisp.org>
2708
2709         * gnulib-tool (func_create_testdir): Change $auxdir while generating
2710         the contents of $testsbase.
2711         Reported by Ralf Wildenhues.
2712
2713 2007-12-22  Bruno Haible  <bruno@clisp.org>
2714
2715         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
2716         two variables local_ldadd_before, local_ldadd_last.
2717
2718 2007-12-20  Eric Blake  <ebb9@byu.net>
2719
2720         Work around circular library issue when cross-compiling.
2721         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
2722         that progname.o does not need to pull in rpl_memcmp.
2723
2724 2007-12-19  Eric Blake  <ebb9@byu.net>
2725
2726         Fix memmem to avoid O(n^2) worst-case complexity.
2727         * lib/memmem.c (knuth_morris_pratt): New function.
2728         (memmem): Use it if first few naive iterations fail.
2729         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
2730         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
2731         * modules/memchr (License): Likewise.
2732         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
2733         malloca.
2734         * tests/test-memmem.c: Rewrite, borrowing ideas from
2735         test-mbsstr1.c; the old version wouldn't even compile!
2736         * modules/memmem-tests: New file.
2737         * lib/string.in.h (rpl_memmem): Add declaration.
2738         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
2739         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
2740         REPLACE_MEMMEM.
2741
2742 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
2743
2744         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
2745         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
2746         before any system include files, and undef after them all.  This
2747         should fix a problem on VMS reported by John E. Malmberg in
2748         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
2749
2750 2007-12-17  Eric Blake  <ebb9@byu.net>
2751
2752         Revert addition of verify, for BSD/OS.
2753         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
2754         can't handle large files, for the sake of obsolete platforms.
2755         * modules/fseeko (Depends-on): Remove verify.
2756         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
2757         * doc/functions/ftello.texi (ftello): Likewise.
2758         * doc/functions/fgetpos.texi (fgetpos): Likewise.
2759         Reported by Larry Jones.
2760
2761 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
2762
2763         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
2764         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
2765
2766 2007-12-17  Jim Meyering  <meyering@redhat.com>
2767
2768         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
2769         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
2770         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
2771         * modules/getcwd (Depends-on): Add openat.
2772         Reported by Petr Salinger.
2773
2774 2007-12-17  Bruno Haible  <bruno@clisp.org>
2775
2776         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
2777         avoid a segmentation fault of the configure test on x86_64 systems.
2778
2779 2007-12-15  Jim Meyering  <meyering@redhat.com>
2780
2781         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
2782
2783 2007-12-13  Eric Blake  <ebb9@byu.net>
2784
2785         Another fseek test.
2786         * tests/test-fseek.c (main): Also test ungetc handling.
2787         * tests/test-fseeko.c (main): Likewise.
2788         * modules/fseeko (Depends-on): Add verify.
2789         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
2790         large.
2791         Reported by Larry Jones.
2792
2793         Fix fseeko on mingw.
2794         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
2795         seek.
2796
2797         Beef up fseek tests.
2798         * tests/test-fseek.c (main): Also test eof handling.
2799         * tests/test-fseeko.c (main): Likewise.
2800         Reported by Larry Jones.
2801
2802 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
2803
2804         Fix fseeko on BSD-based platforms.
2805         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
2806         successful seek.
2807
2808 2007-12-12  Eric Blake  <ebb9@byu.net>
2809
2810         Allow circular dependency of separate libtests.a
2811         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
2812         when use_libtests.
2813
2814 2007-12-11  Eric Blake  <ebb9@byu.net>
2815
2816         Fix bug with -0.0L in previous patch.
2817         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
2818         * tests/test-isnan.c (main): Also test on zeroes.
2819         * tests/test-isnanf.c (main): Likewise.
2820         * tests/test-isnanl.h (main): Likewise.
2821
2822         Detect pseudo-denormals on x86 even when cross-compiling.
2823         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
2824         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
2825         invalid bit patterns that happen to satisfy ==.
2826
2827         Avoid link failures with separate libtests.a.
2828         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
2829         last, to satisfy circular dependencies.
2830
2831 2007-12-11  Eric Blake  <ebb9@byu.net>
2832         and Bruno Haible  <bruno@clisp.org>
2833
2834         Fix OpenBSD 4.0 <float.h> handling of long double.
2835         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
2836         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
2837         * doc/headers/float.texi (float.h): Document OpenBSD bug.
2838
2839 2007-12-11  Jim Meyering  <meyering@redhat.com>
2840
2841         * users.txt: Add libvirt.
2842
2843         Support versions of autoconf prior to 2.59c.
2844         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
2845         if it is not already defined.
2846
2847 2007-12-09  Bruno Haible  <bruno@clisp.org>
2848
2849         Let 'gnulib-tool --import' collect sources needed for the tests in
2850         tests/ rather than in lib/.
2851         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
2852         argument. If true, add rules to generate libtests.a, and put libtests.a
2853         into $(LDADD). Consider source files in subdirectories and set
2854         uses_subdirs.
2855         (func_emit_initmacro_start, func_emit_initmacro_end,
2856         func_emit_initmacro_done): Pass all arguments explicitly.
2857         (func_import): Determine two module lists main_modules,
2858         testsrelated_modules. Determine use_libtests. Determine two variables
2859         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
2860         instead of just sed_transform_lib_file. Determine two variables
2861         main_files and testsrelated_files. Compute 'files' as the union of
2862         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
2863         func_add_or_update. In the generated gnulib-comp.m4, collect the
2864         object files for tests/ in different variables than those for lib/.
2865         Substitute LIBTESTS_LIBDEPS.
2866         (func_create_testdir): Combine the uses_subdirs results from
2867         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
2868
2869 2007-12-09  Bruno Haible  <bruno@clisp.org>
2870
2871         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
2872         the build-aux directory.
2873
2874 2007-12-09  Bruno Haible  <bruno@clisp.org>
2875
2876         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
2877         introduced on 2006-09-09.
2878
2879 2007-12-07  Jim Meyering  <meyering@redhat.com>
2880
2881         Let these macros work also with autoconf-2.59.
2882         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
2883         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
2884         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
2885
2886 2007-12-06  Jim Meyering  <meyering@redhat.com>
2887
2888         Avoid a configure-time syntax error in gl_FUNC_ACL.
2889         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
2890         function in each branch, before testing the cache variable.
2891
2892 2007-12-04  Eric Blake  <ebb9@byu.net>
2893
2894         Make scripts executable.
2895         * build-aux/config.guess: Add execute permissions.
2896         * build-aux/config.sub: Likewise.
2897         * build-aux/gendocs.sh: Likewise.
2898
2899         Fix frexp on mingw.
2900         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
2901         cross-compiling.
2902         * doc/functions/frexp.texi (frexp): Document the bug.
2903
2904         Make cygwin fseeko check more reliable.
2905         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
2906         version numbers, rather than unrelated feature check.
2907         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
2908         * doc/functions/ftello.texi (ftello): Likewise.
2909         Reported by Bruno Haible.
2910
2911         * m4/strerror.m4: Bump version number.
2912
2913 2007-12-03  Bruno Haible  <bruno@clisp.org>
2914
2915         * doc/functions/mprotect.texi: Mention the mingw problem.
2916
2917 2007-12-03  Eric Blake  <ebb9@byu.net>
2918
2919         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
2920         REPLACE_STRERROR is initialized before this macro.
2921
2922 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
2923
2924         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
2925         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
2926         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
2927         put -lsec in even for programs other than 'ls'.  This fixes a problem
2928         for gettext reported by Bruno Haible in
2929         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
2930         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
2931         Add support for Solaris 10.  This isn't efficient, but should get the
2932         job done for now.
2933
2934 2007-12-03  James Youngman  <jay@gnu.org>
2935
2936         * doc/regexprops-generic.texi: change "an close-group" to "a
2937         close-group" and "illegal" to "not allowed".
2938
2939 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2940
2941         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
2942         pr_byname.h. Needed for the rare case when the maintainer has done
2943         "make maintainer-clean" in the source directory and then attempts a
2944         build outside the source directory.
2945         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
2946         scripts_byname.h.
2947
2948 2007-12-02  Martin Lambers <marlam@marlam.de>
2949             Bruno Haible  <bruno@clisp.org>
2950
2951         * lib/getpagesize.h: Remove file.
2952         * lib/unistd.in.h: Include declaration of getpagesize here.
2953         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
2954         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
2955         HAVE_SYS_PARAM_H.
2956         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
2957         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
2958         * modules/getpagesize (Files): Remove lib/getpagesize.h.
2959         (Depends-on): Add unistd.
2960         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
2961         (Include): Use <unistd.h> instead of getpagesize.h.
2962         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
2963         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
2964         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
2965         gl_GETPAGESIZE invocation, already handled by module dependency.
2966         * lib/pagealign_alloc.c: Don't include getpagesize.h.
2967
2968 2007-12-02  Bruno Haible  <bruno@clisp.org>
2969
2970         * modules/strings-tests: New file.
2971         * tests/test-strings.c: New file.
2972
2973         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
2974         * lib/strings.in.h: New file.
2975         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
2976         * m4/strings_h.m4: New file.
2977         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
2978         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
2979         * modules/strings: New file.
2980         * modules/string (Makefile.am): Update.
2981         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
2982         Reported by Karl Berry.
2983
2984 2007-12-01  Eric Blake  <ebb9@byu.net>
2985
2986         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
2987         accomodate fix in cygwin 1.5.25.
2988
2989 2007-12-01  Jim Meyering  <meyering@redhat.com>
2990
2991         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
2992         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
2993         that would inhibit utf8-optimization of a regexp containing line-
2994         or buffer-anchors, e.g., `^', `$'.
2995
2996 2007-11-30  Bruno Haible  <bruno@clisp.org>
2997
2998         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
2999         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
3000         glthread_recursive_lock_init.
3001         * lib/lock.c (glthread_recursive_lock_init)
3002         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
3003         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
3004
3005 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
3006
3007         New function qset_acl, like set_acl but with syscall semantics.
3008         * lib/acl.h (qset_acl): New decl.
3009         * lib/acl.c (qset_acl): New function.
3010         (set_acl): Use new function.  Use more-consistent diagnostics.
3011
3012 2007-11-28  Jim Meyering  <meyering@redhat.com>
3013
3014         * modules/physmem (License): Change from GPL to LGPLv2+.
3015
3016 2007-11-26  Bruno Haible  <bruno@clisp.org>
3017
3018         * lib/vasnprintf.c (decode_long_double): Don't abort if the
3019         'long double' type has excess precision.
3020         Reported by Jim Meyering in
3021         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
3022
3023 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3024
3025         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
3026         Sync from <http://gnu.org/licenses>.
3027         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
3028         with license text from same location.
3029         * doc/maintain.texi, doc/standards.texi:  Sync from
3030         <http://savannah.gnu.org/projects/gnustandards>.
3031
3032 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
3033         and Jim Meyering  <meyering@redhat.com>
3034
3035         Adjust getdate' grammar to accept a slightly more regular language.
3036         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
3037         Before, the former was rejected.
3038         * lib/getdate.y (digits_to_date_time): New function, factored
3039         out of ...
3040         (number): ...here.  Just call digits_to_date_time.
3041         (hybrid): New non-terminal to handle an <unsigned number,
3042         signed relative offset> sequence consistently.
3043
3044 2007-11-18  Jim Meyering  <meyering@redhat.com>
3045
3046         Pull my changes from coreutils:
3047         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
3048         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
3049         use of $gnulib_tool_option_extras, so that it's separated from the
3050         preceding argument.
3051
3052         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
3053         * build-aux/bootstrap (cp_mark_as_generated): Create any required
3054         parent destination directories before copying a file into place.
3055
3056 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
3057
3058         bootstrap: work also with 4-argument variant of AC_INIT
3059         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
3060
3061 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
3062
3063         Port test-getaddrinfo to Solaris.
3064         Problem reported by Bruno Haible in
3065         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
3066         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
3067         explanation of setting 'hints'.
3068         Don't reject an implementation merely because it returns EAI_SERVICE.
3069         (EAI_SERVICE): Define to 0 if not defined.
3070
3071 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
3072
3073         The license of gnu-make and posix-shell is now "GPLed build tool".
3074         * modules/gnu-make (License): Likewise.
3075         * modules/posix-shell (License): Likewise.
3076
3077         New module posix-shell, for determining a POSIX shell
3078         or perhaps something that is close enough to a POSIX shell.
3079         * m4/posix-shell.m4: New file.
3080         * modules/posix-shell: New file.
3081
3082         * MODULES.html.sh: Mention new module.
3083
3084         New module gnu-make, for determining whether we're using GNU Make.
3085         * m4/gnu-make.m4: New file.
3086         * modules/gnu-make: New file.
3087         * MODULES.html.sh: Mention new module.
3088
3089 2007-11-14  Jim Meyering  <meyering@redhat.com>
3090
3091         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
3092         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
3093         use this macro to create a function _definition_.
3094         Remove useless "#undef ARGMATCH_DIE".
3095
3096 2007-11-14  Bruno Haible  <bruno@clisp.org>
3097
3098         * lib/config.charset: Update for OpenBSD 4.1.
3099         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
3100
3101 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
3102
3103         Document 64-bit #if problems in stdint.texi.
3104         * doc/headers/stdint.texi (stdint.h): Mention problems with
3105         64-bit-#if, and how to work around them.
3106
3107         Don't insist on 'long long int' support in the preprocessor.  It
3108         breaks too many things.  For example, PRIdMAX still uses a 'long
3109         long int' format with the latest Sun compiler, even though
3110         HAVE_LONG_LONG_INT isn't defined due to that compiler's
3111         preprocessor problem.  This causes the latest coreutils to dump
3112         core on Solaris 10 sparc with the Sun C compiler.
3113         Instead, fix the 2007-10-16 problem in a different way, by evaluating
3114         the troublesome expressions at configure-time, not at #if-time.
3115         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
3116         preprocessor.
3117         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
3118         compile-time C checks, done at 'configure'-time.
3119         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
3120         * modules/inttypes (Makefile): Substitute the new symbols that
3121         gl_INTTYPES_H now generates.
3122         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
3123
3124 2007-11-12  Bruno Haible  <bruno@clisp.org>
3125
3126         Tests for Unicode character classification functions.
3127
3128         * modules/unictype/bidicategory-byname-tests: New file.
3129         * modules/unictype/bidicategory-name-tests: New file.
3130         * modules/unictype/bidicategory-of-tests: New file.
3131         * modules/unictype/bidicategory-test-tests: New file.
3132         * modules/unictype/block-list-tests: New file.
3133         * modules/unictype/block-of-tests: New file.
3134         * modules/unictype/block-test-tests: New file.
3135         * modules/unictype/category-C-tests: New file.
3136         * modules/unictype/category-Cc-tests: New file.
3137         * modules/unictype/category-Cf-tests: New file.
3138         * modules/unictype/category-Cn-tests: New file.
3139         * modules/unictype/category-Co-tests: New file.
3140         * modules/unictype/category-Cs-tests: New file.
3141         * modules/unictype/category-L-tests: New file.
3142         * modules/unictype/category-Ll-tests: New file.
3143         * modules/unictype/category-Lm-tests: New file.
3144         * modules/unictype/category-Lo-tests: New file.
3145         * modules/unictype/category-Lt-tests: New file.
3146         * modules/unictype/category-Lu-tests: New file.
3147         * modules/unictype/category-M-tests: New file.
3148         * modules/unictype/category-Mc-tests: New file.
3149         * modules/unictype/category-Me-tests: New file.
3150         * modules/unictype/category-Mn-tests: New file.
3151         * modules/unictype/category-N-tests: New file.
3152         * modules/unictype/category-Nd-tests: New file.
3153         * modules/unictype/category-Nl-tests: New file.
3154         * modules/unictype/category-No-tests: New file.
3155         * modules/unictype/category-P-tests: New file.
3156         * modules/unictype/category-Pc-tests: New file.
3157         * modules/unictype/category-Pd-tests: New file.
3158         * modules/unictype/category-Pe-tests: New file.
3159         * modules/unictype/category-Pf-tests: New file.
3160         * modules/unictype/category-Pi-tests: New file.
3161         * modules/unictype/category-Po-tests: New file.
3162         * modules/unictype/category-Ps-tests: New file.
3163         * modules/unictype/category-S-tests: New file.
3164         * modules/unictype/category-Sc-tests: New file.
3165         * modules/unictype/category-Sk-tests: New file.
3166         * modules/unictype/category-Sm-tests: New file.
3167         * modules/unictype/category-So-tests: New file.
3168         * modules/unictype/category-Z-tests: New file.
3169         * modules/unictype/category-Zl-tests: New file.
3170         * modules/unictype/category-Zp-tests: New file.
3171         * modules/unictype/category-Zs-tests: New file.
3172         * modules/unictype/category-and-not-tests: New file.
3173         * modules/unictype/category-and-tests: New file.
3174         * modules/unictype/category-byname-tests: New file.
3175         * modules/unictype/category-name-tests: New file.
3176         * modules/unictype/category-none-tests: New file.
3177         * modules/unictype/category-of-tests: New file.
3178         * modules/unictype/category-or-tests: New file.
3179         * modules/unictype/category-test-withtable-tests: New file.
3180         * modules/unictype/combining-class-tests: New file.
3181         * modules/unictype/ctype-alnum-tests: New file.
3182         * modules/unictype/ctype-alpha-tests: New file.
3183         * modules/unictype/ctype-blank-tests: New file.
3184         * modules/unictype/ctype-cntrl-tests: New file.
3185         * modules/unictype/ctype-digit-tests: New file.
3186         * modules/unictype/ctype-graph-tests: New file.
3187         * modules/unictype/ctype-lower-tests: New file.
3188         * modules/unictype/ctype-print-tests: New file.
3189         * modules/unictype/ctype-punct-tests: New file.
3190         * modules/unictype/ctype-space-tests: New file.
3191         * modules/unictype/ctype-upper-tests: New file.
3192         * modules/unictype/ctype-xdigit-tests: New file.
3193         * modules/unictype/decimal-digit-tests: New file.
3194         * modules/unictype/digit-tests: New file.
3195         * modules/unictype/mirror-tests: New file.
3196         * modules/unictype/numeric-tests: New file.
3197         * modules/unictype/property-alphabetic-tests: New file.
3198         * modules/unictype/property-ascii-hex-digit-tests: New file.
3199         * modules/unictype/property-bidi-arabic-digit-tests: New file.
3200         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
3201         * modules/unictype/property-bidi-block-separator-tests: New file.
3202         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
3203         * modules/unictype/property-bidi-common-separator-tests: New file.
3204         * modules/unictype/property-bidi-control-tests: New file.
3205         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
3206         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
3207         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
3208         * modules/unictype/property-bidi-european-digit-tests: New file.
3209         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
3210         * modules/unictype/property-bidi-left-to-right-tests: New file.
3211         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
3212         * modules/unictype/property-bidi-other-neutral-tests: New file.
3213         * modules/unictype/property-bidi-pdf-tests: New file.
3214         * modules/unictype/property-bidi-segment-separator-tests: New file.
3215         * modules/unictype/property-bidi-whitespace-tests: New file.
3216         * modules/unictype/property-byname-tests: New file.
3217         * modules/unictype/property-combining-tests: New file.
3218         * modules/unictype/property-composite-tests: New file.
3219         * modules/unictype/property-currency-symbol-tests: New file.
3220         * modules/unictype/property-dash-tests: New file.
3221         * modules/unictype/property-decimal-digit-tests: New file.
3222         * modules/unictype/property-default-ignorable-code-point-tests: New file.
3223         * modules/unictype/property-deprecated-tests: New file.
3224         * modules/unictype/property-diacritic-tests: New file.
3225         * modules/unictype/property-extender-tests: New file.
3226         * modules/unictype/property-format-control-tests: New file.
3227         * modules/unictype/property-grapheme-base-tests: New file.
3228         * modules/unictype/property-grapheme-extend-tests: New file.
3229         * modules/unictype/property-grapheme-link-tests: New file.
3230         * modules/unictype/property-hex-digit-tests: New file.
3231         * modules/unictype/property-hyphen-tests: New file.
3232         * modules/unictype/property-id-continue-tests: New file.
3233         * modules/unictype/property-id-start-tests: New file.
3234         * modules/unictype/property-ideographic-tests: New file.
3235         * modules/unictype/property-ids-binary-operator-tests: New file.
3236         * modules/unictype/property-ids-trinary-operator-tests: New file.
3237         * modules/unictype/property-ignorable-control-tests: New file.
3238         * modules/unictype/property-iso-control-tests: New file.
3239         * modules/unictype/property-join-control-tests: New file.
3240         * modules/unictype/property-left-of-pair-tests: New file.
3241         * modules/unictype/property-line-separator-tests: New file.
3242         * modules/unictype/property-logical-order-exception-tests: New file.
3243         * modules/unictype/property-lowercase-tests: New file.
3244         * modules/unictype/property-math-tests: New file.
3245         * modules/unictype/property-non-break-tests: New file.
3246         * modules/unictype/property-not-a-character-tests: New file.
3247         * modules/unictype/property-numeric-tests: New file.
3248         * modules/unictype/property-other-alphabetic-tests: New file.
3249         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
3250         * modules/unictype/property-other-grapheme-extend-tests: New file.
3251         * modules/unictype/property-other-id-continue-tests: New file.
3252         * modules/unictype/property-other-id-start-tests: New file.
3253         * modules/unictype/property-other-lowercase-tests: New file.
3254         * modules/unictype/property-other-math-tests: New file.
3255         * modules/unictype/property-other-uppercase-tests: New file.
3256         * modules/unictype/property-paired-punctuation-tests: New file.
3257         * modules/unictype/property-paragraph-separator-tests: New file.
3258         * modules/unictype/property-pattern-syntax-tests: New file.
3259         * modules/unictype/property-pattern-white-space-tests: New file.
3260         * modules/unictype/property-private-use-tests: New file.
3261         * modules/unictype/property-punctuation-tests: New file.
3262         * modules/unictype/property-quotation-mark-tests: New file.
3263         * modules/unictype/property-radical-tests: New file.
3264         * modules/unictype/property-sentence-terminal-tests: New file.
3265         * modules/unictype/property-soft-dotted-tests: New file.
3266         * modules/unictype/property-space-tests: New file.
3267         * modules/unictype/property-terminal-punctuation-tests: New file.
3268         * modules/unictype/property-test-tests: New file.
3269         * modules/unictype/property-titlecase-tests: New file.
3270         * modules/unictype/property-unassigned-code-value-tests: New file.
3271         * modules/unictype/property-unified-ideograph-tests: New file.
3272         * modules/unictype/property-uppercase-tests: New file.
3273         * modules/unictype/property-variation-selector-tests: New file.
3274         * modules/unictype/property-white-space-tests: New file.
3275         * modules/unictype/property-xid-continue-tests: New file.
3276         * modules/unictype/property-xid-start-tests: New file.
3277         * modules/unictype/property-zero-width-tests: New file.
3278         * modules/unictype/scripts-tests: New file.
3279         * modules/unictype/syntax-c-ident-tests: New file.
3280         * modules/unictype/syntax-c-whitespace-tests: New file.
3281         * modules/unictype/syntax-java-ident-tests: New file.
3282         * modules/unictype/syntax-java-whitespace-tests: New file.
3283         * tests/unictype/test-bidi_byname.c: New file.
3284         * tests/unictype/test-bidi_name.c: New file.
3285         * tests/unictype/test-bidi_of.c: New file.
3286         * tests/unictype/test-bidi_test.c: New file.
3287         * tests/unictype/test-block_list.c: New file.
3288         * tests/unictype/test-block_of.c: New file.
3289         * tests/unictype/test-block_test.c: New file.
3290         * tests/unictype/test-categ_and.c: New file.
3291         * tests/unictype/test-categ_and_not.c: New file.
3292         * tests/unictype/test-categ_byname.c: New file.
3293         * tests/unictype/test-categ_name.c: New file.
3294         * tests/unictype/test-categ_none.c: New file.
3295         * tests/unictype/test-categ_of.c: New file.
3296         * tests/unictype/test-categ_or.c: New file.
3297         * tests/unictype/test-categ_test_withtable.c: New file.
3298         * tests/unictype/test-combining.c: New file.
3299         * tests/unictype/test-decdigit.c: New file.
3300         * tests/unictype/test-digit.c: New file.
3301         * tests/unictype/test-mirror.c: New file.
3302         * tests/unictype/test-numeric.c: New file.
3303         * tests/unictype/test-pr_byname.c: New file.
3304         * tests/unictype/test-pr_test.c: New file.
3305         * tests/unictype/test-predicate-part1.h: New file.
3306         * tests/unictype/test-predicate-part2.h: New file.
3307         * tests/unictype/test-scripts.c: New file.
3308         * tests/unictype/test-sy_c_ident.c: New file.
3309         * tests/unictype/test-sy_java_ident.c: New file.
3310
3311         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
3312         for Unicode 5.0.0.
3313         * tests/unictype/test-categ_Cc.c: Likewise.
3314         * tests/unictype/test-categ_Cf.c: Likewise.
3315         * tests/unictype/test-categ_Cn.c: Likewise.
3316         * tests/unictype/test-categ_Co.c: Likewise.
3317         * tests/unictype/test-categ_Cs.c: Likewise.
3318         * tests/unictype/test-categ_L.c: Likewise.
3319         * tests/unictype/test-categ_Ll.c: Likewise.
3320         * tests/unictype/test-categ_Lm.c: Likewise.
3321         * tests/unictype/test-categ_Lo.c: Likewise.
3322         * tests/unictype/test-categ_Lt.c: Likewise.
3323         * tests/unictype/test-categ_Lu.c: Likewise.
3324         * tests/unictype/test-categ_M.c: Likewise.
3325         * tests/unictype/test-categ_Mc.c: Likewise.
3326         * tests/unictype/test-categ_Me.c: Likewise.
3327         * tests/unictype/test-categ_Mn.c: Likewise.
3328         * tests/unictype/test-categ_N.c: Likewise.
3329         * tests/unictype/test-categ_Nd.c: Likewise.
3330         * tests/unictype/test-categ_Nl.c: Likewise.
3331         * tests/unictype/test-categ_No.c: Likewise.
3332         * tests/unictype/test-categ_P.c: Likewise.
3333         * tests/unictype/test-categ_Pc.c: Likewise.
3334         * tests/unictype/test-categ_Pd.c: Likewise.
3335         * tests/unictype/test-categ_Pe.c: Likewise.
3336         * tests/unictype/test-categ_Pf.c: Likewise.
3337         * tests/unictype/test-categ_Pi.c: Likewise.
3338         * tests/unictype/test-categ_Po.c: Likewise.
3339         * tests/unictype/test-categ_Ps.c: Likewise.
3340         * tests/unictype/test-categ_S.c: Likewise.
3341         * tests/unictype/test-categ_Sc.c: Likewise.
3342         * tests/unictype/test-categ_Sk.c: Likewise.
3343         * tests/unictype/test-categ_Sm.c: Likewise.
3344         * tests/unictype/test-categ_So.c: Likewise.
3345         * tests/unictype/test-categ_Z.c: Likewise.
3346         * tests/unictype/test-categ_Zl.c: Likewise.
3347         * tests/unictype/test-categ_Zp.c: Likewise.
3348         * tests/unictype/test-categ_Zs.c: Likewise.
3349         * tests/unictype/test-ctype_alnum.c: Likewise.
3350         * tests/unictype/test-ctype_alpha.c: Likewise.
3351         * tests/unictype/test-ctype_blank.c: Likewise.
3352         * tests/unictype/test-ctype_cntrl.c: Likewise.
3353         * tests/unictype/test-ctype_digit.c: Likewise.
3354         * tests/unictype/test-ctype_graph.c: Likewise.
3355         * tests/unictype/test-ctype_lower.c: Likewise.
3356         * tests/unictype/test-ctype_print.c: Likewise.
3357         * tests/unictype/test-ctype_punct.c: Likewise.
3358         * tests/unictype/test-ctype_space.c: Likewise.
3359         * tests/unictype/test-ctype_upper.c: Likewise.
3360         * tests/unictype/test-ctype_xdigit.c: Likewise.
3361         * tests/unictype/test-decdigit.h: Likewise.
3362         * tests/unictype/test-digit.h: Likewise.
3363         * tests/unictype/test-numeric.h: Likewise.
3364         * tests/unictype/test-pr_alphabetic.c: Likewise.
3365         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
3366         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
3367         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
3368         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
3369         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
3370         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
3371         * tests/unictype/test-pr_bidi_control.c: Likewise.
3372         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
3373         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
3374         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
3375         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
3376         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
3377         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
3378         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
3379         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
3380         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
3381         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
3382         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
3383         * tests/unictype/test-pr_combining.c: Likewise.
3384         * tests/unictype/test-pr_composite.c: Likewise.
3385         * tests/unictype/test-pr_currency_symbol.c: Likewise.
3386         * tests/unictype/test-pr_dash.c: Likewise.
3387         * tests/unictype/test-pr_decimal_digit.c: Likewise.
3388         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
3389         * tests/unictype/test-pr_deprecated.c: Likewise.
3390         * tests/unictype/test-pr_diacritic.c: Likewise.
3391         * tests/unictype/test-pr_extender.c: Likewise.
3392         * tests/unictype/test-pr_format_control.c: Likewise.
3393         * tests/unictype/test-pr_grapheme_base.c: Likewise.
3394         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
3395         * tests/unictype/test-pr_grapheme_link.c: Likewise.
3396         * tests/unictype/test-pr_hex_digit.c: Likewise.
3397         * tests/unictype/test-pr_hyphen.c: Likewise.
3398         * tests/unictype/test-pr_id_continue.c: Likewise.
3399         * tests/unictype/test-pr_id_start.c: Likewise.
3400         * tests/unictype/test-pr_ideographic.c: Likewise.
3401         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
3402         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
3403         * tests/unictype/test-pr_ignorable_control.c: Likewise.
3404         * tests/unictype/test-pr_iso_control.c: Likewise.
3405         * tests/unictype/test-pr_join_control.c: Likewise.
3406         * tests/unictype/test-pr_left_of_pair.c: Likewise.
3407         * tests/unictype/test-pr_line_separator.c: Likewise.
3408         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
3409         * tests/unictype/test-pr_lowercase.c: Likewise.
3410         * tests/unictype/test-pr_math.c: Likewise.
3411         * tests/unictype/test-pr_non_break.c: Likewise.
3412         * tests/unictype/test-pr_not_a_character.c: Likewise.
3413         * tests/unictype/test-pr_numeric.c: Likewise.
3414         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
3415         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
3416         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
3417         * tests/unictype/test-pr_other_id_continue.c: Likewise.
3418         * tests/unictype/test-pr_other_id_start.c: Likewise.
3419         * tests/unictype/test-pr_other_lowercase.c: Likewise.
3420         * tests/unictype/test-pr_other_math.c: Likewise.
3421         * tests/unictype/test-pr_other_uppercase.c: Likewise.
3422         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
3423         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
3424         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
3425         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
3426         * tests/unictype/test-pr_private_use.c: Likewise.
3427         * tests/unictype/test-pr_punctuation.c: Likewise.
3428         * tests/unictype/test-pr_quotation_mark.c: Likewise.
3429         * tests/unictype/test-pr_radical.c: Likewise.
3430         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
3431         * tests/unictype/test-pr_soft_dotted.c: Likewise.
3432         * tests/unictype/test-pr_space.c: Likewise.
3433         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
3434         * tests/unictype/test-pr_titlecase.c: Likewise.
3435         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
3436         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
3437         * tests/unictype/test-pr_uppercase.c: Likewise.
3438         * tests/unictype/test-pr_variation_selector.c: Likewise.
3439         * tests/unictype/test-pr_white_space.c: Likewise.
3440         * tests/unictype/test-pr_xid_continue.c: Likewise.
3441         * tests/unictype/test-pr_xid_start.c: Likewise.
3442         * tests/unictype/test-pr_zero_width.c: Likewise.
3443         * tests/unictype/test-sy_c_whitespace.c: Likewise.
3444         * tests/unictype/test-sy_java_whitespace.c: Likewise.
3445
3446 2007-11-12  Bruno Haible  <bruno@clisp.org>
3447
3448         Unicode character classification functions.
3449         * lib/unictype.h: New file.
3450         * modules/unictype/base: New file.
3451         * modules/unictype/category-L: New file.
3452         * modules/unictype/category-Lu: New file.
3453         * modules/unictype/category-Ll: New file.
3454         * modules/unictype/category-Lt: New file.
3455         * modules/unictype/category-Lm: New file.
3456         * modules/unictype/category-Lo: New file.
3457         * modules/unictype/category-M: New file.
3458         * modules/unictype/category-Mn: New file.
3459         * modules/unictype/category-Mc: New file.
3460         * modules/unictype/category-Me: New file.
3461         * modules/unictype/category-N: New file.
3462         * modules/unictype/category-Nd: New file.
3463         * modules/unictype/category-Nl: New file.
3464         * modules/unictype/category-No: New file.
3465         * modules/unictype/category-P: New file.
3466         * modules/unictype/category-Pc: New file.
3467         * modules/unictype/category-Pd: New file.
3468         * modules/unictype/category-Ps: New file.
3469         * modules/unictype/category-Pe: New file.
3470         * modules/unictype/category-Pi: New file.
3471         * modules/unictype/category-Pf: New file.
3472         * modules/unictype/category-Po: New file.
3473         * modules/unictype/category-S: New file.
3474         * modules/unictype/category-Sm: New file.
3475         * modules/unictype/category-Sc: New file.
3476         * modules/unictype/category-Sk: New file.
3477         * modules/unictype/category-So: New file.
3478         * modules/unictype/category-Z: New file.
3479         * modules/unictype/category-Zs: New file.
3480         * modules/unictype/category-Zl: New file.
3481         * modules/unictype/category-Zp: New file.
3482         * modules/unictype/category-C: New file.
3483         * modules/unictype/category-Cc: New file.
3484         * modules/unictype/category-Cf: New file.
3485         * modules/unictype/category-Cs: New file.
3486         * modules/unictype/category-Co: New file.
3487         * modules/unictype/category-Cn: New file.
3488         * modules/unictype/category-or: New file.
3489         * modules/unictype/category-of: New file.
3490         * modules/unictype/category-test: New file.
3491         * modules/unictype/category-test-withtable: New file.
3492         * modules/unictype/category-byname: New file.
3493         * modules/unictype/category-none: New file.
3494         * modules/unictype/category-and: New file.
3495         * modules/unictype/category-and-not: New file.
3496         * modules/unictype/category-name: New file.
3497         * modules/unictype/combining-class: New file.
3498         * modules/unictype/category-all: New file.
3499         * modules/unictype/bidicategory-all: New file.
3500         * modules/unictype/bidicategory-byname: New file.
3501         * modules/unictype/bidicategory-name: New file.
3502         * modules/unictype/bidicategory-of: New file.
3503         * modules/unictype/bidicategory-test: New file.
3504         * modules/unictype/decimal-digit: New file.
3505         * modules/unictype/digit: New file.
3506         * modules/unictype/numeric: New file.
3507         * modules/unictype/mirror: New file.
3508         * modules/unictype/property-white-space: New file.
3509         * modules/unictype/property-alphabetic: New file.
3510         * modules/unictype/property-other-alphabetic: New file.
3511         * modules/unictype/property-not-a-character: New file.
3512         * modules/unictype/property-default-ignorable-code-point: New file.
3513         * modules/unictype/property-other-default-ignorable-code-point: New
3514         file.
3515         * modules/unictype/property-deprecated: New file.
3516         * modules/unictype/property-logical-order-exception: New file.
3517         * modules/unictype/property-variation-selector: New file.
3518         * modules/unictype/property-private-use: New file.
3519         * modules/unictype/property-unassigned-code-value: New file.
3520         * modules/unictype/property-uppercase: New file.
3521         * modules/unictype/property-other-uppercase: New file.
3522         * modules/unictype/property-lowercase: New file.
3523         * modules/unictype/property-other-lowercase: New file.
3524         * modules/unictype/property-titlecase: New file.
3525         * modules/unictype/property-soft-dotted: New file.
3526         * modules/unictype/property-id-start: New file.
3527         * modules/unictype/property-other-id-start: New file.
3528         * modules/unictype/property-id-continue: New file.
3529         * modules/unictype/property-other-id-continue: New file.
3530         * modules/unictype/property-xid-start: New file.
3531         * modules/unictype/property-xid-continue: New file.
3532         * modules/unictype/property-pattern-white-space: New file.
3533         * modules/unictype/property-pattern-syntax: New file.
3534         * modules/unictype/property-join-control: New file.
3535         * modules/unictype/property-grapheme-base: New file.
3536         * modules/unictype/property-grapheme-extend: New file.
3537         * modules/unictype/property-other-grapheme-extend: New file.
3538         * modules/unictype/property-grapheme-link: New file.
3539         * modules/unictype/property-bidi-control: New file.
3540         * modules/unictype/property-bidi-left-to-right: New file.
3541         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
3542         * modules/unictype/property-bidi-arabic-right-to-left: New file.
3543         * modules/unictype/property-bidi-european-digit: New file.
3544         * modules/unictype/property-bidi-eur-num-separator: New file.
3545         * modules/unictype/property-bidi-eur-num-terminator: New file.
3546         * modules/unictype/property-bidi-arabic-digit: New file.
3547         * modules/unictype/property-bidi-common-separator: New file.
3548         * modules/unictype/property-bidi-block-separator: New file.
3549         * modules/unictype/property-bidi-segment-separator: New file.
3550         * modules/unictype/property-bidi-whitespace: New file.
3551         * modules/unictype/property-bidi-non-spacing-mark: New file.
3552         * modules/unictype/property-bidi-boundary-neutral: New file.
3553         * modules/unictype/property-bidi-pdf: New file.
3554         * modules/unictype/property-bidi-embedding-or-override: New file.
3555         * modules/unictype/property-bidi-other-neutral: New file.
3556         * modules/unictype/property-hex-digit: New file.
3557         * modules/unictype/property-ascii-hex-digit: New file.
3558         * modules/unictype/property-ideographic: New file.
3559         * modules/unictype/property-unified-ideograph: New file.
3560         * modules/unictype/property-radical: New file.
3561         * modules/unictype/property-ids-binary-operator: New file.
3562         * modules/unictype/property-ids-trinary-operator: New file.
3563         * modules/unictype/property-zero-width: New file.
3564         * modules/unictype/property-space: New file.
3565         * modules/unictype/property-non-break: New file.
3566         * modules/unictype/property-iso-control: New file.
3567         * modules/unictype/property-format-control: New file.
3568         * modules/unictype/property-dash: New file.
3569         * modules/unictype/property-hyphen: New file.
3570         * modules/unictype/property-punctuation: New file.
3571         * modules/unictype/property-line-separator: New file.
3572         * modules/unictype/property-paragraph-separator: New file.
3573         * modules/unictype/property-quotation-mark: New file.
3574         * modules/unictype/property-sentence-terminal: New file.
3575         * modules/unictype/property-terminal-punctuation: New file.
3576         * modules/unictype/property-currency-symbol: New file.
3577         * modules/unictype/property-math: New file.
3578         * modules/unictype/property-other-math: New file.
3579         * modules/unictype/property-paired-punctuation: New file.
3580         * modules/unictype/property-left-of-pair: New file.
3581         * modules/unictype/property-combining: New file.
3582         * modules/unictype/property-composite: New file.
3583         * modules/unictype/property-decimal-digit: New file.
3584         * modules/unictype/property-numeric: New file.
3585         * modules/unictype/property-diacritic: New file.
3586         * modules/unictype/property-extender: New file.
3587         * modules/unictype/property-ignorable-control: New file.
3588         * modules/unictype/property-test: New file.
3589         * modules/unictype/property-byname: New file.
3590         * modules/unictype/property-all: New file.
3591         * modules/unictype/scripts: New file.
3592         * modules/unictype/scripts-all: New file.
3593         * modules/unictype/block-of: New file.
3594         * modules/unictype/block-test: New file.
3595         * modules/unictype/block-list: New file.
3596         * modules/unictype/block-all: New file.
3597         * modules/unictype/syntax-c-whitespace: New file.
3598         * modules/unictype/syntax-java-whitespace: New file.
3599         * modules/unictype/syntax-c-ident: New file.
3600         * modules/unictype/syntax-java-ident: New file.
3601         * modules/unictype/ctype-alnum: New file.
3602         * modules/unictype/ctype-alpha: New file.
3603         * modules/unictype/ctype-cntrl: New file.
3604         * modules/unictype/ctype-digit: New file.
3605         * modules/unictype/ctype-graph: New file.
3606         * modules/unictype/ctype-lower: New file.
3607         * modules/unictype/ctype-print: New file.
3608         * modules/unictype/ctype-punct: New file.
3609         * modules/unictype/ctype-space: New file.
3610         * modules/unictype/ctype-upper: New file.
3611         * modules/unictype/ctype-xdigit: New file.
3612         * modules/unictype/ctype-blank: New file.
3613         * lib/unictype/bidi_byname.c: New file.
3614         * lib/unictype/bidi_name.c: New file.
3615         * lib/unictype/bidi_of.c: New file.
3616         * lib/unictype/bidi_test.c: New file.
3617         * lib/unictype/bitmap.h: New file.
3618         * lib/unictype/block_test.c: New file.
3619         * lib/unictype/blocks.c: New file.
3620         * lib/unictype/categ_C.c: New file.
3621         * lib/unictype/categ_Cc.c: New file.
3622         * lib/unictype/categ_Cf.c: New file.
3623         * lib/unictype/categ_Cn.c: New file.
3624         * lib/unictype/categ_Co.c: New file.
3625         * lib/unictype/categ_Cs.c: New file.
3626         * lib/unictype/categ_L.c: New file.
3627         * lib/unictype/categ_Ll.c: New file.
3628         * lib/unictype/categ_Lm.c: New file.
3629         * lib/unictype/categ_Lo.c: New file.
3630         * lib/unictype/categ_Lt.c: New file.
3631         * lib/unictype/categ_Lu.c: New file.
3632         * lib/unictype/categ_M.c: New file.
3633         * lib/unictype/categ_Mc.c: New file.
3634         * lib/unictype/categ_Me.c: New file.
3635         * lib/unictype/categ_Mn.c: New file.
3636         * lib/unictype/categ_N.c: New file.
3637         * lib/unictype/categ_Nd.c: New file.
3638         * lib/unictype/categ_Nl.c: New file.
3639         * lib/unictype/categ_No.c: New file.
3640         * lib/unictype/categ_P.c: New file.
3641         * lib/unictype/categ_Pc.c: New file.
3642         * lib/unictype/categ_Pd.c: New file.
3643         * lib/unictype/categ_Pe.c: New file.
3644         * lib/unictype/categ_Pf.c: New file.
3645         * lib/unictype/categ_Pi.c: New file.
3646         * lib/unictype/categ_Po.c: New file.
3647         * lib/unictype/categ_Ps.c: New file.
3648         * lib/unictype/categ_S.c: New file.
3649         * lib/unictype/categ_Sc.c: New file.
3650         * lib/unictype/categ_Sk.c: New file.
3651         * lib/unictype/categ_Sm.c: New file.
3652         * lib/unictype/categ_So.c: New file.
3653         * lib/unictype/categ_Z.c: New file.
3654         * lib/unictype/categ_Zl.c: New file.
3655         * lib/unictype/categ_Zp.c: New file.
3656         * lib/unictype/categ_Zs.c: New file.
3657         * lib/unictype/categ_and.c: New file.
3658         * lib/unictype/categ_and_not.c: New file.
3659         * lib/unictype/categ_byname.c: New file.
3660         * lib/unictype/categ_name.c: New file.
3661         * lib/unictype/categ_none.c: New file.
3662         * lib/unictype/categ_of.c: New file.
3663         * lib/unictype/categ_or.c: New file.
3664         * lib/unictype/categ_test.c: New file.
3665         * lib/unictype/combining.c: New file.
3666         * lib/unictype/ctype_alnum.c: New file.
3667         * lib/unictype/ctype_alpha.c: New file.
3668         * lib/unictype/ctype_blank.c: New file.
3669         * lib/unictype/ctype_cntrl.c: New file.
3670         * lib/unictype/ctype_digit.c: New file.
3671         * lib/unictype/ctype_graph.c: New file.
3672         * lib/unictype/ctype_lower.c: New file.
3673         * lib/unictype/ctype_print.c: New file.
3674         * lib/unictype/ctype_punct.c: New file.
3675         * lib/unictype/ctype_space.c: New file.
3676         * lib/unictype/ctype_upper.c: New file.
3677         * lib/unictype/ctype_xdigit.c: New file.
3678         * lib/unictype/decdigit.c: New file.
3679         * lib/unictype/digit.c: New file.
3680         * lib/unictype/identsyntaxmap.h: New file.
3681         * lib/unictype/mirror.c: New file.
3682         * lib/unictype/numeric.c: New file.
3683         * lib/unictype/pr_alphabetic.c: New file.
3684         * lib/unictype/pr_ascii_hex_digit.c: New file.
3685         * lib/unictype/pr_bidi_arabic_digit.c: New file.
3686         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
3687         * lib/unictype/pr_bidi_block_separator.c: New file.
3688         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
3689         * lib/unictype/pr_bidi_common_separator.c: New file.
3690         * lib/unictype/pr_bidi_control.c: New file.
3691         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
3692         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
3693         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
3694         * lib/unictype/pr_bidi_european_digit.c: New file.
3695         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
3696         * lib/unictype/pr_bidi_left_to_right.c: New file.
3697         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
3698         * lib/unictype/pr_bidi_other_neutral.c: New file.
3699         * lib/unictype/pr_bidi_pdf.c: New file.
3700         * lib/unictype/pr_bidi_segment_separator.c: New file.
3701         * lib/unictype/pr_bidi_whitespace.c: New file.
3702         * lib/unictype/pr_byname.c: New file.
3703         * lib/unictype/pr_byname.gperf: New file.
3704         * lib/unictype/pr_combining.c: New file.
3705         * lib/unictype/pr_composite.c: New file.
3706         * lib/unictype/pr_currency_symbol.c: New file.
3707         * lib/unictype/pr_dash.c: New file.
3708         * lib/unictype/pr_decimal_digit.c: New file.
3709         * lib/unictype/pr_default_ignorable_code_point.c: New file.
3710         * lib/unictype/pr_deprecated.c: New file.
3711         * lib/unictype/pr_diacritic.c: New file.
3712         * lib/unictype/pr_extender.c: New file.
3713         * lib/unictype/pr_format_control.c: New file.
3714         * lib/unictype/pr_grapheme_base.c: New file.
3715         * lib/unictype/pr_grapheme_extend.c: New file.
3716         * lib/unictype/pr_grapheme_link.c: New file.
3717         * lib/unictype/pr_hex_digit.c: New file.
3718         * lib/unictype/pr_hyphen.c: New file.
3719         * lib/unictype/pr_id_continue.c: New file.
3720         * lib/unictype/pr_id_start.c: New file.
3721         * lib/unictype/pr_ideographic.c: New file.
3722         * lib/unictype/pr_ids_binary_operator.c: New file.
3723         * lib/unictype/pr_ids_trinary_operator.c: New file.
3724         * lib/unictype/pr_ignorable_control.c: New file.
3725         * lib/unictype/pr_iso_control.c: New file.
3726         * lib/unictype/pr_join_control.c: New file.
3727         * lib/unictype/pr_left_of_pair.c: New file.
3728         * lib/unictype/pr_line_separator.c: New file.
3729         * lib/unictype/pr_logical_order_exception.c: New file.
3730         * lib/unictype/pr_lowercase.c: New file.
3731         * lib/unictype/pr_math.c: New file.
3732         * lib/unictype/pr_non_break.c: New file.
3733         * lib/unictype/pr_not_a_character.c: New file.
3734         * lib/unictype/pr_numeric.c: New file.
3735         * lib/unictype/pr_other_alphabetic.c: New file.
3736         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
3737         * lib/unictype/pr_other_grapheme_extend.c: New file.
3738         * lib/unictype/pr_other_id_continue.c: New file.
3739         * lib/unictype/pr_other_id_start.c: New file.
3740         * lib/unictype/pr_other_lowercase.c: New file.
3741         * lib/unictype/pr_other_math.c: New file.
3742         * lib/unictype/pr_other_uppercase.c: New file.
3743         * lib/unictype/pr_paired_punctuation.c: New file.
3744         * lib/unictype/pr_paragraph_separator.c: New file.
3745         * lib/unictype/pr_pattern_syntax.c: New file.
3746         * lib/unictype/pr_pattern_white_space.c: New file.
3747         * lib/unictype/pr_private_use.c: New file.
3748         * lib/unictype/pr_punctuation.c: New file.
3749         * lib/unictype/pr_quotation_mark.c: New file.
3750         * lib/unictype/pr_radical.c: New file.
3751         * lib/unictype/pr_sentence_terminal.c: New file.
3752         * lib/unictype/pr_soft_dotted.c: New file.
3753         * lib/unictype/pr_space.c: New file.
3754         * lib/unictype/pr_terminal_punctuation.c: New file.
3755         * lib/unictype/pr_test.c: New file.
3756         * lib/unictype/pr_titlecase.c: New file.
3757         * lib/unictype/pr_unassigned_code_value.c: New file.
3758         * lib/unictype/pr_unified_ideograph.c: New file.
3759         * lib/unictype/pr_uppercase.c: New file.
3760         * lib/unictype/pr_variation_selector.c: New file.
3761         * lib/unictype/pr_white_space.c: New file.
3762         * lib/unictype/pr_xid_continue.c: New file.
3763         * lib/unictype/pr_xid_start.c: New file.
3764         * lib/unictype/pr_zero_width.c: New file.
3765         * lib/unictype/scripts.c: New file.
3766         * lib/unictype/sy_c_ident.c: New file.
3767         * lib/unictype/sy_c_whitespace.c: New file.
3768         * lib/unictype/sy_java_ident.c: New file.
3769         * lib/unictype/sy_java_whitespace.c: New file.
3770
3771         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
3772         Unicode 5.0.0.
3773         * lib/unictype/blocks.h: Likewise.
3774         * lib/unictype/categ_C.h: Likewise.
3775         * lib/unictype/categ_Cc.h: Likewise.
3776         * lib/unictype/categ_Cf.h: Likewise.
3777         * lib/unictype/categ_Cn.h: Likewise.
3778         * lib/unictype/categ_Co.h: Likewise.
3779         * lib/unictype/categ_Cs.h: Likewise.
3780         * lib/unictype/categ_L.h: Likewise.
3781         * lib/unictype/categ_Ll.h: Likewise.
3782         * lib/unictype/categ_Lm.h: Likewise.
3783         * lib/unictype/categ_Lo.h: Likewise.
3784         * lib/unictype/categ_Lt.h: Likewise.
3785         * lib/unictype/categ_Lu.h: Likewise.
3786         * lib/unictype/categ_M.h: Likewise.
3787         * lib/unictype/categ_Mc.h: Likewise.
3788         * lib/unictype/categ_Me.h: Likewise.
3789         * lib/unictype/categ_Mn.h: Likewise.
3790         * lib/unictype/categ_N.h: Likewise.
3791         * lib/unictype/categ_Nd.h: Likewise.
3792         * lib/unictype/categ_Nl.h: Likewise.
3793         * lib/unictype/categ_No.h: Likewise.
3794         * lib/unictype/categ_P.h: Likewise.
3795         * lib/unictype/categ_Pc.h: Likewise.
3796         * lib/unictype/categ_Pd.h: Likewise.
3797         * lib/unictype/categ_Pe.h: Likewise.
3798         * lib/unictype/categ_Pf.h: Likewise.
3799         * lib/unictype/categ_Pi.h: Likewise.
3800         * lib/unictype/categ_Po.h: Likewise.
3801         * lib/unictype/categ_Ps.h: Likewise.
3802         * lib/unictype/categ_S.h: Likewise.
3803         * lib/unictype/categ_Sc.h: Likewise.
3804         * lib/unictype/categ_Sk.h: Likewise.
3805         * lib/unictype/categ_Sm.h: Likewise.
3806         * lib/unictype/categ_So.h: Likewise.
3807         * lib/unictype/categ_Z.h: Likewise.
3808         * lib/unictype/categ_Zl.h: Likewise.
3809         * lib/unictype/categ_Zp.h: Likewise.
3810         * lib/unictype/categ_Zs.h: Likewise.
3811         * lib/unictype/categ_of.h: Likewise.
3812         * lib/unictype/combining.h: Likewise.
3813         * lib/unictype/ctype_alnum.h: Likewise.
3814         * lib/unictype/ctype_alpha.h: Likewise.
3815         * lib/unictype/ctype_blank.h: Likewise.
3816         * lib/unictype/ctype_cntrl.h: Likewise.
3817         * lib/unictype/ctype_digit.h: Likewise.
3818         * lib/unictype/ctype_graph.h: Likewise.
3819         * lib/unictype/ctype_lower.h: Likewise.
3820         * lib/unictype/ctype_print.h: Likewise.
3821         * lib/unictype/ctype_punct.h: Likewise.
3822         * lib/unictype/ctype_space.h: Likewise.
3823         * lib/unictype/ctype_upper.h: Likewise.
3824         * lib/unictype/ctype_xdigit.h: Likewise.
3825         * lib/unictype/decdigit.h: Likewise.
3826         * lib/unictype/digit.h: Likewise.
3827         * lib/unictype/mirror.h: Likewise.
3828         * lib/unictype/numeric.h: Likewise.
3829         * lib/unictype/pr_alphabetic.h: Likewise.
3830         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
3831         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
3832         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
3833         * lib/unictype/pr_bidi_block_separator.h: Likewise.
3834         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
3835         * lib/unictype/pr_bidi_common_separator.h: Likewise.
3836         * lib/unictype/pr_bidi_control.h: Likewise.
3837         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
3838         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
3839         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
3840         * lib/unictype/pr_bidi_european_digit.h: Likewise.
3841         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
3842         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
3843         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
3844         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
3845         * lib/unictype/pr_bidi_pdf.h: Likewise.
3846         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
3847         * lib/unictype/pr_bidi_whitespace.h: Likewise.
3848         * lib/unictype/pr_combining.h: Likewise.
3849         * lib/unictype/pr_composite.h: Likewise.
3850         * lib/unictype/pr_currency_symbol.h: Likewise.
3851         * lib/unictype/pr_dash.h: Likewise.
3852         * lib/unictype/pr_decimal_digit.h: Likewise.
3853         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
3854         * lib/unictype/pr_deprecated.h: Likewise.
3855         * lib/unictype/pr_diacritic.h: Likewise.
3856         * lib/unictype/pr_extender.h: Likewise.
3857         * lib/unictype/pr_format_control.h: Likewise.
3858         * lib/unictype/pr_grapheme_base.h: Likewise.
3859         * lib/unictype/pr_grapheme_extend.h: Likewise.
3860         * lib/unictype/pr_grapheme_link.h: Likewise.
3861         * lib/unictype/pr_hex_digit.h: Likewise.
3862         * lib/unictype/pr_hyphen.h: Likewise.
3863         * lib/unictype/pr_id_continue.h: Likewise.
3864         * lib/unictype/pr_id_start.h: Likewise.
3865         * lib/unictype/pr_ideographic.h: Likewise.
3866         * lib/unictype/pr_ids_binary_operator.h: Likewise.
3867         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
3868         * lib/unictype/pr_ignorable_control.h: Likewise.
3869         * lib/unictype/pr_iso_control.h: Likewise.
3870         * lib/unictype/pr_join_control.h: Likewise.
3871         * lib/unictype/pr_left_of_pair.h: Likewise.
3872         * lib/unictype/pr_line_separator.h: Likewise.
3873         * lib/unictype/pr_logical_order_exception.h: Likewise.
3874         * lib/unictype/pr_lowercase.h: Likewise.
3875         * lib/unictype/pr_math.h: Likewise.
3876         * lib/unictype/pr_non_break.h: Likewise.
3877         * lib/unictype/pr_not_a_character.h: Likewise.
3878         * lib/unictype/pr_numeric.h: Likewise.
3879         * lib/unictype/pr_other_alphabetic.h: Likewise.
3880         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
3881         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
3882         * lib/unictype/pr_other_id_continue.h: Likewise.
3883         * lib/unictype/pr_other_id_start.h: Likewise.
3884         * lib/unictype/pr_other_lowercase.h: Likewise.
3885         * lib/unictype/pr_other_math.h: Likewise.
3886         * lib/unictype/pr_other_uppercase.h: Likewise.
3887         * lib/unictype/pr_paired_punctuation.h: Likewise.
3888         * lib/unictype/pr_paragraph_separator.h: Likewise.
3889         * lib/unictype/pr_pattern_syntax.h: Likewise.
3890         * lib/unictype/pr_pattern_white_space.h: Likewise.
3891         * lib/unictype/pr_private_use.h: Likewise.
3892         * lib/unictype/pr_punctuation.h: Likewise.
3893         * lib/unictype/pr_quotation_mark.h: Likewise.
3894         * lib/unictype/pr_radical.h: Likewise.
3895         * lib/unictype/pr_sentence_terminal.h: Likewise.
3896         * lib/unictype/pr_soft_dotted.h: Likewise.
3897         * lib/unictype/pr_space.h: Likewise.
3898         * lib/unictype/pr_terminal_punctuation.h: Likewise.
3899         * lib/unictype/pr_titlecase.h: Likewise.
3900         * lib/unictype/pr_unassigned_code_value.h: Likewise.
3901         * lib/unictype/pr_unified_ideograph.h: Likewise.
3902         * lib/unictype/pr_uppercase.h: Likewise.
3903         * lib/unictype/pr_variation_selector.h: Likewise.
3904         * lib/unictype/pr_white_space.h: Likewise.
3905         * lib/unictype/pr_xid_continue.h: Likewise.
3906         * lib/unictype/pr_xid_start.h: Likewise.
3907         * lib/unictype/pr_zero_width.h: Likewise.
3908         * lib/unictype/scripts.h: Likewise.
3909         * lib/unictype/scripts_byname.gperf: Likewise.
3910         * lib/unictype/sy_c_ident.h: Likewise.
3911         * lib/unictype/sy_c_whitespace.h: Likewise.
3912         * lib/unictype/sy_java_ident.h: Likewise.
3913         * lib/unictype/sy_java_whitespace.h: Likewise.
3914
3915         * lib/unictype/Makefile: New file.
3916         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
3917         glibc.
3918         * lib/unictype/3level.h: New file, copied from glibc.
3919         * lib/unictype/3levelbit.h: New file.
3920
3921 2007-11-11  Bruno Haible  <bruno@clisp.org>
3922
3923         * modules/gperf: New file.
3924         * modules/iconv_open (Depends-on): Add it.
3925         (Makefile.am): Remove the GPERF definition.
3926
3927 2007-11-11  Bruno Haible  <bruno@clisp.org>
3928
3929         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
3930         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
3931
3932 2007-11-11  Bruno Haible  <bruno@clisp.org>
3933
3934         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
3935         (usage): Remove function.
3936
3937 2007-11-11  Bruno Haible  <bruno@clisp.org>
3938
3939         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
3940         gl_FUNC_CEILF_LIBS.
3941         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
3942         gl_FUNC_CEIL_LIBS.
3943         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
3944         gl_FUNC_CEILL_LIBS.
3945         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
3946         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
3947         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
3948
3949 2007-11-11  Bruno Haible  <bruno@clisp.org>
3950
3951         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
3952         roundf were declared but do not exist on functions.
3953         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
3954         roundl were declared but do not exist on functions.
3955         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
3956         HAVE_FLOORL_AND_CEILL, respectively.
3957         Needed for Sun C on Solaris 10.
3958
3959 2007-11-11  Bruno Haible  <bruno@clisp.org>
3960
3961         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
3962         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
3963         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
3964         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
3965         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
3966         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
3967         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
3968         HAVE_DECL_ROUNDF.
3969         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
3970         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
3971         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
3972         of HAVE_DECL_ROUND*.
3973         * modules/math (Makefile.am): Update.
3974
3975 2007-11-10  Bruno Haible  <bruno@clisp.org>
3976
3977         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
3978         ptrdiff_t as m4/intl.m4.
3979
3980 2007-11-10  Jim Meyering  <meyering@redhat.com>
3981
3982         Avoid link failure for the argmatch test.
3983         * tests/test-argmatch.c (usage): Define function to avoid a link
3984         failure: argmatch_die requires a usage function.
3985
3986 2007-11-09  Bruno Haible  <bruno@clisp.org>
3987
3988         * doc/functions/snprintf.texi: Mention BeOS deficiency.
3989         * doc/functions/vsnprintf.texi: Likewise.
3990         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
3991         with a size argument < 2.
3992
3993 2007-11-09  Bruno Haible  <bruno@clisp.org>
3994
3995         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
3996         buffer. Fixes an inefficiency introduced on 2007-11-03.
3997
3998 2007-11-09  Bruno Haible  <bruno@clisp.org>
3999
4000         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
4001         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
4002
4003 2007-11-08  Jim Meyering  <meyering@redhat.com>
4004
4005         Change cache variable name prefix "jm_" to "gl_" everywhere.
4006         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
4007         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
4008         * m4/uptime.m4: s/gl_/jm_/
4009
4010 2007-11-07  Bruno Haible  <bruno@clisp.org>
4011
4012         Update to GNU gettext 0.17.
4013         * m4/intl.m4: Update to GNU gettext 0.17.
4014         * m4/po.m4: Likewise.
4015         * modules/gettext (Files): Remove m4/ulonglong.m4.
4016         (configure.ac): Require gettext infrastructure from version 0.17.
4017
4018 2007-11-06  Bruno Haible  <bruno@clisp.org>
4019
4020         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
4021         symbolic values are not defined in a public header.
4022         * lib/freadable.c (freadable) [QNX]: Likewise.
4023         * lib/freadahead.c (freadahead) [QNX]: Likewise.
4024         * lib/freading.c (freading) [QNX]: Likewise.
4025         * lib/fseterr.c (fseterr) [QNX]: Likewise.
4026         * lib/fwritable.c (fwritable) [QNX]: Likewise.
4027         * lib/fwriting.c (fwriting) [QNX]: Likewise.
4028         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
4029         Reported by Alain Magloire.
4030
4031         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
4032
4033 2007-11-05  Bruno Haible  <bruno@clisp.org>
4034
4035         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
4036         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
4037         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
4038         Reported by Eric Blake.
4039
4040 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4041             Bruno Haible  <bruno@clisp.org>
4042
4043         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
4044         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
4045         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
4046         (malloc): Undefine also before including <stdlib.h>.
4047         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
4048         Needed on OSF/1 4.0.
4049
4050 2007-11-05  Jim Meyering  <meyering@redhat.com>
4051
4052         git-version-gen: sync from coreutils.
4053         * build-aux/git-version-gen: Add comments.
4054         Change the first '-' to '.' in the snapshot version string,
4055         e.g., 6.9-377-08144 -> 6.9.377-08144
4056         Remove first parameter.
4057         Don't declare a version "-dirty" merely because a time
4058         stamp has changed.
4059
4060 2007-11-04  Bruno Haible  <bruno@clisp.org>
4061
4062         * lib/lock.h: Protect all macro definitions containing an 'if'
4063         statement through a "do { ... } while (0)".
4064         * lib/tls.h: Likewise.
4065
4066 2007-11-04  Bruno Haible  <bruno@clisp.org>
4067
4068         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
4069
4070 2007-11-04  Bruno Haible  <bruno@clisp.org>
4071
4072         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
4073         * modules/fprintf-posix (Depends-on): Add nocrash.
4074         * modules/snprintf-posix (Depends-on): Likewise.
4075         * modules/sprintf-posix (Depends-on): Likewise.
4076         * modules/vasnprintf-posix (Depends-on): Likewise.
4077         * modules/vasprintf-posix (Depends-on): Likewise.
4078         * modules/vfprintf-posix (Depends-on): Likewise.
4079         * modules/vsnprintf-posix (Depends-on): Likewise.
4080         * modules/vsprintf-posix (Depends-on): Likewise.
4081         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
4082         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
4083         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
4084         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
4085         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
4086         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
4087         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
4088
4089 2007-11-04  Bruno Haible  <bruno@clisp.org>
4090
4091         * modules/nocrash: New file.
4092         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
4093         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
4094
4095 2007-11-04  Bruno Haible  <bruno@clisp.org>
4096
4097         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
4098         precision handling.
4099         * tests/test-vasprintf-posix.c (test_function): Likewise.
4100         * tests/test-snprintf-posix.h (test_function): Likewise.
4101         * tests/test-sprintf-posix.h (test_function): Likewise.
4102
4103         Fix *printf behaviour for large precisions on mingw and BeOS.
4104         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
4105         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
4106         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
4107         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
4108         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
4109         gl_PRINTF_PRECISION and test its result. Invoke
4110         gl_PREREQ_VASNPRINTF_PRECISION.
4111         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
4112         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
4113         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
4114         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
4115         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
4116         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
4117         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
4118         * doc/functions/fprintf.texi: Update.
4119         * doc/functions/printf.texi: Update.
4120         * doc/functions/snprintf.texi: Update.
4121         * doc/functions/sprintf.texi: Update.
4122         * doc/functions/vfprintf.texi: Update.
4123         * doc/functions/vprintf.texi: Update.
4124         * doc/functions/vsnprintf.texi: Update.
4125         * doc/functions/vsprintf.texi: Update.
4126
4127 2007-11-04  Bruno Haible  <bruno@clisp.org>
4128
4129         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
4130
4131 2007-11-04  Bruno Haible  <bruno@clisp.org>
4132
4133         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
4134         Reported by Sylvain Beucler <beuc@gnu.org>.
4135
4136 2007-11-03  Bruno Haible  <bruno@clisp.org>
4137
4138         * tests/test-fprintf-posix2.sh: New file.
4139         * tests/test-fprintf-posix2.c: New file.
4140         * modules/fprintf-posix-tests (Files): Add them.
4141         (TESTS): Add test-fprintf-posix2.sh.
4142         (configure.ac): Check for getrlimit and setrlimit.
4143         (check_PROGRAMS): Add test-fprintf-posix2.
4144
4145         * tests/test-printf-posix2.sh: New file.
4146         * tests/test-printf-posix2.c: New file.
4147         * modules/printf-posix-tests (Files): Add them.
4148         (TESTS): Add test-printf-posix2.sh.
4149         (configure.ac): Check for getrlimit and setrlimit.
4150         (check_PROGRAMS): Add test-printf-posix2.
4151
4152         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
4153         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
4154         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
4155         (decode_double): New function, copied from decode_long_double.
4156         (scale10_round_decimal_decoded): New function, extracted from
4157         scale10_round_decimal_long_double.
4158         (scale10_round_decimal_long_double): Use it.
4159         (scale10_round_decimal_double): New function.
4160         (floorlog10): New function.
4161         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
4162         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
4163         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
4164         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
4165         gl_PRINTF_ENOMEM and test its result. Invoke
4166         gl_PREREQ_VASNPRINTF_ENOMEM.
4167         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
4168         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
4169         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
4170         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
4171         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
4172         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
4173         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
4174         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
4175         * modules/snprintf-posix (Depends-on): Likewise.
4176         * modules/sprintf-posix (Depends-on): Likewise.
4177         * modules/vasnprintf-posix (Depends-on): Likewise.
4178         * modules/vasprintf-posix (Depends-on): Likewise.
4179         * modules/vfprintf-posix (Depends-on): Likewise.
4180         * modules/vsnprintf-posix (Depends-on): Likewise.
4181         * modules/vsprintf-posix (Depends-on): Likewise.
4182         * doc/functions/fprintf.texi: Update.
4183         * doc/functions/printf.texi: Update.
4184         * doc/functions/snprintf.texi: Update.
4185         * doc/functions/sprintf.texi: Update.
4186         * doc/functions/vfprintf.texi: Update.
4187         * doc/functions/vprintf.texi: Update.
4188         * doc/functions/vsnprintf.texi: Update.
4189         * doc/functions/vsprintf.texi: Update.
4190
4191 2007-11-03  Bruno Haible  <bruno@clisp.org>
4192
4193         * modules/frexp-nolibm-tests: New file.
4194
4195         * modules/frexp-nolibm: New file.
4196         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
4197
4198 2007-11-03  Bruno Haible  <bruno@clisp.org>
4199
4200         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
4201         value is C99 compliant.
4202         Needed for OSF/1 5.1.
4203
4204 2007-11-03  Bruno Haible  <bruno@clisp.org>
4205
4206         Fix out-of-memory handling of vasnprintf.
4207         * lib/printf-parse.c: Include <errno.h>.
4208         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
4209         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
4210         is already set.
4211
4212 2007-11-02  Eric Blake  <ebb9@byu.net>
4213
4214         Fix tests on cygwin.
4215         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
4216
4217 2007-11-01  Bruno Haible  <bruno@clisp.org>
4218
4219         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
4220         warning.
4221         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
4222         needed for POSIX compatibility.
4223
4224 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
4225
4226         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
4227         for compatibility with GNU.
4228
4229 2007-11-01  Bruno Haible  <bruno@clisp.org>
4230
4231         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
4232         (putenv): Renamed from rpl_putenv. Change argument type from
4233         'const char *' to 'char *'.
4234         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
4235         of defining putenv in config.h, just set REPLACE_PUTENV.
4236         * modules/putenv (Depends-on): Add stdlib.
4237         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
4238         (Include): Use <stdlib.h>.
4239         * lib/stdlib.in.h (putenv): New declaration.
4240         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
4241         REPLACE_PUTENV.
4242         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
4243         REPLACE_PUTENV.
4244         Needed for MacOS X 10.5.0.
4245         Reported by Peter O'Gorman <peter@pogma.com>.
4246
4247 2007-11-01  Jim Meyering  <meyering@redhat.com>
4248
4249         Treat an empty date string exactly like "0".
4250         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
4251         if the remaining date string (to be parsed) is empty, use "0".
4252         Reported by Mischa Molhoek and discussed in this thread:
4253         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
4254
4255 2007-10-31  Bruno Haible  <bruno@clisp.org>
4256
4257         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
4258         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
4259         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
4260         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
4261         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
4262         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
4263
4264 2007-10-31  Bruno Haible  <bruno@clisp.org>
4265
4266         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
4267         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
4268         (AC_TYPE_LONG_LONG_INT): Use it.
4269         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
4270         it as well.
4271         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
4272         to m4/longlong.m4.
4273         * modules/stdint (Files): Remove m4/ulonglong.m4.
4274         * modules/strtoull (Files): Use m4/longlong.m4 instead of
4275         m4/ulonglong.m4.
4276         * modules/strtoumax (Files): Likewise.
4277
4278 2007-10-30  Bruno Haible  <bruno@clisp.org>
4279
4280         * modules/xvasprintf-posix: New file.
4281         Suggested by Eric Blake.
4282
4283 2007-10-30  Bruno Haible  <bruno@clisp.org>
4284
4285         * modules/xprintf-posix-tests: New file.
4286         * tests/test-xprintf-posix.sh: New file.
4287         * tests/test-xprintf-posix.c: New file.
4288         * tests/test-xfprintf-posix.c: New file.
4289
4290         * modules/xprintf-posix: New file.
4291
4292 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4293
4294         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
4295         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
4296         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
4297
4298 2007-10-29  Bruno Haible  <bruno@clisp.org>
4299
4300         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
4301         contain the special marker '_cv_'.
4302         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
4303         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
4304         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
4305         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
4306         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
4307         Reported by Ralf Wildenhues.
4308
4309 2007-10-29  Bruno Haible  <bruno@clisp.org>
4310
4311         * gnulib-tool (func_import): When --lgpl is not specified, set
4312         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
4313         GPLv3.
4314         Reported by Simon Josefsson.
4315
4316 2007-10-28  Bruno Haible  <bruno@clisp.org>
4317
4318         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
4319         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
4320         HAVE_DECL_ISFINITE.
4321         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
4322         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
4323         HAVE_DECL_ISFINITE.
4324
4325 2007-10-28  Bruno Haible  <bruno@clisp.org>
4326
4327         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
4328         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
4329
4330 2007-10-28  Bruno Haible  <bruno@clisp.org>
4331
4332         Fix link errors with Sun C 5.0 on Solaris 10.
4333         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
4334         function is declared but not present in the compiler's libm.
4335         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
4336         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
4337         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
4338         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
4339         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
4340         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
4341         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
4342         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
4343         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
4344         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
4345         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
4346         HAVE_DECL_FLOORL.
4347
4348 2007-10-28  Bruno Haible  <bruno@clisp.org>
4349
4350         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
4351         gl_FUNC_FLOORL. Cache the result.
4352         (gl_FUNC_FLOORL): Use it.
4353         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
4354         gl_FUNC_CEILL. Cache the result.
4355         (gl_FUNC_CEILL): Use it.
4356
4357         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
4358         gl_FUNC_FLOOR. Cache the result.
4359         (gl_FUNC_FLOOR): Use it.
4360         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
4361         gl_FUNC_CEIL. Cache the result.
4362         (gl_FUNC_CEIL): Use it.
4363
4364         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
4365         gl_FUNC_FLOORF. Cache the result.
4366         (gl_FUNC_FLOORF): Use it.
4367         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
4368         gl_FUNC_CEILF. Cache the result.
4369         (gl_FUNC_CEILF): Use it.
4370
4371 2007-10-28  Bruno Haible  <bruno@clisp.org>
4372
4373         * gnulib-tool: Allow specifying the LGPL version number through
4374         --lgpl=2 or --lgpl=3.
4375         (func_usage): Document --lgpl with argument.
4376         Handle --lgpl=... arguments.
4377         (func_import): Recognize also gl_LGPL calls with an argument. When
4378         --lgpl=2 is used and the module's license is just LGPL, report an
4379         error. Set sed_transform_lib_file according to the lgpl variable. In
4380         the generated files, use --lgpl or gl_LGPL invocations with argument,
4381         if necessary.
4382         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
4383         an LGPv2+ license.
4384         * doc/gnulib-tool.texi (Modified imports): Update explanation of
4385         gl_LGPL macro.
4386
4387 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4388             Bruno Haible  <bruno@clisp.org>
4389
4390         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
4391         (u16_uctomb_aux): Likewise.
4392         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
4393         !HAVE_INLINE.
4394         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
4395
4396 2007-10-28  Bruno Haible  <bruno@clisp.org>
4397
4398         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
4399         Invoke AM_GETTEXT_OPTION if it exists.
4400         * modules/vasprintf: Likewise.
4401         * modules/verror: Likewise.
4402         * modules/xprintf: Likewise.
4403         * modules/xvasprintf: Likewise.
4404
4405 2007-10-27  Ben Pfaff  <blp@gnu.org>
4406
4407         * lib/math.in.h: Define isfinite macro and prototypes for
4408         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
4409         implementations.
4410         * m4/math_h.m4: New substitutions for isfinite module.
4411         * lib/isfinite.c: New file.
4412         * m4/isfinite.m4: New file.
4413         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
4414         * modules/isfinite: New file.
4415         * modules/isfinite-tests: New file.
4416         * tests/tests-isfinite.c: New file.
4417         * doc/functions/isfinite.texi: Mention isfinite module.
4418         * MODULES.html.sh: Mention new module.
4419
4420 2007-10-27  Ben Pfaff  <blp@gnu.org>
4421
4422         Ralf Wildenhues reported that Tru64 4.0D declares the round
4423         functions but does not have definitions.
4424         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
4425         cannot be found in any library, set the output variable to
4426         "missing" instead of "".
4427         * m4/round.m4: Also use our substitute if we cannot find round in
4428         any library, even if it is declared.
4429         * m4/roundf.m4: Likewise for roundf.
4430         * m4/roundl.m4: Likewise for roundl.
4431         * lib/math.in.h: Undefine roundf, round, roundl before defining
4432         their replacements, to allow for hypothetical systems where these
4433         may be defined as macros but not available in libraries.
4434
4435 2007-10-27  Bruno Haible  <bruno@clisp.org>
4436
4437         * doc/gnulib.texi: Invoke @firstparagraphindent.
4438         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
4439         changes in gnulib.
4440         (Source changes): New section.
4441
4442 2007-10-26  Bruno Haible  <bruno@clisp.org>
4443
4444         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
4445         borrowed from autoconf.
4446
4447 2007-10-26  Bruno Haible  <bruno@clisp.org>
4448
4449         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
4450         strerror returned the empty string. Needed on HP-UX 11.00.
4451
4452 2007-10-24  Micah Cowan  <micah@cowan.name>
4453
4454         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
4455         * build-aux/bootstrap: Remove support for now-unnecessary option,
4456         --cvs-user, and envvars CVS_USER, CVS_RSH.
4457
4458 2007-10-24  Jim Meyering  <meyering@redhat.com>
4459
4460         Avoid diagnostics from sha1sum when there is no cached checksum.
4461         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
4462         if the po.s1 file hasn't been created yet.
4463
4464         * build-aux/bootstrap: Sync from coreutils:
4465         2007-10-24  Jim Meyering  <meyering@redhat.com>
4466         Get gnulib from the git repository, not from an obsolete cvs one.
4467         * build-aux/bootstrap: Suggestion from Micah Cowan.
4468         2007-10-04  Jim Meyering  <jim@meyering.net>
4469         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
4470         (update_po_files): Work also when there are no .po files in po/.
4471
4472 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
4473
4474         * README: Append ".git" to git and cg examples.
4475         Problem reported by Benoit Sigoure.
4476
4477 2007-10-23  Micah Cowan  <micah@cowan.name>
4478
4479         * users.txt: Add wget.
4480
4481 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4482
4483         Fix linking of some unistdio tests on FreeBSD.
4484         * modules/unistdio/u16-vsnprintf-tests
4485         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
4486         * modules/unistdio/u16-vsprintf-tests
4487         (test_u16_vsnprintf1_LDADD): Likewise.
4488         * modules/unistdio/u32-vsnprintf-tests
4489         (test_u32_vsnprintf1_LDADD): Likewise.
4490         * modules/unistdio/u32-vsprintf-tests
4491         (test_u32_vsprintf1_LDADD): Likewise.
4492         * modules/unistdio/u8-vsnprintf-tests
4493         (test_u8_vsnprintf1_LDADD): Likewise.
4494         * modules/unistdio/u8-vsprintf-tests
4495         (test_u8_vsprintf1_LDADD): Likewise.
4496         * modules/unistdio/ulc-vsnprintf-tests
4497         (test_ulc_vsnprintf1_LDADD): Likewise.
4498         * modules/unistdio/ulc-vsprintf-tests
4499         (test_ulc_vsprintf1_LDADD): Likewise.
4500
4501         Fix linking of some uniconv tests on FreeBSD.
4502         * modules/uniconv/u16-conv-from-enc-tests
4503         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
4504         * modules/uniconv/u16-conv-to-enc-tests
4505         (test_u16_conv_to_enc_LDADD): Likewise.
4506         * modules/uniconv/u16-strconv-from-enc-tests
4507         (test_u16_strconv_from_enc_LDADD): Likewise.
4508         * modules/uniconv/u16-strconv-to-enc-tests
4509         (test_u16_strconv_to_enc_LDADD): Likewise.
4510         * modules/uniconv/u32-conv-from-enc-tests
4511         (test_u32_conv_from_enc_LDADD): Likewise.
4512         * modules/uniconv/u32-conv-to-enc-tests
4513         (test_u32_conv_to_enc_LDADD): Likewise.
4514         * modules/uniconv/u32-strconv-from-enc-tests
4515         (test_u32_strconv_from_enc_LDADD): Likewise.
4516         * modules/uniconv/u32-strconv-to-enc-tests
4517         (test_u32_strconv_to_enc_LDADD): Likewise.
4518         * modules/uniconv/u8-conv-from-enc-tests
4519         (test_u8_conv_from_enc_LDADD): Likewise.
4520         * modules/uniconv/u8-conv-to-enc-tests
4521         (test_u8_conv_to_enc_LDADD): Likewise.
4522         * modules/uniconv/u8-strconv-from-enc-tests
4523         (test_u8_strconv_from_enc_LDADD): Likewise.
4524         * modules/uniconv/u8-strconv-to-enc-tests
4525         (test_u8_strconv_to_enc_LDADD): Likewise.
4526
4527 2007-10-22  Bruno Haible  <bruno@clisp.org>
4528
4529         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
4530         size.
4531
4532 2007-10-22  Eric Blake  <ebb9@byu.net>
4533
4534         Tweak x*printf documentation.
4535         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
4536         variable name and comments.
4537         Suggested by Bruno Haible.
4538
4539 2007-10-22  Bruno Haible  <bruno@clisp.org>
4540
4541         * lib/acl.c (copy_acl): Fix file name in comment.
4542
4543 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
4544
4545         Fix Tru64 problem with stdbool.h.
4546         * lib/stdbool.in.h (false, true):
4547         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
4548         Don't declare as an enum in this situation; it runs afoul of Tru64.
4549         Problem reported by Steven M. Schweda in
4550         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
4551
4552 2007-10-22  Eric Blake  <ebb9@byu.net>
4553
4554         Also wrap vf?printf.
4555         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
4556         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
4557         (xvprintf, xvfprintf): New functions.
4558
4559 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4560
4561         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
4562         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
4563
4564         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
4565         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
4566
4567 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
4568
4569         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
4570         by Bruno Haible.
4571
4572 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4573
4574         * lib/getloadavg.c
4575         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
4576         Undef `sys' after including sys/table.h, for Tru64 4.0D.
4577
4578         * tests/test-i-ring.c: Work for C89.
4579
4580 2007-10-22  Bruno Haible  <bruno@clisp.org>
4581
4582         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
4583         -1u, in preprocessor expression, so that we don't test for the bug
4584         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
4585         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
4586
4587 2007-10-22  Eric Blake  <ebb9@byu.net>
4588
4589         * tests/test-yesno.sh: Silence stderr during test.
4590
4591 2007-10-22  Simon Josefsson  <simon@josefsson.org>
4592
4593         * modules/crypto/gc-camellia: New file.
4594
4595         * m4/gc-camellia.m4: New file.
4596
4597         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
4598
4599         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
4600
4601 2007-10-22  Simon Josefsson  <simon@josefsson.org>
4602
4603         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
4604         --help to stdout.  Reported by sms@antinode.org (Steven
4605         M. Schweda).
4606
4607 2007-10-22  Simon Josefsson  <simon@josefsson.org>
4608
4609         * users.txt: Fix link to libksba.
4610
4611 2007-10-21  Ben Pfaff  <blp@gnu.org>
4612
4613         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
4614         round.c roundf implementation that depends on floorf and ceilf to
4615         be tested unconditionally.
4616
4617 2007-10-21  Ben Pfaff  <blp@gnu.org>
4618
4619         * m4/check-libm-func.m4: Removed.
4620         * m4/check-math-lib.m4: New file.
4621         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
4622         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
4623         definition and lack of AC_LIBOBJ([roundf]).
4624         * m4/roundl.m4: Ditto, and similarly for roundl.
4625         * modules/round: Reference new m4 file.
4626         * modules/roundf: Ditto.
4627         * modules/roundl: Ditto.
4628         * tests/test-round2.c (main): Use ROUND instead of round.
4629         Bug report from Bruno Haible.
4630
4631 2007-10-21  Bruno Haible  <bruno@clisp.org>
4632
4633         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
4634         context.
4635
4636 2007-10-21  Bruno Haible  <bruno@clisp.org>
4637
4638         * tests/test-wcwidth.c (main): Allow negative result for some control
4639         characters.
4640
4641         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
4642         Needed on OSF/1 5.1.
4643
4644 2007-10-21  Bruno Haible  <bruno@clisp.org>
4645
4646         * tests/test-floorf1.c: Include isnanf.h.
4647         (main): Use isnanf() instead of isnan().
4648         * tests/test-ceilf1.c: Include isnanf.h.
4649         (main): Use isnanf() instead of isnan().
4650         * tests/test-truncf1.c: Include isnanf.h.
4651         (main): Use isnanf() instead of isnan().
4652         * tests/test-roundf1.c: Include isnanf.h.
4653         (main): Use isnanf() instead of isnan().
4654
4655 2007-10-21  Eric Blake  <ebb9@byu.net>
4656
4657         * users.txt: Update URL for m4.
4658
4659 2007-10-21  Bruno Haible  <bruno@clisp.org>
4660
4661         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
4662
4663 2007-10-21  Bruno Haible  <bruno@clisp.org>
4664
4665         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
4666         Git's management files if the CVS files are not present.
4667
4668 2007-10-20  Bruno Haible  <bruno@clisp.org>
4669
4670         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
4671         gcc-3.4.x.
4672
4673 2007-10-20  Ben Pfaff  <blp@gnu.org>
4674
4675         * lib/math.in.h: Declare round, roundf, roundl if we are providing
4676         implementations.
4677         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
4678         * lib/round.c: New file.
4679         * lib/roundf.c: New file.
4680         * lib/roundl.c: New file.
4681         * m4/round.m4: New file.
4682         * m4/roundf.m4: New file.
4683         * m4/roundl.m4: New file.
4684         * m4/check-libm-func-m4: New file.
4685         * modules/math: Replace round, roundf, roundl related @VARS@ in
4686         math.in.h.
4687         * modules/round: New file.
4688         * modules/round-tests: New file.
4689         * modules/roundf: New file.
4690         * modules/roundf-tests: New file.
4691         * modules/roundl: New file.
4692         * modules/roundl-tests: New file.
4693         * tests/test-round1.c: New file.
4694         * tests/test-round2.c: New file.
4695         * tests/test-roundf1.c: New file.
4696         * tests/test-roundf2.c: New file.
4697         * tests/test-roundl.c: New file.
4698         * doc/functions/round.texi: Mention round module.
4699         * doc/functions/roundf.texi: Mention roundf module.
4700         * doc/functions/roundl.texi: Mention roundl module.
4701         * MODULES.html.sh: Mention new modules.
4702         Thanks to Bruno Haible for suggestions.
4703
4704 2007-10-20  Jim Meyering  <meyering@redhat.com>
4705
4706         * lib/xprintf.c: Include <config.h> unconditionally.
4707
4708         Change xprintf's license to GPL.
4709         * modules/xprintf (License): s/LGPL/GPL/, since this module
4710         depends on modules (exit and exitfail) which are GPL.
4711         Suggestion from Bruno Haible.
4712
4713         xprintf fixes.
4714         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
4715         Use a clearer diagnostic.
4716         Patch from Bruno Haible.
4717
4718 2007-10-20  Bruno Haible  <bruno@clisp.org>
4719
4720         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
4721         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
4722         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4723
4724 2007-10-20  Bruno Haible  <bruno@clisp.org>
4725
4726         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
4727         precision in the comparison result > x - 1 or similar.
4728         * tests/test-ceilf2.c (correct_result_p): Likewise.
4729         * tests/test-truncf2.c (correct_result_p): Likewise.
4730         * tests/test-trunc2.c (correct_result_p): Likewise.
4731         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4732
4733 2007-10-20  Bruno Haible  <bruno@clisp.org>
4734
4735         * modules/ceil: New file.
4736         * m4/ceil.m4: New file.
4737         * doc/functions/ceil.texi: Mention the 'ceil' module.
4738
4739 2007-10-20  Bruno Haible  <bruno@clisp.org>
4740
4741         * modules/floor: New file.
4742         * m4/floor.m4: New file.
4743         * doc/functions/floor.texi: Mention the 'floor' module.
4744
4745 2007-10-20  Bruno Haible  <bruno@clisp.org>
4746
4747         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
4748         of %a.
4749         * modules/floorf-tests (Depends-on): Likewise.
4750         * modules/truncf-tests (Depends-on): Likewise.
4751         * modules/trunc-tests (Depends-on): Likewise.
4752         Reported by Ben Pfaff.
4753
4754 2007-10-19  Jim Meyering  <meyering@redhat.com>
4755
4756         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
4757         Don't bother testing specific errno values.  Just test ferror.
4758
4759         New module: xprintf
4760         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
4761
4762 2007-10-19  Bruno Haible  <bruno@clisp.org>
4763
4764         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
4765         syntax.
4766         * modules/javaexec (Makefile.am): Likewise.
4767         * modules/relocatable-prog (Makefile.am): Likewise.
4768         Suggested by Jim Meyering.
4769
4770 2007-10-18  Bruno Haible  <bruno@clisp.org>
4771
4772         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
4773         Reported by Jim Meyering.
4774
4775 2007-10-18  Eric Blake  <ebb9@byu.net>
4776
4777         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
4778
4779 2007-10-18  Bruno Haible  <bruno@clisp.org>
4780
4781         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
4782         the format string into writable memory. Needed in Fortify conditions.
4783
4784 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
4785             Bruno Haible  <bruno@clisp.org>
4786
4787         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
4788         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
4789         * modules/trim (Depends-on): Add mbchar.
4790         (configure.ac): Add gl_FUNC_MBRTOWC.
4791         (Makefile.am): Augment lib_SOURCES.
4792
4793 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
4794
4795         Modify glob.c to use fstatat and dirfd, to simplify it.
4796         Suggested by Eric Blake.
4797         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
4798         Don't include <stdbool.h>; not used.
4799         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
4800         (link_exists_p): Simplify implementation, since we can now assume
4801         dirfd and fstatat.
4802         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
4803
4804 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4805
4806         * gnulib-tool (func_get_dependencies): Fix sed script to
4807         match only tests.
4808
4809 2007-10-17  Bruno Haible  <bruno@clisp.org>
4810
4811         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
4812         allow locale names without encoding suffix.
4813         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
4814         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
4815
4816 2007-10-16  Bruno Haible  <bruno@clisp.org>
4817
4818         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
4819         * lib/getgroups.c (getgroups): Likewise.
4820         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
4821
4822 2007-10-16  Bruno Haible  <bruno@clisp.org>
4823
4824         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
4825         * modules/malloc-posix (License): Likewise.
4826         * modules/realloc-posix (License): Likewise.
4827         * modules/calloc-posix (License): Likewise.
4828         * modules/intprops (License): Change from GPL to LGPL, with
4829         Paul Eggert's approval.
4830
4831 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
4832
4833         Merge glibc changes into lib/glob.c.
4834
4835         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
4836         2007-10-15 04:59:03 UTC.  Here are the changes:
4837
4838         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
4839
4840         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
4841
4842         * lib/glob.c: Add some branch prediction throughout.
4843
4844         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
4845
4846         [BZ #5103]
4847         * lib/glob.c (glob): Recognize patterns starting \/.
4848
4849         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
4850
4851         [BZ #3996]
4852         * lib/glob.c (attribute_hidden): Define if not defined.
4853         (glob): Unescape dirname, filename or username when needed and not
4854         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
4855         is NULL.  Handle unescaped [ in pattern without closing ].
4856         Don't pass GLOB_CHECK down to recursive glob for directories.
4857         (__glob_pattern_type): New function.
4858         (__glob_pattern_p): Implement using __glob_pattern_type.
4859         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
4860         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
4861         Remove unreachable code.
4862
4863         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
4864
4865         * lib/glob.c (glob_in_dir): Add some comments and asserts to
4866         explain why there are no leaks.
4867
4868         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
4869
4870         [BZ #3253]
4871         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
4872         time, rather allocate increasingly bigger arrays of pointers, if
4873         possible with alloca, if too large with malloc.
4874
4875 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
4876
4877         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
4878         Problem reported by H.Merijn Brand in
4879         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
4880         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
4881         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
4882
4883 2007-10-15  Bruno Haible  <bruno@clisp.org>
4884
4885         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
4886         with explicit rpl_ prefix.
4887         * lib/fopen.c (fopen): Likewise.
4888         * lib/freopen.c (freopen): Likewise.
4889         * lib/iconv.c (iconv): Likewise.
4890         * lib/iconv_close.c (iconv_close): Likewise.
4891
4892 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4893
4894         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
4895
4896 2007-10-15  Bruno Haible  <bruno@clisp.org>
4897
4898         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
4899         <stddef.h> instead of <stdlib.h> since we only need NULL.
4900         Reported by Ben Pfaff <blp@cs.stanford.edu>.
4901
4902 2007-10-15  Bruno Haible  <bruno@clisp.org>
4903
4904         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
4905         Replace paragraph talking about LIBOBJS.
4906         Reported by Colin Watson <cjwatson@debian.org>.
4907
4908 2007-10-15  Bruno Haible  <bruno@clisp.org>
4909
4910         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
4911         <stdlib.h> before using NULL.
4912
4913 2007-10-15  Simon Josefsson  <simon@josefsson.org>
4914
4915         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
4916         Reported by Albert Chin <china@thewrittenword.com>.
4917
4918 2007-10-14  Bruno Haible  <bruno@clisp.org>
4919
4920         * modules/iconv_open-utf-tests: New file.
4921         * tests/test-iconv-utf.c: New file.
4922
4923         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
4924         * modules/iconv_open-utf: New file.
4925         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
4926         (iconv, iconv_close): New declarations.
4927         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
4928         be defined.
4929         (iconv_open): Add special handling of conversion between UTF-8 and
4930         UTF-{16,32}{BE,LE}.
4931         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
4932         * lib/iconv_close.c: New file.
4933         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
4934         gl_FUNC_ICONV_OPEN.
4935         (gl_FUNC_ICONV_OPEN): Use it.
4936         (gl_FUNC_ICONV_OPEN_UTF): New macro.
4937         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
4938         and REPLACE_ICONV_UTF.
4939         * modules/iconv_open (Depends-on): Add c-strcase.
4940         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
4941         ICONV_CONST.
4942         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
4943
4944 2007-10-13  Albert Chin  <china@thewrittenword.com>
4945             Bruno Haible  <bruno@clisp.org>
4946
4947         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
4948         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
4949
4950 2007-10-13  Bruno Haible  <bruno@clisp.org>
4951
4952         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
4953         defined, use the ISO C99 inline semantics.
4954         * lib/argp.h (ARGP_EI): Likewise.
4955
4956 2007-10-13  Bruno Haible  <bruno@clisp.org>
4957
4958         Handle 'inline' change in gcc 4.3.0.
4959         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
4960         argp_fmtstream_write, argp_fmtstream_set_lmargin,
4961         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
4962         argp_fmtstream_point): Disable 'extern' declaration if the function
4963         definition is going to be provided inline.
4964         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
4965         semantics, not the ISO C99 inline semantics.
4966         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
4967         'extern' declaration if the function definition is going to be provided
4968         inline.
4969         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
4970         the GNU C inline semantics, not the ISO C99 inline semantics. With
4971         GCC 4.2, avoid a warning.
4972
4973 2007-10-13  Bruno Haible  <bruno@clisp.org>
4974
4975         * lib/freading.h (freading): Enable the use of __freading for
4976         glibc >= 2.7.
4977         * lib/freading.c (freading): Likewise.
4978
4979 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
4980
4981         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
4982         "warning: C99 inline functions are not supported; using GNU89".
4983
4984 2007-10-12  Bruno Haible  <bruno@clisp.org>
4985
4986         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
4987         of 2.
4988         * tests/test-ceilf2.c: New file.
4989         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
4990
4991         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
4992         * modules/ceilf-tests: Update.
4993
4994 2007-10-12  Bruno Haible  <bruno@clisp.org>
4995
4996         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
4997         of 2.
4998         * tests/test-floorf2.c: New file.
4999         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
5000
5001         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
5002         * modules/floorf-tests: Update.
5003
5004 2007-10-12  Bruno Haible  <bruno@clisp.org>
5005
5006         * tests/test-trunc2.c: New file.
5007         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
5008
5009         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
5010         * modules/trunc-tests: Update.
5011
5012 2007-10-12  Bruno Haible  <bruno@clisp.org>
5013
5014         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
5015         of 2.
5016         * tests/test-truncf2.c: New file.
5017         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
5018
5019         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
5020         * modules/truncf-tests: Update.
5021
5022 2007-10-11  Eric Blake  <ebb9@byu.net>
5023
5024         Don't claim strerror is broken on Interix.
5025         * doc/functions/strerror.texi (strerror): Known broken systems are
5026         now Solaris 8, and not Interix.
5027         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
5028         Interix on cross-compile.
5029         Reported by Martin Koeppe in
5030         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
5031
5032 2007-10-11  Bruno Haible  <bruno@clisp.org>
5033
5034         * modules/i-ring-tests: New file.
5035         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
5036         instead of assert.
5037
5038 2007-10-11  Bruno Haible  <bruno@clisp.org>
5039
5040         * modules/filenamecat-tests: New file.
5041         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
5042         * lib/filenamecat.c: Remove test code.
5043
5044 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
5045
5046         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
5047
5048         * lib/strerror.c: Include <string.h> always, to test interface,
5049         and to remove the need for the dummy.
5050         Include intprops.h to compute width instead of doing it ourselves
5051         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
5052         (strerror): Define it to return NULL if there's no system strerror.
5053         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
5054         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
5055         ancient pre-strerror Unix systems well any more.  Saying "unknown
5056         system error" is enough.
5057         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
5058         simpler strerror.c implementation.
5059         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
5060         Simplify the tests to reflect the simpler strerror implementation.
5061         * modules/strerror (Depends-on): Add intprops.
5062
5063 2007-10-09  Eric Blake  <ebb9@byu.net>
5064
5065         Silence test-fpending.
5066         * modules/fpending-tests (Files): Add wrapper script.
5067         * tests/test-fpending.sh: New file.
5068
5069 2007-10-09  Bruno Haible  <bruno@clisp.org>
5070
5071         * MODULES.html.sh (func_module): Don't create a hyperlink for
5072         function names like 'printf_frexp'.
5073         (Misc): Add crc, memxor.
5074         (Characteristics of floating types): New section.
5075         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
5076         isnanf-nolibm, signbit, trunc, truncf, truncl.
5077         (Enhancements for ISO C 99 functions): New subsection Input/output.
5078         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
5079         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
5080         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
5081         (Compatibility checks for POSIX:2001 functions): Add clock-time.
5082         (Enhancements for POSIX:2001 functions): Add chdir-long.
5083         (File system functions): Add areadlink, chdir-safer, read-file.
5084         Remove cycle-check.
5085         (File system as inode set): New section.
5086         (Date and time): Add gethrxtime.
5087         (Multithreading): Add openmp.
5088         (Internationalization functions): Add localename.
5089         (Unicode string functions): Add unistr/u*-mbsnlen.
5090         (Support for maintaining and releasing projects): Add git-version-gen.
5091         (Lone files): Remove directories.
5092
5093 2007-10-08  Ben Pfaff  <blp@gnu.org>
5094
5095         * lib/xmalloca.h: Fix typo in comment.
5096
5097 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
5098
5099         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
5100         when avoiding problems with integer overflow.  Use a portable test
5101         instead.
5102
5103 2007-10-08  Simon Josefsson  <simon@josefsson.org>
5104
5105         * modules/dummy (License): Change to LGPLv2+.
5106         * modules/float (License): Likewise
5107         * modules/realloc (License): Likewise
5108         * modules/stdlib (License): Likewise
5109
5110 2007-10-07  Bruno Haible  <bruno@clisp.org>
5111
5112         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
5113         * floor.c (TWO_MANT_DIG): Likewise.
5114         * ceil.c (TWO_MANT_DIG): Likewise.
5115         Reported by Ben Pfaff.
5116
5117 2007-10-07  Bruno Haible  <bruno@clisp.org>
5118
5119         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
5120         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
5121         * lib/frexp.c (FUNC): Likewise.
5122         * lib/printf-frexp.h (printf_frexp): Likewise.
5123         * lib/printf-frexpl.h (printf_frexpl): Likewise.
5124         * lib/printf-frexp.c (FUNC): Likewise.
5125         Suggested by Jim Meyering.
5126
5127 2007-10-07  Jim Meyering  <meyering@redhat.com>
5128
5129         Make xnanosleep's integer overflow test more robust.
5130         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
5131         so that gcc-4.3.0 doesn't optimize away this test for overflow.
5132
5133 2007-10-07  Bruno Haible  <bruno@clisp.org>
5134
5135         * NEWS: Mention the license change.
5136
5137         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
5138         abbreviations in the modules files.
5139
5140         Change copyright notice from GPLv2+ to GPLv3+.
5141         * README: Change copyright notice.
5142         * MODULES.html.sh: Likewise.
5143         * build-aux/bootstrap.conf: Likewise.
5144         * build-aux/config.libpath: Likewise.
5145         * build-aux/csharpcomp.sh.in: Likewise.
5146         * build-aux/csharpexec.sh.in: Likewise.
5147         * build-aux/install-reloc: Likewise.
5148         * build-aux/javacomp.sh.in: Likewise.
5149         * build-aux/javaexec.sh.in: Likewise.
5150         * build-aux/ldd.sh.in: Likewise.
5151         * build-aux/reloc-ldflags: Likewise.
5152         * build-aux/relocatable.sh.in: Likewise.
5153         * build-aux/x-to-1.in: Likewise.
5154         * check-module: Likewise.
5155         * config/srclistvars.sh: Likewise.
5156         * gnulib-tool: Likewise.
5157         * lib/acl-internal.h: Likewise.
5158         * lib/acl.c: Likewise.
5159         * lib/acl.h: Likewise.
5160         * lib/acl_entries.c: Likewise.
5161         * lib/areadlink-with-size.c: Likewise.
5162         * lib/areadlink.c: Likewise.
5163         * lib/areadlink.h: Likewise.
5164         * lib/argmatch.c: Likewise.
5165         * lib/argmatch.h: Likewise.
5166         * lib/argp-ba.c: Likewise.
5167         * lib/argp-eexst.c: Likewise.
5168         * lib/argp-fmtstream.c: Likewise.
5169         * lib/argp-fmtstream.h: Likewise.
5170         * lib/argp-fs-xinl.c: Likewise.
5171         * lib/argp-help.c: Likewise.
5172         * lib/argp-namefrob.h: Likewise.
5173         * lib/argp-parse.c: Likewise.
5174         * lib/argp-pin.c: Likewise.
5175         * lib/argp-pv.c: Likewise.
5176         * lib/argp-pvh.c: Likewise.
5177         * lib/argp-xinl.c: Likewise.
5178         * lib/argp.h: Likewise.
5179         * lib/at-func.c: Likewise.
5180         * lib/atanl.c: Likewise.
5181         * lib/backupfile.c: Likewise.
5182         * lib/backupfile.h: Likewise.
5183         * lib/basename.c: Likewise.
5184         * lib/binary-io.h: Likewise.
5185         * lib/byteswap.in.h: Likewise.
5186         * lib/c-stack.c: Likewise.
5187         * lib/c-stack.h: Likewise.
5188         * lib/c-strcasestr.c: Likewise.
5189         * lib/c-strcasestr.h: Likewise.
5190         * lib/c-strstr.c: Likewise.
5191         * lib/c-strstr.h: Likewise.
5192         * lib/c-strtod.c: Likewise.
5193         * lib/calloc.c: Likewise.
5194         * lib/canon-host.c: Likewise.
5195         * lib/canon-host.h: Likewise.
5196         * lib/canonicalize-lgpl.c: Likewise.
5197         * lib/canonicalize.c: Likewise.
5198         * lib/canonicalize.h: Likewise.
5199         * lib/ceil.c: Likewise.
5200         * lib/ceilf.c: Likewise.
5201         * lib/ceill.c: Likewise.
5202         * lib/chdir-long.c: Likewise.
5203         * lib/chdir-long.h: Likewise.
5204         * lib/chdir-safer.c: Likewise.
5205         * lib/chdir-safer.h: Likewise.
5206         * lib/chown.c: Likewise.
5207         * lib/classpath.c: Likewise.
5208         * lib/classpath.h: Likewise.
5209         * lib/clean-temp.c: Likewise.
5210         * lib/clean-temp.h: Likewise.
5211         * lib/cloexec.c: Likewise.
5212         * lib/close-stream.c: Likewise.
5213         * lib/closein.c: Likewise.
5214         * lib/closein.h: Likewise.
5215         * lib/closeout.c: Likewise.
5216         * lib/closeout.h: Likewise.
5217         * lib/concat-filename.c: Likewise.
5218         * lib/copy-file.c: Likewise.
5219         * lib/copy-file.h: Likewise.
5220         * lib/count-one-bits.h: Likewise.
5221         * lib/crc.c: Likewise.
5222         * lib/crc.h: Likewise.
5223         * lib/creat-safer.c: Likewise.
5224         * lib/csharpcomp.c: Likewise.
5225         * lib/csharpcomp.h: Likewise.
5226         * lib/csharpexec.c: Likewise.
5227         * lib/csharpexec.h: Likewise.
5228         * lib/cycle-check.c: Likewise.
5229         * lib/cycle-check.h: Likewise.
5230         * lib/diacrit.c: Likewise.
5231         * lib/diacrit.h: Likewise.
5232         * lib/diffseq.h: Likewise.
5233         * lib/dirchownmod.c: Likewise.
5234         * lib/dirent.in.h: Likewise.
5235         * lib/dirfd.c: Likewise.
5236         * lib/dirfd.h: Likewise.
5237         * lib/dirname.c: Likewise.
5238         * lib/dirname.h: Likewise.
5239         * lib/dummy.c: Likewise.
5240         * lib/dup-safer.c: Likewise.
5241         * lib/dup2.c: Likewise.
5242         * lib/eealloc.h: Likewise.
5243         * lib/error.c: Likewise.
5244         * lib/error.h: Likewise.
5245         * lib/euidaccess.c: Likewise.
5246         * lib/exclude.c: Likewise.
5247         * lib/exclude.h: Likewise.
5248         * lib/execute.c: Likewise.
5249         * lib/execute.h: Likewise.
5250         * lib/exitfail.c: Likewise.
5251         * lib/exitfail.h: Likewise.
5252         * lib/expl.c: Likewise.
5253         * lib/fatal-signal.c: Likewise.
5254         * lib/fatal-signal.h: Likewise.
5255         * lib/fbufmode.c: Likewise.
5256         * lib/fbufmode.h: Likewise.
5257         * lib/fchdir.c: Likewise.
5258         * lib/fchmodat.c: Likewise.
5259         * lib/fchownat.c: Likewise.
5260         * lib/fcntl--.h: Likewise.
5261         * lib/fcntl-safer.h: Likewise.
5262         * lib/fcntl.in.h: Likewise.
5263         * lib/fd-safer.c: Likewise.
5264         * lib/fflush.c: Likewise.
5265         * lib/file-has-acl.c: Likewise.
5266         * lib/file-set.c: Likewise.
5267         * lib/file-type.c: Likewise.
5268         * lib/file-type.h: Likewise.
5269         * lib/fileblocks.c: Likewise.
5270         * lib/filemode.c: Likewise.
5271         * lib/filemode.h: Likewise.
5272         * lib/filename.h: Likewise.
5273         * lib/filenamecat.c: Likewise.
5274         * lib/filenamecat.h: Likewise.
5275         * lib/findprog.c: Likewise.
5276         * lib/findprog.h: Likewise.
5277         * lib/float.in.h: Likewise.
5278         * lib/floor.c: Likewise.
5279         * lib/floorf.c: Likewise.
5280         * lib/floorl.c: Likewise.
5281         * lib/fopen-safer.c: Likewise.
5282         * lib/fopen.c: Likewise.
5283         * lib/fpending.c: Likewise.
5284         * lib/fpending.h: Likewise.
5285         * lib/fprintf.c: Likewise.
5286         * lib/fprintftime.h: Likewise.
5287         * lib/fpucw.h: Likewise.
5288         * lib/fpurge.c: Likewise.
5289         * lib/fpurge.h: Likewise.
5290         * lib/freadable.c: Likewise.
5291         * lib/freadable.h: Likewise.
5292         * lib/freadahead.c: Likewise.
5293         * lib/freadahead.h: Likewise.
5294         * lib/freading.c: Likewise.
5295         * lib/freading.h: Likewise.
5296         * lib/free.c: Likewise.
5297         * lib/freopen.c: Likewise.
5298         * lib/frexp.c: Likewise.
5299         * lib/frexpl.c: Likewise.
5300         * lib/fseek.c: Likewise.
5301         * lib/fseterr.c: Likewise.
5302         * lib/fseterr.h: Likewise.
5303         * lib/fstatat.c: Likewise.
5304         * lib/fstrcmp.c: Likewise.
5305         * lib/fstrcmp.h: Likewise.
5306         * lib/fsusage.c: Likewise.
5307         * lib/fsusage.h: Likewise.
5308         * lib/ftell.c: Likewise.
5309         * lib/ftello.c: Likewise.
5310         * lib/fts-cycle.c: Likewise.
5311         * lib/fts.c: Likewise.
5312         * lib/fts_.h: Likewise.
5313         * lib/full-read.c: Likewise.
5314         * lib/full-read.h: Likewise.
5315         * lib/full-write.c: Likewise.
5316         * lib/full-write.h: Likewise.
5317         * lib/fwritable.c: Likewise.
5318         * lib/fwritable.h: Likewise.
5319         * lib/fwriteerror.c: Likewise.
5320         * lib/fwriteerror.h: Likewise.
5321         * lib/fwriting.c: Likewise.
5322         * lib/fwriting.h: Likewise.
5323         * lib/gcd.c: Likewise.
5324         * lib/gcd.h: Likewise.
5325         * lib/getcwd.c: Likewise.
5326         * lib/getdate.h: Likewise.
5327         * lib/getdate.y: Likewise.
5328         * lib/getdomainname.c: Likewise.
5329         * lib/getdomainname.h: Likewise.
5330         * lib/getgroups.c: Likewise.
5331         * lib/gethostname.c: Likewise.
5332         * lib/gethrxtime.c: Likewise.
5333         * lib/gethrxtime.h: Likewise.
5334         * lib/getloadavg.c: Likewise.
5335         * lib/getndelim2.c: Likewise.
5336         * lib/getndelim2.h: Likewise.
5337         * lib/getnline.c: Likewise.
5338         * lib/getnline.h: Likewise.
5339         * lib/getopt.c: Likewise.
5340         * lib/getopt.in.h: Likewise.
5341         * lib/getopt1.c: Likewise.
5342         * lib/getopt_int.h: Likewise.
5343         * lib/getpagesize.h: Likewise.
5344         * lib/getsubopt.c: Likewise.
5345         * lib/gettime.c: Likewise.
5346         * lib/getugroups.c: Likewise.
5347         * lib/getugroups.h: Likewise.
5348         * lib/getusershell.c: Likewise.
5349         * lib/gl_anyavltree_list1.h: Likewise.
5350         * lib/gl_anyavltree_list2.h: Likewise.
5351         * lib/gl_anyhash_list1.h: Likewise.
5352         * lib/gl_anyhash_list2.h: Likewise.
5353         * lib/gl_anylinked_list1.h: Likewise.
5354         * lib/gl_anylinked_list2.h: Likewise.
5355         * lib/gl_anyrbtree_list1.h: Likewise.
5356         * lib/gl_anyrbtree_list2.h: Likewise.
5357         * lib/gl_anytree_list1.h: Likewise.
5358         * lib/gl_anytree_list2.h: Likewise.
5359         * lib/gl_anytree_oset.h: Likewise.
5360         * lib/gl_anytreehash_list1.h: Likewise.
5361         * lib/gl_anytreehash_list2.h: Likewise.
5362         * lib/gl_array_list.c: Likewise.
5363         * lib/gl_array_list.h: Likewise.
5364         * lib/gl_array_oset.c: Likewise.
5365         * lib/gl_array_oset.h: Likewise.
5366         * lib/gl_avltree_list.c: Likewise.
5367         * lib/gl_avltree_list.h: Likewise.
5368         * lib/gl_avltree_oset.c: Likewise.
5369         * lib/gl_avltree_oset.h: Likewise.
5370         * lib/gl_avltreehash_list.c: Likewise.
5371         * lib/gl_avltreehash_list.h: Likewise.
5372         * lib/gl_carray_list.c: Likewise.
5373         * lib/gl_carray_list.h: Likewise.
5374         * lib/gl_linked_list.c: Likewise.
5375         * lib/gl_linked_list.h: Likewise.
5376         * lib/gl_linkedhash_list.c: Likewise.
5377         * lib/gl_linkedhash_list.h: Likewise.
5378         * lib/gl_list.c: Likewise.
5379         * lib/gl_list.h: Likewise.
5380         * lib/gl_oset.c: Likewise.
5381         * lib/gl_oset.h: Likewise.
5382         * lib/gl_rbtree_list.c: Likewise.
5383         * lib/gl_rbtree_list.h: Likewise.
5384         * lib/gl_rbtree_oset.c: Likewise.
5385         * lib/gl_rbtree_oset.h: Likewise.
5386         * lib/gl_rbtreehash_list.c: Likewise.
5387         * lib/gl_rbtreehash_list.h: Likewise.
5388         * lib/gl_sublist.c: Likewise.
5389         * lib/gl_sublist.h: Likewise.
5390         * lib/group-member.c: Likewise.
5391         * lib/group-member.h: Likewise.
5392         * lib/hard-locale.c: Likewise.
5393         * lib/hard-locale.h: Likewise.
5394         * lib/hash-pjw.c: Likewise.
5395         * lib/hash-pjw.h: Likewise.
5396         * lib/hash-triple.c: Likewise.
5397         * lib/hash.c: Likewise.
5398         * lib/hash.h: Likewise.
5399         * lib/human.c: Likewise.
5400         * lib/human.h: Likewise.
5401         * lib/i-ring.c: Likewise.
5402         * lib/i-ring.h: Likewise.
5403         * lib/idcache.c: Likewise.
5404         * lib/imaxabs.c: Likewise.
5405         * lib/imaxdiv.c: Likewise.
5406         * lib/inet_pton.c: Likewise.
5407         * lib/inet_pton.h: Likewise.
5408         * lib/intprops.h: Likewise.
5409         * lib/inttostr.c: Likewise.
5410         * lib/inttostr.h: Likewise.
5411         * lib/inttypes.in.h: Likewise.
5412         * lib/isapipe.c: Likewise.
5413         * lib/isdir.c: Likewise.
5414         * lib/isnan.c: Likewise.
5415         * lib/isnan.h: Likewise.
5416         * lib/isnanf.c: Likewise.
5417         * lib/isnanf.h: Likewise.
5418         * lib/isnanl-nolibm.h: Likewise.
5419         * lib/isnanl.c: Likewise.
5420         * lib/isnanl.h: Likewise.
5421         * lib/javacomp.c: Likewise.
5422         * lib/javacomp.h: Likewise.
5423         * lib/javaexec.c: Likewise.
5424         * lib/javaexec.h: Likewise.
5425         * lib/javaversion.c: Likewise.
5426         * lib/javaversion.h: Likewise.
5427         * lib/javaversion.java: Likewise.
5428         * lib/lbrkprop.h: Likewise.
5429         * lib/lchmod.h: Likewise.
5430         * lib/lchown.c: Likewise.
5431         * lib/ldexpl.c: Likewise.
5432         * lib/linebreak.c: Likewise.
5433         * lib/linebreak.h: Likewise.
5434         * lib/linebuffer.c: Likewise.
5435         * lib/linebuffer.h: Likewise.
5436         * lib/locale.in.h: Likewise.
5437         * lib/logl.c: Likewise.
5438         * lib/long-options.c: Likewise.
5439         * lib/long-options.h: Likewise.
5440         * lib/lstat.c: Likewise.
5441         * lib/lstat.h: Likewise.
5442         * lib/math.in.h: Likewise.
5443         * lib/mbchar.c: Likewise.
5444         * lib/mbchar.h: Likewise.
5445         * lib/mbfile.h: Likewise.
5446         * lib/mbiter.h: Likewise.
5447         * lib/mbscasecmp.c: Likewise.
5448         * lib/mbscasestr.c: Likewise.
5449         * lib/mbschr.c: Likewise.
5450         * lib/mbscspn.c: Likewise.
5451         * lib/mbslen.c: Likewise.
5452         * lib/mbsncasecmp.c: Likewise.
5453         * lib/mbsnlen.c: Likewise.
5454         * lib/mbspbrk.c: Likewise.
5455         * lib/mbspcasecmp.c: Likewise.
5456         * lib/mbsrchr.c: Likewise.
5457         * lib/mbssep.c: Likewise.
5458         * lib/mbsspn.c: Likewise.
5459         * lib/mbsstr.c: Likewise.
5460         * lib/mbstok_r.c: Likewise.
5461         * lib/mbswidth.c: Likewise.
5462         * lib/mbswidth.h: Likewise.
5463         * lib/mbuiter.h: Likewise.
5464         * lib/memcasecmp.c: Likewise.
5465         * lib/memcasecmp.h: Likewise.
5466         * lib/memchr.c: Likewise.
5467         * lib/memcmp.c: Likewise.
5468         * lib/memcoll.c: Likewise.
5469         * lib/memcoll.h: Likewise.
5470         * lib/memcpy.c: Likewise.
5471         * lib/memrchr.c: Likewise.
5472         * lib/mkancesdirs.c: Likewise.
5473         * lib/mkdir-p.c: Likewise.
5474         * lib/mkdir-p.h: Likewise.
5475         * lib/mkdir.c: Likewise.
5476         * lib/mkdirat.c: Likewise.
5477         * lib/mkdtemp.c: Likewise.
5478         * lib/mkstemp-safer.c: Likewise.
5479         * lib/mkstemp.c: Likewise.
5480         * lib/modechange.c: Likewise.
5481         * lib/modechange.h: Likewise.
5482         * lib/mountlist.c: Likewise.
5483         * lib/mountlist.h: Likewise.
5484         * lib/mpsort.c: Likewise.
5485         * lib/nanosleep.c: Likewise.
5486         * lib/obstack.c: Likewise.
5487         * lib/obstack.h: Likewise.
5488         * lib/open-safer.c: Likewise.
5489         * lib/open.c: Likewise.
5490         * lib/openat-die.c: Likewise.
5491         * lib/openat-priv.h: Likewise.
5492         * lib/openat-proc.c: Likewise.
5493         * lib/openat.c: Likewise.
5494         * lib/openat.h: Likewise.
5495         * lib/pagealign_alloc.c: Likewise.
5496         * lib/pagealign_alloc.h: Likewise.
5497         * lib/physmem.c: Likewise.
5498         * lib/physmem.h: Likewise.
5499         * lib/pipe-safer.c: Likewise.
5500         * lib/pipe.c: Likewise.
5501         * lib/pipe.h: Likewise.
5502         * lib/posixtm.c: Likewise.
5503         * lib/posixtm.h: Likewise.
5504         * lib/posixver.c: Likewise.
5505         * lib/printf-frexp.c: Likewise.
5506         * lib/printf-frexp.h: Likewise.
5507         * lib/printf-frexpl.c: Likewise.
5508         * lib/printf-frexpl.h: Likewise.
5509         * lib/printf.c: Likewise.
5510         * lib/progname.c: Likewise.
5511         * lib/progname.h: Likewise.
5512         * lib/progreloc.c: Likewise.
5513         * lib/putenv.c: Likewise.
5514         * lib/quote.c: Likewise.
5515         * lib/quote.h: Likewise.
5516         * lib/quotearg.c: Likewise.
5517         * lib/quotearg.h: Likewise.
5518         * lib/raise.c: Likewise.
5519         * lib/readline.c: Likewise.
5520         * lib/readline.h: Likewise.
5521         * lib/readlink.c: Likewise.
5522         * lib/readtokens.c: Likewise.
5523         * lib/readtokens.h: Likewise.
5524         * lib/readtokens0.c: Likewise.
5525         * lib/readtokens0.h: Likewise.
5526         * lib/readutmp.c: Likewise.
5527         * lib/readutmp.h: Likewise.
5528         * lib/realloc.c: Likewise.
5529         * lib/relocwrapper.c: Likewise.
5530         * lib/rename-dest-slash.c: Likewise.
5531         * lib/rename.c: Likewise.
5532         * lib/rmdir.c: Likewise.
5533         * lib/rpmatch.c: Likewise.
5534         * lib/safe-read.c: Likewise.
5535         * lib/safe-read.h: Likewise.
5536         * lib/safe-write.c: Likewise.
5537         * lib/safe-write.h: Likewise.
5538         * lib/same-inode.h: Likewise.
5539         * lib/same.c: Likewise.
5540         * lib/same.h: Likewise.
5541         * lib/save-cwd.c: Likewise.
5542         * lib/save-cwd.h: Likewise.
5543         * lib/savedir.c: Likewise.
5544         * lib/savedir.h: Likewise.
5545         * lib/savewd.c: Likewise.
5546         * lib/savewd.h: Likewise.
5547         * lib/search.in.h: Likewise.
5548         * lib/setenv.c: Likewise.
5549         * lib/setenv.h: Likewise.
5550         * lib/settime.c: Likewise.
5551         * lib/sh-quote.c: Likewise.
5552         * lib/sh-quote.h: Likewise.
5553         * lib/sig2str.c: Likewise.
5554         * lib/sig2str.h: Likewise.
5555         * lib/signal.in.h: Likewise.
5556         * lib/signbitd.c: Likewise.
5557         * lib/signbitf.c: Likewise.
5558         * lib/signbitl.c: Likewise.
5559         * lib/sigprocmask.c: Likewise.
5560         * lib/sincosl.c: Likewise.
5561         * lib/sleep.c: Likewise.
5562         * lib/sprintf.c: Likewise.
5563         * lib/sqrtl.c: Likewise.
5564         * lib/stat-time.h: Likewise.
5565         * lib/stdio--.h: Likewise.
5566         * lib/stdio-safer.h: Likewise.
5567         * lib/stdlib--.h: Likewise.
5568         * lib/stdlib-safer.h: Likewise.
5569         * lib/stdlib.in.h: Likewise.
5570         * lib/stpcpy.c: Likewise.
5571         * lib/stpncpy.c: Likewise.
5572         * lib/strchrnul.c: Likewise.
5573         * lib/strcspn.c: Likewise.
5574         * lib/strerror.c: Likewise.
5575         * lib/strftime.c: Likewise.
5576         * lib/strftime.h: Likewise.
5577         * lib/striconveh.c: Likewise.
5578         * lib/striconveh.h: Likewise.
5579         * lib/striconveha.c: Likewise.
5580         * lib/striconveha.h: Likewise.
5581         * lib/stripslash.c: Likewise.
5582         * lib/strnlen1.c: Likewise.
5583         * lib/strnlen1.h: Likewise.
5584         * lib/strtod.c: Likewise.
5585         * lib/strtoimax.c: Likewise.
5586         * lib/strtok_r.c: Likewise.
5587         * lib/strtol.c: Likewise.
5588         * lib/strtoll.c: Likewise.
5589         * lib/strtoul.c: Likewise.
5590         * lib/strtoull.c: Likewise.
5591         * lib/sysexits.in.h: Likewise.
5592         * lib/tempname.c: Likewise.
5593         * lib/tempname.h: Likewise.
5594         * lib/timespec.h: Likewise.
5595         * lib/tls.c: Likewise.
5596         * lib/tls.h: Likewise.
5597         * lib/tmpdir.c: Likewise.
5598         * lib/tmpdir.h: Likewise.
5599         * lib/tmpfile-safer.c: Likewise.
5600         * lib/tmpfile.c: Likewise.
5601         * lib/trigl.c: Likewise.
5602         * lib/trigl.h: Likewise.
5603         * lib/trim.c: Likewise.
5604         * lib/trim.h: Likewise.
5605         * lib/trunc.c: Likewise.
5606         * lib/truncf.c: Likewise.
5607         * lib/truncl.c: Likewise.
5608         * lib/tsearch.c: Likewise.
5609         * lib/unicodeio.c: Likewise.
5610         * lib/unicodeio.h: Likewise.
5611         * lib/unistd--.h: Likewise.
5612         * lib/unistd-safer.h: Likewise.
5613         * lib/unistdio/ulc-fprintf.c: Likewise.
5614         * lib/unistdio/ulc-vfprintf.c: Likewise.
5615         * lib/unlinkdir.c: Likewise.
5616         * lib/unlinkdir.h: Likewise.
5617         * lib/unlocked-io.h: Likewise.
5618         * lib/unsetenv.c: Likewise.
5619         * lib/userspec.c: Likewise.
5620         * lib/utime.c: Likewise.
5621         * lib/utimecmp.c: Likewise.
5622         * lib/utimecmp.h: Likewise.
5623         * lib/utimens.c: Likewise.
5624         * lib/verify.h: Likewise.
5625         * lib/verror.c: Likewise.
5626         * lib/verror.h: Likewise.
5627         * lib/version-etc-fsf.c: Likewise.
5628         * lib/version-etc.c: Likewise.
5629         * lib/version-etc.h: Likewise.
5630         * lib/vfprintf.c: Likewise.
5631         * lib/vprintf.c: Likewise.
5632         * lib/vsprintf.c: Likewise.
5633         * lib/w32spawn.h: Likewise.
5634         * lib/wait-process.c: Likewise.
5635         * lib/wait-process.h: Likewise.
5636         * lib/wcwidth.c: Likewise.
5637         * lib/write-any-file.c: Likewise.
5638         * lib/xalloc-die.c: Likewise.
5639         * lib/xalloc.h: Likewise.
5640         * lib/xasprintf.c: Likewise.
5641         * lib/xgetcwd.c: Likewise.
5642         * lib/xgetcwd.h: Likewise.
5643         * lib/xgetdomainname.c: Likewise.
5644         * lib/xgetdomainname.h: Likewise.
5645         * lib/xgethostname.c: Likewise.
5646         * lib/xmalloc.c: Likewise.
5647         * lib/xmalloca.c: Likewise.
5648         * lib/xmalloca.h: Likewise.
5649         * lib/xmemcoll.c: Likewise.
5650         * lib/xnanosleep.c: Likewise.
5651         * lib/xreadlink.c: Likewise.
5652         * lib/xreadlink.h: Likewise.
5653         * lib/xsetenv.c: Likewise.
5654         * lib/xsetenv.h: Likewise.
5655         * lib/xstriconv.c: Likewise.
5656         * lib/xstriconv.h: Likewise.
5657         * lib/xstrndup.c: Likewise.
5658         * lib/xstrndup.h: Likewise.
5659         * lib/xstrtod.c: Likewise.
5660         * lib/xstrtod.h: Likewise.
5661         * lib/xstrtol-error.c: Likewise.
5662         * lib/xstrtol.c: Likewise.
5663         * lib/xstrtol.h: Likewise.
5664         * lib/xtime.h: Likewise.
5665         * lib/xvasprintf.c: Likewise.
5666         * lib/xvasprintf.h: Likewise.
5667         * lib/yesno.c: Likewise.
5668         * lib/yesno.h: Likewise.
5669         * posix-modules: Likewise.
5670         * tests/test-alloca-opt.c: Likewise.
5671         * tests/test-arcfour.c: Likewise.
5672         * tests/test-arctwo.c: Likewise.
5673         * tests/test-argmatch.c: Likewise.
5674         * tests/test-argp-2.sh: Likewise.
5675         * tests/test-argp.c: Likewise.
5676         * tests/test-arpa_inet.c: Likewise.
5677         * tests/test-array_list.c: Likewise.
5678         * tests/test-array_oset.c: Likewise.
5679         * tests/test-atexit.c: Likewise.
5680         * tests/test-avltree_list.c: Likewise.
5681         * tests/test-avltree_oset.c: Likewise.
5682         * tests/test-avltreehash_list.c: Likewise.
5683         * tests/test-base64.c: Likewise.
5684         * tests/test-binary-io.c: Likewise.
5685         * tests/test-byteswap.c: Likewise.
5686         * tests/test-c-ctype.c: Likewise.
5687         * tests/test-c-strcasecmp.c: Likewise.
5688         * tests/test-c-strcasestr.c: Likewise.
5689         * tests/test-c-strncasecmp.c: Likewise.
5690         * tests/test-c-strstr.c: Likewise.
5691         * tests/test-canonicalize-lgpl.c: Likewise.
5692         * tests/test-canonicalize.c: Likewise.
5693         * tests/test-carray_list.c: Likewise.
5694         * tests/test-ceilf.c: Likewise.
5695         * tests/test-ceill.c: Likewise.
5696         * tests/test-count-one-bits.c: Likewise.
5697         * tests/test-crc.c: Likewise.
5698         * tests/test-dirname.c: Likewise.
5699         * tests/test-fbufmode.c: Likewise.
5700         * tests/test-fcntl.c: Likewise.
5701         * tests/test-fflush.c: Likewise.
5702         * tests/test-floorf.c: Likewise.
5703         * tests/test-floorl.c: Likewise.
5704         * tests/test-fopen.c: Likewise.
5705         * tests/test-fprintf-posix.c: Likewise.
5706         * tests/test-fprintf-posix.h: Likewise.
5707         * tests/test-fpurge.c: Likewise.
5708         * tests/test-freadable.c: Likewise.
5709         * tests/test-freadahead.c: Likewise.
5710         * tests/test-freading.c: Likewise.
5711         * tests/test-freopen.c: Likewise.
5712         * tests/test-frexp.c: Likewise.
5713         * tests/test-frexpl.c: Likewise.
5714         * tests/test-fseek.c: Likewise.
5715         * tests/test-fseeko.c: Likewise.
5716         * tests/test-fseterr.c: Likewise.
5717         * tests/test-fstrcmp.c: Likewise.
5718         * tests/test-ftell.c: Likewise.
5719         * tests/test-ftello.c: Likewise.
5720         * tests/test-fwritable.c: Likewise.
5721         * tests/test-fwriting.c: Likewise.
5722         * tests/test-getaddrinfo.c: Likewise.
5723         * tests/test-getpass.c: Likewise.
5724         * tests/test-gettimeofday.c: Likewise.
5725         * tests/test-hmac-md5.c: Likewise.
5726         * tests/test-hmac-sha1.c: Likewise.
5727         * tests/test-iconv.c: Likewise.
5728         * tests/test-iconvme.c: Likewise.
5729         * tests/test-inttypes.c: Likewise.
5730         * tests/test-isnan.c: Likewise.
5731         * tests/test-isnanf.c: Likewise.
5732         * tests/test-isnanl-nolibm.c: Likewise.
5733         * tests/test-isnanl.c: Likewise.
5734         * tests/test-isnanl.h: Likewise.
5735         * tests/test-ldexpl.c: Likewise.
5736         * tests/test-linked_list.c: Likewise.
5737         * tests/test-linkedhash_list.c: Likewise.
5738         * tests/test-locale.c: Likewise.
5739         * tests/test-localename.c: Likewise.
5740         * tests/test-lock.c: Likewise.
5741         * tests/test-lseek.c: Likewise.
5742         * tests/test-malloca.c: Likewise.
5743         * tests/test-math.c: Likewise.
5744         * tests/test-mbscasecmp.c: Likewise.
5745         * tests/test-mbscasestr1.c: Likewise.
5746         * tests/test-mbscasestr2.c: Likewise.
5747         * tests/test-mbscasestr3.c: Likewise.
5748         * tests/test-mbscasestr4.c: Likewise.
5749         * tests/test-mbschr.c: Likewise.
5750         * tests/test-mbscspn.c: Likewise.
5751         * tests/test-mbsncasecmp.c: Likewise.
5752         * tests/test-mbspbrk.c: Likewise.
5753         * tests/test-mbspcasecmp.c: Likewise.
5754         * tests/test-mbsrchr.c: Likewise.
5755         * tests/test-mbsspn.c: Likewise.
5756         * tests/test-mbsstr1.c: Likewise.
5757         * tests/test-mbsstr2.c: Likewise.
5758         * tests/test-mbsstr3.c: Likewise.
5759         * tests/test-md5.c: Likewise.
5760         * tests/test-memmem.c: Likewise.
5761         * tests/test-netinet_in.c: Likewise.
5762         * tests/test-open.c: Likewise.
5763         * tests/test-printf-frexp.c: Likewise.
5764         * tests/test-printf-frexpl.c: Likewise.
5765         * tests/test-printf-posix.c: Likewise.
5766         * tests/test-printf-posix.h: Likewise.
5767         * tests/test-rbtree_list.c: Likewise.
5768         * tests/test-rbtree_oset.c: Likewise.
5769         * tests/test-rbtreehash_list.c: Likewise.
5770         * tests/test-read-file.c: Likewise.
5771         * tests/test-rijndael.c: Likewise.
5772         * tests/test-search.c: Likewise.
5773         * tests/test-signbit.c: Likewise.
5774         * tests/test-sleep.c: Likewise.
5775         * tests/test-snprintf-posix.c: Likewise.
5776         * tests/test-snprintf-posix.h: Likewise.
5777         * tests/test-snprintf.c: Likewise.
5778         * tests/test-sprintf-posix.c: Likewise.
5779         * tests/test-sprintf-posix.h: Likewise.
5780         * tests/test-stat-time.c: Likewise.
5781         * tests/test-stdbool.c: Likewise.
5782         * tests/test-stdint.c: Likewise.
5783         * tests/test-stdio.c: Likewise.
5784         * tests/test-stdlib.c: Likewise.
5785         * tests/test-stpncpy.c: Likewise.
5786         * tests/test-strcasestr.c: Likewise.
5787         * tests/test-striconv.c: Likewise.
5788         * tests/test-striconveh.c: Likewise.
5789         * tests/test-striconveha.c: Likewise.
5790         * tests/test-string.c: Likewise.
5791         * tests/test-sys_select.c: Likewise.
5792         * tests/test-sys_socket.c: Likewise.
5793         * tests/test-sys_stat.c: Likewise.
5794         * tests/test-sys_time.c: Likewise.
5795         * tests/test-sysexits.c: Likewise.
5796         * tests/test-time.c: Likewise.
5797         * tests/test-tls.c: Likewise.
5798         * tests/test-trunc.c: Likewise.
5799         * tests/test-truncf.c: Likewise.
5800         * tests/test-truncl.c: Likewise.
5801         * tests/test-unistd.c: Likewise.
5802         * tests/test-vasnprintf-posix.c: Likewise.
5803         * tests/test-vasnprintf-posix2.c: Likewise.
5804         * tests/test-vasnprintf.c: Likewise.
5805         * tests/test-vasprintf-posix.c: Likewise.
5806         * tests/test-vasprintf.c: Likewise.
5807         * tests/test-verify.c: Likewise.
5808         * tests/test-vfprintf-posix.c: Likewise.
5809         * tests/test-vprintf-posix.c: Likewise.
5810         * tests/test-vsnprintf-posix.c: Likewise.
5811         * tests/test-vsnprintf.c: Likewise.
5812         * tests/test-vsprintf-posix.c: Likewise.
5813         * tests/test-wchar.c: Likewise.
5814         * tests/test-wctype.c: Likewise.
5815         * tests/test-wcwidth.c: Likewise.
5816         * tests/test-xstrtol.c: Likewise.
5817         * tests/test-xvasprintf.c: Likewise.
5818         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
5819         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
5820         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
5821         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
5822         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
5823         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
5824         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
5825         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
5826         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
5827         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
5828         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
5829         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
5830         * tests/uniname/test-uninames.c: Likewise.
5831         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
5832         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
5833         * tests/unistdio/test-u16-printf1.h: Likewise.
5834         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
5835         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
5836         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
5837         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
5838         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
5839         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
5840         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
5841         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
5842         * tests/unistdio/test-u32-printf1.h: Likewise.
5843         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
5844         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
5845         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
5846         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
5847         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
5848         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
5849         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
5850         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
5851         * tests/unistdio/test-u8-printf1.h: Likewise.
5852         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
5853         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
5854         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
5855         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
5856         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
5857         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
5858         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
5859         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
5860         * tests/unistdio/test-ulc-printf1.h: Likewise.
5861         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
5862         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
5863         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
5864         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
5865         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
5866         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
5867         * tests/uniwidth/test-u16-strwidth.c: Likewise.
5868         * tests/uniwidth/test-u16-width.c: Likewise.
5869         * tests/uniwidth/test-u32-strwidth.c: Likewise.
5870         * tests/uniwidth/test-u32-width.c: Likewise.
5871         * tests/uniwidth/test-u8-strwidth.c: Likewise.
5872         * tests/uniwidth/test-u8-width.c: Likewise.
5873         * tests/uniwidth/test-uc_width.c: Likewise.
5874         * config/srclist-update: Likewise.
5875         (fixlicense): Update to GPLv3+.
5876
5877         Change copyright notice from LGPLv2.1+ to LGPLv3+.
5878         * tests/test-tsearch.c: Change copyright notice.
5879
5880         Change copyright notice from LGPLv2.0+ to LGPLv3+.
5881         * lib/c-strcaseeq.h: Change copyright notice.
5882         * lib/streq.h: Likewise.
5883         * lib/uniconv.h: Likewise.
5884         * lib/uniconv/u-conv-from-enc.h: Likewise.
5885         * lib/uniconv/u-conv-to-enc.h: Likewise.
5886         * lib/uniconv/u-strconv-from-enc.h: Likewise.
5887         * lib/uniconv/u-strconv-to-enc.h: Likewise.
5888         * lib/uniconv/u16-conv-from-enc.c: Likewise.
5889         * lib/uniconv/u16-conv-to-enc.c: Likewise.
5890         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
5891         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
5892         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
5893         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
5894         * lib/uniconv/u32-conv-from-enc.c: Likewise.
5895         * lib/uniconv/u32-conv-to-enc.c: Likewise.
5896         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
5897         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
5898         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
5899         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
5900         * lib/uniconv/u8-conv-from-enc.c: Likewise.
5901         * lib/uniconv/u8-conv-to-enc.c: Likewise.
5902         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
5903         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
5904         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
5905         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
5906         * lib/uniname.h: Likewise.
5907         * lib/uniname/uniname.c: Likewise.
5908         * lib/unistdio.h: Likewise.
5909         * lib/unistdio/u-asnprintf.h: Likewise.
5910         * lib/unistdio/u-asprintf.h: Likewise.
5911         * lib/unistdio/u-printf-args.c: Likewise.
5912         * lib/unistdio/u-printf-args.h: Likewise.
5913         * lib/unistdio/u-printf-parse.h: Likewise.
5914         * lib/unistdio/u-snprintf.h: Likewise.
5915         * lib/unistdio/u-sprintf.h: Likewise.
5916         * lib/unistdio/u-vasprintf.h: Likewise.
5917         * lib/unistdio/u-vsnprintf.h: Likewise.
5918         * lib/unistdio/u-vsprintf.h: Likewise.
5919         * lib/unistdio/u16-asnprintf.c: Likewise.
5920         * lib/unistdio/u16-asprintf.c: Likewise.
5921         * lib/unistdio/u16-printf-parse.c: Likewise.
5922         * lib/unistdio/u16-snprintf.c: Likewise.
5923         * lib/unistdio/u16-sprintf.c: Likewise.
5924         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
5925         * lib/unistdio/u16-u16-asprintf.c: Likewise.
5926         * lib/unistdio/u16-u16-snprintf.c: Likewise.
5927         * lib/unistdio/u16-u16-sprintf.c: Likewise.
5928         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
5929         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
5930         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
5931         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
5932         * lib/unistdio/u16-vasnprintf.c: Likewise.
5933         * lib/unistdio/u16-vasprintf.c: Likewise.
5934         * lib/unistdio/u16-vsnprintf.c: Likewise.
5935         * lib/unistdio/u16-vsprintf.c: Likewise.
5936         * lib/unistdio/u32-asnprintf.c: Likewise.
5937         * lib/unistdio/u32-asprintf.c: Likewise.
5938         * lib/unistdio/u32-printf-parse.c: Likewise.
5939         * lib/unistdio/u32-snprintf.c: Likewise.
5940         * lib/unistdio/u32-sprintf.c: Likewise.
5941         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
5942         * lib/unistdio/u32-u32-asprintf.c: Likewise.
5943         * lib/unistdio/u32-u32-snprintf.c: Likewise.
5944         * lib/unistdio/u32-u32-sprintf.c: Likewise.
5945         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
5946         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
5947         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
5948         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
5949         * lib/unistdio/u32-vasnprintf.c: Likewise.
5950         * lib/unistdio/u32-vasprintf.c: Likewise.
5951         * lib/unistdio/u32-vsnprintf.c: Likewise.
5952         * lib/unistdio/u32-vsprintf.c: Likewise.
5953         * lib/unistdio/u8-asnprintf.c: Likewise.
5954         * lib/unistdio/u8-asprintf.c: Likewise.
5955         * lib/unistdio/u8-printf-parse.c: Likewise.
5956         * lib/unistdio/u8-snprintf.c: Likewise.
5957         * lib/unistdio/u8-sprintf.c: Likewise.
5958         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
5959         * lib/unistdio/u8-u8-asprintf.c: Likewise.
5960         * lib/unistdio/u8-u8-snprintf.c: Likewise.
5961         * lib/unistdio/u8-u8-sprintf.c: Likewise.
5962         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
5963         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
5964         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
5965         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
5966         * lib/unistdio/u8-vasnprintf.c: Likewise.
5967         * lib/unistdio/u8-vasprintf.c: Likewise.
5968         * lib/unistdio/u8-vsnprintf.c: Likewise.
5969         * lib/unistdio/u8-vsprintf.c: Likewise.
5970         * lib/unistdio/ulc-asnprintf.c: Likewise.
5971         * lib/unistdio/ulc-asprintf.c: Likewise.
5972         * lib/unistdio/ulc-printf-parse.c: Likewise.
5973         * lib/unistdio/ulc-snprintf.c: Likewise.
5974         * lib/unistdio/ulc-sprintf.c: Likewise.
5975         * lib/unistdio/ulc-vasnprintf.c: Likewise.
5976         * lib/unistdio/ulc-vasprintf.c: Likewise.
5977         * lib/unistdio/ulc-vsnprintf.c: Likewise.
5978         * lib/unistdio/ulc-vsprintf.c: Likewise.
5979         * lib/unistr.h: Likewise.
5980         * lib/unistr/u-cpy-alloc.h: Likewise.
5981         * lib/unistr/u-cpy.h: Likewise.
5982         * lib/unistr/u-endswith.h: Likewise.
5983         * lib/unistr/u-move.h: Likewise.
5984         * lib/unistr/u-set.h: Likewise.
5985         * lib/unistr/u-startswith.h: Likewise.
5986         * lib/unistr/u-stpcpy.h: Likewise.
5987         * lib/unistr/u-stpncpy.h: Likewise.
5988         * lib/unistr/u-strcat.h: Likewise.
5989         * lib/unistr/u-strcpy.h: Likewise.
5990         * lib/unistr/u-strcspn.h: Likewise.
5991         * lib/unistr/u-strdup.h: Likewise.
5992         * lib/unistr/u-strlen.h: Likewise.
5993         * lib/unistr/u-strncat.h: Likewise.
5994         * lib/unistr/u-strncpy.h: Likewise.
5995         * lib/unistr/u-strnlen.h: Likewise.
5996         * lib/unistr/u-strpbrk.h: Likewise.
5997         * lib/unistr/u-strspn.h: Likewise.
5998         * lib/unistr/u-strstr.h: Likewise.
5999         * lib/unistr/u-strtok.h: Likewise.
6000         * lib/unistr/u16-check.c: Likewise.
6001         * lib/unistr/u16-chr.c: Likewise.
6002         * lib/unistr/u16-cmp.c: Likewise.
6003         * lib/unistr/u16-cpy-alloc.c: Likewise.
6004         * lib/unistr/u16-cpy.c: Likewise.
6005         * lib/unistr/u16-endswith.c: Likewise.
6006         * lib/unistr/u16-mblen.c: Likewise.
6007         * lib/unistr/u16-mbsnlen.c: Likewise.
6008         * lib/unistr/u16-mbtouc-aux.c: Likewise.
6009         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
6010         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
6011         * lib/unistr/u16-mbtouc.c: Likewise.
6012         * lib/unistr/u16-mbtoucr.c: Likewise.
6013         * lib/unistr/u16-move.c: Likewise.
6014         * lib/unistr/u16-next.c: Likewise.
6015         * lib/unistr/u16-prev.c: Likewise.
6016         * lib/unistr/u16-set.c: Likewise.
6017         * lib/unistr/u16-startswith.c: Likewise.
6018         * lib/unistr/u16-stpcpy.c: Likewise.
6019         * lib/unistr/u16-stpncpy.c: Likewise.
6020         * lib/unistr/u16-strcat.c: Likewise.
6021         * lib/unistr/u16-strchr.c: Likewise.
6022         * lib/unistr/u16-strcmp.c: Likewise.
6023         * lib/unistr/u16-strcpy.c: Likewise.
6024         * lib/unistr/u16-strcspn.c: Likewise.
6025         * lib/unistr/u16-strdup.c: Likewise.
6026         * lib/unistr/u16-strlen.c: Likewise.
6027         * lib/unistr/u16-strmblen.c: Likewise.
6028         * lib/unistr/u16-strmbtouc.c: Likewise.
6029         * lib/unistr/u16-strncat.c: Likewise.
6030         * lib/unistr/u16-strncmp.c: Likewise.
6031         * lib/unistr/u16-strncpy.c: Likewise.
6032         * lib/unistr/u16-strnlen.c: Likewise.
6033         * lib/unistr/u16-strpbrk.c: Likewise.
6034         * lib/unistr/u16-strrchr.c: Likewise.
6035         * lib/unistr/u16-strspn.c: Likewise.
6036         * lib/unistr/u16-strstr.c: Likewise.
6037         * lib/unistr/u16-strtok.c: Likewise.
6038         * lib/unistr/u16-to-u32.c: Likewise.
6039         * lib/unistr/u16-to-u8.c: Likewise.
6040         * lib/unistr/u16-uctomb-aux.c: Likewise.
6041         * lib/unistr/u16-uctomb.c: Likewise.
6042         * lib/unistr/u32-check.c: Likewise.
6043         * lib/unistr/u32-chr.c: Likewise.
6044         * lib/unistr/u32-cmp.c: Likewise.
6045         * lib/unistr/u32-cpy-alloc.c: Likewise.
6046         * lib/unistr/u32-cpy.c: Likewise.
6047         * lib/unistr/u32-endswith.c: Likewise.
6048         * lib/unistr/u32-mblen.c: Likewise.
6049         * lib/unistr/u32-mbsnlen.c: Likewise.
6050         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
6051         * lib/unistr/u32-mbtouc.c: Likewise.
6052         * lib/unistr/u32-mbtoucr.c: Likewise.
6053         * lib/unistr/u32-move.c: Likewise.
6054         * lib/unistr/u32-next.c: Likewise.
6055         * lib/unistr/u32-prev.c: Likewise.
6056         * lib/unistr/u32-set.c: Likewise.
6057         * lib/unistr/u32-startswith.c: Likewise.
6058         * lib/unistr/u32-stpcpy.c: Likewise.
6059         * lib/unistr/u32-stpncpy.c: Likewise.
6060         * lib/unistr/u32-strcat.c: Likewise.
6061         * lib/unistr/u32-strchr.c: Likewise.
6062         * lib/unistr/u32-strcmp.c: Likewise.
6063         * lib/unistr/u32-strcpy.c: Likewise.
6064         * lib/unistr/u32-strcspn.c: Likewise.
6065         * lib/unistr/u32-strdup.c: Likewise.
6066         * lib/unistr/u32-strlen.c: Likewise.
6067         * lib/unistr/u32-strmblen.c: Likewise.
6068         * lib/unistr/u32-strmbtouc.c: Likewise.
6069         * lib/unistr/u32-strncat.c: Likewise.
6070         * lib/unistr/u32-strncmp.c: Likewise.
6071         * lib/unistr/u32-strncpy.c: Likewise.
6072         * lib/unistr/u32-strnlen.c: Likewise.
6073         * lib/unistr/u32-strpbrk.c: Likewise.
6074         * lib/unistr/u32-strrchr.c: Likewise.
6075         * lib/unistr/u32-strspn.c: Likewise.
6076         * lib/unistr/u32-strstr.c: Likewise.
6077         * lib/unistr/u32-strtok.c: Likewise.
6078         * lib/unistr/u32-to-u16.c: Likewise.
6079         * lib/unistr/u32-to-u8.c: Likewise.
6080         * lib/unistr/u32-uctomb.c: Likewise.
6081         * lib/unistr/u8-check.c: Likewise.
6082         * lib/unistr/u8-chr.c: Likewise.
6083         * lib/unistr/u8-cmp.c: Likewise.
6084         * lib/unistr/u8-cpy-alloc.c: Likewise.
6085         * lib/unistr/u8-cpy.c: Likewise.
6086         * lib/unistr/u8-endswith.c: Likewise.
6087         * lib/unistr/u8-mblen.c: Likewise.
6088         * lib/unistr/u8-mbsnlen.c: Likewise.
6089         * lib/unistr/u8-mbtouc-aux.c: Likewise.
6090         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
6091         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
6092         * lib/unistr/u8-mbtouc.c: Likewise.
6093         * lib/unistr/u8-mbtoucr.c: Likewise.
6094         * lib/unistr/u8-move.c: Likewise.
6095         * lib/unistr/u8-next.c: Likewise.
6096         * lib/unistr/u8-prev.c: Likewise.
6097         * lib/unistr/u8-set.c: Likewise.
6098         * lib/unistr/u8-startswith.c: Likewise.
6099         * lib/unistr/u8-stpcpy.c: Likewise.
6100         * lib/unistr/u8-stpncpy.c: Likewise.
6101         * lib/unistr/u8-strcat.c: Likewise.
6102         * lib/unistr/u8-strchr.c: Likewise.
6103         * lib/unistr/u8-strcmp.c: Likewise.
6104         * lib/unistr/u8-strcpy.c: Likewise.
6105         * lib/unistr/u8-strcspn.c: Likewise.
6106         * lib/unistr/u8-strdup.c: Likewise.
6107         * lib/unistr/u8-strlen.c: Likewise.
6108         * lib/unistr/u8-strmblen.c: Likewise.
6109         * lib/unistr/u8-strmbtouc.c: Likewise.
6110         * lib/unistr/u8-strncat.c: Likewise.
6111         * lib/unistr/u8-strncmp.c: Likewise.
6112         * lib/unistr/u8-strncpy.c: Likewise.
6113         * lib/unistr/u8-strnlen.c: Likewise.
6114         * lib/unistr/u8-strpbrk.c: Likewise.
6115         * lib/unistr/u8-strrchr.c: Likewise.
6116         * lib/unistr/u8-strspn.c: Likewise.
6117         * lib/unistr/u8-strstr.c: Likewise.
6118         * lib/unistr/u8-strtok.c: Likewise.
6119         * lib/unistr/u8-to-u16.c: Likewise.
6120         * lib/unistr/u8-to-u32.c: Likewise.
6121         * lib/unistr/u8-uctomb-aux.c: Likewise.
6122         * lib/unistr/u8-uctomb.c: Likewise.
6123         * lib/unitypes.h: Likewise.
6124         * lib/uniwidth.h: Likewise.
6125         * lib/uniwidth/cjk.h: Likewise.
6126         * lib/uniwidth/u16-strwidth.c: Likewise.
6127         * lib/uniwidth/u16-width.c: Likewise.
6128         * lib/uniwidth/u32-strwidth.c: Likewise.
6129         * lib/uniwidth/u32-width.c: Likewise.
6130         * lib/uniwidth/u8-strwidth.c: Likewise.
6131         * lib/uniwidth/u8-width.c: Likewise.
6132         * lib/uniwidth/width.c: Likewise.
6133
6134 2007-10-07  Bruno Haible  <bruno@clisp.org>
6135
6136         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
6137         The file is still under LGPL (see modules/inttypes).
6138
6139 2007-10-06  Bruno Haible  <bruno@clisp.org>
6140
6141         * modules/trunc (Dependencies): Add 'extensions'.
6142         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
6143         Reported by Ben Pfaff <blp@gnu.org>.
6144
6145 2007-10-06  Bruno Haible  <bruno@clisp.org>
6146
6147         * modules/freopen-tests: New file.
6148         * tests/test-freopen.c: New file.
6149
6150         * modules/fopen-tests: New file.
6151         * tests/test-fopen.c: New file.
6152
6153         * modules/fopen: New file.
6154         * lib/fopen.c: New file.
6155         * m4/fopen.m4: New file.
6156         * modules/freopen: New file.
6157         * lib/freopen.c: New file.
6158         * m4/freopen.m4: New file.
6159         * lib/stdio.in.h (fopen, freopen): New declarations.
6160         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
6161         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
6162         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
6163         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
6164         * doc/functions/fopen.texi: Mention the 'fopen' module.
6165         * doc/functions/freopen.texi: Mention the 'freopen' module.
6166
6167 2007-10-06  Bruno Haible  <bruno@clisp.org>
6168
6169         * modules/open-tests: New file.
6170         * tests/test-open.c: New file.
6171
6172         * modules/open: New file.
6173         * lib/open.c: New file.
6174         * m4/open.m4: New file.
6175         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
6176         lib/open.c does.
6177         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
6178         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
6179         macros.
6180         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
6181         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
6182         REPLACE_OPEN.
6183         * doc/functions/open.texi: Mention the 'open' module.
6184
6185 2007-10-04  Bruno Haible  <bruno@clisp.org>
6186
6187         * modules/ceill-tests: New file.
6188         * tests/test-ceill.c: New file.
6189
6190         * modules/ceill: New file.
6191         * lib/ceill.c: Replace entire file.
6192         * m4/ceill.m4: New file.
6193         * lib/math.in.h (ceill): Replace declaration.
6194         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
6195         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
6196         * doc/functions/ceill.texi: Mention the 'ceill' module.
6197         * modules/mathl (Files): Remove lib/ceill.c.
6198         (Depends-on): Add ceill.
6199
6200 2007-10-04  Bruno Haible  <bruno@clisp.org>
6201
6202         * modules/ceilf-tests: New file.
6203         * tests/test-ceilf.c: New file.
6204
6205         * modules/ceilf: New file.
6206         * lib/ceil.c: New file.
6207         * lib/ceilf.c: New file.
6208         * m4/ceilf.m4: New file.
6209         * lib/math.in.h (ceilf): New declaration.
6210         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
6211         HAVE_DECL_CEILF.
6212         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
6213         HAVE_DECL_CEILF.
6214         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
6215
6216 2007-10-04  Bruno Haible  <bruno@clisp.org>
6217
6218         * modules/floorl-tests: New file.
6219         * tests/test-floorl.c: New file.
6220
6221         * modules/floorl: New file.
6222         * lib/floorl.c: Replace entire file.
6223         * m4/floorl.m4: New file.
6224         * lib/math.in.h (floorl): Replace declaration.
6225         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
6226         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
6227         * doc/functions/floorl.texi: Mention the 'floorl' module.
6228         * modules/mathl (Files): Remove lib/floorl.c.
6229         (Depends-on): Add floorl.
6230
6231 2007-10-04  Bruno Haible  <bruno@clisp.org>
6232
6233         * modules/floorf-tests: New file.
6234         * tests/test-floorf.c: New file.
6235
6236         * modules/floorf: New file.
6237         * lib/floor.c: New file.
6238         * lib/floorf.c: New file.
6239         * m4/floorf.m4: New file.
6240         * lib/math.in.h (floorf): New declaration.
6241         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
6242         HAVE_DECL_FLOORF.
6243         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
6244         HAVE_DECL_FLOORF.
6245         * doc/functions/floorf.texi: Mention the 'floorf' module.
6246
6247 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
6248             Bruno Haible  <bruno@clisp.org>
6249
6250         Advertise for the Git server instead of the CVS server.
6251         * doc/gnulib-intro.texi (Steady Development): Mention the Git
6252         repository instead of the CVS one.
6253         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
6254         about all VCS systems generically.
6255         * doc/gnulib.texi (Introduction): Capitalize `Git'.
6256
6257 2007-10-04  Bruno Haible  <bruno@clisp.org>
6258
6259         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
6260         means.
6261         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
6262
6263 2007-10-04  Bruno Haible  <bruno@clisp.org>
6264
6265         * modules/truncl-tests: New file.
6266         * tests/test-truncl.c: New file.
6267
6268         * modules/truncl: New file.
6269         * lib/truncl.c: New file.
6270         * m4/truncl.m4: New file.
6271         * lib/math.in.h (truncl): New declaration.
6272         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
6273         HAVE_DECL_TRUNCL.
6274         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
6275         HAVE_DECL_TRUNCL.
6276         * doc/functions/truncl.texi: Mention the 'truncl' module.
6277
6278 2007-10-04  Bruno Haible  <bruno@clisp.org>
6279
6280         * modules/truncf-tests: New file.
6281         * tests/test-truncf.c: New file.
6282
6283         * modules/truncf: New file.
6284         * lib/trunc.c: Make paramerizable through USE_* macros.
6285         * lib/truncf.c: New file.
6286         * m4/truncf.m4: New file.
6287         * lib/math.in.h (truncf): New declaration.
6288         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
6289         HAVE_DECL_TRUNCF.
6290         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
6291         HAVE_DECL_TRUNCF.
6292         * doc/functions/truncf.texi: Mention the 'truncf' module.
6293
6294 2007-10-03  Bruno Haible  <bruno@clisp.org>
6295
6296         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
6297         augmentation also for tests modules.
6298         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
6299         * modules/atexit-tests (Makefile.am): Likewise.
6300         * modules/binary-io-tests (Makefile.am): Likewise.
6301         * modules/c-strcase-tests (Makefile.am): Likewise.
6302         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
6303         * modules/canonicalize-tests (Makefile.am): Likewise.
6304         * modules/closein-tests (Makefile.am): Likewise.
6305         * modules/fprintf-posix-tests (Makefile.am): Likewise.
6306         * modules/freadahead-tests (Makefile.am): Likewise.
6307         * modules/fseek-tests (Makefile.am): Likewise.
6308         * modules/fseeko-tests (Makefile.am): Likewise.
6309         * modules/ftell-tests (Makefile.am): Likewise.
6310         * modules/ftello-tests (Makefile.am): Likewise.
6311         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
6312         * modules/isnanl-tests (Makefile.am): Likewise.
6313         * modules/lseek-tests (Makefile.am): Likewise.
6314         * modules/mbscasecmp-tests (Makefile.am): Likewise.
6315         * modules/mbscasestr-tests (Makefile.am): Likewise.
6316         * modules/mbschr-tests (Makefile.am): Likewise.
6317         * modules/mbscspn-tests (Makefile.am): Likewise.
6318         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
6319         * modules/mbspbrk-tests (Makefile.am): Likewise.
6320         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
6321         * modules/mbsrchr-tests (Makefile.am): Likewise.
6322         * modules/mbsspn-tests (Makefile.am): Likewise.
6323         * modules/mbsstr-tests (Makefile.am): Likewise.
6324         * modules/printf-posix-tests (Makefile.am): Likewise.
6325         * modules/snprintf-posix-tests (Makefile.am): Likewise.
6326         * modules/sprintf-posix-tests (Makefile.am): Likewise.
6327         * modules/tsearch-tests (Makefile.am): Likewise.
6328         * modules/uniname/uniname-tests (Makefile.am): Likewise.
6329         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
6330         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
6331         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
6332         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
6333         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
6334         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
6335         * modules/vprintf-posix-tests (Makefile.am): Likewise.
6336         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
6337         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
6338         * modules/xstrtoimax-tests (Makefile.am): Likewise.
6339         * modules/xstrtol-tests (Makefile.am): Likewise.
6340         * modules/xstrtoumax-tests (Makefile.am): Likewise.
6341         * modules/yesno-tests (Makefile.am): Likewise.
6342
6343 2007-10-03  Bruno Haible  <bruno@clisp.org>
6344
6345         * modules/trunc-tests: New file.
6346         * tests/test-trunc.c: New file.
6347
6348         * modules/trunc: New file.
6349         * lib/trunc.c: New file.
6350         * m4/trunc.m4: New file.
6351         * lib/math.in.h (trunc): New declaration.
6352         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
6353         HAVE_DECL_TRUNC.
6354         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
6355         HAVE_DECL_TRUNC.
6356         * doc/functions/trunc.texi: Mention the 'trunc' module.
6357
6358 2007-10-03  Bruno Haible  <bruno@clisp.org>
6359
6360         * tests/test-fpending.c: New file, mostly copied
6361         from coreutils/lib/t-fpending.c.
6362         * modules/fpending-tests: New file.
6363
6364 2007-10-03  Bruno Haible  <bruno@clisp.org>
6365
6366         Port the stdio extensions to QNX (untested).
6367         * lib/fseterr.c (fseterr): Add support for QNX.
6368         * lib/fbufmode.c (fbufmode): Likewise.
6369         * lib/freadable.c (freadable): Likewise.
6370         * lib/fwritable.c (fwritable): Likewise.
6371         * lib/freading.c (freading): Likewise.
6372         * lib/fwriting.c (fwriting): Likewise.
6373         * lib/freadahead.c (freadahed): Likewise.
6374         * lib/fpurge.c (fpurge): Likewise.
6375         * lib/fseeko.c (rpl_fseeko): Likewise.
6376
6377 2007-10-03  Bruno Haible  <bruno@clisp.org>
6378             Jim Meyering  <jim@meyering.net>
6379             Eric Blake  <ebb9@byu.net>
6380
6381         * doc/relocatable.texi: Use @command instead of @program.
6382
6383 2007-10-02  Jim Meyering  <jim@meyering.net>
6384
6385         Perform one more "_.h" -> ".in.h" substitution.
6386         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
6387         instead of unistd_.h here, too.
6388
6389 2007-10-01  Bruno Haible  <bruno@clisp.org>
6390
6391         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
6392         Needed for the alloca-opt module.
6393
6394 2007-09-30  Bruno Haible  <bruno@clisp.org>
6395
6396         * lib/alloca.in.h: Renamed from lib/alloca_.h.
6397         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
6398         alloca_.h.
6399         * lib/argz.in.h: Renamed from lib/argz_.h.
6400         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
6401         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
6402         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
6403         byteswap_.h.
6404         * lib/dirent.in.h: Renamed from lib/dirent_.h.
6405         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
6406         dirent_.h.
6407         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
6408         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
6409         fcntl_.h.
6410         * lib/float.in.h: Renamed from lib/float_.h.
6411         * modules/float (Files, Makefile.am): Use float.in.h instead of
6412         float_.h.
6413         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
6414         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
6415         fnmatch_.h.
6416         * lib/getopt.in.h: Renamed from lib/getopt_.h.
6417         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
6418         getopt_.h.
6419         * lib/glob.in.h: Renamed from lib/glob_.h.
6420         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
6421         * lib/iconv.in.h: Renamed from lib/iconv_.h.
6422         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
6423         iconv_.h.
6424         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
6425         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
6426         inttypes_.h.
6427         * lib/locale.in.h: Renamed from lib/locale_.h.
6428         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
6429         locale_.h.
6430         * lib/math.in.h: Renamed from lib/math_.h.
6431         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
6432         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
6433         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
6434         of netinet_in_.h. Add dependency.
6435         * lib/poll.in.h: Renamed from lib/poll_.h.
6436         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
6437         * lib/search.in.h: Renamed from lib/search_.h.
6438         * modules/search (Files, Makefile.am): Use search.in.h instead of
6439         search_.h.
6440         * lib/signal.in.h: Renamed from lib/signal_.h.
6441         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
6442         _signal.h.
6443         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
6444         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
6445         stdbool_.h.
6446         * lib/stdint.in.h: Renamed from lib/stdint_.h.
6447         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
6448         stdint_.h.
6449         * lib/stdio.in.h: Renamed from lib/stdio_.h.
6450         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
6451         stdio_.h.
6452         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
6453         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
6454         stdlib_.h.
6455         * lib/string.in.h: Renamed from lib/string_.h.
6456         * modules/string (Files, Makefile.am): Use string.in.h instead of
6457         string_.h.
6458         * doc/gnulib-tool.texi (Initial import): Update.
6459         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
6460         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
6461         of sys_select_.h. Add dependency.
6462         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
6463         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
6464         of sys_socket_.h.
6465         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
6466         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
6467         sys_stat_.h.
6468         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
6469         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
6470         sys_time_.h.
6471         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
6472         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
6473         sysexits_.h.
6474         * lib/time.in.h: Renamed from lib/time_.h.
6475         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
6476         * lib/unistd.in.h: Renamed from lib/unistd_.h.
6477         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
6478         unistd_.h.
6479         * lib/wchar.in.h: Renamed from lib/wchar_.h.
6480         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
6481         wchar_.h.
6482         * lib/wctype.in.h: Renamed from lib/wctype_.h.
6483         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
6484         wctype_.h.
6485         * build-aux/bootstrap (slurp): Update.
6486         * lib/.cppi-disable: Update.
6487
6488 2007-09-30  Bruno Haible  <bruno@clisp.org>
6489
6490         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
6491         Needed on BeOS.
6492
6493 2007-09-30  Bruno Haible  <bruno@clisp.org>
6494
6495         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
6496
6497 2007-09-29  Bruno Haible  <bruno@clisp.org>
6498
6499         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
6500
6501 2007-09-29  Bruno Haible  <bruno@clisp.org>
6502
6503         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
6504         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
6505         * build-aux/install-reloc: Compile also areadlink.c.
6506         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
6507
6508 2007-09-29  Bruno Haible  <bruno@clisp.org>
6509
6510         * gnulib-tool (func_emit_initmacro_done): Indentation.
6511
6512 2007-09-29  Bruno Haible  <bruno@clisp.org>
6513
6514         * README: Add CVS checkout update instructions.
6515         Info from Bob Proulx <bob@proulx.com>.
6516
6517 2007-09-28  Eric Blake  <ebb9@byu.net>
6518
6519         Provide move-if-change.
6520         * build-aux/move-if-change: New file, based on best practice
6521         rather than any canonical upstream location.
6522
6523 2007-09-28  Jim Meyering  <jim@meyering.net>
6524
6525         Fix canonicalize loop-detection corner case.
6526         Do not attempt to stat the symlink values stored via seen_triple.
6527         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
6528         on linux-2.6.18, (but not 2.6.22).
6529         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
6530         triple_compare.  The former compares dev,ino,filename, while the latter
6531         would actually stat dirname(filename) when dev and ino were equal.
6532         * lib/hash-triple.c: Install <string.h>.
6533         (STREQ): Define.
6534         (triple_compare_ino_str): New function.
6535         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
6536
6537 2007-09-28  Eric Blake  <ebb9@byu.net>
6538
6539         Enforce that AC_REPLACE_FUNCS files exist.
6540         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
6541         override check for typos.
6542
6543         Fix test-closein on Solaris 10.
6544         * tests/test-closein.c (main): Don't assume stdin can be inherited
6545         closed on all systems.
6546         * tests/test-closein.sh: Likewise.
6547         Reported by Piotr Tarnowski.
6548
6549 2007-09-28  Jim Meyering  <jim@meyering.net>
6550
6551         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
6552
6553 2007-09-27  Jim Meyering  <jim@meyering.net>
6554
6555         canonicalize: Avoid a false-positive cycle failure.
6556         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
6557         Sort.  Remove cycle-check.
6558         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
6559         not cycle-check.h.
6560         (seen_triple): New function.
6561         (canonicalize_filename_mode): Use it instead of cycle-check.
6562         * tests/test-canonicalize.c: Add a test for this bug.
6563         * tests/test-canonicalize.sh: Set up and run the test.
6564
6565         New module, file-set, from coreutils.
6566         * modules/file-set: Define it.
6567         * lib/file-set.c, lib/file-set.h: Implement.
6568
6569         New module, hash-triple, from coreutils.
6570         * modules/hash-triple: Define it.
6571         * lib/hash-triple.c, lib/hash-triple.h: Implement.
6572
6573 2007-09-25  Eric Blake  <ebb9@byu.net>
6574
6575         Fix strerror on Interix.
6576         * lib/string_.h (strerror): Declare replacement.
6577         * doc/functions/strerror.texi (strerror): Document the Interix
6578         shortcoming.
6579         * modules/string (Makefile.am): Support new hooks.
6580         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
6581         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
6582         gl_FUNC_STRERROR_SEPARATE.
6583         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
6584         * lib/strerror.c (rpl_strerror): Provide replacement.
6585         * modules/strerror (Depends-on): Add string.
6586         (configure.ac): Detect use of module.
6587         * tests/test-strerror.c: New file.
6588         * modules/strerror-tests: New test module.
6589         * modules/argp (Depends-on): Add strerror.
6590         * modules/error (Depends-on): Likewise.
6591         Reported by Martin Koeppe.
6592
6593 2007-09-24  Bruno Haible  <bruno@clisp.org>
6594
6595         * README: Update git instructions.
6596
6597 2007-09-24  Eric Blake  <ebb9@byu.net>
6598
6599         Revert fpending breakage from 2007-09-08.
6600         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
6601         __fpending.c.
6602
6603 2007-09-24  Jim Meyering  <jim@meyering.net>
6604
6605         filenamecat.c: Add a test.
6606         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
6607         showing how the function works when DIR is the empty string.
6608
6609 2007-09-21  Simon Josefsson  <simon@josefsson.org>
6610
6611         * tests/test-canonicalize.sh: Turn on executable bit.
6612
6613 2007-09-19  Eric Blake  <ebb9@byu.net>
6614
6615         * README: Update CVS instructions.
6616
6617 2007-09-18  Bruno Haible  <bruno@clisp.org>
6618
6619         * modules/areadlink: New file.
6620         * lib/areadlink.h (areadlink): New declaration.
6621         * lib/areadlink.c: New file, based on lib/xreadlink.c.
6622
6623 2007-09-17  Jim Meyering  <jim@meyering.net>
6624
6625         * lib/savewd.c (ESTALE) [!defined]: Define.
6626         Reported to be required on Interix by Martin Koeppe.
6627
6628 2007-09-17  Bruno Haible  <bruno@clisp.org>
6629
6630         * gnulib-tool (func_version): Use $version.
6631
6632 2007-09-16  Bruno Haible  <bruno@clisp.org>
6633
6634         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
6635         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
6636         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
6637         Reported by Greg Schafer <gschafer@zip.com.au>.
6638
6639 2007-09-15  Bruno Haible  <bruno@clisp.org>
6640
6641         * gnulib-tool (sed): Try a little harder to make bash understand the
6642         alias.
6643         Reported by Bruce Korb <bruce.korb@gmail.com>.
6644
6645 2007-09-13  Eric Blake  <ebb9@byu.net>
6646
6647         * ChangeLog: Remove conflict markers.
6648
6649 2007-09-13  Simon Josefsson  <simon@josefsson.org>
6650
6651         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
6652         Reported by Bruno Haible <bruno@clisp.org>.
6653
6654 2007-09-12  Bruno Haible  <bruno@clisp.org>
6655
6656         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
6657         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
6658         is not defined.
6659
6660 2007-09-12  Eric Blake  <ebb9@byu.net>
6661
6662         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
6663         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
6664         Autoconf definition.
6665         * modules/euidaccess (Depends-on): Add extensions, for
6666         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
6667         * modules/fnmatch (Depends-on): Likewise.
6668         * modules/getaddrinfo (Depends-on): Likewise.
6669         * modules/getdelim (Depends-on): Likewise.
6670         * modules/getline (Depends-on): Likewise.
6671         * modules/getsubopt (Depends-on): Likewise.
6672         * modules/gettext (Depends-on): Likewise.
6673         * modules/group-member (Depends-on): Likewise.
6674         * modules/mbchar (Depends-on): Likewise.
6675         * modules/memmem (Depends-on): Likewise.
6676         * modules/mempcpy (Depends-on): Likewise.
6677         * modules/memrchr (Depends-on): Likewise.
6678         * modules/pagealign_alloc (Depends-on): Likewise.
6679         * modules/readutmp (Depends-on): Likewise.
6680         * modules/stpcpy (Depends-on): Likewise.
6681         * modules/stpncpy (Depends-on): Likewise.
6682         * modules/strchrnul (Depends-on): Likewise.
6683         * modules/strndup (Depends-on): Likewise.
6684         * modules/strsep (Depends-on): Likewise.
6685         * modules/strverscmp (Depends-on): Likewise.
6686         * modules/vasprintf (Depends-on): Likewise.
6687         * modules/wcwidth (Depends-on): Likewise.
6688         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
6689         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
6690         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
6691         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
6692         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
6693         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
6694         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
6695         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
6696         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
6697         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
6698         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
6699         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
6700         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
6701         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
6702         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
6703         * m4/readutmp.m4 (gl_READUTMP): Likewise.
6704         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
6705         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
6706         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
6707         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
6708         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
6709         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
6710         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
6711         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
6712         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
6713         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
6714         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
6715         so that lock.m4 can be used in gettext without extensions module.
6716
6717 2007-09-11  Bruno Haible  <bruno@clisp.org>
6718
6719         * m4/isc-posix.m4: Remove file.
6720         Suggested by Eric Blake.
6721
6722 2007-09-11  Eric Blake  <ebb9@byu.net>
6723
6724         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
6725
6726 2007-09-10  Bruno Haible  <bruno@clisp.org>
6727
6728         * posix-modules: Fix typo in error message.
6729         Reported by Matt <mkraai@beckman.com>.
6730
6731 2007-09-09  Bruno Haible  <bruno@clisp.org>
6732
6733         * doc/functions/getdelim.texi: Update list of platforms lacking the
6734         function.
6735         * doc/functions/getline.texi: Likewise.
6736
6737 2007-09-09  Jim Meyering  <jim@meyering.net>
6738
6739         * lib/hash.c (hash_initialize): Detect calloc failure.
6740         Reported by Bruno Haible.
6741
6742 2007-09-09  Bruno Haible  <bruno@clisp.org>
6743
6744         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
6745         malloc or realloc fails.
6746
6747 2007-09-09  Bruno Haible  <bruno@clisp.org>
6748
6749         * modules/getcwd (Depends-on): Add malloc-posix.
6750         * modules/glob (Depends-on): Likewise.
6751         * modules/putenv (Depends-on): Likewise.
6752         * modules/strdup (Depends-on): Likewise.
6753         * modules/getdelim (Depends-on): Add realloc-posix.
6754         * modules/read-file (Depends-on): Likewise.
6755
6756 2007-09-09  Bruno Haible  <bruno@clisp.org>
6757
6758         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
6759         (gl_FUNC_MALLOC_POSIX): Require it.
6760         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
6761         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
6762         * modules/realloc (Files): Add m4/malloc.m4.
6763         * modules/calloc (Files): Likewise.
6764
6765 2007-09-09  Bruno Haible  <bruno@clisp.org>
6766
6767         * modules/malloc-posix: New file.
6768         * modules/malloc (Depends-on): Add malloc-posix.
6769         * lib/malloc.c: Include errno.h.
6770         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
6771         and a POSIX-compatible malloc into a single function. Set ENOMEM
6772         when returning NULL.
6773         * m4/malloc.m4: New file.
6774         * doc/functions/malloc.texi: Mention the malloc-posix module.
6775         * lib/stdlib_.h (malloc): New declaration.
6776         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
6777         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
6778         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
6779         and HAVE_MALLOC_POSIX.
6780
6781 2007-09-09  Bruno Haible  <bruno@clisp.org>
6782
6783         * modules/realloc-posix: New file.
6784         * modules/realloc (Depends-on): Add realloc-posix.
6785         * lib/realloc.c: Include errno.h.
6786         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
6787         and a POSIX-compatible realloc into a single function. Set ENOMEM
6788         when returning NULL.
6789         * m4/realloc.m4: New file.
6790         * doc/functions/realloc.texi: Mention the realloc-posix module.
6791         * lib/stdlib_.h (realloc): New declaration.
6792         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
6793         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
6794         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
6795         and HAVE_REALLOC_POSIX.
6796
6797 2007-09-09  Bruno Haible  <bruno@clisp.org>
6798
6799         * modules/calloc-posix: New file.
6800         * modules/calloc (Depends-on): Add calloc-posix.
6801         * lib/calloc.c: Include errno.h.
6802         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
6803         and a POSIX-compatible calloc into a single function. Set ENOMEM
6804         when returning NULL.
6805         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
6806         * doc/functions/calloc.texi: Mention the calloc-posix module.
6807         * lib/stdlib_.h (calloc): New declaration.
6808         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
6809         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
6810         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
6811         and HAVE_CALLOC_POSIX.
6812
6813 2007-09-09  Bruno Haible  <bruno@clisp.org>
6814
6815         Allow for modules to show an arbitrary notice.
6816         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
6817         * gnulib-tool: New option --extract-notice.
6818         (func_usage): Document it.
6819         (sed_extract_prog): Update.
6820         (func_get_notice): New function.
6821         (func_modules_notice): New function.
6822         (func_import, func_create_testdir): Invoke it.
6823         Suggested by Jim Meyering.
6824
6825 2007-09-09  Bruno Haible  <bruno@clisp.org>
6826
6827         * gnulib-tool: New options --verbose, --quiet.
6828         (func_usage): Document them.
6829         (verbose): New variable.
6830         (func_execute_command): New function.
6831         (func_import): Don't show the module list and the file list if
6832         $verbose < 0.
6833         (func_create_testdir): Likewise. Use func_execute_command.
6834         (func_create_megatestdir): Use func_execute_command.
6835
6836 2007-09-08  Bruno Haible  <bruno@clisp.org>
6837
6838         * gnulib-tool (func_import): Prefer rsync over wget when available,
6839         for fetching the PO files.
6840
6841 2007-09-08  Bruno Haible  <bruno@clisp.org>
6842
6843         * posix-modules: New file. Portions copied from gnulib-tool.
6844         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
6845
6846 2007-09-08  Jim Meyering  <jim@meyering.net>
6847
6848         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
6849         * lib/fpending.h: Rename from __fpending.h.
6850         * lib/fpending.c: Rename from __fpending.c.
6851         Include "fpending.h", not "__fpending.h".
6852         * lib/__fpending.h, lib/__fpending.c: Remove files.
6853         * modules/fpending (Files): Reflect new file names.
6854         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
6855
6856 2007-09-08  Bruno Haible  <bruno@clisp.org>
6857
6858         * m4/inttypes-h.m4: Remove stub file.
6859
6860 2007-09-07  Simon Josefsson  <simon@josefsson.org>
6861
6862         * doc/headers/stdint.texi: Discuss #include_next issue.
6863
6864 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
6865
6866         * build-aux/bootstrap: Remove obsolete comment about wget --help.
6867
6868 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
6869
6870         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
6871         in variable name.
6872
6873 2007-09-03  Jim Meyering  <jim@meyering.net>
6874
6875         New module: git-version-gen.
6876         * modules/git-version-gen: New file.
6877
6878         Import changes from coreutils for bootstrap script.
6879
6880         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
6881
6882         bootstrap: uses rsync to download the .po files
6883         * build-aux/bootstrap (po_download_command_format): New global.
6884         (download_po_files): Use rsync.
6885         (update_po_files): Don't remove .po files after download,
6886         so future rsync runs can take advantage of the copies.
6887
6888         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
6889
6890         Solve the unnecessary-.po-file-regeneration problem once and for all.
6891         * build-aux/bootstrap (download_po_files): New function, renamed from
6892         get_translations.  Now, downloads, but doesn't update LINGUAS.
6893         (update_po_files): New function.
6894
6895         bootstrap: Ignore more.
6896         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
6897         uniwidth to e.g., lib/.gitignore.
6898         (slurp): Handle the sys_stat_.h -> sys mapping, too.
6899
6900         * build-aux/bootstrap: New setting: vc_ignore.
6901         (insert_sorted_if_absent): Create $file if absent.
6902         Adapt to new, possibly empty, list: $vc_ignore.
6903
6904         bootstrap: generate more ignorable names
6905         * build-aux/bootstrap (slurp): When generating ignorable names,
6906         also map .sin to .sed, .gperf to .c, and .y to .c.
6907
6908 2007-09-03  Jim Meyering  <jim@meyering.net>
6909
6910         * build-aux/git-version-gen: New file, from coreutils.  For details, see
6911         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
6912
6913 2007-09-02  Bruno Haible  <bruno@clisp.org>
6914
6915         Fix mis-recognition of 'mcs' on QNX 6.
6916         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
6917         output contains the string "Mono".
6918         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
6919         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
6920
6921 2007-09-01  Bruno Haible  <bruno@clisp.org>
6922
6923         Fix collision between uniwidth/* and linebreak modules.
6924         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
6925         u32_width): Remove declarations.
6926         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
6927         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
6928         streq3, streq2, streq1, streq0): Remove functions.
6929         (STREQ): Remove macro.
6930         (is_cjk_encoding): Remove function.
6931         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
6932         (uc_width, u8_width, u16_width, u32_width): Remove functions.
6933         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
6934         * NEWS: Document the change.
6935
6936 2007-09-01  Bruno Haible  <bruno@clisp.org>
6937
6938         * lib/streq.h: Add double-inclusion guard.
6939
6940 2007-09-01  Karl Berry  <karl@gnu.org>
6941
6942         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
6943
6944 2007-08-28  Jim Meyering  <jim@meyering.net>
6945
6946         Rename mreadlink_with_size to areadlink_with_size.
6947         * NEWS: Document the change.
6948         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
6949         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
6950         * lib/mreadlink.h: Rename this to...
6951         * lib/areadlink.h: ...this.
6952         * modules/mreadlink-with-size: Rename this to...
6953         * modules/areadlink-with-size: ...this.
6954         * lib/canonicalize.c: Reflect the renaming.
6955         * modules/canonicalize: Likewise.
6956
6957 2007-08-26  Bruno Haible  <bruno@clisp.org>
6958
6959         * gnulib-tool (func_import): When deciding which files to remove,
6960         consider also dangling symbolic links.
6961         Reported by Eric Blake.
6962
6963 2007-08-26  Bruno Haible  <bruno@clisp.org>
6964
6965         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
6966
6967 2007-08-23  Simon Josefsson  <simon@josefsson.org>
6968
6969         * lib/readline.c: Don't include getline.h, the prototype is now
6970         found in stdio.h.
6971
6972 2007-08-23  Jim Meyering  <jim@meyering.net>
6973
6974         Getdelim touchup.
6975         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
6976         around the funlockfile call, since funlockfile never sets errno.
6977         Don't set errno upon failed realloc.
6978
6979 2007-08-22  Eric Blake  <ebb9@byu.net>
6980
6981         Getline touchups.
6982         * lib/getdelim.c (getdelim): Revert regression that required *n to
6983         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
6984         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
6985         getdelim, rather than whether implementation is missing.
6986         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
6987         * lib/stdio_.h (getline): Also declare if replacement is
6988         required.
6989         * doc/functions/getdelim.texi: New file.
6990         * doc/functions/getline.texi: Likewise.
6991         * doc/gnulib.texi (Function Substitutes): Add new files.
6992         Reported by Bruno Haible.
6993
6994 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
6995
6996         * users.txt: Add Guile.
6997
6998 2007-08-22  Eric Blake  <ebb9@byu.net>
6999
7000         * tests/test-getdelim.c (main): Use remove, not unlink.
7001         * tests/test-getline.c (main): Likewise.
7002
7003         Move getline and getdelim into stdio.h, per POSIX 200x.
7004         * modules/getline (Files): Remove getline.h.
7005         (Depends-on): Add stdio.
7006         (configure.ac): Add module indicator.
7007         * modules/getdelim (Files): Remove getdelim.h.
7008         (Depends-on): Add stdio.
7009         (configure.ac): Add module indicator.
7010         * modules/stdio (Makefile.am): Work with new indicators.
7011         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
7012         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
7013         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
7014         * lib/getdelim.h: Delete.
7015         * lib/getline.h: Delete.
7016         * lib/stdio_.h (getdelim, getline): Declare.
7017         * modules/getdelim-tests: New module.
7018         * modules/getline-tests: Likewise.
7019         * tests/test-getdelim.c: New file.
7020         * tests/test-getline.c: Likewise.
7021         * NEWS: Document the change.
7022         * lib/getline.c: Update choice of header.
7023         * lib/csharpcomp.c: Likewise.
7024         * lib/getpass.c: Likewise.
7025         * lib/javacomp.c: Likewise.
7026         * lib/javaversion.c: Likewise.
7027         * lib/yesno.c: Likewise.
7028         * lib/getdelim.c: Likewise.
7029         (getdelim): Set errno on failure, and avoid memory leak.
7030
7031 2007-08-19  Bruno Haible  <bruno@clisp.org>
7032
7033         * modules/closein (Depends-on): Add freadahead.
7034         * lib/closein.c: Include freadahead.h.
7035         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
7036         is zero.
7037
7038 2007-08-19  Bruno Haible  <bruno@clisp.org>
7039
7040         * modules/freadahead-tests: New file.
7041         * tests/test-freadahead.sh: New file.
7042         * tests/test-freadahead.c: New file.
7043
7044         * modules/freadahead: New file.
7045         * lib/freadahead.h: New file.
7046         * lib/freadahead.c: New file.
7047         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
7048         fbufmode, fpurge, freadable, fwritable.
7049
7050 2007-08-19  Eric Blake  <ebb9@byu.net>
7051
7052         Test yesno in combination with closein.
7053         * lib/yesno.c (yesno): Document use of stdin.
7054         * modules/yesno-tests (Files): New module.
7055         * tests/test-yesno.c (main): New file.
7056         * tests/test-yesno.sh: Likewise.
7057
7058 2007-08-19  Bruno Haible  <bruno@clisp.org>
7059
7060         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
7061         * lib/fseeko.c (rpl_fseeko): Likewise.
7062         * lib/fseterr.c (fseterr): Likewise.
7063
7064 2007-08-19  Bruno Haible  <bruno@clisp.org>
7065
7066         * tests/test-lseek.c (main): Disable a test for BeOS.
7067         * doc/functions/lseek.texi: Document the BeOS bug.
7068
7069 2007-08-19  Bruno Haible  <bruno@clisp.org>
7070             Eric Blake  <ebb9@byu.net>
7071
7072         * lib/lseek.c: Include <sys/stat.h>.
7073         (rpl_lseek): Add workaround code also for Unix platforms.
7074         Needed for BeOS.
7075         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
7076         * doc/functions/lseek.texi: Document BeOS definiency.
7077
7078 2007-08-18  Bruno Haible  <bruno@clisp.org>
7079
7080         * modules/fstrcmp-tests: New file.
7081         * tests/test-fstrcmp.c: New file.
7082
7083 2007-08-18  Bruno Haible  <bruno@clisp.org>
7084
7085         * modules/fstrcmp: New file, from GNU gettext with modifications.
7086         * lib/fstrcmp.h: New file, from GNU gettext.
7087         * lib/fstrcmp.c: New file, from GNU gettext.
7088         * MODULES.html.sh (String handling): Add fstrcmp.
7089
7090 2007-08-18  Bruno Haible  <bruno@clisp.org>
7091
7092         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
7093         'bool'.
7094         (diag, compareseq): Remove const from the ctxt argument.
7095         (USE_HEURISTIC): Undefine at the end.
7096
7097 2007-08-18  Jim Meyering  <jim@meyering.net>
7098
7099         New file: lib/idcache.h
7100         * NEWS: Mention the addition.
7101         * modules/idcache (Files): Add lib/idcache.h
7102         * lib/idcache.c: Include "idcache.h".
7103         Don't include <sys/types.h>.
7104         Add a FIXME comment.
7105         Move file-scoped "static" declarations to the top.
7106         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
7107
7108 2007-08-17  Bruno Haible  <bruno@clisp.org>
7109         and Paul Eggert  <eggert@cs.ucla.edu>
7110
7111         * MODULES.html.sh: Add diffseq.
7112         * modules/diffseq: New file.
7113         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
7114         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
7115
7116 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
7117
7118         Import changes from coreutils for bootstrap script.
7119
7120         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
7121
7122         * build-aux/bootstrap (slurp): Work even in environments where
7123         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
7124         current code does not slurp files whose names start with ".", and
7125         this looks like it might be a troublesome area.
7126
7127         2007-07-11  Jim Meyering  <jim@meyering.net>
7128
7129         If there's a GPL vN copyright comment, require that N == 3.
7130
7131         2007-07-08  Jim Meyering  <jim@meyering.net>
7132
7133         Run the coreutils-specific code only if tests/Makefile.am.in exists.
7134         * build-aux/bootstrap (mam_template): Move definition out of loop.
7135
7136         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
7137
7138         * build-aux/bootstrap (symlink_to_dir): Rename function from
7139         symlink_to_gnulib.  Add a directory parameter.  Update all
7140         callers.
7141         (cp_mark_as_generated): Also check for -- and link to -- files in
7142         gl/.
7143
7144         2007-07-08  Jim Meyering  <jim@meyering.net>
7145
7146         Adapt to deeper hierarchy in gnulib.
7147         * build-aux/bootstrap (symlink_to_dir): If the destination
7148         directory doesn't exist, create it. This is required at least for
7149         "lib/uniwidth/cjk.h".
7150
7151         2007-05-15  Jim Meyering  <jim@meyering.net>
7152
7153         * build-aux/bootstrap: Now that generated Makefile.am files
7154         are no longer under version control, they must be created at
7155         bootstrap time.
7156
7157 2007-08-14  Ben Pfaff  <blp@gnu.org>
7158
7159         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
7160
7161 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
7162
7163         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
7164         given the changes below.
7165         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
7166         even on hosts that have padding bits beyond the supported 64.
7167
7168 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
7169
7170         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
7171         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
7172         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
7173         depends on it.
7174         (xstrtol_error): Remove.
7175         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
7176         but with a different signature.
7177         (ATTRIBUTE_NORETURN, __attribute__): New macros.
7178         * lib/xstrtol-error.c: Include exitfail.h.
7179         (xstrtol_fatal): New function, with a different signature from the
7180         old xstrtol_error, so that the caller need not worry about passing
7181         in an exit status, or about storage management of the option argument.
7182         (xstrtol_error): Now a static function.  Redo signature to
7183         implement xstrtol_fatal.  Output the correct number of hyphens in
7184         front of the option so that the caller need not worry about
7185         storage management.
7186         (N_): New macro.
7187         (_): Remove; not used now.
7188         * modules/xstrtol: Depend on getopt.
7189         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
7190         of old STRTOL_FATAL_ERROR macro.
7191         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
7192         of test program.
7193         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
7194         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
7195
7196 2007-08-08  Eric Blake  <ebb9@byu.net>
7197
7198         * lib/xstrtol-error.c: Add missing include.
7199
7200         Move xstrtol messages into gnulib domain, when --pobase is used.
7201         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
7202         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
7203         * modules/xstrtol (Files): Distribute new file.
7204         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
7205         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
7206         * tests/test-xstrtol.c: ...into new file.
7207         * tests/test-xstrtoul.c: Also test xstrtoul.
7208         * tests/test-xstrtoimax.c: Also test xstrtoimax.
7209         * tests/test-xstrtoumax.c: Also test xstrtoumax.
7210         * tests/test-xstrtol.sh: Drive the tests.
7211         * tests/test-xstrtoimax.sh: Likewise.
7212         * tests/test-xstrtoumax.sh: Likewise.
7213         * modules/xstrtol-tests: New module.
7214         * modules/xstrtoimax-tests: Likewise.
7215         * modules/xstrtoumax-tests: Likewise.
7216
7217 2007-08-08  Jim Meyering  <jim@meyering.net>
7218
7219         New function: mfile_name_concat.
7220         * lib/filenamecat.c (mfile_name_concat): New function, just like
7221         file_name_concat, but return NULL upon failure rather than exiting
7222         with a diagnostic.
7223         * lib/filenamecat.h: Declare it.
7224
7225 2007-08-07  Bruno Haible  <bruno@clisp.org>
7226
7227         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
7228         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
7229         warning from gcc.
7230         Reported by Eric Blake.
7231
7232 2007-08-07  Simon Josefsson  <simon@josefsson.org>
7233
7234         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
7235         * modules/crypto/arcfour (License): Likewise.
7236         * modules/crypto/des-tests (License): Likewise.
7237         * modules/crypto/gc-arctwo-tests (License): Likewise.
7238         * modules/crypto/gc-des-tests (License): Likewise.
7239         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
7240         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
7241         * modules/crypto/gc-md2-tests (License): Likewise.
7242         * modules/crypto/gc-md4-tests (License): Likewise.
7243         * modules/crypto/gc-md5-tests (License): Likewise.
7244         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
7245         * modules/crypto/gc-rijndael-tests (License): Likewise.
7246         * modules/crypto/gc-sha1-tests (License): Likewise.
7247         * modules/crypto/gc-tests (License): Likewise.
7248         * modules/crypto/hmac-md5 (License): Likewise.
7249         * modules/crypto/hmac-sha1 (License): Likewise.
7250         * modules/crypto/md2-tests (License): Likewise.
7251         * modules/crypto/md4-tests (License): Likewise.
7252         * modules/crypto/md5 (License): Likewise.
7253         * modules/crypto/rijndael (License): Likewise.
7254         * modules/crypto/sha1 (License): Likewise.
7255         * modules/memxor (License): Likewise.
7256
7257 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
7258         and Bruno Haible  <bruno@clisp.org>
7259
7260         * NEWS: Describe interface changes to human, xstrtol.
7261         * lib/human.h: Include <xstrtol.h>.
7262         (human_options): Return enum strtol_error, not int.  Remove
7263         bool arg; take int * instead.
7264         * lib/human.c: Don't include "gettext.h".
7265         (_): Remove; no longer used.
7266         Don't include <xstrtol.h>, since human.h does it.
7267         (human_options): Adjust to abovementioned interface changes.
7268         Do not report error to stderr; that's now the caller's
7269         responsibility.
7270         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
7271         interface change.
7272         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
7273         Str, Argument_type_string.  All uses changed.  Put " argument"
7274         in diagnostics to make them clearer.  Change wording of suffix
7275         message for clarity.
7276         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
7277         Argument_type_string.
7278         (STRTOL_FATAL_WARN): Remove; no longer used.
7279         * modules/human (Depends-on): Remove gettext-h.
7280
7281 2007-08-06  Simon Josefsson  <simon@josefsson.org>
7282
7283         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
7284
7285 2007-07-31  Bruno Haible  <bruno@clisp.org>
7286
7287         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
7288         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
7289         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
7290
7291 2007-07-31  Bruno Haible  <bruno@clisp.org>
7292
7293         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
7294         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
7295
7296 2007-07-30  Bruno Haible  <bruno@clisp.org>
7297
7298         * modules/base64 (License): Use the synonymous term "LGPLv2+".
7299         * modules/c-ctype (License): Likewise.
7300         * modules/c-strcase (License): Likewise.
7301         * modules/check-version (License): Likewise.
7302         * modules/iconv (License): Likewise.
7303         * modules/iconv_open (License): Likewise.
7304         * modules/read-file (License): Likewise.
7305         * modules/striconv (License): Likewise.
7306         * modules/strverscmp (License): Likewise.
7307         * modules/vasprintf (License): Likewise.
7308         * modules/crypto/des (License): Likewise.
7309         * modules/crypto/gc (License): Likewise.
7310         * modules/crypto/gc-arcfour (License): Likewise.
7311         * modules/crypto/gc-arctwo (License): Likewise.
7312         * modules/crypto/gc-des (License): Likewise.
7313         * modules/crypto/gc-hmac-md5 (License): Likewise.
7314         * modules/crypto/gc-hmac-sha1 (License): Likewise.
7315         * modules/crypto/gc-md2 (License): Likewise.
7316         * modules/crypto/gc-md4 (License): Likewise.
7317         * modules/crypto/gc-md5 (License): Likewise.
7318         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
7319         * modules/crypto/gc-random (License): Likewise.
7320         * modules/crypto/gc-rijndael (License): Likewise.
7321         * modules/crypto/gc-sha1 (License): Likewise.
7322         * modules/crypto/md2 (License): Likewise.
7323         * modules/crypto/md4 (License): Likewise.
7324
7325 2007-07-30  Jim Meyering  <jim@meyering.net>
7326
7327         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
7328         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
7329         it has valid stat data.  This bug would cause du not to count the
7330         sizes of inaccessible directories.
7331         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
7332         in <http://bugzilla.redhat.com/250077>.
7333
7334 2007-07-25  Peter O'Gorman  <peter@pogma.com>
7335             Bruno Haible  <bruno@clisp.org>
7336
7337         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
7338         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
7339         #include_next, gives a diagnostic about it, but reports no error in
7340         the exit code.
7341         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
7342
7343 2007-07-24  Ben Pfaff  <blp@gnu.org>
7344
7345         Improve name: "count-one-bits" is better than "popcount".
7346         * MODULES.html.sh: Update name.
7347         * lib/popcount.h: Renamed lib/count-one-bits.h.
7348         (popcount): Renamed count_one_bits.
7349         (popcountl): Renamed count_one_bits_l.
7350         (popcountll): Renamed count_one_bits_ll.
7351         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
7352         * modules/popcount: Renamed module/count-one-bits.
7353         * modules/popcount-tests: Renamed module/count-one-bits-tests.
7354         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
7355
7356 2007-07-23  Ben Pfaff  <blp@gnu.org>
7357
7358         * lib/popcount.h (popcount32): Reduce size of constants, to allow
7359         better code generation, and add U to large constants to avoid
7360         warnings, in non-GCC case.
7361         Suggested by Bruno Haible.
7362
7363 2007-07-23  Ben Pfaff  <blp@gnu.org>
7364
7365         * lib/popcount.h: Use verify_true instead of if...abort.
7366         * modules/popcount: Depend on verify module.
7367         Suggested by Jim Meyering.
7368
7369 2007-07-23  Bruno Haible  <bruno@clisp.org>
7370
7371         * gnulib-tool (func_import): Create a .cvsignore file also when the
7372         directory is not yet in CVS but the toplevel directory is. When
7373         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
7374         Reported by Karl Berry.
7375
7376 2007-07-22  Ben Pfaff  <blp@gnu.org>
7377
7378         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
7379         case.
7380         Suggested by Eric Blake.
7381
7382 2007-07-22  Ben Pfaff  <blp@gnu.org>
7383
7384         New module: popcount.
7385         * MODULES.html.sh: Add popcount.
7386         * modules/popcount: New file.
7387         * modules/popcount-tests: New file.
7388         * tests/test-popcount.c: New file.
7389         * lib/popcount.h: New file.
7390         * m4/popcount.m4: New file.
7391
7392 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
7393
7394         * build-aux/announce-gen: Update to GPLv3.
7395
7396         * build-aux/config.guess: Update from config.
7397
7398 2007-07-21  Bruno Haible  <bruno@clisp.org>
7399
7400         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
7401         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
7402
7403 2007-07-20  Jim Meyering  <jim@meyering.net>
7404
7405         * check-module: Diagnose a self-dependency.
7406
7407 2007-07-19  Bruno Haible  <bruno@clisp.org>
7408
7409         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
7410         empty.
7411         Reported by Eric Blake.
7412
7413 2007-07-18  Bruno Haible  <bruno@clisp.org>
7414
7415         * gnulib-tool: New options --po-base, --po-domain.
7416         (func_usage): Document them.
7417         (pobase, po_domain): New variables.
7418         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
7419         DEFAULT_TEXT_DOMAIN.
7420         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
7421         (func_import): Consider pobase and po_domain. Create a po/ directory.
7422         (func_create_testdir): Set pobase and po_domain to empty.
7423         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
7424         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
7425
7426 2007-07-18  Bruno Haible  <bruno@clisp.org>
7427
7428         * gnulib-tool (func_get_automake_snippet): Synthesize also an
7429         EXTRA_DIST augmentation for files in build-aux/.
7430
7431 2007-07-16  Bruno Haible  <bruno@clisp.org>
7432
7433         * modules/lseek (License): Use the synonymous term "LGPLv2+".
7434         * modules/getdelim (License): Likewise.
7435
7436 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
7437
7438         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
7439         * modules/d-type (License): Likewise.
7440         * modules/extensions (License): Likewise.
7441         * modules/fnmatch (License): Likewise.
7442         * modules/fseeko (License): Likewise.
7443         * modules/getaddrinfo (License): Likewise.
7444         * modules/getline (License): Likewise.
7445         * modules/getlogin_r (License): Likewise.
7446         * modules/getpass (License): Likewise.
7447         * modules/gettimeofday (License): Likewise.
7448         * modules/glob (License): Likewise.
7449         * modules/inet_ntop (License): Likewise.
7450         * modules/malloc (License): Likewise.
7451         * modules/malloca (License): Likewise.
7452         * modules/memmem (License): Likewise.
7453         * modules/mempcpy (License): Likewise.
7454         * modules/memset (License): Likewise.
7455         * modules/minmax (License): Likewise.
7456         * modules/mktime (License): Likewise.
7457         * modules/netinet_in (License): Likewise.
7458         * modules/pathmax (License): Likewise.
7459         * modules/poll (License): Likewise.
7460         * modules/regex (License): Likewise.
7461         * modules/snprintf (License): Likewise.
7462         * modules/stdbool (License): Likewise.
7463         * modules/stdint (License): Likewise.
7464         * modules/stdio (License): Likewise.
7465         * modules/strcase (License): Likewise.
7466         * modules/strcasestr (License): Likewise.
7467         * modules/strdup (License): Likewise.
7468         * modules/string (License): Likewise.
7469         * modules/strndup (License): Likewise.
7470         * modules/strnlen (License): Likewise.
7471         * modules/strpbrk (License): Likewise.
7472         * modules/strptime (License): Likewise.
7473         * modules/strsep (License): Likewise.
7474         * modules/sys_select (License): Likewise.
7475         * modules/sys_socket (License): Likewise.
7476         * modules/sys_stat (License): Likewise.
7477         * modules/sys_time (License): Likewise.
7478         * modules/time (License): Likewise.
7479         * modules/time_r (License): Likewise.
7480         * modules/timegm (License): Likewise.
7481         * modules/unistd (License): Likewise.
7482         * modules/vsnprintf (License): Likewise.
7483         * modules/wctype (License): Likewise.
7484
7485 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7486
7487         * modules/argz (License): LGPLv2+.
7488
7489 2007-07-15  Karl Berry  <karl@gnu.org>
7490
7491         * doc/gnulib.texi: revise node structure per new fdl.texi.
7492
7493 2007-07-14  Bruno Haible  <bruno@clisp.org>
7494
7495         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
7496         the output file.
7497         * lib/uniname/uninames.h: Regenerated.
7498
7499 2007-07-14  Karl Berry  <karl@gnu.org>
7500
7501         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
7502         omitting sectioning and index commands.
7503
7504 2007-07-13  Bruno Haible  <bruno@clisp.org>
7505
7506         New gnulib-tool option --more-symlinks.
7507         * gnulib-tool (func_usage): Document --more-symlinks.
7508         (do_copyrights): New variable.
7509         Recognize option --more-symlinks.
7510         (func_import): Don't add a copyright notice transform to
7511         sed_transform_lib_file if do_copyrights is empty.
7512
7513 2007-07-13  Bruno Haible  <bruno@clisp.org>
7514
7515         * lib/vasnprintf.c (decimal_point_char): Define also if
7516         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
7517         && !NEED_PRINTF_DIRECTIVE_A.
7518         Reported by Clemens Koller <clemens.koller@anagramm.de> via
7519         Gary V. Vaughan <gary@gnu.org>.
7520
7521 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
7522
7523         * lib/inttypes_.h: Undo previous change, since it was fixed
7524         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
7525
7526 2007-07-13  Bruno Haible  <bruno@clisp.org>
7527
7528         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
7529         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
7530
7531 2007-07-13  Jim Meyering  <jim@meyering.net>
7532
7533         df: Don't fail for Tru64's "file-on-file mount".
7534         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
7535         so we fall through and use statfs instead.  Details here:
7536         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
7537         Reported by Albert Chin.
7538
7539 2007-07-13  Bruno Haible  <bruno@clisp.org>
7540
7541         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
7542         * modules/configmake (License): Likewise.
7543         * modules/gettext (License): Likewise.
7544         * modules/gettext-h (License): Likewise.
7545         * modules/include_next (License): Likewise.
7546         * modules/link-warning (License): Likewise.
7547         * modules/localcharset (License): Likewise.
7548         * modules/localename (License): Likewise.
7549         * modules/lock (License): Likewise.
7550         * modules/relocatable-lib-lgpl (License): Likewise.
7551         * modules/size_max (License): Likewise.
7552         * modules/vasnprintf (License): Likewise.
7553         * modules/wchar (License): Likewise.
7554         * modules/xsize (License): Likewise.
7555
7556 2007-07-13  Bruno Haible  <bruno@clisp.org>
7557
7558         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
7559         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
7560
7561 2007-07-12  Bruno Haible  <bruno@clisp.org>
7562
7563         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
7564         in the modules files.
7565
7566 2007-07-11  Karl Berry  <karl@gnu.org>
7567
7568         * MODULES.html.sh (func_module): use
7569          sed -e '\|^'"${includefile}"'$|d'
7570          instead of /.../d, to avoid errors on $includefile's containing /.
7571
7572 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
7573
7574         * gnulib-tool (func_import): Avoid duplication of --avoid
7575         statements
7576         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
7577         names to `_' in variable names.
7578
7579 2007-07-10  Eric Blake  <ebb9@byu.net>
7580
7581         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
7582         * NEWS: Document this change.
7583
7584 2007-07-08  Bruno Haible  <bruno@clisp.org>
7585
7586         Update to Unicode 5.0.
7587         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
7588         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
7589         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
7590         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
7591         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
7592         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
7593         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
7594         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
7595         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
7596         U+10A3F, U+1D242..U+1D244.
7597         (nonspacing_table_ind): Update.
7598         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
7599         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
7600
7601 2007-07-08  Bruno Haible  <bruno@clisp.org>
7602
7603         Update to Unicode 5.0.
7604         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
7605         code transform. Extend the name index field of unicode_name_to_code and
7606         unicode_code_to_name from 16 to 24 bits.
7607         * lib/uniname/uniname.c (unicode_character_name,
7608         unicode_name_character): Add the range 0x12xxx to the code transform.
7609         * lib/uniname/uninames.h: Regenerated.
7610         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
7611
7612 2007-07-07  Bruno Haible  <bruno@clisp.org>
7613
7614         * modules/wcwidth-tests: New file.
7615         * tests/test-wcwidth.c: New file.
7616
7617         Work around MacOS X wcwidth() bug.
7618         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
7619         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
7620         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
7621         original wcwidth in non-UTF-8 locales.
7622         * modules/wcwidth (Depends-on): Add localcharset, streq,
7623         uniwidth/width.
7624         * doc/functions/wcwidth.texi: Update.
7625
7626 2007-07-07  Bruno Haible  <bruno@clisp.org>
7627
7628         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
7629         (wcwidth): New declaration.
7630         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
7631         macros.
7632         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
7633         here. Prepare for creating <wchar.h> unconditionally.
7634         * modules/wchar (Depends-on): Add link-warning.
7635         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
7636         REPLACE_WCWIDTH, and GL_LINK_WARNING.
7637         * lib/wcwidth.h: Remove file.
7638         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
7639         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
7640         * modules/wcwidth (Files): Remove lib/wcwidth.h.
7641         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
7642         (Include): Replace wcwidth.h with <wchar.h>.
7643         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
7644         * lib/mbchar.h: Don't include wcwidth.h.
7645         * lib/mbswidth.c: Likewise.
7646         * NEWS: Mention the change.
7647
7648 2007-07-07  Bruno Haible  <bruno@clisp.org>
7649
7650         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
7651         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
7652         definition with an external declaration.
7653         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
7654         defined as a function. Remove AC_C_INLINE requirement.
7655         * modules/wcwidth (Files): Add lib/wcwidth.c.
7656         (Makefile.am): Remove redundant statement.
7657
7658 2007-07-07  Bruno Haible  <bruno@clisp.org>
7659
7660         * MODULES.html.sh (Unicode string functions): Add the new modules.
7661
7662         * tests/uniwidth/test-u32-strwidth.c: New file.
7663         * modules/uniwidth/u32-strwidth-tests: New file.
7664
7665         * lib/uniwidth/u32-strwidth.c: New file.
7666         * modules/uniwidth/u32-strwidth: New file.
7667
7668         * tests/uniwidth/test-u16-strwidth.c: New file.
7669         * modules/uniwidth/u16-strwidth-tests: New file.
7670
7671         * lib/uniwidth/u16-strwidth.c: New file.
7672         * modules/uniwidth/u16-strwidth: New file.
7673
7674         * tests/uniwidth/test-u8-strwidth.c: New file.
7675         * modules/uniwidth/u8-strwidth-tests: New file.
7676
7677         * lib/uniwidth/u8-strwidth.c: New file.
7678         * modules/uniwidth/u8-strwidth: New file.
7679
7680         * tests/uniwidth/test-u32-width.c: New file.
7681         * modules/uniwidth/u32-width-tests: New file.
7682
7683         * lib/uniwidth/u32-width.c: New file.
7684         * modules/uniwidth/u32-width: New file.
7685
7686         * tests/uniwidth/test-u16-width.c: New file.
7687         * modules/uniwidth/u16-width-tests: New file.
7688
7689         * lib/uniwidth/u16-width.c: New file.
7690         * modules/uniwidth/u16-width: New file.
7691
7692         * tests/uniwidth/test-u8-width.c: New file.
7693         * modules/uniwidth/u8-width-tests: New file.
7694
7695         * lib/uniwidth/u8-width.c: New file.
7696         * modules/uniwidth/u8-width: New file.
7697
7698         * tests/uniwidth/test-uc_width.c: New file.
7699         * modules/uniwidth/width-tests: New file.
7700
7701         * lib/uniwidth/width.c: New file, from GNU libiconv.
7702         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
7703         * modules/uniwidth/width: New file.
7704
7705         * lib/uniwidth.h: New file, from GNU libiconv.
7706         * modules/uniwidth/base: New file.
7707
7708 2007-07-07  Bruno Haible  <bruno@clisp.org>
7709
7710         * lib/uniname.h: New file, from GNU gettext.
7711         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
7712         * lib/uniname/uninames.h: New file, from GNU gettext.
7713         * lib/uniname/uniname.c: New file, from GNU gettext.
7714         * tests/uniname/test-uninames.sh: New file.
7715         * tests/uniname/test-uninames.c: New file, from GNU gettext.
7716         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
7717         * modules/uniname/base: New file.
7718         * modules/uniname/uniname: New file.
7719         * modules/uniname/uniname-tests: New file.
7720         * MODULES.html.sh (Unicode string functions): Add the new modules.
7721
7722 2007-07-06  Bruno Haible  <bruno@clisp.org>
7723
7724         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
7725
7726 2007-07-06  Bruno Haible  <bruno@clisp.org>
7727
7728         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
7729         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
7730         includes <cygwin/sys_time.h> which includes <sys/select.h> which
7731         include <sys/time.h>.
7732         Reported by Eric Blake.
7733
7734 2007-07-06  Eric Blake  <ebb9@byu.net>
7735
7736         Fix testing canonicalize on cygwin.
7737         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
7738         Revert patch from 2007-06-19.
7739         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
7740         canonicalize module is also in use.
7741         * tests/test-canonicalize.c: New file.
7742         * tests/test-canonicalize.sh: Likewise.
7743         * modules/canonicalize-tests: Likewise.
7744
7745 2007-07-06  Jim Meyering  <jim@meyering.net>
7746
7747         * lib/getugroups.c (getugroups): Detect getgrent failure.
7748         Adjust comment to reflect reality: this function may return -1.
7749
7750 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
7751
7752         * build-aux/bootstrap (TP_URL,get_translations): Update to use
7753         the new TP address.
7754         (usage): Fix typo
7755         (gnulib_mk): New variable.
7756
7757 2007-07-05  Jim Meyering  <jim@meyering.net>
7758
7759         Don't let endgrent clobber errno, no matter how improbable.
7760         * lib/getugroups.c (getugroups): Save and restore errno around
7761         endgrent call.
7762
7763         Close the group DB even when failing with 2^31 or more members.
7764         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
7765
7766 2007-07-04  Jim Meyering  <jim@meyering.net>
7767
7768         * lib/getugroups.h: New file.
7769         * lib/getugroups.c: Include "getugroups.h".
7770         Remove uses of "register" keyword.
7771         Move local variable, "cp", down into scope where used.
7772         Give "username" parameter the "const" attribute.
7773         * modules/getugroups (Files): Add lib/getugroups.h
7774
7775 2007-07-04  Karl Berry  <karl@gnu.org>
7776
7777         * MODULES.html.sh (func_all_modules): Complete rename of
7778         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
7779
7780 2007-07-02  Bruno Haible  <bruno@clisp.org>
7781
7782         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
7783         mode, when inttypes.h comes from gnulib.
7784         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
7785
7786 2007-07-02  Simon Josefsson  <simon@josefsson.org>
7787
7788         * NEWS: Mention lgpl module name change.
7789
7790         * modules/lgpl-2.1: Renamed from lgpl.
7791
7792         * NEWS: Mention gpl module name change.
7793
7794         * modules/gpl-3.0: New file, based on gpl-2.0.
7795
7796         * modules/gpl-2.0: Renamed from gpl.
7797
7798         * modules/gpl: Fix filename, doc/gpl.texi is now found at
7799         doc/gpl-2.0.texi.
7800
7801 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
7802
7803         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
7804         #define __STDC_LIMIT_MACROS temporarily while including
7805         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
7806         Problem reported by Joel E. Denny in
7807         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
7808
7809 2007-07-01  Bruno Haible  <bruno@clisp.org>
7810
7811         * lib/unistdio.h: New file.
7812         * lib/unistdio/u-asnprintf.h: New file.
7813         * lib/unistdio/u-asprintf.h: New file.
7814         * lib/unistdio/u-printf-args.c: New file.
7815         * lib/unistdio/u-printf-args.h: New file.
7816         * lib/unistdio/u-printf-parse.h: New file.
7817         * lib/unistdio/u-snprintf.h: New file.
7818         * lib/unistdio/u-sprintf.h: New file.
7819         * lib/unistdio/u-vasprintf.h: New file.
7820         * lib/unistdio/u-vsnprintf.h: New file.
7821         * lib/unistdio/u-vsprintf.h: New file.
7822         * lib/unistdio/ulc-asnprintf.c: New file.
7823         * lib/unistdio/ulc-asprintf.c: New file.
7824         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
7825         * lib/unistdio/ulc-printf-parse.c: New file.
7826         * lib/unistdio/ulc-snprintf.c: New file.
7827         * lib/unistdio/ulc-sprintf.c: New file.
7828         * lib/unistdio/ulc-vasnprintf.c: New file.
7829         * lib/unistdio/ulc-vasprintf.c: New file.
7830         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
7831         * lib/unistdio/ulc-vsnprintf.c: New file.
7832         * lib/unistdio/ulc-vsprintf.c: New file.
7833         * lib/unistdio/u8-asnprintf.c: New file.
7834         * lib/unistdio/u8-asprintf.c: New file.
7835         * lib/unistdio/u8-printf-parse.c: New file.
7836         * lib/unistdio/u8-snprintf.c: New file.
7837         * lib/unistdio/u8-sprintf.c: New file.
7838         * lib/unistdio/u8-vasnprintf.c: New file.
7839         * lib/unistdio/u8-vasprintf.c: New file.
7840         * lib/unistdio/u8-vsnprintf.c: New file.
7841         * lib/unistdio/u8-vsprintf.c: New file.
7842         * lib/unistdio/u8-u8-asnprintf.c: New file.
7843         * lib/unistdio/u8-u8-asprintf.c: New file.
7844         * lib/unistdio/u8-u8-snprintf.c: New file.
7845         * lib/unistdio/u8-u8-sprintf.c: New file.
7846         * lib/unistdio/u8-u8-vasnprintf.c: New file.
7847         * lib/unistdio/u8-u8-vasprintf.c: New file.
7848         * lib/unistdio/u8-u8-vsnprintf.c: New file.
7849         * lib/unistdio/u8-u8-vsprintf.c: New file.
7850         * lib/unistdio/u16-asnprintf.c: New file.
7851         * lib/unistdio/u16-asprintf.c: New file.
7852         * lib/unistdio/u16-printf-parse.c: New file.
7853         * lib/unistdio/u16-snprintf.c: New file.
7854         * lib/unistdio/u16-sprintf.c: New file.
7855         * lib/unistdio/u16-vasnprintf.c: New file.
7856         * lib/unistdio/u16-vasprintf.c: New file.
7857         * lib/unistdio/u16-vsnprintf.c: New file.
7858         * lib/unistdio/u16-vsprintf.c: New file.
7859         * lib/unistdio/u16-u16-asnprintf.c: New file.
7860         * lib/unistdio/u16-u16-asprintf.c: New file.
7861         * lib/unistdio/u16-u16-snprintf.c: New file.
7862         * lib/unistdio/u16-u16-sprintf.c: New file.
7863         * lib/unistdio/u16-u16-vasnprintf.c: New file.
7864         * lib/unistdio/u16-u16-vasprintf.c: New file.
7865         * lib/unistdio/u16-u16-vsnprintf.c: New file.
7866         * lib/unistdio/u16-u16-vsprintf.c: New file.
7867         * lib/unistdio/u32-asnprintf.c: New file.
7868         * lib/unistdio/u32-asprintf.c: New file.
7869         * lib/unistdio/u32-printf-parse.c: New file.
7870         * lib/unistdio/u32-snprintf.c: New file.
7871         * lib/unistdio/u32-sprintf.c: New file.
7872         * lib/unistdio/u32-vasnprintf.c: New file.
7873         * lib/unistdio/u32-vasprintf.c: New file.
7874         * lib/unistdio/u32-vsnprintf.c: New file.
7875         * lib/unistdio/u32-vsprintf.c: New file.
7876         * lib/unistdio/u32-u32-asnprintf.c: New file.
7877         * lib/unistdio/u32-u32-asprintf.c: New file.
7878         * lib/unistdio/u32-u32-snprintf.c: New file.
7879         * lib/unistdio/u32-u32-sprintf.c: New file.
7880         * lib/unistdio/u32-u32-vasnprintf.c: New file.
7881         * lib/unistdio/u32-u32-vasprintf.c: New file.
7882         * lib/unistdio/u32-u32-vsnprintf.c: New file.
7883         * lib/unistdio/u32-u32-vsprintf.c: New file.
7884         * tests/unistdio/test-ulc-asnprintf1.c: New file.
7885         * tests/unistdio/test-ulc-asnprintf1.h: New file.
7886         * tests/unistdio/test-ulc-printf1.h: New file.
7887         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
7888         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
7889         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
7890         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
7891         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
7892         * tests/unistdio/test-ulc-vasprintf1.c: New file.
7893         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
7894         * tests/unistdio/test-ulc-vsprintf1.c: New file.
7895         * tests/unistdio/test-u8-asnprintf1.c: New file.
7896         * tests/unistdio/test-u8-asnprintf1.h: New file.
7897         * tests/unistdio/test-u8-printf1.h: New file.
7898         * tests/unistdio/test-u8-vasnprintf1.c: New file.
7899         * tests/unistdio/test-u8-vasnprintf2.c: New file.
7900         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
7901         * tests/unistdio/test-u8-vasnprintf3.c: New file.
7902         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
7903         * tests/unistdio/test-u8-vasprintf1.c: New file.
7904         * tests/unistdio/test-u8-vsnprintf1.c: New file.
7905         * tests/unistdio/test-u8-vsprintf1.c: New file.
7906         * tests/unistdio/test-u16-asnprintf1.c: New file.
7907         * tests/unistdio/test-u16-asnprintf1.h: New file.
7908         * tests/unistdio/test-u16-printf1.h: New file.
7909         * tests/unistdio/test-u16-vasnprintf1.c: New file.
7910         * tests/unistdio/test-u16-vasnprintf2.c: New file.
7911         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
7912         * tests/unistdio/test-u16-vasnprintf3.c: New file.
7913         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
7914         * tests/unistdio/test-u16-vasprintf1.c: New file.
7915         * tests/unistdio/test-u16-vsnprintf1.c: New file.
7916         * tests/unistdio/test-u16-vsprintf1.c: New file.
7917         * tests/unistdio/test-u32-asnprintf1.c: New file.
7918         * tests/unistdio/test-u32-asnprintf1.h: New file.
7919         * tests/unistdio/test-u32-printf1.h: New file.
7920         * tests/unistdio/test-u32-vasnprintf1.c: New file.
7921         * tests/unistdio/test-u32-vasnprintf2.c: New file.
7922         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
7923         * tests/unistdio/test-u32-vasnprintf3.c: New file.
7924         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
7925         * tests/unistdio/test-u32-vasprintf1.c: New file.
7926         * tests/unistdio/test-u32-vsnprintf1.c: New file.
7927         * tests/unistdio/test-u32-vsprintf1.c: New file.
7928         * modules/unistdio/base: New file.
7929         * modules/unistdio/u-printf-args: New file.
7930         * modules/unistdio/ulc-asnprintf: New file.
7931         * modules/unistdio/ulc-asprintf: New file.
7932         * modules/unistdio/ulc-fprintf: New file.
7933         * modules/unistdio/ulc-printf-parse: New file.
7934         * modules/unistdio/ulc-snprintf: New file.
7935         * modules/unistdio/ulc-sprintf: New file.
7936         * modules/unistdio/ulc-vasnprintf: New file.
7937         * modules/unistdio/ulc-vasprintf: New file.
7938         * modules/unistdio/ulc-vfprintf: New file.
7939         * modules/unistdio/ulc-vsnprintf: New file.
7940         * modules/unistdio/ulc-vsprintf: New file.
7941         * modules/unistdio/u8-asnprintf: New file.
7942         * modules/unistdio/u8-asprintf: New file.
7943         * modules/unistdio/u8-printf-parse: New file.
7944         * modules/unistdio/u8-snprintf: New file.
7945         * modules/unistdio/u8-sprintf: New file.
7946         * modules/unistdio/u8-vasnprintf: New file.
7947         * modules/unistdio/u8-vasprintf: New file.
7948         * modules/unistdio/u8-vsnprintf: New file.
7949         * modules/unistdio/u8-vsprintf: New file.
7950         * modules/unistdio/u8-u8-asnprintf: New file.
7951         * modules/unistdio/u8-u8-asprintf: New file.
7952         * modules/unistdio/u8-u8-snprintf: New file.
7953         * modules/unistdio/u8-u8-sprintf: New file.
7954         * modules/unistdio/u8-u8-vasnprintf: New file.
7955         * modules/unistdio/u8-u8-vasprintf: New file.
7956         * modules/unistdio/u8-u8-vsnprintf: New file.
7957         * modules/unistdio/u8-u8-vsprintf: New file.
7958         * modules/unistdio/u16-asnprintf: New file.
7959         * modules/unistdio/u16-asprintf: New file.
7960         * modules/unistdio/u16-printf-parse: New file.
7961         * modules/unistdio/u16-snprintf: New file.
7962         * modules/unistdio/u16-sprintf: New file.
7963         * modules/unistdio/u16-vasnprintf: New file.
7964         * modules/unistdio/u16-vasprintf: New file.
7965         * modules/unistdio/u16-vsnprintf: New file.
7966         * modules/unistdio/u16-vsprintf: New file.
7967         * modules/unistdio/u16-u16-asnprintf: New file.
7968         * modules/unistdio/u16-u16-asprintf: New file.
7969         * modules/unistdio/u16-u16-snprintf: New file.
7970         * modules/unistdio/u16-u16-sprintf: New file.
7971         * modules/unistdio/u16-u16-vasnprintf: New file.
7972         * modules/unistdio/u16-u16-vasprintf: New file.
7973         * modules/unistdio/u16-u16-vsnprintf: New file.
7974         * modules/unistdio/u16-u16-vsprintf: New file.
7975         * modules/unistdio/u32-asnprintf: New file.
7976         * modules/unistdio/u32-asprintf: New file.
7977         * modules/unistdio/u32-printf-parse: New file.
7978         * modules/unistdio/u32-snprintf: New file.
7979         * modules/unistdio/u32-sprintf: New file.
7980         * modules/unistdio/u32-vasnprintf: New file.
7981         * modules/unistdio/u32-vasprintf: New file.
7982         * modules/unistdio/u32-vsnprintf: New file.
7983         * modules/unistdio/u32-vsprintf: New file.
7984         * modules/unistdio/u32-u32-asnprintf: New file.
7985         * modules/unistdio/u32-u32-asprintf: New file.
7986         * modules/unistdio/u32-u32-snprintf: New file.
7987         * modules/unistdio/u32-u32-sprintf: New file.
7988         * modules/unistdio/u32-u32-vasnprintf: New file.
7989         * modules/unistdio/u32-u32-vasprintf: New file.
7990         * modules/unistdio/u32-u32-vsnprintf: New file.
7991         * modules/unistdio/u32-u32-vsprintf: New file.
7992         * modules/unistdio/ulc-asnprintf-tests: New file.
7993         * modules/unistdio/ulc-vasnprintf-tests: New file.
7994         * modules/unistdio/ulc-vasprintf-tests: New file.
7995         * modules/unistdio/ulc-vsnprintf-tests: New file.
7996         * modules/unistdio/ulc-vsprintf-tests: New file.
7997         * modules/unistdio/u8-asnprintf-tests: New file.
7998         * modules/unistdio/u8-vasnprintf-tests: New file.
7999         * modules/unistdio/u8-vasprintf-tests: New file.
8000         * modules/unistdio/u8-vsnprintf-tests: New file.
8001         * modules/unistdio/u8-vsprintf-tests: New file.
8002         * modules/unistdio/u16-asnprintf-tests: New file.
8003         * modules/unistdio/u16-vasnprintf-tests: New file.
8004         * modules/unistdio/u16-vasprintf-tests: New file.
8005         * modules/unistdio/u16-vsnprintf-tests: New file.
8006         * modules/unistdio/u16-vsprintf-tests: New file.
8007         * modules/unistdio/u32-asnprintf-tests: New file.
8008         * modules/unistdio/u32-vasnprintf-tests: New file.
8009         * modules/unistdio/u32-vasprintf-tests: New file.
8010         * modules/unistdio/u32-vsnprintf-tests: New file.
8011         * modules/unistdio/u32-vsprintf-tests: New file.
8012         * MODULES.html.sh (Unicode string functions): Add the new modules.
8013
8014 2007-07-01  Bruno Haible  <bruno@clisp.org>
8015
8016         * lib/sprintf.c (sprintf): Limit the available length estimation,
8017         to avoid address wraparound.
8018         * lib/vsprintf.c (vsprintf): Likewise.
8019         * modules/sprintf-posix (Dependencies): Add stdint.
8020         * modules/vsprintf-posix (Dependencies): Likewise.
8021
8022 2007-07-01  Bruno Haible  <bruno@clisp.org>
8023
8024         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
8025         Windows PATH as well. Conservative double-quoting. Comments.
8026
8027 2007-07-01  Bruno Haible  <bruno@clisp.org>
8028             Eric Blake  <ebb9@byu.net>
8029             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8030
8031         * gnulib-tool (self_abspathname): Fix algorithm to cope with
8032         empty components in $PATH, denoting '.'.
8033
8034 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8035
8036         * gnulib-tool: Fix indentation.
8037         (func_create_megatestdir): Likewise.
8038         Report by Bruno Haible.
8039
8040 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8041
8042         Sync from Automake.
8043         * build-aux/gnupload: Fix shell portability issues with for loops.
8044         Report by Karl Berry.
8045
8046 2007-06-29  Simon Josefsson  <simon@josefsson.org>
8047
8048         * build-aux/maint.mk (POURL): Use translationproject.org.
8049
8050 2007-06-27  Simon Josefsson  <simon@josefsson.org>
8051             Bruno Haible  <bruno@clisp.org>
8052
8053         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
8054         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
8055         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
8056         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
8057         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
8058
8059 2007-06-27  Bruno Haible  <bruno@clisp.org>
8060
8061         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
8062         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
8063
8064 2007-06-26  Karl Berry  <karl@gnu.org>
8065
8066         * MODULES.html.sh: remove xreadlink-with-size.
8067
8068 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
8069
8070         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
8071         method that I hope also handles the double-include problem noted
8072         by Bruno Haible in
8073         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
8074
8075 2007-06-23  Bruno Haible  <bruno@clisp.org>
8076
8077         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
8078         Don't let the 'mostlyclean' target fail if the last subdirectory could
8079         not be removed.
8080         Reported by Karl Berry.
8081
8082 2007-06-23  Bruno Haible  <bruno@clisp.org>
8083
8084         * gnulib-tool (echo): Add a speedier workaround for ksh.
8085         * tests/test-echo.sh: Likewise.
8086
8087 2007-06-23  Bruno Haible  <bruno@clisp.org>
8088
8089         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
8090         * tests/test-echo.sh: Likewise.
8091
8092 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8093
8094         * gnulib-tool (IFS): Initialize early, so we don't set it to
8095         empty later.
8096         (self_abspathname): Rewrite algorithm to set it, reindent.
8097         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
8098         (func_create_megatestdir): Merge some sed scripts.
8099
8100 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
8101
8102         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
8103         exposed by Sun Studio 11 cc on Solaris 8.
8104
8105 2007-06-22  Bruno Haible  <bruno@clisp.org>
8106
8107         * gnulib-tool (echo): Ensure the echo primitive does not interpret
8108         backslashes.
8109         * tests/test-echo.sh: New file.
8110
8111 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8112
8113         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
8114         simplify `sed_replace_build_aux' scripts, they are portable but
8115         echoing them with `echo' is not.
8116         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
8117
8118 2007-06-21  Karl Berry  <karl@gnu.org>
8119
8120         * config/srclist.txt: guess we can't handle the licenses via
8121         srclist at the moment.
8122
8123 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
8124
8125         * MODULES.html.sh: Add include_next.
8126         * modules/include_next: New file.
8127
8128 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
8129
8130         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
8131         INCLUDE_NEXT.
8132         (gl_CHECK_NEXT_HEADERS): New macro.
8133         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
8134         the obsolescent gl_ABSOLUTE_HEADER.
8135         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
8136         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
8137         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
8138         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
8139         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
8140         * m4/math_h.m4 (gl_MATH_H): Likewise.
8141         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
8142         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
8143         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
8144         * m4/stdint.m4 (gl_STDINT_H): Likewise.
8145         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
8146         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
8147         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
8148         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
8149         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
8150         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
8151         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
8152         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
8153         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
8154         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
8155         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
8156         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
8157         * m4/inttypes.m4 (gl_INTTYPES_H): Define
8158         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
8159         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
8160         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
8161         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
8162         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
8163         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
8164         * lib/float_.h: Likewise.
8165         * lib/inttypes_.h: Likewise.
8166         * lib/math_.h: Likewise.
8167         * lib/search_.h: Likewise.
8168         * lib/signal_.h: Likewise.
8169         * lib/stdint_.h: Likewise.
8170         * lib/stdio_.h: Likewise.
8171         * lib/stdlib_.h: Likewise.
8172         * lib/string_.h: Likewise.
8173         * lib/sys_stat_.h: Likewise.
8174         * lib/sys_time_.h: Likewise.
8175         * lib/time_.h: Likewise.
8176         * lib/unistd_.h: Likewise.
8177         * lib/wchar_.h: Likewise.
8178         * lib/wctype_.h: Likewise.
8179         * lib/dirent_.h: Likewise.
8180         * lib/iconv_.h: Likewise.
8181         * lib/locale_.h: Likewise.
8182         * lib/netinet_in_.h: Likewise.
8183         * lib/sys_select_.h: Likewise.
8184         * lib/sys_socket_.h: Likewise.
8185         * lib/sysexits_.h: Likewise.
8186         * modules/fcntl (Depends-on): Depend on include_next, not
8187         absolute_header.
8188         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
8189         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
8190         * modules/fchdir: Likewise.
8191         * modules/float: Likewise.
8192         * modules/iconv_open: Likewise.
8193         * modules/inttypes: Likewise.
8194         * modules/locale: Likewise.
8195         * modules/math: Likewise.
8196         * modules/netinet_in: Likewise.
8197         * modules/search: Likewise.
8198         * modules/signal: Likewise.
8199         * modules/stdint: Likewise.
8200         * modules/stdio: Likewise.
8201         * modules/stdlib: Likewise.
8202         * modules/string: Likewise.
8203         * modules/sys_select: Likewise.
8204         * modules/sys_socket: Likewise.
8205         * modules/sys_stat: Likewise.
8206         * modules/sys_time: Likewise.
8207         * modules/sysexits: Likewise.
8208         * modules/time: Likewise.
8209         * modules/unistd: Likewise.
8210         * modules/wchar: Likewise.
8211         * modules/wctype: Likewise.
8212         * modules/sys_stat: Change maintainer to "all".
8213         * modules/unistd: Likewise.
8214
8215 2007-06-20  Karl Berry  <karl@gnu.org>
8216
8217         * config/srclist.txt: track www changes in license files.
8218
8219 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
8220
8221         * build-aux/bootstrap: Remove stray dot.
8222         Make sure build_aux settings are honored when linking
8223         gnulib_extra_files.
8224
8225 2007-06-19  Eric Blake  <ebb9@byu.net>
8226
8227         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
8228         Allow compilation on cygwin.
8229
8230 2007-06-19  Jim Meyering  <jim@meyering.net>
8231
8232         xreadlink-with-size: Remove module.  No longer used.
8233         Ex-callers now use xreadlink or mreadlink-with-size.
8234         * modules/xreadlink-with-size: Remove module.
8235         * lib/xreadlink-with-size.c: Remove file.
8236         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
8237         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
8238         just before the function definition *is* accurate.
8239
8240         Eliminate one way canonicalize_filename_mode could exit.
8241         * lib/canonicalize.c (canonicalize_filename_mode):
8242         Use mreadlink_with_size, not xreadlink_with_size.
8243
8244 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
8245
8246         Detect porting problems to FreeBSD/arm, which has time_t wider than
8247         long int.  Original problem reported for GNU diff by Xin Li in
8248         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
8249         * modules/getdate (Depends-on): Add intprops, verify.
8250         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
8251         is an integer type no wider than long int.
8252
8253 2007-06-18  Jim Meyering  <jim@meyering.net>
8254
8255         New module: mreadlink-with-size.
8256         * MODULES.html.sh: Add mreadlink-with-size.
8257         * modules/mreadlink-with-size: New module
8258         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
8259         not xreadlink-with-size.
8260         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
8261
8262 2007-06-16  Bruno Haible  <bruno@clisp.org>
8263
8264         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
8265         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
8266         Reported by Gary V. Vaughan <gary@gnu.org>.
8267
8268 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
8269
8270         Revamp lchown so that it lives in unistd.h where it belongs.
8271         * lib/lchown.h: Remove.
8272         * lib/dirchownmod.c: Don't include lib/lchown.h.
8273         * lib/fchownat.c: Likewise.
8274         * lib/openat.c: Likewise.
8275         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
8276         does not follow symlinks.
8277         (EOPNOTSUPP): Define if not defined.
8278         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
8279         is defined to 0.
8280         (lchown): New decl.
8281         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
8282         Do not check for lchown decl.
8283         Set REPLACE_LCHOWN.
8284         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
8285         REPLACE_LCHOWN.
8286         * modules/chown: Make it clear it follows symlinks.
8287         * modules/lchown: Make it clear it doesn't follow symlinks.
8288         (Files): Remove lib/lchown.h
8289         (Depends-on): Add unistd.
8290         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
8291         (Include): Include <unistd.h>, not "lchown.h".
8292         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
8293         REPLACE_LCHOWN.
8294
8295 2007-06-15  Jim Meyering  <jim@meyering.net>
8296
8297         Change license (GPL to LGPL) of fsusage and dependents.
8298         * modules/fsusage (License): Change to LGPL.
8299         * modules/full-read (License): Likewise.
8300         * modules/full-write (License): Likewise.
8301         * modules/safe-read (License): Likewise.
8302         * modules/safe-write (License): Likewise.
8303
8304 2007-06-14  Ben Pfaff  <blp@gnu.org>
8305
8306         Missing part of allocsa -> malloca transition.
8307         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
8308         gl_MALLOCA.
8309
8310 2007-06-12  Bruno Haible  <bruno@clisp.org>
8311
8312         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
8313         to ia64, x86_64, i386.
8314         Reported by Eric Blake.
8315
8316 2007-06-12  Bruno Haible  <bruno@clisp.org>
8317
8318         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
8319         cross-compiling to x86_64.
8320
8321 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
8322
8323         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
8324         glitch reported by Ralf Wildenhues in
8325         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
8326
8327         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
8328         Vin Shelton.
8329
8330 2007-06-11  Bruno Haible  <bruno@clisp.org>
8331
8332         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
8333         replacement string.
8334         Reported by Eric Blake.
8335
8336 2007-06-10  Bruno Haible  <bruno@clisp.org>
8337
8338         Prepare vasnprintf code for use with Unicode strings.
8339         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
8340         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
8341         TYPE_U32_STRING.
8342         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
8343         a_u32_string variants.
8344         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
8345         * lib/printf-args.c: Don't include config.h and the specification
8346         header if PRINTF_FETCHARGS is already defined.
8347         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
8348         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
8349         TYPE_U16_STRING, TYPE_U32_STRING.
8350         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
8351         u16_directive, u16_directives, u32_directive, u32_directives): New
8352         types.
8353         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
8354         New declarations.
8355         * lib/printf-parse.c: Don't include config.h and the specification
8356         header if PRINTF_PARSE is already defined. Eliminate the set of
8357         parameters for WIDE_CHAR_VERSION; the user of this file must provide
8358         them now. Include c-ctype.h.
8359         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
8360         directive and CHAR_T_ONLY_ASCII.
8361         * lib/vasnprintf.c: Don't include config.h and the specification header
8362         if VASNPRINTF is already defined.
8363         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
8364         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
8365         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
8366         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
8367         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
8368         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
8369         code accordingly.
8370         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
8371         pad_ourselves also in this case, with the 'c' and 's' directives, and
8372         with a different notion of "width".
8373         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
8374
8375 2007-06-10  Bruno Haible  <bruno@clisp.org>
8376
8377         * modules/unistr/u32-mbsnlen: New file.
8378         * lib/unistr/u32-mbsnlen.c: New file.
8379
8380         * modules/unistr/u16-mbsnlen: New file.
8381         * lib/unistr/u16-mbsnlen.c: New file.
8382
8383         * modules/unistr/u8-mbsnlen: New file.
8384         * lib/unistr/u8-mbsnlen.c: New file.
8385
8386         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
8387         declarations.
8388
8389 2007-06-10  Bruno Haible  <bruno@clisp.org>
8390
8391         * lib/string_.h (mbsnlen): New declaration.
8392         * lib/mbsnlen.c: New file.
8393         * m4/mbsnlen.m4: New file.
8394         * modules/mbsnlen: New file.
8395         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
8396         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
8397         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
8398
8399 2007-06-10  Bruno Haible  <bruno@clisp.org>
8400
8401         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
8402
8403 2007-06-10  Bruno Haible  <bruno@clisp.org>
8404
8405         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
8406         * lib/mbuiter.h: Likewise.
8407
8408 2007-06-10  Bruno Haible  <bruno@clisp.org>
8409
8410         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
8411         declaration.
8412
8413 2007-06-10  Karl Berry  <karl@gnu.org>
8414
8415         * config/srclist.txt: remove gettext entries, Bruno prefers
8416         to update individually.
8417
8418 2007-06-10  Bruno Haible  <bruno@clisp.org>
8419
8420         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
8421         'maxlen'. Ensure only length + width bytes are allocated, not
8422         length + 1 + width.
8423
8424 2007-06-09  Bruno Haible  <bruno@clisp.org>
8425
8426         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
8427         (CHAR_T): Remove macro.
8428         (VASNPRINTF): Update.
8429
8430 2007-06-09  Bruno Haible  <bruno@clisp.org>
8431
8432         * MODULES.html.sh (Unicode string functions): Add the new modules.
8433
8434         * modules/uniconv/u32-conv-to-enc: New file.
8435         * lib/uniconv/u32-conv-to-enc.c: New file.
8436         * modules/uniconv/u32-conv-to-enc-tests: New file.
8437         * tests/uniconv/test-u32-conv-to-enc.c: New file.
8438
8439         * modules/uniconv/u16-conv-to-enc: New file.
8440         * lib/uniconv/u16-conv-to-enc.c: New file.
8441         * lib/uniconv/u-conv-to-enc.h: New file.
8442         * modules/uniconv/u16-conv-to-enc-tests: New file.
8443         * tests/uniconv/test-u16-conv-to-enc.c: New file.
8444
8445         * modules/uniconv/u8-conv-to-enc: New file.
8446         * lib/uniconv/u8-conv-to-enc.c: New file.
8447         * modules/uniconv/u8-conv-to-enc-tests: New file.
8448         * tests/uniconv/test-u8-conv-to-enc.c: New file.
8449
8450         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
8451         u32_conv_to_encoding): New declarations.
8452
8453 2007-06-09  Bruno Haible  <bruno@clisp.org>
8454
8455         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
8456
8457 2007-06-09  Bruno Haible  <bruno@clisp.org>
8458
8459         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
8460         * modules/malloca: Renamed from modules/allocsa, updated.
8461         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
8462         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
8463         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
8464         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
8465         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
8466         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
8467         * modules/xmalloca: Renamed from modules/xallocsa, updated.
8468         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
8469         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
8470         * modules/c-strcasestr (Depends-on): Update.
8471         * lib/c-strcasestr.c: Update.
8472         * modules/c-strstr (Depends-on): Update.
8473         * lib/c-strstr.c: Update.
8474         * modules/canonicalize-lgpl (Depends-on): Update.
8475         * lib/canonicalize-lgpl.c: Update.
8476         * modules/clean-temp (Depends-on): Update.
8477         * lib/clean-temp.c: Update.
8478         * modules/csharpcomp (Depends-on): Update.
8479         * lib/csharpcomp.c: Update.
8480         * modules/csharpexec (Depends-on): Update.
8481         * lib/csharpexec.c: Update.
8482         * modules/javacomp (Depends-on): Update.
8483         * lib/javacomp.c: Update.
8484         * modules/javaexec (Depends-on): Update.
8485         * lib/javaexec.c: Update.
8486         * modules/mbscasestr (Depends-on): Update.
8487         * lib/mbscasestr.c: Update.
8488         * modules/mbsstr (Depends-on): Update.
8489         * lib/mbsstr.c: Update.
8490         * modules/setenv (Depends-on): Update.
8491         * lib/setenv.c: Update.
8492         * modules/strcasestr (Depends-on): Update.
8493         * lib/strcasestr.c: Update.
8494         * modules/striconveha (Depends-on): Update.
8495         * lib/striconveha.c: Update.
8496         * modules/relocatable-prog-wrapper (Files): Update.
8497         * lib/relocwrapper.c: Update.
8498         * build-aux/install-reloc: Update.
8499         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
8500
8501 2007-06-08  Bruno Haible  <bruno@clisp.org>
8502
8503         Port to uClibc.
8504         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
8505         * lib/fpurge.c (fpurge): Likewise.
8506         * lib/freading.c (freading): Likewise.
8507         * lib/fseeko.c (rpl_fseeko): Likewise.
8508         * lib/fseterr.c (fseterr): Likewise.
8509         * lib/fwriting.c (fwriting): Likewise.
8510         * tests/test-fflush.c (main): Avoid a failure on uClibc.
8511
8512 2007-06-08  Bruno Haible  <bruno@clisp.org>
8513
8514         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
8515         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
8516         * modules/gettext (Files): Add m4/intlmacosx.m4.
8517
8518 2007-06-07  Bruno Haible  <bruno@clisp.org>
8519
8520         * modules/localename-tests: New file.
8521         * tests/test-localename.c: New file.
8522
8523         New module 'localename'.
8524         * lib/localename.h: New file.
8525         * lib/localename.c: New file, from GNU gettext.
8526         * m4/localename.m4: New file.
8527         * modules/localename: New file.
8528
8529 2007-06-07  Bruno Haible  <bruno@clisp.org>
8530
8531         Work around the lack of <wchar.h> on some builds of uClibc.
8532         * doc/headers/wchar.texi: Update.
8533         * lib/wchar_.h: Include <wchar.h> only if it exists.
8534         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
8535         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
8536         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
8537         doesn't exist.
8538         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
8539         * modules/mbfile (Depends-on): Add wchar.
8540         * modules/mbiter (Depends-on): Likewise.
8541         * modules/mbuiter (Depends-on): Likewise.
8542         Reported by Simon Josefsson.
8543
8544 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
8545
8546         Work around problem reported by Steven M. Schweda in
8547         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
8548         Tru64 5.1B with the Compaq compiler environment installed declares
8549         an 'isblank' function but does not define it in the C library.
8550         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
8551         * lib/regex_internal.h (isblank): Likewise.
8552         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
8553         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
8554
8555 2007-06-05  Bruno Haible  <bruno@clisp.org>
8556
8557         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
8558         ia64.
8559         * modules/printf-safe: New file.
8560         * modules/fprintf-posix (Depends-on): Add printf-safe.
8561         * modules/printf-posix (Depends-on): Likewise.
8562         * modules/snprintf-posix (Depends-on): Likewise.
8563         * modules/sprintf-posix (Depends-on): Likewise.
8564         * modules/vasnprintf-posix (Depends-on): Likewise.
8565         * modules/vasprintf-posix (Depends-on): Likewise.
8566         * modules/vfprintf-posix (Depends-on): Likewise.
8567         * modules/vprintf-posix (Depends-on): Likewise.
8568         * modules/vsnprintf-posix (Depends-on): Likewise.
8569         * modules/vsprintf-posix (Depends-on): Likewise.
8570         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
8571         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
8572         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
8573         "no" on i386, x86_64, ia64.
8574         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
8575         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
8576         on i386, x86_64, ia64.
8577         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
8578         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
8579         on i386, x86_64, ia64.
8580         * tests/test-vasnprintf-posix.c: Include float.h.
8581         (LDBL80_WORDS): New macro.
8582         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
8583         on i386, x86_64, ia64.
8584         * tests/test-vasprintf-posix.c: Include float.h.
8585         (LDBL80_WORDS): New macro.
8586         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
8587         on i386, x86_64, ia64.
8588         * tests/test-snprintf-posix.c: Include float.h.
8589         * tests/test-sprintf-posix.c: Likewise.
8590         * tests/test-vsnprintf-posix.c: Likewise.
8591         * tests/test-vsprintf-posix.c: Likewise.
8592
8593 2007-06-05  Bruno Haible  <bruno@clisp.org>
8594
8595         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
8596         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
8597         non-IEEE numbers on i386, x86_64, ia64.
8598         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
8599         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
8600         * tests/test-isnanl.h: Include float.h.
8601         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
8602
8603 2007-06-05  Bruno Haible  <bruno@clisp.org>
8604
8605         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
8606         also the %a / %A. Handle the %a / %A code before this extra handling.
8607
8608 2007-06-05  Bruno Haible  <bruno@clisp.org>
8609
8610         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
8611         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
8612
8613 2007-06-05  Bruno Haible  <bruno@clisp.org>
8614
8615         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
8616         typo in variable name.
8617
8618 2007-06-05  Eric Blake  <ebb9@byu.net>
8619
8620         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
8621         Reported by Simon Josefsson.
8622
8623 2007-06-04  Bruno Haible  <bruno@clisp.org>
8624
8625         Avoid test failures on some PowerPC platforms.
8626         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
8627         Define differently for PowerPC.
8628         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
8629         Reported by Gary V. Vaughan <gary@gnu.org>.
8630
8631 2007-06-02  Bruno Haible  <bruno@clisp.org>
8632
8633         Fix test-stdint failure on FreeBSD/ia64.
8634         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
8635         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
8636         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
8637         * doc/headers/stdint.texi: Update.
8638
8639 2007-06-01  Bruno Haible  <bruno@clisp.org>
8640
8641         * tests/test-binary-io.c (main): Pass a third argument to open().
8642         Reported by Gary V. Vaughan <gary@gnu.org>.
8643
8644 2007-06-01  Bruno Haible  <bruno@clisp.org>
8645
8646         * doc/functions/frexpl.texi: Update for mingw.
8647
8648 2007-06-01  Bruno Haible  <bruno@clisp.org>
8649
8650         * tests/test-lseek.c (main): Disable test of errno for invalid third
8651         argument.
8652         * doc/functions/lseek.texi: Update.
8653         Reported by Gary V. Vaughan <gary@gnu.org>.
8654
8655 2007-05-28  Bruno Haible  <bruno@clisp.org>
8656
8657         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
8658
8659 2007-05-31  Eric Blake  <ebb9@byu.net>
8660
8661         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
8662         cross compiling.
8663
8664 2007-05-30  Eric Blake  <ebb9@byu.net>
8665         and Bruno Haible  <bruno@clisp.org>
8666
8667         Work around mingw test failures exposed by m4-1.4.9b.
8668         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
8669         * tests/test-unistd.c: Disable uid_t and git_t tests for the
8670         moment.
8671
8672 2007-05-30  Bruno Haible  <bruno@clisp.org>
8673
8674         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
8675         assuming that they are closed. Needed on HP-UX 11.
8676
8677 2007-05-29  Bruno Haible  <bruno@clisp.org>
8678
8679         Fix a problem with #include_next.
8680         * lib/dirent_.h: Split the double-inclusion guard.
8681         * lib/fcntl_.h: Likewise.
8682         * lib/float_.h: Likewise.
8683         * lib/iconv_.h: Likewise.
8684         * lib/inttypes_.h: Likewise.
8685         * lib/locale_.h: Likewise.
8686         * lib/math_.h: Likewise.
8687         * lib/netinet_in_.h: Likewise.
8688         * lib/search_.h: Likewise.
8689         * lib/signal_.h: Likewise.
8690         * lib/stdint_.h: Likewise.
8691         * lib/stdio_.h: Likewise.
8692         * lib/stdlib_.h: Likewise.
8693         * lib/string_.h: Likewise.
8694         * lib/sys_select_.h: Likewise.
8695         * lib/sys_socket_.h: Likewise.
8696         * lib/sys_stat_.h: Likewise.
8697         * lib/sys_time_.h: Likewise.
8698         * lib/sysexits_.h: Likewise.
8699         * lib/time_.h: Likewise.
8700         * lib/unistd_.h: Likewise.
8701         * lib/wchar_.h: Likewise.
8702         * lib/wctype_.h: Likewise.
8703
8704 2007-05-29  Bruno Haible  <bruno@clisp.org>
8705
8706         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
8707         for the moment.
8708
8709 2007-05-29  Bruno Haible  <bruno@clisp.org>
8710
8711         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
8712         invocation.
8713         Reported by Eric Blake.
8714
8715 2007-05-29  Bruno Haible  <bruno@clisp.org>
8716
8717         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
8718         compiling case.
8719
8720 2007-05-29  Eric Blake  <ebb9@byu.net>
8721             Bruno Haible  <bruno@clisp.org>
8722
8723         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
8724         cross compiles.
8725
8726 2007-05-28  Eric Blake  <ebb9@byu.net>
8727
8728         * modules/closein-tests (test_closein_LDADD): Support test on
8729         cygwin with libtool.
8730
8731 2007-05-28  Bruno Haible  <bruno@clisp.org>
8732
8733         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
8734         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
8735         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
8736         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
8737         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
8738         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
8739         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
8740         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
8741         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
8742
8743 2007-05-28  Eric Blake  <ebb9@byu.net>
8744
8745         Unconditionally include <config.h> in unit tests.
8746         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
8747         * tests/test-allocsa.c, tests/test-arcfour.c,
8748         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
8749         tests/test-array_list.c, tests/test-array_oset.c,
8750         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
8751         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
8752         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
8753         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
8754         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
8755         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
8756         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
8757         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
8758         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
8759         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
8760         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
8761         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
8762         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
8763         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
8764         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
8765         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
8766         test-md5.c, test-memmem.c, test-printf-posix.c,
8767         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
8768         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
8769         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
8770         test-strcasestr.c, test-striconv.c, test-striconveh.c,
8771         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
8772         test-vasnprintf-posix2.c, test-vasnprintf.c,
8773         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
8774         test-vfprintf-posix.c, test-vprintf-posix.c,
8775         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
8776         test-xvasprintf.c: Likewise.
8777
8778 2007-05-28  Bruno Haible  <bruno@clisp.org>
8779
8780         * gnulib-tool (func_import): Remember the --with-tests command-line
8781         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
8782         Reported by Eric Blake.
8783
8784 2007-05-28  Bruno Haible  <bruno@clisp.org>
8785
8786         * modules/ftell-tests: New file.
8787         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
8788         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
8789
8790         * lib/ftell.c: New file.
8791         * modules/ftell: New file.
8792         * m4/ftell.m4: New file.
8793         * doc/functions/ftell.texi: Update.
8794         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
8795         REPLACE_FTELL.
8796         * lib/stdio_.h (rpl_ftell): New declaration.
8797         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
8798         REPLACE_FTELL.
8799
8800 2007-05-28  Eric Blake  <ebb9@byu.net>
8801
8802         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
8803
8804 2007-05-28  Bruno Haible  <bruno@clisp.org>
8805
8806         * modules/fseek-tests: New file.
8807         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
8808         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
8809
8810         * lib/fseek.c: New file.
8811         * modules/fseek: New file.
8812         * m4/fseek.m4: New file.
8813         * doc/functions/fseek.texi: Update.
8814         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
8815         REPLACE_FSEEK.
8816         * lib/stdio_.h (rpl_fseek): New declaration.
8817         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
8818         REPLACE_FSEEK.
8819
8820 2007-05-28  Bruno Haible  <bruno@clisp.org>
8821
8822         * lib/stdio_.h (fflush): More comments.
8823
8824 2007-05-28  Bruno Haible  <bruno@clisp.org>
8825
8826         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
8827         runtime test.
8828
8829 2007-05-28  Eric Blake  <ebb9@byu.net>
8830
8831         Improve lseek module.
8832         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
8833         * lib/unistd_.h (lseek): Scale back link warning message.
8834         * tests/test-lseek.c: Beef up test.
8835         * tests/test-lseek.sh: Exercise more facets of lseek.
8836         Reported by Bruno Haible.
8837
8838 2007-05-28  Bruno Haible  <bruno@clisp.org>
8839
8840         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
8841         to define.
8842
8843 2007-05-27  Bruno Haible  <bruno@clisp.org>
8844
8845         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
8846
8847 2007-05-27  Bruno Haible  <bruno@clisp.org>
8848
8849         * modules/openmp: New file.
8850         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
8851         Noah Misch.
8852
8853 2007-05-26  Bruno Haible  <bruno@clisp.org>
8854
8855         * modules/chdir-long (Depends-on): Add fchdir.
8856         * modules/chdir-safer (Depends-on): Likewise.
8857         * modules/fts (Depends-on): Likewise.
8858         * modules/fts-lgpl (Depends-on): Likewise.
8859         * modules/openat (Depends-on): Likewise.
8860         * modules/savewd (Depends-on): Likewise.
8861
8862 2007-05-24  Eric Blake  <ebb9@byu.net>
8863
8864         Fix lseek on mingw.
8865         * modules/lseek: New module.
8866         * m4/lseek.m4: New file.
8867         * lib/lseek.c: New file.
8868         * modules/lseek-tests: New file.
8869         * tests/test-lseek.c: New file.
8870         * tests/test-lseek.sh: New file.
8871         * MODULES.html.sh: Document lseek module.
8872         * modules/fflush (Depends-on): Add lseek, fseeko.
8873         * modules/fseeko (Depends-on): Likewise.
8874         * modules/ftello (Depends-on): Likewise.
8875         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
8876         broken.
8877         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
8878         broken.
8879         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
8880         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
8881         * lib/ftello.c (rpl_ftello): Likewise.
8882         * tests/test-fseeko.c (main): Test this.
8883         * tests/test-fseeko.sh: Likewise.
8884         * tests/test-ftello.c (main): Likewise.
8885         * tests/test-ftello.sh: Likewise.
8886         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
8887         implies replacing fseek.
8888         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
8889         HAVE_FTELLO.
8890         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
8891         * modules/unistd (Makefile.am): Likewise.
8892         * lib/unistd_.h (lseek): Declare a replacement.
8893         * doc/functions/lseek.texi (lseek): Document this fix.
8894         * doc/functions/fseek.texi (fseek): Likewise.
8895         * doc/functions/ftell.texi (ftell): Likewise.
8896
8897 2007-05-24  Bruno Haible  <bruno@clisp.org>
8898
8899         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
8900         in the printed representation of a NaN.
8901         * tests/test-vasprintf-posix.c (test_function): Likewise.
8902         * tests/test-snprintf-posix.h (test_function): Likewise.
8903         * tests/test-sprintf-posix.h (test_function): Likewise.
8904         Reported by Eric Blake.
8905
8906 2007-05-23  Eric Blake  <ebb9@byu.net>
8907
8908         Fix fseeko/ftello on cygwin 1.5.24.
8909         * doc/functions/fseeko.texi (fseeko): Document the fix.
8910         * doc/functions/ftello.texi (ftello): Document the fix.
8911         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
8912         * doc/functions/stdout.text (stdout): New file.
8913         * doc/functions/stderr.text (stderr): New file.
8914         * doc/gnulib.texi (Function Substitutes): Use new files.
8915         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
8916         prior to 1.7.0.
8917         * tests/test-ftello.c (main): Likewise for ftello.
8918         * tests/test-fseeko.sh: New file.
8919         * tests/test-ftello.sh: New file.
8920         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
8921         with seekable stdin.
8922         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
8923         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
8924         (gl_REPLACE_FSEEKO): New macro.
8925         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
8926         * modules/fseeko (Files): Distribute fseeko.c.
8927         * modules/ftello (Files): Distribute ftello.c.
8928         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
8929         mode.
8930         * lib/ftello.c (rpl_ftello): New file.
8931         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
8932         fseeko, ftello.
8933         (gl_STDIN_LARGE_OFFSET): New macro.
8934         * modules/stdio (Makefile.am): Perform the replacement.
8935         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
8936
8937 2007-05-23  Bruno Haible  <bruno@clisp.org>
8938
8939         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
8940         GNULIB_POSIXCHECK is defined.
8941
8942 2007-05-21  Bruno Haible  <bruno@clisp.org>
8943
8944         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
8945         Check also the output for NaN arguments. When cross-compiling, guess
8946         no on IRIX.
8947         * lib/vasnprintf.c: Update comments.
8948         * tests/test-vasnprintf-posix.c (strisnan): New function.
8949         (test_function): Use it.
8950         * tests/test-vasprintf-posix.c (strisnan): New function.
8951         (test_function): Use it.
8952         * tests/test-snprintf-posix.h (strisnan): New function.
8953         (test_function): Use it.
8954         * tests/test-sprintf-posix.h (strisnan): New function.
8955         (test_function): Use it.
8956         Reported by Eric Blake.
8957
8958 2007-05-20  Bruno Haible  <bruno@clisp.org>
8959
8960         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
8961         numbers that fails on BeOS.
8962         * doc/functions/frexpl.texi: Update.
8963
8964 2007-05-20  Jim Meyering  <jim@meyering.net>
8965
8966         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
8967         forced upon us by glibc-2.6.
8968
8969 2007-05-20  Bruno Haible  <bruno@clisp.org>
8970
8971         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
8972         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
8973         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
8974         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
8975         NEED_PRINTF_INFINITE.
8976         (is_infinitel): New function.
8977         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
8978         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
8979         gl_PREREQ_VASNPRINTF_INFINITE.
8980         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
8981         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
8982         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
8983         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
8984         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
8985         gl_PREREQ_VASNPRINTF_INFINITE.
8986         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
8987         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
8988         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
8989         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
8990         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
8991         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
8992         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
8993         * doc/functions/fprintf.texi: Update.
8994         * doc/functions/printf.texi: Update.
8995         * doc/functions/snprintf.texi: Update.
8996         * doc/functions/sprintf.texi: Update.
8997         * doc/functions/vfprintf.texi: Update.
8998         * doc/functions/vprintf.texi: Update.
8999         * doc/functions/vsnprintf.texi: Update.
9000         * doc/functions/vsprintf.texi: Update.
9001
9002 2007-05-20  Bruno Haible  <bruno@clisp.org>
9003
9004         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
9005         was not found in libc.
9006         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
9007
9008 2007-05-20  Bruno Haible  <bruno@clisp.org>
9009
9010         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
9011         printed as "-nan" instead of "nan".
9012         * tests/test-vasprintf-posix.c (test_function): Likewise.
9013         * tests/test-snprintf-posix.h (test_function): Likewise.
9014         * tests/test-sprintf-posix.h (test_function): Likewise.
9015         Needed for HP-UX 11.
9016
9017 2007-05-20  Jim Meyering  <jim@meyering.net>
9018
9019         Fix buggy test for the fchownat-deref bug.
9020         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
9021         symlink required for the run-test.  Without it, this test would
9022         always declare that fchownat doesn't work, and client code would
9023         unnecessarily use the replacement function with fixed libc.
9024         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
9025         Reported by Greg Schafer.
9026
9027 2007-05-19  Bruno Haible  <bruno@clisp.org>
9028
9029         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
9030         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
9031         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
9032         Needed for IRIX 6.5 and Solaris 2.5.1.
9033
9034 2007-05-19  Bruno Haible  <bruno@clisp.org>
9035
9036         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
9037         (test_function): Skip tests involving -0.0 on platforms where
9038         -0.0 = 0.0.
9039         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
9040         (test_function): Skip tests involving -0.0 on platforms where
9041         -0.0 = 0.0.
9042         * tests/test-snprintf-posix.h (have_minus_zero): New function.
9043         (test_function): Skip tests involving -0.0 on platforms where
9044         -0.0 = 0.0.
9045         * tests/test-sprintf-posix.h (have_minus_zero): New function.
9046         (test_function): Skip tests involving -0.0 on platforms where
9047         -0.0 = 0.0.
9048         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
9049         tests.
9050         * tests/test-printf-posix.h (test_function): Likewise.
9051         * tests/test-printf-posix.output: Remove all -0.0 related results.
9052         Needed for IRIX 6.5.
9053
9054 2007-05-19  Bruno Haible  <bruno@clisp.org>
9055
9056         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
9057         printed as "nan0x7fffffff" instead of "nan".
9058         * tests/test-vasprintf-posix.c (test_function): Likewise.
9059         * tests/test-snprintf-posix.h (test_function): Likewise.
9060         * tests/test-sprintf-posix.h (test_function): Likewise.
9061         * tests/test-fprintf-posix.h (NaN): Remove macro.
9062         (test_function): Remove all NaN related tests.
9063         * tests/test-printf-posix.h (NaN): Remove macro.
9064         (test_function): Remove all NaN related tests.
9065         * tests/test-printf-posix.output: Remove all NaN related results.
9066         Needed for IRIX 6.5.
9067
9068 2007-05-19  Bruno Haible  <bruno@clisp.org>
9069
9070         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
9071         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
9072
9073 2007-05-19  Bruno Haible  <bruno@clisp.org>
9074
9075         * lib/float_.h: New file.
9076         * m4/float_h.m4: New file.
9077         * modules/float: New file.
9078         * modules/isnanl (Dependencies): Add float.
9079         * modules/isnanl-nolibm (Dependencies): Likewise.
9080         * modules/mathl (Dependencies): Likewise.
9081         * modules/printf-frexpl (Dependencies): Likewise.
9082         * modules/signbit (Dependencies): Likewise.
9083         * modules/vasnprintf (Dependencies): Likewise.
9084         * doc/headers/float.texi: Update.
9085
9086 2007-05-19  Jim Meyering  <jim@meyering.net>
9087
9088         * lib/utimens.c (gl_futimens): Rename from futimens,
9089         now that glibc-2.6 declares futimens.
9090         * lib/utimens.h: Likewise.
9091
9092 2007-05-19  Bruno Haible  <bruno@clisp.org>
9093
9094         Avoid test failures on mingw.
9095         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
9096         * tests/test-printf-posix.sh: Likewise.
9097         * tests/test-vfprintf-posix.sh: Likewise.
9098         * tests/test-vprintf-posix.sh: Likewise.
9099
9100 2007-05-19  Bruno Haible  <bruno@clisp.org>
9101
9102         Fix *printf result for NaN, Inf, -0.0 on mingw.
9103         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
9104         * lib/vasnprintf.c: Include math.h and isnan.h.
9105         (is_infinite_or_zero): New function.
9106         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
9107         values in the %f, %F, %e, %E, %g, %G directives.
9108         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
9109         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
9110         gl_PRINTF_INFINITE and test its result. Invoke
9111         gl_PREREQ_VASNPRINTF_INFINITE.
9112         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
9113         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
9114         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
9115         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
9116         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
9117         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
9118         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
9119         * doc/functions/fprintf.texi: Update.
9120         * doc/functions/printf.texi: Update.
9121         * doc/functions/snprintf.texi: Update.
9122         * doc/functions/sprintf.texi: Update.
9123         * doc/functions/vfprintf.texi: Update.
9124         * doc/functions/vprintf.texi: Update.
9125         * doc/functions/vsnprintf.texi: Update.
9126         * doc/functions/vsprintf.texi: Update.
9127
9128 2007-05-19  Bruno Haible  <bruno@clisp.org>
9129
9130         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
9131         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
9132         Instead of multiplying with 10^k, set extra_zeroes to k.
9133         (scale10_round_long_double): Remove function.
9134
9135 2007-05-18  Bruno Haible  <bruno@clisp.org>
9136
9137         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
9138         introduced on 2007-05-06.
9139
9140 2007-05-18  Bruno Haible  <bruno@clisp.org>
9141
9142         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
9143         %g directives.
9144         * tests/test-vasprintf-posix.c (test_function): Likewise.
9145         * tests/test-snprintf-posix.h (test_function): Likewise.
9146         * tests/test-sprintf-posix.h (test_function): Likewise.
9147
9148 2007-05-18  Bruno Haible  <bruno@clisp.org>
9149
9150         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
9151         (strmatch): New function.
9152         (test_function): Test the %f directive on numbers of various exponents.
9153         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
9154         (strmatch): New function.
9155         (test_function): Test the %f directive on numbers of various exponents.
9156         * tests/test-snprintf-posix.h (strmatch): New function.
9157         (test_function): Test the %f directive on numbers of various exponents.
9158         * tests/test-sprintf-posix.h (strmatch): New function.
9159         (test_function): Test the %f directive on numbers of various exponents.
9160         * tests/test-snprintf-posix.c (SIZEOF): New macro.
9161         * tests/test-sprintf-posix.c (SIZEOF): New macro.
9162         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
9163         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
9164
9165 2007-05-18  Bruno Haible  <bruno@clisp.org>
9166
9167         Add support for 'long double' number output.
9168         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
9169         * lib/vasnprintf.c: Include math.h and float+.h.
9170         (mp_limb_t): New type.
9171         (GMP_LIMB_BITS): New macro.
9172         (mp_twolimb_t): New type.
9173         (GMP_TWOLIMB_BITS): New macro.
9174         (mpn_t): New type.
9175         (multiply, divide, convert_to_decimal, decode_long_double,
9176         scale10_round_long_double, scale10_round_decimal_long_double,
9177         floorlog10l): New functions.
9178         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
9179         for the %f, %F, %e, %E, %g, %G directives.
9180         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
9181         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
9182         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
9183         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
9184         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
9185         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
9186         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
9187         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
9188         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
9189         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
9190         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
9191         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
9192         * modules/snprintf-posix (Depends-on): Likewise.
9193         * modules/sprintf-posix (Depends-on): Likewise.
9194         * modules/vasnprintf-posix (Depends-on): Likewise.
9195         * modules/vasprintf-posix (Depends-on): Likewise.
9196         * modules/vfprintf-posix (Depends-on): Likewise.
9197         * modules/vsnprintf-posix (Depends-on): Likewise.
9198         * modules/vsprintf-posix (Depends-on): Likewise.
9199         * modules/vasnprintf (Files): Add lib/float+.h.
9200         * doc/functions/fprintf.texi: Update.
9201         * doc/functions/printf.texi: Update.
9202         * doc/functions/snprintf.texi: Update.
9203         * doc/functions/sprintf.texi: Update.
9204         * doc/functions/vfprintf.texi: Update.
9205         * doc/functions/vprintf.texi: Update.
9206         * doc/functions/vsnprintf.texi: Update.
9207         * doc/functions/vsprintf.texi: Update.
9208
9209 2007-05-18  Bruno Haible  <bruno@clisp.org>
9210
9211         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
9212
9213 2007-05-18  Bruno Haible  <bruno@clisp.org>
9214
9215         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
9216         for printing 64-bit integers. Needed for mingw.
9217
9218 2007-05-18  Bruno Haible  <bruno@clisp.org>
9219
9220         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
9221         gl_FUNC_FREXPL_WORKS.
9222         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
9223
9224 2007-05-18  Bruno Haible  <bruno@clisp.org>
9225
9226         * modules/frexpl-nolibm-tests: New file.
9227
9228         * modules/frexpl-nolibm: New file.
9229         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
9230
9231 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
9232
9233         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
9234         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
9235         GCC 4.2, which otherwise issues a lot of warnings.
9236         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
9237         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
9238         Likewise.
9239         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
9240         * modules/iconv_open (iconv.h): Likewise.
9241         * modules/locale (locale.h): Likewise.
9242         * modules/netinet_in (netinet/in.h): Likewise.
9243         * modules/sys_select (sys_select.h): Likewise.
9244         * modules/sys_socket (sys/socket.h): Likewise.
9245         * modules/sys_stat (sys/stat.h): Likewise.
9246         * modules/sysexits (sysexits.h): Likewise.
9247         * modules/unistd (unistd.h): Likewise.
9248
9249 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9250
9251         * modules/closein-tests (Makefile.am): Distribute
9252         `test-closein.sh'.
9253
9254 2007-05-17  Bruno Haible  <bruno@clisp.org>
9255
9256         * tests/test-printf-posix.output: Renamed from
9257         tests/test-fprintf-posix.out.
9258         * modules/fprintf-posix-tests: Update.
9259         * modules/printf-posix-tests: Update.
9260         * modules/vfprintf-posix-tests: Update.
9261         * modules/vprintf-posix-tests: Update.
9262         * tests/test-fprintf-posix.sh: Update.
9263         * tests/test-printf-posix.sh: Update.
9264         * tests/test-vfprintf-posix.sh: Update.
9265         * tests/test-vprintf-posix.sh: Update.
9266         Reported by Ralf Wildenhues.
9267
9268 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
9269
9270         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
9271         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
9272         GCC 4.2, which otherwise issues a lot of warnings.
9273         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
9274         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
9275         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
9276         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
9277         it should no longer be needed.
9278         * lib/string_.h: Likewise.
9279         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
9280         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
9281         * modules/inttypes (inttypes.h): Likewise.
9282         * modules/math (math.h): Likewise.
9283         * modules/search (search.h): Likewise.
9284         * modules/signal (signal.h): Likewise.
9285         * modules/stdint (stdint.h): Likewise.
9286         * modules/stdio (stdio.h): Likewise.
9287         * modules/stdlib (stdlib.h): Likewise.
9288         * modules/string (string.h): Likewise.
9289         * modules/sys_time (sys/time.h): Likewise.
9290         * modules/time (time.h): Likewise.
9291         * modules/wchar (wchar.h): Likewise.
9292         * modules/wctype (wtype.h): Likewise.
9293
9294 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
9295
9296         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
9297
9298 2007-05-13  Bruno Haible  <bruno@clisp.org>
9299
9300         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
9301         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
9302         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
9303         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
9304         (gl_PREREQ_STRTOK_R): Don't require it here.
9305
9306 2007-05-13  Bruno Haible  <bruno@clisp.org>
9307
9308         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
9309         when used in C++ mode.
9310
9311 2007-05-12  Bruno Haible  <bruno@clisp.org>
9312
9313         * lib/linebuffer.h: Tweak doc.
9314         * lib/linebuffer.c: Likewise.
9315
9316 2007-05-12  James Youngman  <jay@gnu.org>
9317
9318         * lib/linebuffer.c (readlinebuffer_delim): New function,
9319         like readlinebuffer, but use a caller-specified delimiter.
9320         (readlinebuffer): Just call readlinebuffer_delim with '\n'
9321         as the delimiter.
9322         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
9323
9324 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
9325
9326         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
9327         * modules/openat (Files): Remove openat-die.c.
9328         (Depends-on): Add openat-die.
9329         * modules/openat-die: New module.
9330
9331 2007-05-06  Bruno Haible  <bruno@clisp.org>
9332
9333         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
9334         Update with info about Cygwin.
9335         * doc/functions/fprintf.texi: Update.
9336         * doc/functions/printf.texi: Update.
9337         * doc/functions/snprintf.texi: Update.
9338         * doc/functions/sprintf.texi: Update.
9339         * doc/functions/vfprintf.texi: Update.
9340         * doc/functions/vprintf.texi: Update.
9341         * doc/functions/vsnprintf.texi: Update.
9342         * doc/functions/vsprintf.texi: Update.
9343         Reported by Eric Blake.
9344
9345 2007-05-06  Bruno Haible  <bruno@clisp.org>
9346
9347         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
9348         padding ourselves for the floating-point directives.
9349         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
9350         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
9351         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
9352         gl_PRINTF_FLAG_ZERO and test its result. Invoke
9353         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
9354         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
9355         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
9356         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
9357         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
9358         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
9359         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
9360         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
9361         * tests/test-snprintf-posix.h (test_function): Also check the width
9362         and some flags in the %f directive.
9363         * tests/test-sprintf-posix.h (test_function): Likewise.
9364         * tests/test-vasnprintf-posix.c (test_function): Likewise.
9365         * tests/test-vasprintf-posix.c (test_function): Likewise.
9366         * doc/functions/fprintf.texi: Update.
9367         * doc/functions/printf.texi: Update.
9368         * doc/functions/snprintf.texi: Update.
9369         * doc/functions/sprintf.texi: Update.
9370         * doc/functions/vfprintf.texi: Update.
9371         * doc/functions/vprintf.texi: Update.
9372         * doc/functions/vsnprintf.texi: Update.
9373         * doc/functions/vsprintf.texi: Update.
9374
9375 2007-05-06  Bruno Haible  <bruno@clisp.org>
9376
9377         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
9378         pass the ' flag character to sprintf or snprintf.
9379         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
9380         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
9381         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
9382         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
9383         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
9384         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
9385         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
9386         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
9387         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
9388         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
9389         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
9390         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
9391         * tests/test-snprintf-posix.h (test_function): Also check the grouping
9392         flag.
9393         * tests/test-sprintf-posix.h (test_function): Likewise.
9394         * tests/test-vasnprintf-posix.c (test_function): Likewise.
9395         * tests/test-vasprintf-posix.c (test_function): Likewise.
9396         * doc/functions/fprintf.texi: Update.
9397         * doc/functions/printf.texi: Update.
9398         * doc/functions/snprintf.texi: Update.
9399         * doc/functions/sprintf.texi: Update.
9400         * doc/functions/vfprintf.texi: Update.
9401         * doc/functions/vprintf.texi: Update.
9402         * doc/functions/vsnprintf.texi: Update.
9403         * doc/functions/vsprintf.texi: Update.
9404
9405 2007-05-01  Bruno Haible  <bruno@clisp.org>
9406
9407         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
9408
9409 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
9410
9411         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
9412         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
9413
9414 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
9415
9416         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
9417         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
9418         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
9419
9420 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
9421
9422         * lib/argp-help.c (struct hol_entry): New member `ord'.
9423         (HOL_ENTRY_PTRCMP): Use ord for comparison
9424         (hol_sort): Initialize ord.
9425
9426 2007-05-01  Bruno Haible  <bruno@clisp.org>
9427
9428         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
9429         Reported by Eric Blake.
9430         * doc/gnulib.texi (Function Substitutes): Update.
9431
9432 2007-05-01  Bruno Haible  <bruno@clisp.org>
9433
9434         * doc/functions.texi: Remove file, now redundant through
9435         doc/functions/*.texi.
9436
9437 2007-05-01  Bruno Haible  <bruno@clisp.org>
9438
9439         * modules/argp (Depends-on): Add sleep.
9440
9441 2007-05-01  Bruno Haible  <bruno@clisp.org>
9442
9443         * modules/sleep-tests: New file.
9444         * tests/test-sleep.c: New file.
9445
9446         * modules/sleep: New file.
9447         * lib/sleep.c: New file.
9448         * m4/sleep.m4: New file.
9449         * lib/unistd_.h (sleep): New declaration.
9450         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
9451         HAVE_SLEEP.
9452         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
9453         * doc/functions/sleep.texi: Document the sleep module.
9454
9455 2007-05-01  Bruno Haible  <bruno@clisp.org>
9456
9457         * lib/sigprocmask.h: Remove file.
9458         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
9459         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
9460         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
9461         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
9462         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
9463         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
9464         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
9465         HAVE_SIGSET_T as a shell variable.
9466         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
9467         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
9468         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
9469         (Depends-on): Add signal. Remove verify.
9470         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
9471         (Include): Mention <signal.h> instead of sigprocmask.h.
9472         * NEWS: Mention the change.
9473         * lib/fatal-signal.c: Don't include sigprocmask.h.
9474
9475 2007-05-01  Bruno Haible  <bruno@clisp.org>
9476
9477         * modules/signal: New file.
9478         * lib/signal_.h: New file.
9479         * m4/signal_h.m4: New file.
9480
9481 2007-05-01  Bruno Haible  <bruno@clisp.org>
9482
9483         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
9484         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
9485         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
9486         HAVE_WCTYPE_CTMP_BUG into wctype.h.
9487
9488 2007-05-01  Bruno Haible  <bruno@clisp.org>
9489
9490         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
9491         configure time.
9492         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
9493         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
9494         * modules/sys_stat (Makefile.am): Substitute their values into
9495         sys/stat.h.
9496
9497 2007-05-01  Bruno Haible  <bruno@clisp.org>
9498
9499         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
9500         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
9501         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
9502
9503 2007-05-01  Bruno Haible  <bruno@clisp.org>
9504
9505         * doc/header/assert.texi: Undo last change: don't mention the gnulib
9506         'assert' module here.
9507
9508 2007-05-01  Bruno Haible  <bruno@clisp.org>
9509
9510         * doc/functions/*.texi: New files.
9511         * doc/functions/google-ranking.txt: New file.
9512         * doc/gnulib.texi (Function Substitutes): New chapter.
9513         (ctime, inet_ntoa): Remove sections.
9514         * doc/ctime.texi: Remove file.
9515         * doc/inet_ntoa.texi: Remove file.
9516         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
9517         dependencies.
9518         (%.info): New rule, specifying a --reference-limit.
9519
9520 2007-05-01  Bruno Haible  <bruno@clisp.org>
9521
9522         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
9523
9524 2007-05-01  Bruno Haible  <bruno@clisp.org>
9525
9526         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
9527         the portability of 'mkdir' to mingw systems.
9528
9529 2007-05-01  Bruno Haible  <bruno@clisp.org>
9530
9531         * doc/headers/google-ranking.txt: New file.
9532
9533 2007-04-30  Eric Blake  <ebb9@byu.net>
9534
9535         Prefer fseeko to fseek.
9536         * modules/getpass (Depends-on): Add fseeko.
9537         * lib/getpass.c (getpass): Use fseeko, not fseek.
9538
9539 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
9540
9541         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
9542         assumes the sorting is stable, while most qsort implementations
9543         are not.  Use argument addresses to ensure they never compare as
9544         equal.
9545
9546         * tests/test-argp-2.sh (usage-indent test): Fix output
9547         (func_compare): Restore diff options
9548         * tests/test-argp.c: Restore #include "progname.h"
9549
9550 2007-04-29  Bruno Haible  <bruno@clisp.org>
9551
9552         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
9553         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
9554         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
9555         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
9556         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
9557         (configure.ac): Define CHECK_SNPRINTF_POSIX.
9558         (TESTS, check_PROGRAMS): Add test-snprintf.
9559         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
9560         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
9561         (TESTS, check_PROGRAMS): Add test-vsnprintf.
9562         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
9563         assertions that fail on HP-UX, OSF/1, or IRIX.
9564         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
9565
9566 2007-04-29  Bruno Haible  <bruno@clisp.org>
9567
9568         * MODULES.html.sh (posix_functions): Remove 'contents'.
9569
9570 2007-04-29  Karl Berry  <karl@gnu.org>
9571
9572         * config/srclist.txt (gendocs_template_min): new entry.
9573
9574 2007-04-29  Bruno Haible  <bruno@clisp.org>
9575
9576         Work around fpurge bug on BSD systems.
9577         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
9578         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
9579         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
9580         fpurge to rpl_fpurge if the system already has this function.
9581         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
9582         the case where the system already has this function. Correct invariants
9583         on BSD systems.
9584         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
9585         BSD systems.
9586
9587 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
9588
9589         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
9590         proposed by Sven Verdoolaege.
9591
9592         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
9593         options.
9594         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
9595         (usage and help tests): Update
9596
9597 2007-04-29  Bruno Haible  <bruno@clisp.org>
9598
9599         * tests/test-fflush.c (main): Use a file of size 17, not 10.
9600         Print more information in case of failure. Disable a test on BeOS.
9601
9602 2007-04-29  Bruno Haible  <bruno@clisp.org>
9603
9604         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
9605         This helps debugging on systems on which no gdb is available.
9606
9607 2007-04-29  Bruno Haible  <bruno@clisp.org>
9608
9609         * lib/freading.h: Improve comments.
9610         * lib/fwriting.h: Likewise.
9611         * tests/test-freading.c (main): Don't check freading immediately after
9612         repositioning. Needed for glibc.
9613
9614 2007-04-29  Bruno Haible  <bruno@clisp.org>
9615
9616         * lib/freading.c (freading): Trivial simplification.
9617
9618 2007-04-28  Bruno Haible  <bruno@clisp.org>
9619
9620         * tests/test-fwriting.c (main): Also test the interaction between
9621         fflush and fwriting.
9622         * modules/fwriting-tests (Depends-on): Add fflush.
9623
9624         * tests/test-freading.c (main): Also test the interaction between
9625         fflush and freading.
9626         * modules/freading-tests (Depends-on): Add fflush.
9627
9628 2007-04-28  Bruno Haible  <bruno@clisp.org>
9629
9630         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
9631         fseeko and ftello.
9632         Suggested by Eric Blake.
9633
9634 2007-04-28  Jim Meyering  <jim@meyering.net>
9635
9636         Avoid false-negative in gl_STDINT_H's C99 conformance test.
9637         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
9638         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
9639
9640 2007-04-27  Eric Blake  <ebb9@byu.net>
9641
9642         * doc/headers/assert.texi (assert.h): Document assert module use.
9643
9644 2007-04-27  Bruno Haible  <bruno@clisp.org>
9645
9646         * doc/headers/*.texi: New files.
9647         * doc/gnulib.texi (Header File Substitutes): New chapter.
9648         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
9649         dependencies.
9650         (standards.info ,standards.html, standards.dvi): Update dependencies.
9651         (mostlyclean, clean): New targets.
9652
9653 2007-04-27  Bruno Haible  <bruno@clisp.org>
9654
9655         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
9656         * modules/sysexits (Files, Makefile.am): Update.
9657
9658         * lib/sys_socket_.h: Renamed from lib/socket_.h.
9659         * modules/sys_socket (Files, Makefile.am): Update.
9660
9661         * lib/sys_stat_.h: Renamed from lib/stat_.h.
9662         * modules/sys_stat (Files, Makefile.am): Update.
9663
9664 2007-04-27  Eric Blake  <ebb9@byu.net>
9665
9666         * lib/freading.h: Improve comments.
9667         * lib/fwriting.h: Likewise.
9668         * lib/fflush.c: Likewise.
9669
9670         Fix closein for mingw.
9671         * modules/closein-tests: Add tests for closein.
9672         * tests/test-closein.c: New file.
9673         * tests/test-closein.sh: Likewise.
9674         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
9675         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
9676
9677 2007-04-27  Bruno Haible  <bruno@clisp.org>
9678
9679         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
9680         version is < 6.
9681         * lib/math_.h [__DECC]: Likewise.
9682         * lib/stdio_.h [__DECC]: Likewise.
9683         * lib/stdlib_.h [__DECC]: Likewise.
9684         * lib/string_.h [__DECC]: Likewise.
9685         * lib/time_.h [__DECC]: Likewise.
9686         * lib/wchar_.h [__DECC]: Likewise.
9687         * lib/wctype_.h [__DECC]: Likewise.
9688
9689 2007-04-27  Bruno Haible  <bruno@clisp.org>
9690
9691         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
9692
9693 2007-04-27  Bruno Haible  <bruno@clisp.org>
9694
9695         * lib/fflush.c: Add comments.
9696         * modules/fpurge-tests (Depends-on): Add fflush.
9697         * modules/freadable-tests (Depends-on): Likewise.
9698         * modules/fwritable-tests (Depends-on): Likewise.
9699
9700 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
9701
9702         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
9703         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
9704         Report by Bruno Haible <bruno@clisp.org>.
9705
9706 2007-04-26  Eric Blake  <ebb9@byu.net>
9707
9708         Fix fflush on mingw.
9709         * modules/fflush (Depends-on): Add freading.
9710         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
9711         but unread data.
9712
9713 2007-04-26  Eric Blake  <ebb9@byu.net>
9714         and Bruno Haible  <bruno@clisp.org>
9715
9716         Implement freading and fwriting.
9717         * lib/freading.c: New file.
9718         * lib/freading.h: Likewise.
9719         * m4/freading.m4: Likewise.
9720         * modules/freading: Likewise.
9721         * modules/freading-tests: Likewise.
9722         * tests/test-freading.c: Likewise.
9723         * lib/fwriting.c: New file.
9724         * lib/fwriting.h: Likewise.
9725         * m4/fwriting.m4: Likewise.
9726         * modules/fwriting: Likewise.
9727         * modules/fwriting-tests: Likewise.
9728         * tests/test-fwriting.c: Likewise.
9729         * MODULES.html.sh (File stream based Input/Output): Mention them.
9730
9731 2007-04-26  Bruno Haible  <bruno@clisp.org>
9732
9733         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
9734         'long' when we assume it.
9735         Suggested by Eric Blake.
9736
9737 2007-04-26  Bruno Haible  <bruno@clisp.org>
9738
9739         Ensure fseeko, ftello are declared on glibc systems.
9740         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
9741         * modules/fseeko (configure.ac-early): Likewise.
9742         * modules/ftello (configure.ac-early): Likewise.
9743         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
9744         AC_FUNC_FSEEKO for this.
9745         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
9746         (gl_CHECK_FSEEKO): Remove macro.
9747
9748 2007-04-26  Bruno Haible  <bruno@clisp.org>
9749
9750         * tests/test-fflush.c (main): Also check the ftell result after
9751         fflush and fseek/fseeko.
9752         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
9753         file descriptor position cache in the stream.
9754         * lib/fseeko.c (rpl_fseeko): Likewise.
9755
9756 2007-04-26  Bruno Haible  <bruno@clisp.org>
9757
9758         * modules/fflush-tests (Depends-on): Add fseeko.
9759
9760 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
9761             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9762
9763         * lib/argz_.h: ensure error_t definition is obtained in same
9764         mechanism system argz.h would have.
9765         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
9766         argz facilities are known bad.  Err on the side of caution if
9767         cross-compiling.
9768
9769 2007-04-25  Eric Blake  <ebb9@byu.net>
9770
9771         * lib/fpurge.c (includes): Use stdlib.h for free.
9772         * tests/test-fflush.c (main): Also test fflush-fseeko.
9773
9774 2007-04-25  Bruno Haible  <bruno@clisp.org>
9775
9776         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
9777         * lib/fseeko.c: New file.
9778         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
9779         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
9780         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
9781         gl_FUNC_FSEEKO.
9782         (gl_FUNC_FSEEKO): Invoke it.
9783         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
9784         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
9785         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
9786
9787 2007-04-25  Bruno Haible  <bruno@clisp.org>
9788
9789         * modules/fflush (Depends-on): Add ftello.
9790
9791 2007-04-25  Bruno Haible  <bruno@clisp.org>
9792
9793         * modules/ftello-tests: New file.
9794         * tests/test-ftello.c: New file.
9795
9796         * modules/ftello: New file.
9797         * m4/ftello.m4: New file.
9798         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
9799         HAVE_FTELLO.
9800         * lib/stdio_.h (ftello): New declaration.
9801         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
9802         HAVE_FTELLO.
9803
9804 2007-04-25  Bruno Haible  <bruno@clisp.org>
9805
9806         * modules/fseeko-tests: New file.
9807         * tests/test-fseeko.c: New file.
9808
9809         * modules/fseeko: New file.
9810         * m4/fseeko.m4: New file.
9811         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
9812         HAVE_FSEEKO.
9813         * lib/stdio_.h (fseeko): New declaration.
9814         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
9815         HAVE_FSEEKO.
9816
9817 2007-04-25  Bruno Haible  <bruno@clisp.org>
9818
9819         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
9820
9821 2007-04-25  Bruno Haible  <bruno@clisp.org>
9822
9823         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
9824         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
9825         * tests/test-unistd.c: Likewise.
9826         * tests/test-fcntl.c: Likewise.
9827
9828 2007-04-23  Eric Blake  <ebb9@byu.net>
9829
9830         * lib/fflush.c: Fix missing include.
9831         Reported by Bruno Haible.
9832
9833 2007-04-23  Bruno Haible  <bruno@clisp.org>
9834
9835         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
9836         Reported by Eric Blake.
9837
9838 2007-04-23  Bruno Haible  <bruno@clisp.org>
9839
9840         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
9841
9842 2007-04-23  Bruno Haible  <bruno@clisp.org>
9843
9844         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
9845
9846 2007-04-23  Bruno Haible  <bruno@clisp.org>
9847
9848         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
9849         Needed on HP-UX 11.
9850
9851 2007-04-16  Eric Blake  <ebb9@byu.net>
9852
9853         Make fflush rely on fpurge.
9854         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
9855         open coding all variants.
9856         * modules/fflush (Depends-on): Add fpurge and unistd.
9857         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
9858         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
9859
9860         Fix --with-tests compilation on cygwin.
9861         * modules/argmatch-tests (Makefile.am): List gnulib library first
9862         in LDADD.
9863         * modules/argp-tests (Makefile.am): Likewise.
9864         * modules/array-list-tests (Makefile.am): Likewise.
9865         * modules/array-oset-tests (Makefile.am): Likewise.
9866         * modules/avltree-list-tests (Makefile.am): Likewise.
9867         * modules/avltree-oset-tests (Makefile.am): Likewise.
9868         * modules/avltreehash-list-tests (Makefile.am): Likewise.
9869         * modules/carray-list-tests (Makefile.am): Likewise.
9870         * modules/dirname-tests (Makefile.am): Likewise.
9871         * modules/frexp-tests (Makefile.am): Likewise.
9872         * modules/isnanl-tests (Makefile.am): Likewise.
9873         * modules/linked-list-tests (Makefile.am): Likewise.
9874         * modules/linkedhash-list-tests (Makefile.am): Likewise.
9875         * modules/lock-tests (Makefile.am): Likewise.
9876         * modules/rbtree-list-tests (Makefile.am): Likewise.
9877         * modules/rbtree-oset-tests (Makefile.am): Likewise.
9878         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
9879         * modules/tls-tests (Makefile.am): Likewise.
9880         * modules/tsearch-tests (Makefile.am): Likewise.
9881         * modules/xvasprintf-tests (Makefile.am): Likewise.
9882
9883         Fix fpurge for cygwin.
9884         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
9885         value.
9886         * modules/fpurge-tests (Depends-on): Clean up trash.
9887
9888 2007-04-16  Simon Josefsson  <simon@josefsson.org>
9889
9890         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
9891
9892         * m4/autobuild.m4: Re-indent.
9893
9894 2007-04-13  Bruno Haible  <bruno@clisp.org>
9895
9896         * modules/fpurge-tests: New file.
9897         * tests/test-fpurge.c: New file.
9898
9899         * modules/fpurge: New file.
9900         * lib/fpurge.h: New file.
9901         * lib/fpurge.c: New file.
9902         * m4/fpurge.m4: New file.
9903
9904 2007-04-13  Bruno Haible  <bruno@clisp.org>
9905
9906         * modules/fbufmode-tests: New file.
9907         * tests/test-fbufmode.c: New file.
9908
9909         * modules/fbufmode: New file.
9910         * lib/fbufmode.h: New file.
9911         * lib/fbufmode.c: New file.
9912         * m4/fbufmode.m4: New file.
9913
9914 2007-04-13  Bruno Haible  <bruno@clisp.org>
9915
9916         * modules/fwritable-tests: New file.
9917         * tests/test-fwritable.c: New file.
9918
9919         * modules/fwritable: New file.
9920         * lib/fwritable.h: New file.
9921         * lib/fwritable.c: New file.
9922         * m4/fwritable.m4: New file.
9923
9924 2007-04-13  Bruno Haible  <bruno@clisp.org>
9925
9926         * modules/freadable-tests: New file.
9927         * tests/test-freadable.c: New file.
9928
9929         * modules/freadable: New file.
9930         * lib/freadable.h: New file.
9931         * lib/freadable.c: New file.
9932         * m4/freadable.m4: New file.
9933
9934 2007-04-13  Bruno Haible  <bruno@clisp.org>
9935
9936         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
9937         MOSTLYCLEANFILES.
9938
9939 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
9940
9941         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
9942         gzip bootstrap.conf to avoid dragging in i18n machinery.
9943         (gnulib_tool_option): Use it.
9944
9945 2007-04-13  Bruno Haible  <bruno@clisp.org>
9946
9947         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
9948         %F directives.
9949         * tests/test-vasprintf-posix.c (test_function): Likewise.
9950         * tests/test-snprintf-posix.h (test_function): Likewise.
9951         * tests/test-sprintf-posix.h (test_function): Likewise.
9952         * tests/test-fprintf-posix.h (test_function): Likewise.
9953         * tests/test-printf-posix.h (test_function): Likewise.
9954         * tests/test-fprintf-posix.out: Likewise.
9955
9956 2007-04-13  Bruno Haible  <bruno@clisp.org>
9957
9958         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
9959         * modules/tls-tests (configure.ac): Likewise.
9960         Reported by Arto C. Nirkko <anirkko@insel.ch>.
9961
9962 2007-04-13  Bruno Haible  <bruno@clisp.org>
9963
9964         * lib/tls.c (glthread_tls_get): Fix return type.
9965         Patch by Arto C. Nirkko <anirkko@insel.ch>.
9966
9967 2007-04-12  Eric Blake  <ebb9@byu.net>
9968
9969         * modules/gettime (Depends-on): Remove gettime.
9970         Reported by Dmitry V. Levin.
9971
9972 2007-04-12  Bruno Haible  <bruno@clisp.org>
9973
9974         * modules/fflush (Include): Mention <stdio.h>.
9975         * modules/strtoimax (Include): Mention <inttypes.h>.
9976         * modules/strtoumax (Include): Likewise.
9977
9978 2007-04-12  Eric Blake  <ebb9@byu.net>
9979
9980         * .cvsignore: New file.
9981         * .gitignore: Likewise.
9982
9983 2007-04-12  Bruno Haible  <bruno@clisp.org>
9984
9985         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
9986         not before, since $(LDADD) often contains libgnu.a.
9987         * modules/striconv-tests (test_striconv_LDADD): Likewise.
9988         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
9989         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
9990         Needed on Cygwin.
9991
9992 2007-04-12  Eric Blake  <ebb9@byu.net>
9993
9994         Work around glibc's failure to flush stdin on fclose.
9995         * lib/closein.c (close_stdin): Flush stdin before closing.
9996
9997         Work around glibc's failure to reset seekable stdin on exit.
9998         * modules/closein: New module.
9999         * lib/closein.c: New file.
10000         * lib/closein.h: Likewise.
10001         * m4/closein.m4: Likewise.
10002         * MODULES.html.sh (File stream based Input/Output): Document it.
10003
10004 2007-04-12  Simon Josefsson  <simon@josefsson.org>
10005
10006         * gnulib-tool: Rename generated 'autobuild' script to
10007         'do-autobuild' in --create-megatestdir output.
10008
10009         * doc/gnulib.texi (Build robot for gnulib): Fix.
10010
10011 2007-04-12  Simon Josefsson  <simon@josefsson.org>
10012
10013         * modules/sysexits (Depends-on): Add absolute-header.
10014
10015 2007-04-12  Eric Blake  <ebb9@byu.net>
10016
10017         No need to preserve errno on success.
10018         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
10019         Reported by Bruno Haible.
10020
10021 2007-04-12  Simon Josefsson  <simon@josefsson.org>
10022
10023         * MODULES.html.sh (Support for maintaining and releasing
10024         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
10025
10026 2007-04-12  Simon Josefsson  <simon@josefsson.org>
10027
10028         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
10029
10030 2007-04-12  Simon Josefsson  <simon@josefsson.org>
10031
10032         * modules/autobuild: New module.
10033
10034         * m4/autobuild.m4: New file.
10035
10036 2007-04-11  Bruno Haible  <bruno@clisp.org>
10037
10038         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
10039         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
10040         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
10041         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
10042         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
10043         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
10044         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
10045         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
10046         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
10047         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
10048         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
10049         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
10050         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
10051         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
10052         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
10053         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
10054         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
10055         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
10056         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
10057         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
10058         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
10059         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
10060         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
10061         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
10062         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
10063         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
10064         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
10065         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
10066         Reported by Eric Blake.
10067
10068 2007-04-11  Bruno Haible  <bruno@clisp.org>
10069
10070         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
10071
10072 2007-04-10  Bruno Haible  <bruno@clisp.org>
10073
10074         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
10075         for NaN and Infinity. Needed on FreeBSD 6.1.
10076         * tests/test-vasnprintf-posix.c (test_function): Undo last change
10077         regarding results for "%010a" of Infinity and NaN.
10078         * tests/test-vasprintf-posix.c (test_function): Likewise.
10079         * tests/test-snprintf-posix.h (test_function): Likewise.
10080         * tests/test-sprintf-posix.h (test_function): Likewise.
10081         * tests/test-fprintf-posix.h (test_function): Likewise.
10082         * tests/test-printf-posix.h (test_function): Likewise.
10083         * tests/test-fprintf-posix.out: Likewise.
10084
10085 2007-04-10  Bruno Haible  <bruno@clisp.org>
10086
10087         * modules/locale-tests: New file.
10088         * tests/test-locale.c: New file.
10089
10090         * modules/locale: New file.
10091         * lib/locale_.h: New file.
10092         * m4/locale_h.m4: New file.
10093
10094 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
10095             Bruno Haible  <bruno@clisp.org>
10096
10097         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
10098         be determined, test for availability of the copysignf, copysign,
10099         copysignl functions.
10100         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
10101         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
10102         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
10103
10104 2007-04-09  Eric Blake  <ebb9@byu.net>
10105
10106         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
10107         * modules/stdio (Makefile.am): Support fflush.
10108         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
10109         * modules/fflush: New file.
10110         * lib/fflush.c: Likewise.
10111         * m4/fflush.m4: Likewise.
10112         * modules/fflush-tests: New test.
10113         * tests/test-fflush.c: Likewise.
10114         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
10115
10116 2007-04-06  Bruno Haible  <bruno@clisp.org>
10117
10118         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
10119         (VASNPRINTF): Use signbit for faster determination whether to print a
10120         minus sign.
10121         * modules/vasnprintf (Files): Remove lib/float+.h.
10122         * modules/fprintf-posix (Depends-on): Add signbit.
10123         * modules/snprintf-posix (Depends-on): Likewise.
10124         * modules/sprintf-posix (Depends-on): Likewise.
10125         * modules/vasnprintf-posix (Depends-on): Likewise.
10126         * modules/vasprintf-posix (Depends-on): Likewise.
10127         * modules/vfprintf-posix (Depends-on): Likewise.
10128         * modules/vsnprintf-posix (Depends-on): Likewise.
10129         * modules/vsprintf-posix (Depends-on): Likewise.
10130
10131 2007-04-06  Bruno Haible  <bruno@clisp.org>
10132
10133         * tests/test-frexp.c (main): Test also the sign bit of zero results.
10134         * tests/test-frexpl.c (main): Likewise.
10135         * tests/test-ldexpl.c (main): Likewise.
10136         * modules/frexp-tests (Depends-on): Add signbit.
10137         * modules/frexpl-tests (Depdends-on): Likewise.
10138         * modules/ldexpl-tests (Depdends-on): Likewise.
10139
10140 2007-04-06  Bruno Haible  <bruno@clisp.org>
10141
10142         * modules/signbit-tests: New file.
10143         * tests/test-signbit.c: New file.
10144
10145         * modules/signbit: New file.
10146         * lib/signbitf.c: New file.
10147         * lib/signbitd.c: New file.
10148         * lib/signbitl.c: New file.
10149         * m4/signbit.m4: New file.
10150         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
10151         (signbit): New macro.
10152         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
10153         REPLACE_SIGNBIT.
10154         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
10155         REPLACE_FREXPL into math.h.
10156
10157 2007-04-06  Bruno Haible  <bruno@clisp.org>
10158
10159         * modules/isnanf-nolibm-tests: New file.
10160         * tests/test-isnanf.c: New file.
10161
10162         * modules/isnanf-nolibm: New file.
10163         * lib/isnanf.h: New file.
10164         * lib/isnanf.c: New file.
10165         * lib/isnan.c: Consider the USE_FLOAT macro.
10166         * m4/isnanf.m4: New file.
10167
10168 2007-04-06  Bruno Haible  <bruno@clisp.org>
10169
10170         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
10171         (Link): New section.
10172
10173         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
10174
10175 2007-04-06  Bruno Haible  <bruno@clisp.org>
10176
10177         Assume the 'long double' type.
10178         * m4/longdouble.m4: Remove file.
10179         * config/srclist.txt: Don't mention longdouble.m4.
10180         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
10181         * lib/float+.h: Likewise.
10182         * lib/frexp.c: Likewise.
10183         * lib/printf-args.h: Likewise.
10184         * lib/printf-args.c: Likewise.
10185         * lib/printf-frexp.c: Likewise.
10186         * lib/printf-parse.c: Likewise.
10187         * lib/vasnprintf.c: Likewise.
10188         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
10189         * m4/intl.m4: Likewise.
10190         * m4/isnanl.m4: Likewise.
10191         * m4/printf.m4: Likewise.
10192         * m4/printf-frexpl.m4: Likewise.
10193         * m4/vasnprintf.m4: Likewise.
10194         * modules/allocsa (Files): Remove m4/longdouble.m4.
10195         * modules/gettext (Files): Likewise.
10196         * modules/relocatable-prog-wrapper (Files): Likewise.
10197         * modules/vasnprintf (Files): Likewise.
10198         * modules/isnanl (Files): Likewise.
10199         (Include): Simplify.
10200         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
10201         (Include): Simplify.
10202         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
10203         (Include): Simplify.
10204         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
10205         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
10206         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
10207         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
10208         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
10209         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
10210         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
10211         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
10212         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
10213         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
10214         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
10215         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
10216         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
10217         * tests/test-isnanl.c: Likewise.
10218         * tests/test-snprintf-posix.h: Likewise.
10219         * tests/test-sprintf-posix.h: Likewise.
10220         * tests/test-vasnprintf-posix.c: Likewise.
10221         * tests/test-vasnprintf-posix2.c: Likewise.
10222         * tests/test-vasprintf-posix.c: Likewise.
10223
10224 2007-04-06  Bruno Haible  <bruno@clisp.org>
10225
10226         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
10227         * lib/math_.h [__DECC]: Include the overridden include file through
10228         #include_next, outside the double-inclusion guard.
10229         * lib/stdio_.h [__DECC]: Likewise.
10230         * lib/stdlib_.h [__DECC]: Likewise.
10231         * lib/string_.h [__DECC]: Likewise.
10232         * lib/time_.h [__DECC]: Likewise.
10233         * lib/wchar_.h [__DECC]: Likewise.
10234         * lib/wctype_.h [__DECC]: Likewise.
10235         * lib/inttypes_.h [__DECC]: Likewise.
10236         Reported by Albert Chin <china@thewrittenword.com> in
10237         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
10238
10239 2007-04-04  Eric Blake  <ebb9@byu.net>
10240
10241         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
10242         1.5.x.
10243
10244 2007-04-04  Bruno Haible  <bruno@clisp.org>
10245
10246         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
10247         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
10248
10249 2007-04-04  Bruno Haible  <bruno@clisp.org>
10250
10251         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
10252         results for "%010a" of Infinity and NaN.
10253         * tests/test-vasprintf-posix.c (test_function): Likewise.
10254         * tests/test-snprintf-posix.h (test_function): Likewise.
10255         * tests/test-sprintf-posix.h (test_function): Likewise.
10256         * tests/test-fprintf-posix.h (test_function): Remove these tests.
10257         * tests/test-printf-posix.h (test_function): Likewise.
10258         * tests/test-fprintf-posix.out: Update.
10259         Needed for FreeBSD 6.1.
10260
10261 2007-04-04  Bruno Haible  <bruno@clisp.org>
10262
10263         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
10264         directly used by the gnulib modules nor by gnulib-tool.
10265
10266 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
10267
10268         * DEPENDENCIES: Give overall description of version dependency
10269         desirability.  Use more-typical names for apps.
10270         Add shell, coreutils, diffutils, grep, tar, gzip.
10271
10272 2007-04-04  Simon Josefsson  <simon@josefsson.org>
10273
10274         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
10275
10276 2007-04-04  Karl Berry  <karl@gnu.org>
10277
10278         * MODULES.html.sh (func_module): missing '.
10279
10280 2007-04-03  Bruno Haible  <bruno@clisp.org>
10281
10282         * modules/argmatch-tests (Makefile.am): New variable
10283         test_argmatch_LDADD.
10284         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
10285         * modules/array-list-tests (Makefile.am): New variable
10286         test_array_list_LDADD.
10287         * modules/array-oset-tests (Makefile.am): New variable
10288         test_array_oset_LDADD.
10289         * modules/avltree-list-tests (Makefile.am): New variable
10290         test_avltree_list_LDADD.
10291         * modules/avltree-oset-tests (Makefile.am): New variable
10292         test_avltree_oset_LDADD.
10293         * modules/avltreehash-list-tests (Makefile.am): New variable
10294         test_avltreehash_list_LDADD.
10295         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
10296         test_canonicalize_lgpl_LDADD.
10297         * modules/carray-list-tests (Makefile.am): New variable
10298         test_carray_list_LDADD.
10299         * modules/dirname-tests (Makefile.am): New variable
10300         test_dirname_LDADD.
10301         * modules/linked-list-tests (Makefile.am): New variable
10302         test_linked_list_LDADD.
10303         * modules/linkedhash-list-tests (Makefile.am): New variable
10304         test_linkedhash_list_LDADD.
10305         * modules/rbtree-list-tests (Makefile.am): New variable
10306         test_rbtree_list_LDADD.
10307         * modules/rbtree-oset-tests (Makefile.am): New variable
10308         test_rbtree_oset_LDADD.
10309         * modules/rbtreehash-list-tests (Makefile.am): New variable
10310         test_rbtreehash_list_LDADD.
10311         * modules/xvasprintf-tests (Makefile.am): New variable
10312         test_xvasprintf_LDADD.
10313         Reported by Eric Blake.
10314
10315 2007-04-03  Eric Blake  <ebb9@byu.net>
10316
10317         * DEPENDENCIES: Weaken m4 requirements.
10318
10319 2007-04-03  Bruno Haible  <bruno@clisp.org>
10320
10321         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
10322         * modules/isnanl-tests (configure.ac): Likewise.
10323
10324 2007-04-03  Ben Pfaff  <blp@gnu.org>
10325
10326         * modules/iconv_open: Add $(srcdir)/ to source directory
10327         references in Makefile fragments that call gperf, to fix VPATH
10328         builds.
10329
10330 2007-04-03  Bruno Haible  <bruno@clisp.org>
10331
10332         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
10333         * lib/ldexpl.c: Undo last change.
10334
10335 2007-04-03  Bruno Haible  <bruno@clisp.org>
10336
10337         * modules/printf-frexpl (Depends-on): Undo last change.
10338         (Files): Add m4/ldexpl.m4.
10339
10340 2007-04-03  Bruno Haible  <bruno@clisp.org>
10341
10342         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
10343         * modules/isnanl (Link): New section.
10344
10345         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
10346         * modules/frexp (Link): New section.
10347
10348         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
10349         * modules/frexpl (Link): New section.
10350
10351         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
10352         * modules/ldexpl (Link): New section.
10353
10354 2007-04-03  Bruno Haible  <bruno@clisp.org>
10355
10356         * modules/TEMPLATE-EXTENDED: New file.
10357         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
10358
10359 2007-04-03  Bruno Haible  <bruno@clisp.org>
10360
10361         * DEPENDENCIES: New file.
10362         Suggested by Simon Josefsson.
10363
10364 2007-04-03  Bruno Haible  <bruno@clisp.org>
10365
10366         * doc/gnulib.texi: Escape @.
10367
10368 2007-04-03  James Youngman  <jay@gnu.org>
10369         and Paul Eggert  <eggert@cs.ucla.edu>
10370
10371         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
10372         birthtime on all systems that have birthtime, not just those which
10373         use st_birthtimensec rather than st_birthtim.  Putting zero in
10374         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
10375         that the birth time is not available for files on an NFS mount.
10376
10377 2007-04-03  Simon Josefsson  <simon@josefsson.org>
10378
10379         * modules/memxor: Move back from crypto/, suggested by Bruno.
10380         * modules/crypto/hmac-sha1: Fix memxor dependency.
10381
10382         * modules/crypto/gc: Moved from ../.
10383
10384 2007-04-02  Eric Blake  <ebb9@byu.net>
10385
10386         * lib/ldexpl.c (includes): Avoid libm.
10387
10388         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
10389
10390 2007-04-02  Bruno Haible  <bruno@clisp.org>
10391
10392         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
10393         on IRIX.
10394
10395 2007-04-02  Bruno Haible  <bruno@clisp.org>
10396
10397         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
10398         x86 or x86_64 platforms running MacOS X.
10399         Reported by Ryan Schmidt <@ryandesign.com>.
10400
10401 2007-04-02  Bruno Haible  <bruno@clisp.org>
10402
10403         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
10404         i386.
10405
10406 2007-04-01  Simon Josefsson  <simon@josefsson.org>
10407
10408         * modules/crypto/arcfour: Moved from ../.
10409         * modules/crypto/arcfour-tests: Moved from ../.
10410         * modules/crypto/arctwo: Moved from ../.
10411         * modules/crypto/arctwo-tests: Moved from ../.
10412         * modules/crypto/des: Moved from ../.
10413         * modules/crypto/des-tests: Moved from ../.
10414         * modules/crypto/gc-arcfour: Moved from ../.
10415         * modules/crypto/gc-arcfour-tests: Moved from ../.
10416         * modules/crypto/gc-arctwo: Moved from ../.
10417         * modules/crypto/gc-arctwo-tests: Moved from ../.
10418         * modules/crypto/gc-des: Moved from ../.
10419         * modules/crypto/gc-des-tests: Moved from ../.
10420         * modules/crypto/gc-hmac-md5: Moved from ../.
10421         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
10422         * modules/crypto/gc-hmac-sha1: Moved from ../.
10423         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
10424         * modules/crypto/gc-md2: Moved from ../.
10425         * modules/crypto/gc-md2-tests: Moved from ../.
10426         * modules/crypto/gc-md4: Moved from ../.
10427         * modules/crypto/gc-md4-tests: Moved from ../.
10428         * modules/crypto/gc-md5: Moved from ../.
10429         * modules/crypto/gc-md5-tests: Moved from ../.
10430         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
10431         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
10432         * modules/crypto/gc-random: Moved from ../.
10433         * modules/crypto/gc-rijndael: Moved from ../.
10434         * modules/crypto/gc-rijndael-tests: Moved from ../.
10435         * modules/crypto/gc-sha1: Moved from ../.
10436         * modules/crypto/gc-sha1-tests: Moved from ../.
10437         * modules/crypto/gc-tests: Moved from ../.
10438         * modules/crypto/hmac-md5: Moved from ../.
10439         * modules/crypto/hmac-md5-tests: Moved from ../.
10440         * modules/crypto/hmac-sha1: Moved from ../.
10441         * modules/crypto/hmac-sha1-tests: Moved from ../.
10442         * modules/crypto/md2: Moved from ../.
10443         * modules/crypto/md2-tests: Moved from ../.
10444         * modules/crypto/md4: Moved from ../.
10445         * modules/crypto/md4-tests: Moved from ../.
10446         * modules/crypto/md5: Moved from ../.
10447         * modules/crypto/md5-tests: Moved from ../.
10448         * modules/crypto/memxor: Moved from ../.
10449         * modules/crypto/rijndael: Moved from ../.
10450         * modules/crypto/rijndael-tests: Moved from ../.
10451         * modules/crypto/sha1: Moved from ../.
10452
10453 2007-03-30  James Youngman  <jay@gnu.org>
10454
10455         * tests/test-stat-time.c (prepare_test): use chmod() rather than
10456         rename() to change the ctime of a file (because ctime is unaffected
10457         by rename on jfs2 on AIX 5.1).
10458         (main): Start by doing cleanup, in case a previous run failed leaving
10459         test files behind.
10460
10461 2007-03-31  Bruno Haible  <bruno@clisp.org>
10462
10463         Support old proprietary implementations of iconv.
10464         * modules/iconv_open: New file.
10465         * lib/iconv_.h: New file.
10466         * m4/iconv_h.m4: New file.
10467         * lib/iconv_open.c: New file.
10468         * lib/iconv_open-aix.gperf: New file.
10469         * lib/iconv_open-hpux.gperf: New file.
10470         * lib/iconv_open-irix.gperf: New file.
10471         * lib/iconv_open-osf.gperf: New file.
10472         * m4/iconv_open.m4: New file.
10473         * modules/linebreak (Depends-on): Add iconv_open.
10474         * modules/striconv (Depends-on): Likewise.
10475         * modules/striconveh (Depends-on): Likewise.
10476         * modules/unicodeio (Depends-on): Likewise.
10477         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
10478         (iconv_t)(-1).
10479         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
10480         conversion if cd is (iconv_t)(-1).
10481         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
10482         is not possible.
10483
10484 2007-03-31  Bruno Haible  <bruno@clisp.org>
10485
10486         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
10487         work on Solaris either. Protect also second use of "autodetect_jp".
10488
10489 2007-03-31  Bruno Haible  <bruno@clisp.org>
10490
10491         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
10492         the function is not present.
10493
10494 2007-03-31  Bruno Haible  <bruno@clisp.org>
10495
10496         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
10497         the function is not present.
10498
10499 2007-03-31  Bruno Haible  <bruno@clisp.org>
10500
10501         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
10502         a bug in HP-UX iconv_open().
10503
10504 2007-03-31  Bruno Haible  <bruno@clisp.org>
10505
10506         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
10507         (Mathematics <math.h>): New section, add fpieee.
10508         (Input/output <stdio.h>): Add fseterr.
10509         (Mathematics <math.h>): New section, add printf-frexp.
10510         (Container data structures): Add sublist.
10511         (Core language properties): Add fpucw, inline.
10512         (Functions for greatest-width integer types <inttypes.h>): Add
10513         imaxabs, imaxdiv, inttypes.
10514         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
10515         isnanl-nolibm, ldexp.
10516         (Mathematics <math.h>): New section, add printf-frexpl.
10517         (Support for systems lacking POSIX:2001): Add fprintf-posix,
10518         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
10519         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
10520         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
10521         (Unicode string functions): Add unistr/u*-mbtoucr.
10522         (Java): Add javacomp-script, javaexec-script.
10523         (C#): Add csharpcomp-script, csharpexec-script.
10524         (Support for building libraries and executables): Add havelib,
10525         relocatable-*.
10526         (Support for maintaining and releasing projects): Renamed from
10527         'Support for maintaining and release projects'. Add announce-gen.
10528
10529 2007-03-31  Bruno Haible  <bruno@clisp.org>
10530
10531         * README: Talk primarily about git.
10532         (git and CVS): Renamed from CVS.
10533         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
10534         gnulib is available through git.
10535         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
10536
10537 2007-03-30  Bruno Haible  <bruno@clisp.org>
10538
10539         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
10540         * lib/poll_.h: Likewise.
10541         * lib/stat_.h: Likewise.
10542         * lib/sys_time_.h: Likewise.
10543         * lib/sysexit_.h: Likewise.
10544         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
10545         * lib/stdbool_.h: Likewise.
10546         * lib/byteswap_.h: Add double-inclusion guard.
10547
10548 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
10549
10550         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
10551
10552 2007-03-30  Karl Berry  <karl@gnu.org>
10553
10554         * config/srclist-update: double space after USA in the license
10555         substitution, since that's how it's usually (?) written.
10556
10557 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
10558
10559         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
10560         reported by Bruno Haible.
10561
10562 2007-03-29  Bruno Haible  <bruno@clisp.org>
10563
10564         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
10565         a bug in AIX iconv().
10566
10567 2007-03-29  Bruno Haible  <bruno@clisp.org>
10568
10569         * modules/ldexpl-tests: New file.
10570         * tests/test-ldexpl.c: New file.
10571
10572 2007-03-29  Bruno Haible  <bruno@clisp.org>
10573
10574         * lib/ldexpl.c: Include fpucw.h.
10575         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
10576         multiplication.
10577         * modules/ldexpl (Depends-on): Add fpucw.
10578
10579 2007-03-29  Bruno Haible  <bruno@clisp.org>
10580
10581         * modules/ldexpl: New file.
10582         * m4/ldexpl.m4: New file.
10583         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
10584         set.
10585         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
10586         REPLACE_LDEXPL.
10587         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
10588         REPLACE_LDEXPL.
10589         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
10590         gl_FUNC_LDEXPL_WORKS.
10591         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
10592         * modules/mathl (Files): Remove lib/ldexpl.c.
10593         (Depends-on): Add ldexpl.
10594
10595 2007-03-29  Bruno Haible  <bruno@clisp.org>
10596
10597         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
10598
10599 2007-03-29  Bruno Haible  <bruno@clisp.org>
10600
10601         * tests/test-striconveh.c (main): Don't assume that a direct conversion
10602         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
10603         and possibly also HP-UX.
10604         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
10605         work on AIX, IRIX, HP-UX, OSF/1.
10606         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
10607         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
10608         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
10609         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
10610         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
10611         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
10612
10613 2007-03-29  Bruno Haible  <bruno@clisp.org>
10614
10615         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
10616
10617 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
10618
10619         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
10620         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
10621
10622 2007-03-29  Eric Blake  <ebb9@byu.net>
10623
10624         * lib/acl-internal.h: Remove redundant include.
10625         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
10626         Cygwin when a file is locked.
10627
10628 2007-03-29  Bruno Haible  <bruno@clisp.org>
10629
10630         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
10631         file.
10632         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
10633
10634 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
10635
10636         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
10637         try to remove a parent directory if the child couldn't be removed
10638         (except for the first rmdir, which could fail because the child
10639         doesn't exist).  Problem reported by Jeff Blaine in
10640         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
10641
10642 2007-03-28  Bruno Haible  <bruno@clisp.org>
10643
10644         * lib/striconveh.c (utf8conv_carefully): New function.
10645         (mem_cd_iconveh_internal): Invoke it.
10646
10647 2007-03-28  Bruno Haible  <bruno@clisp.org>
10648
10649         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
10650         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
10651         input.
10652         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
10653         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
10654         unistr/u8-uctomb.
10655
10656 2007-03-28  Bruno Haible  <bruno@clisp.org>
10657
10658         * modules/unistr/u8-mbtoucr: New file.
10659         * lib/unistr/u8-mbtoucr.c: New file.
10660         * modules/unistr/u16-mbtoucr: New file.
10661         * lib/unistr/u16-mbtoucr.c: New file.
10662         * modules/unistr/u16-mbtoucr: New file.
10663         * lib/unistr/u16-mbtoucr.c: New file.
10664         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
10665
10666 2007-03-27  Simon Josefsson  <simon@josefsson.org>
10667             Bruno Haible  <bruno@clisp.org>
10668
10669         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
10670         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
10671         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
10672
10673         * m4/stdio_h.m4: Add stubs for vasprintf too.
10674
10675         * modules/stdio: Support vasprintf in sed command.
10676
10677         * modules/vasprintf: Depend on stdio for prototypes.  Remove
10678         vasprintf.h.  Add stdio module indicator.
10679
10680         * lib/stdio_.h: Declare asprintf and vasprintf, based on
10681         vasprintf.h.
10682
10683         * lib/vasprintf.h: File removed.
10684
10685         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
10686         * lib/vasprintf.c: Ditto.
10687         * lib/xvasprintf.c: Ditto.
10688         * tests/test-vasprintf-posix.c: Ditto.
10689         * tests/test-vasprintf.c: Ditto.
10690
10691 2007-03-27  Bruno Haible  <bruno@clisp.org>
10692
10693         Make vasnprintf multithread-safe.
10694         * lib/vasnprintf.c (decimal_point_char): New function.
10695         (VASNPRINTF): Use it.
10696         Suggested by Simon Josefsson.
10697
10698 2007-03-27  Eric Blake  <ebb9@byu.net>
10699
10700         Support sub-second birthtime on cygwin.
10701         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
10702         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
10703         (get_stat_birthtime): Also work with st_birthtim.
10704
10705 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
10706
10707         * lib/stat-time.h (USE_BIRTHTIME): Remove.
10708         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
10709         (get_stat_birthtime_ns): Do not try to use "spare" fields.
10710         (get_stat_birthtime_ns): Simplify compile-time tests.
10711         (get_stat_birthtime): Change the API to look like
10712         get_stat_mtime etc., except return a negative tv_nsec on error.
10713         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
10714         Don't check for "spare" fields.
10715         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
10716         or for struct stat.st_birthtime, as these tests aren't used.
10717         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
10718
10719 2007-03-27  Bruno Haible  <bruno@clisp.org>
10720
10721         * lib/stat-time.h: Include <sys/stat.h>.
10722
10723 2007-03-27  James Youngman  <jay@gnu.org>
10724
10725         * lib/stat-time.h (get_stat_birthtime): New function for
10726           retrieving st_birthtime as provided by UFS2 (hence *BSD).
10727         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
10728           and its variants.
10729         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
10730         * modules/stat-time-test: New file.
10731         * tests/test-stat-time.c: New test, devised by Bruno Haible.
10732
10733 2007-03-26  Bruno Haible  <bruno@clisp.org>
10734
10735         Better support of signalling NaNs.
10736         * lib/atanl.c: Include isnanl.h.
10737         (atanl): Perform test for NaN at the beginning of the function and
10738         through a call to isnanl.
10739         * lib/cosl.c: Include isnanl.h.
10740         (cosl): Perform test for NaN at the beginning of the function and
10741         through a call to isnanl.
10742         * lib/ldexpl.c: Include isnanl.h.
10743         (ldexpl): Perform test for NaN through a call to isnanl.
10744         * lib/logl.c: Include isnanl.h.
10745         (logl): Perform test for NaN at the beginning of the function and
10746         through a call to isnanl.
10747         * lib/sinl.c: Include isnanl.h.
10748         (sinl): Perform test for NaN at the beginning of the function and
10749         through a call to isnanl.
10750         * lib/sqrtl.c: Include isnanl.h.
10751         (sqrtl): Perform test for NaN at the beginning of the function and
10752         through a call to isnanl.
10753         * lib/tanl.c: Include isnanl.h.
10754         (tanl): Perform test for NaN at the beginning of the function and
10755         through a call to isnanl.
10756         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
10757         * modules/mathl (Depends-on): Add isnanl.
10758
10759 2007-03-26  Eric Blake  <ebb9@byu.net>
10760
10761         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
10762         regression in logic sense of previous patch.
10763
10764 2007-03-26  Bruno Haible  <bruno@clisp.org>
10765
10766         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
10767         unportable shell command "if ! ...".
10768         Reported by Ralf Wildenhues.
10769
10770 2007-03-25  Bruno Haible  <bruno@clisp.org>
10771
10772         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
10773         <sysexits.h> file, and only add EX_CONFIG.
10774         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
10775         absolute file name and whether it is sufficient. Substitute also
10776         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
10777         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
10778         ABSOLUTE_SYSEXITS_H into sysexits.h.
10779
10780 2007-03-25  Bruno Haible  <bruno@clisp.org>
10781
10782         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
10783         hints is NULL.
10784
10785 2007-03-25  Bruno Haible  <bruno@clisp.org>
10786
10787         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
10788         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
10789
10790 2007-03-25  Bruno Haible  <bruno@clisp.org>
10791
10792         * lib/vasnprintf.c: Include langinfo.h.
10793         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
10794         multithread-safe.
10795         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
10796         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
10797         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
10798         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
10799         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
10800         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
10801         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
10802         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
10803         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
10804         Reported by Simon Josefsson.
10805
10806 2007-03-25  Bruno Haible  <bruno@clisp.org>
10807
10808         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
10809         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
10810         * modules/vasnprintf (Depends-on): Add stdint.
10811
10812 2007-03-25  Bruno Haible  <bruno@clisp.org>
10813
10814         * modules/fpieee: New file.
10815         * m4/fpieee.m4: New file.
10816         * modules/isnan-nolibm (Depends-on): Add fpieee.
10817         * modules/isnanl-nolibm (Depends-on): Add fpieee.
10818         * modules/isnanl (Depends-on): Add fpieee.
10819
10820 2007-03-25  Bruno Haible  <bruno@clisp.org>
10821
10822         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
10823
10824 2007-03-25  Bruno Haible  <bruno@clisp.org>
10825
10826         Avoid test failures on IRIX 6.5.
10827         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
10828         (main): Use it.
10829         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
10830         macros.
10831         (main): Use them.
10832
10833 2007-03-25  Bruno Haible  <bruno@clisp.org>
10834
10835         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
10836         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
10837         exists but doesn't work.
10838         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
10839         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
10840         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
10841         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
10842
10843 2007-03-25  Bruno Haible  <bruno@clisp.org>
10844
10845         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
10846         returns inf. Needed on IRIX 6.5.
10847
10848 2007-03-25  Bruno Haible  <bruno@clisp.org>
10849
10850         * tests/test-frexpl.c: Include isnanl-nolibm.h.
10851         (main): Use isnanl instead of x != x idiom.
10852         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
10853
10854         * tests/test-frexp.c: Include isnan.h.
10855         (main): Use isnan instead of x != x idiom.
10856         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
10857
10858 2007-03-25  Bruno Haible  <bruno@clisp.org>
10859
10860         * tests/test-frexp.c (NaN): New function/macro.
10861         (main): Use it instead of 0.0 / 0.0.
10862         * tests/test-isnan.c (NaN): New function/macro.
10863         (main): Use it instead of 0.0 / 0.0.
10864         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
10865         (test_function): Use it instead of 0.0 / 0.0.
10866         * tests/test-vasprintf-posix.c (NaN): New function/macro.
10867         (test_function): Use it instead of 0.0 / 0.0.
10868         * tests/test-snprintf-posix.h (NaN): New function/macro.
10869         (test_function): Use it instead of 0.0 / 0.0.
10870         * tests/test-sprintf-posix.h (NaN): New function/macro.
10871         (test_function): Use it instead of 0.0 / 0.0.
10872         * tests/test-fprintf-posix.h (NaN): New function/macro.
10873         (test_function): Use it instead of 0.0 / 0.0.
10874         * tests/test-printf-posix.h (NaN): New function/macro.
10875         (test_function): Use it instead of 0.0 / 0.0.
10876
10877         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
10878
10879 2007-03-25  Bruno Haible  <bruno@clisp.org>
10880
10881         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
10882
10883 2007-03-25  Bruno Haible  <bruno@clisp.org>
10884
10885         * lib/regexec.c (merge_state_with_log): Make static.
10886
10887 2007-03-25  Bruno Haible  <bruno@clisp.org>
10888
10889         * lib/trigl.c (kernel_rem_pio2): Make static.
10890
10891 2007-03-25  Bruno Haible  <bruno@clisp.org>
10892
10893         * lib/sincosl.c (sincosl_table): Make static.
10894
10895 2007-03-25  Bruno Haible  <bruno@clisp.org>
10896
10897         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
10898         if the compiler does not support C99.
10899
10900 2007-03-25  Bruno Haible  <bruno@clisp.org>
10901
10902         * modules/time (Makefile.am): Ensure all rule action lines start with a
10903         tab.
10904
10905 2007-03-24  Bruno Haible  <bruno@clisp.org>
10906
10907         * modules/tsearch-tests: New file.
10908         * tests/test-tsearch.sh: New file.
10909         * tests/test-tsearch.c: New file, mostly copied from glibc.
10910
10911         * modules/search-tests: New file.
10912         * tests/test-search.c: New file.
10913
10914         * modules/search: New file.
10915         * lib/search_.h: New file, incorporating lib/tsearch.h.
10916         * m4/search_h.m4: New file.
10917         * lib/tsearch.h: Remove file.
10918         * lib/tsearch.c: Include search.h instead of tsearch.h.
10919         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
10920         HAVE_TSEARCH.
10921         * modules/tsearch (Files): Remove lib/tsearch.h.
10922         (Depends-on): Add search.
10923         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
10924         (Include): Change tsearch.h into search.h.
10925
10926 2007-03-24  Bruno Haible  <bruno@clisp.org>
10927
10928         * modules/fpucw: New file.
10929         * lib/fpucw.h: New file.
10930         * lib/frexp.c: Include fpucw.h.
10931         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
10932         (FUNC): Use them.
10933         * lib/printf-frexp.c: Include fpucw.h.
10934         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
10935         (FUNC): Use them.
10936         * lib/vasnprintf.c: Include fpucw.h.
10937         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
10938         'long double' calculations.
10939         * tests/test-frexpl.c: Include fpucw.h.
10940         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
10941         * tests/test-printf-frexpl.c: Include fpucw.h.
10942         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
10943         * modules/frexpl (Depends-on): Add fpucw.
10944         * modules/printf-frexpl (Depends-on): Likewise.
10945         * modules/fprintf-posix (Depends-on): Likewise.
10946         * modules/snprintf-posix (Depends-on): Likewise.
10947         * modules/sprintf-posix (Depends-on): Likewise.
10948         * modules/vasnprintf-posix (Depends-on): Likewise.
10949         * modules/vasprintf-posix (Depends-on): Likewise.
10950         * modules/vfprintf-posix (Depends-on): Likewise.
10951         * modules/vsnprintf-posix (Depends-on): Likewise.
10952         * modules/vsprintf-posix (Depends-on): Likewise.
10953         * modules/frexpl-tests (Depends-on): Likewise.
10954         * modules/printf-frexpl-tests (Depends-on): Likewise.
10955
10956 2007-03-24  Bruno Haible  <bruno@clisp.org>
10957
10958         * lib/float+.h: New file.
10959         * lib/isnan.c: Include float+.h.
10960         (SIZE): New macro.
10961         (FUNC): Compare only SIZE bytes of the value.
10962         * lib/vasnprintf.c: Include float+.h.
10963         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
10964         SIZEOF_LDBL or SIZEOF_DBL bytes.
10965         * modules/isnan-nolibm (Files): Add lib/float+.h.
10966         * modules/isnanl-nolibm (Files): Add lib/float+.h.
10967         * modules/isnanl (Files): Add lib/float+.h.
10968         * modules/vasnprintf (Files): Add lib/float+.h.
10969
10970 2007-03-24  Bruno Haible  <bruno@clisp.org>
10971
10972         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
10973         include isnanl-nolibm.h.
10974
10975 2007-03-24  Bruno Haible  <bruno@clisp.org>
10976
10977         * tests/test-read-file.c (main): Don't produce spurious output for
10978         expected situations. Make the test fail if it encountered unexpected
10979         results.
10980
10981 2007-03-24  Bruno Haible  <bruno@clisp.org>
10982
10983         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
10984         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
10985
10986 2007-03-24  Bruno Haible  <bruno@clisp.org>
10987
10988         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
10989
10990 2007-03-24  Bruno Haible  <bruno@clisp.org>
10991
10992         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
10993         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
10994
10995         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
10996         * modules/utf8-ucs4: Turn into a symbolic link to module
10997         unistr/u8-mbtouc.
10998
10999         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
11000         utf8-ucs4-unsafe.
11001         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
11002         unistr/u8-mbtouc-unsafe.
11003
11004         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
11005         * modules/utf16-ucs4: Turn into a symbolic link to module
11006         unistr/u16-mbtouc.
11007
11008         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
11009         utf16-ucs4-unsafe.
11010         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
11011         unistr/u16-mbtouc-unsafe.
11012
11013         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
11014         * modules/ucs4-utf8: Turn into a symbolic link to module
11015         unistr/u8-ubtomb.
11016
11017         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
11018         * modules/ucs4-utf16: Turn into a symbolic link to module
11019         unistr/u16-ubtomb.
11020
11021 2007-03-24  Bruno Haible  <bruno@clisp.org>
11022
11023         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
11024         Enable the function only if HAVE_INLINE.
11025         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
11026         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
11027         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
11028         Enable the function only if HAVE_INLINE.
11029         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
11030         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
11031         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
11032         Enable the function only if HAVE_INLINE.
11033         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
11034         Enable the function only if HAVE_INLINE.
11035         * modules/utf8-ucs4: Update.
11036         * modules/utf8-ucs4-unsafe: Update.
11037         * modules/utf16-ucs4: Update.
11038         * modules/utf16-ucs4-unsafe: Update.
11039         * modules/ucs4-utf8: Update.
11040         * modules/ucs4-utf16: Update.
11041
11042 2007-03-24  Bruno Haible  <bruno@clisp.org>
11043
11044         * lib/utf8-ucs4.h: Remove file.
11045         * lib/utf8-ucs4-unsafe.h: Remove file.
11046         * lib/utf16-ucs4.h: Remove file.
11047         * lib/utf16-ucs4-unsafe.h: Remove file.
11048         * lib/ucs4-utf8.h: Remove file.
11049         * lib/ucs4-utf16.h: Remove file.
11050         * lib/unistr.h: Include their previous contents.
11051         * m4/utf-ucs4.m4: Remove file.
11052         * m4/ucs4-utf.m4: Remove file.
11053         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
11054         (Depends-on): Add unistr/base.
11055         (configure.ac): Remove gl_UTF_UCS4.
11056         (Makefile.am): Update.
11057         (Include): Change to unistr.h.
11058         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
11059         (Depends-on): Add unistr/base.
11060         (configure.ac): Remove gl_UTF_UCS4.
11061         (Makefile.am): Update.
11062         (Include): Change to unistr.h.
11063         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
11064         (Depends-on): Add unistr/base.
11065         (configure.ac): Remove gl_UTF_UCS4.
11066         (Makefile.am): Update.
11067         (Include): Change to unistr.h.
11068         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
11069         (Depends-on): Add unistr/base.
11070         (configure.ac): Remove gl_UTF_UCS4.
11071         (Makefile.am): Update.
11072         (Include): Change to unistr.h.
11073         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
11074         (Depends-on): Add unistr/base.
11075         (configure.ac): Remove gl_UCS4_UTF.
11076         (Makefile.am): Update.
11077         (Include): Change to unistr.h.
11078         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
11079         (Depends-on): Add unistr/base.
11080         (configure.ac): Remove gl_UCS4_UTF.
11081         (Makefile.am): Update.
11082         (Include): Change to unistr.h.
11083         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
11084         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
11085         utf8-ucs4-unsafe.h.
11086         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
11087         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
11088         utf16-ucs4-unsafe.h.
11089         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
11090         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
11091         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
11092         * lib/unistr/u8-strchr.c: Likewise.
11093         * lib/unistr/u8-strrchr.c: Likewise.
11094         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
11095         * lib/unistr/u16-strchr.c: Likewise.
11096         * lib/unistr/u16-strrchr.c: Likewise.
11097         * lib/striconveh.c: Update.
11098         * lib/linebreak.c: Update.
11099
11100 2007-03-24  Bruno Haible  <bruno@clisp.org>
11101
11102         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
11103         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
11104
11105 2007-03-22  Bruno Haible  <bruno@clisp.org>
11106
11107         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
11108
11109 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
11110
11111         * MODULES.html.sh (File system functions): New module write-any-file.
11112         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
11113         * m4/write-any-file.m4: New files.
11114
11115 2007-03-23  Eric Blake  <ebb9@byu.net>
11116
11117         * gnulib-tool: Rearrange space-tab sequences, since some editors
11118         like to eat them.
11119
11120 2007-03-23  Eric Blake  <ebb9@byu.net>
11121
11122         * lib/version-etc.c (version_etc_va): Update license wording to
11123         be more concise.  Recommended by Richard Stallman.
11124
11125 2007-03-22  Bruno Haible  <bruno@clisp.org>
11126
11127         * lib/poll.c (MSG_PEEK): New fallback definition.
11128
11129 2007-03-22  Bruno Haible  <bruno@clisp.org>
11130
11131         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
11132         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
11133         (main): Update.
11134         Fixes a compilation error on BeOS.
11135
11136 2007-03-22  Bruno Haible  <bruno@clisp.org>
11137
11138         * modules/frexpl-tests: New file.
11139         * tests/test-frexpl.c: New file.
11140
11141         * modules/frexpl: New file.
11142         * m4/frexpl.m4: New file.
11143         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
11144         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
11145         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
11146         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
11147         (Depends-on): Add frexpl. Remove isnanl-nolibm.
11148         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
11149
11150 2007-03-22  Bruno Haible  <bruno@clisp.org>
11151
11152         * lib/frexpl.c: Share code with lib/frexp.c.
11153         * modules/mathl (Files): Add lib/frexp.c.
11154         (Depends-on): Add isnanl-nolibm.
11155
11156 2007-03-22  Bruno Haible  <bruno@clisp.org>
11157
11158         * modules/printf-frexp (Files): Add m4/frexp.m4.
11159         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
11160         only if the found frexp function actually works.
11161
11162 2007-03-22  Bruno Haible  <bruno@clisp.org>
11163
11164         * lib/frexp.c: Remove older implementation that uses divisions.
11165
11166 2007-03-21  Bruno Haible  <bruno@clisp.org>
11167
11168         * modules/frexp-tests: New file.
11169         * tests/test-frexp.c: New file.
11170
11171         * modules/frexp: New file.
11172         * lib/frexp.c: New file.
11173         * m4/frexp.m4: New file.
11174         * lib/math_.h (frexp): New declaration.
11175         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
11176         REPLACE_FREXP.
11177         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
11178
11179 2007-03-21  Bruno Haible  <bruno@clisp.org>
11180
11181         * modules/isnanl-tests: New file.
11182         * tests/test-isnanl.c: New file.
11183
11184         * modules/isnanl: New file.
11185         * lib/isnanl.h: New file.
11186         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
11187         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
11188         gl_FUNC_ISNANL_WORKS.
11189         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
11190         New macros.
11191
11192 2007-03-21  Bruno Haible  <bruno@clisp.org>
11193
11194         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
11195         lib/isnanl.h.
11196         (Include): Update.
11197         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
11198         * lib/vasnprintf.c: Update.
11199         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
11200         tests/test-isnanl.h, remove tests/test-isnanl.c.
11201         (Makefile.am): Update.
11202         * tests/test-isnanl-nolibm.c: New file.
11203         * tests/test-isnanl.h: New file.
11204         * tests/test-isnanl.c: Remove file.
11205
11206 2007-03-21  Jim Meyering  <jim@meyering.net>
11207
11208         When trying to open ".", treat ESTALE like EACCES.
11209         * lib/savewd.c (savewd_save): Resort to forking not just upon
11210         failure with EACCES, but also when errno is ESTALE.
11211
11212 2007-03-20  Bruno Haible  <bruno@clisp.org>
11213
11214         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
11215         Needed on AIX 5.1. Reported by Matthew Woehlke.
11216
11217 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
11218
11219         Suggestions by Bruno Haible:
11220         * lib/acl-internal.h: Include "gettext.h" rather than rolling
11221         our own.
11222         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
11223         * modules/acl (Depends-on): Add gettext.
11224
11225 2007-03-19  Bruno Haible  <bruno@clisp.org>
11226
11227         * modules/iconvme: Remove file.
11228         * lib/iconvme.h: Remove file.
11229         * lib/iconvme.c: Remove file.
11230         * m4/iconvme.m4: Remove file.
11231
11232 2007-03-19  Bruno Haible  <bruno@clisp.org>
11233
11234         * doc/relocatable-maint.texi: Break long shell script line.
11235         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
11236
11237 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
11238
11239         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
11240         handle file_has_acl.
11241         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
11242         * lib/acl.c: Move header inclusions and related macro defns into
11243         lib/acl-internal.h.
11244         (S_ISLNK): Remove defn, since that's now done for us.
11245         (file_has_acl): Move to lib/file-has-acl.c.
11246         Call acl_trivial if available.  This is the crucial part of the fix.
11247         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
11248         shared within the library.  Rewrite a bit, partly to make it compatible
11249         with the GNU coding style.
11250         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
11251         Remove unnecessary double-quotes.
11252         Don't test for acl_to_text; the build will catch that.
11253         Replace acl_entries if it doesn't exist and it is needed.
11254         Check for -lsec and acl_trivial (as used on Solaris 10).
11255         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
11256         lib/file-has-acl.c.
11257         (Depends-on): Add sys_stat, for S_ISLNK.
11258
11259 2007-03-19  Ben Pfaff  <blp@gnu.org>
11260
11261         * doc/gnulib.texi: Fix typos.
11262         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
11263
11264 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
11265
11266         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
11267         If size is zero here, buf must be zero.
11268
11269 2007-03-19  Simon Josefsson  <simon@josefsson.org>
11270
11271         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
11272         <bruno@clisp.org>.
11273
11274 2007-03-18  Bruno Haible  <bruno@clisp.org>
11275
11276         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
11277         Suggested by Eric Blake.
11278
11279 2007-03-18  Ben Pfaff  <blp@gnu.org>
11280
11281         * doc/relocatable.texi: Recommend using as prefix a directory
11282         that does not exist and will never be created.  Based on
11283         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
11284         and others.
11285
11286 2007-03-17  Bruno Haible  <bruno@clisp.org>
11287
11288         * lib/fchownat.c: Include lchown.h.
11289
11290 2007-03-17  Bruno Haible  <bruno@clisp.org>
11291
11292         Fix endless loop when the given allocated size was > INT_MAX.
11293         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
11294         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
11295         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
11296         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
11297         * lib/sprintf.c (sprintf): Likewise.
11298
11299 2007-03-17  Bruno Haible  <bruno@clisp.org>
11300
11301         * tests/test-argp-2.sh (func_compare): Output a context diff.
11302
11303 2007-03-17  Bruno Haible  <bruno@clisp.org>
11304
11305         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
11306         locale's decimal-point character.
11307
11308 2007-03-17  Bruno Haible  <bruno@clisp.org>
11309
11310         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
11311         before comparing it. Needed because on some platforms (e.g. x86) a
11312         'long double' occupies less bytes than sizeof (long double).
11313
11314 2007-03-17  Bruno Haible  <bruno@clisp.org>
11315
11316         * tests/test-crc.c (main): Make printf statements 64-bit clean.
11317         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
11318         * tests/test-getaddrinfo.c (simple): Likewise.
11319         * tests/test-read-file.c (main): Likewise.
11320
11321 2007-03-17  Bruno Haible  <bruno@clisp.org>
11322
11323         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
11324
11325 2007-03-17  Bruno Haible  <bruno@clisp.org>
11326
11327         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
11328         unused variable.
11329
11330 2007-03-17  Bruno Haible  <bruno@clisp.org>
11331
11332         * tests/test-c-strcasecmp.c: Include c-strcase.h.
11333         * tests/test-c-strncasecmp.c: Likewise.
11334
11335 2007-03-17  Bruno Haible  <bruno@clisp.org>
11336
11337         * modules/stdlib (Depends-on): Add unistd.
11338         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
11339         Needed for MacOS X 10.3.
11340
11341 2007-03-17  Bruno Haible  <bruno@clisp.org>
11342
11343         * lib/unistr/u-strdup.h: Include <stdlib.h>.
11344
11345 2007-03-17  Bruno Haible  <bruno@clisp.org>
11346
11347         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
11348
11349 2007-03-17  Bruno Haible  <bruno@clisp.org>
11350
11351         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
11352         to reflect files copied from gnulib (with or without modifications).
11353         Suggested by Jim Meyering.
11354
11355 2007-03-17  Eric Blake  <ebb9@byu.net>
11356
11357         * NEWS: Document stdlib change from 2007-02-18.
11358
11359 2007-03-17  Jim Meyering  <jim@meyering.net>
11360
11361         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
11362         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
11363         someone uses a name containing shell meta-characters.
11364         Reported by Alfred M. Szmidt.
11365
11366         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
11367
11368 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
11369
11370         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
11371         and copy gettext configuration files only if configure.ac contains
11372         a use of AM_GNU_GETTEXT_VERSION.
11373
11374 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
11375
11376         * build-aux/bootstrap (gnulib_name): New variable.
11377         (gnulib_tool_options): Use it.
11378
11379 2007-03-13  Simon Josefsson  <simon@josefsson.org>
11380
11381         * tests/test-des.c: Use new namespace.
11382
11383 2007-03-15  Bruno Haible  <bruno@clisp.org>
11384
11385         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
11386         Reported by James Youngman <jay@gnu.org>.
11387
11388 2007-03-15  Bruno Haible  <bruno@clisp.org>
11389
11390         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
11391         declared prototype. Needed with cc on OSF/1 5.1.
11392
11393 2007-03-15  Bruno Haible  <bruno@clisp.org>
11394
11395         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
11396         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
11397         (struct gl_list_implementation): Add dispose_fn argument to the
11398         'create_empty', 'create' methods.
11399         (struct gl_list_impl_base): Add field 'dispose_fn'.
11400         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
11401         argument.
11402         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
11403         dispose_fn argument.
11404         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
11405         dispose_fn on the dropped values.
11406         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
11407         dispose_fn argument.
11408         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
11409         dropped values.
11410         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
11411         (gl_tree_remove_node): Call dispose_fn on the dropped value.
11412         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
11413         (gl_tree_remove_node): Call dispose_fn on the dropped value.
11414         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
11415         argument.
11416         (gl_tree_list_free): Call dispose_fn on the dropped values.
11417         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
11418         the dropped values.
11419         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
11420         Add dispose_fn argument.
11421         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
11422         Call dispose_fn on the dropped values.
11423         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
11424         Add dispose_fn argument.
11425         (gl_sublist_create): Initialize the 'dispose_fn' field.
11426         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
11427         * tests/test-array_list.c (main): Update.
11428         * tests/test-carray_list.c (main): Update.
11429         * tests/test-avltree_list.c (main): Update.
11430         * tests/test-rbtree_list.c (main): Update.
11431         * tests/test-avltreehash_list.c (main): Update.
11432         * tests/test-rbtreehash_list.c (main): Update.
11433         * tests/test-linked_list.c (main): Update.
11434         * tests/test-linkedhash_list.c (main): Update.
11435         * tests/test-array_oset.c (main): Update.
11436
11437 2007-03-15  Bruno Haible  <bruno@clisp.org>
11438
11439         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
11440         (gl_oset_create_empty): Add dispose_fn argument.
11441         (struct gl_oset_implementation): Add dispose_fn argument to
11442         'create_empty' method.
11443         (struct gl_oset_impl_base): Add dispose_fn field.
11444         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
11445         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
11446         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
11447         values.
11448         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
11449         (gl_tree_oset_free): Call dispose_fn on the dropped values.
11450         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
11451         dropped value.
11452         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
11453         dropped value.
11454         * tests/test-array_oset.c (main): Update.
11455         * tests/test-avltree_oset.c (main): Update.
11456         * tests/test-rbtree_oset.c (main): Update.
11457         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
11458
11459 2007-03-13  Bruno Haible  <bruno@clisp.org>
11460
11461         * tests/test-stdbool.c (i): Update after last patch.
11462
11463 2007-03-12  Bruno Haible  <bruno@clisp.org>
11464
11465         * lib/quotearg.c: Include <wctype.h> early, before the definition of
11466         the iswprint macro. Needed on Solaris 2.5.1.
11467
11468 2007-03-12  Bruno Haible  <bruno@clisp.org>
11469
11470         * tests/test-printf-frexp.c (main): Declare x as volatile.
11471
11472 2007-03-12  Simon Josefsson  <simon@josefsson.org>
11473
11474         * doc/gnulib.texi (Build robot for gnulib): New section.
11475
11476 2007-03-12  Jim Meyering  <jim@meyering.net>
11477
11478         * build-aux/bootstrap: New file.
11479         * build-aux/bootstrap.conf: New file, from coreutils.
11480
11481 2007-03-11  Bruno Haible  <bruno@clisp.org>
11482
11483         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
11484
11485 2007-03-12  Simon Josefsson  <simon@josefsson.org>
11486
11487         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
11488         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
11489         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
11490
11491 2007-03-11  Bruno Haible  <bruno@clisp.org>
11492
11493         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
11494         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
11495
11496 2007-03-11  Bruno Haible  <bruno@clisp.org>
11497
11498         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
11499         formula. Needed for SunPRO C 5.0.
11500
11501 2007-03-11  Bruno Haible  <bruno@clisp.org>
11502
11503         * modules/long-options (Depends-on): Add getopt.
11504
11505 2007-03-11  Bruno Haible  <bruno@clisp.org>
11506
11507         * modules/modechange (Depends-on): Add stdbool.
11508
11509 2007-03-11  Bruno Haible  <bruno@clisp.org>
11510
11511         * modules/i-ring (Depends-on): Add stdbool.
11512
11513 2007-03-11  Bruno Haible  <bruno@clisp.org>
11514
11515         * modules/gc-des (Depends-on): Add stdbool.
11516
11517 2007-03-11  Bruno Haible  <bruno@clisp.org>
11518
11519         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
11520
11521 2007-03-11  Bruno Haible  <bruno@clisp.org>
11522
11523         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
11524
11525 2007-03-11  Bruno Haible  <bruno@clisp.org>
11526
11527         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
11528
11529 2007-03-11  Bruno Haible  <bruno@clisp.org>
11530
11531         * lib/vasnprintf.c (sprintf): Undefine.
11532
11533 2007-03-11  Bruno Haible  <bruno@clisp.org>
11534
11535         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
11536         initializers in SunPRO C and Compaq C compilers.
11537
11538 2007-03-11  Bruno Haible  <bruno@clisp.org>
11539
11540         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
11541         decrementing code ANSI C compliant.
11542
11543 2007-03-11  Bruno Haible  <bruno@clisp.org>
11544
11545         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
11546         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
11547
11548 2007-03-11  Bruno Haible  <bruno@clisp.org>
11549
11550         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
11551         <stdbool.h> substitute doesn't pass.
11552
11553 2007-03-11  Bruno Haible  <bruno@clisp.org>
11554
11555         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
11556
11557 2007-03-11  Bruno Haible  <bruno@clisp.org>
11558
11559         * gnulib-tool (func_create_megatestdir): Create also an autobuild
11560         script, for submission to autobuild.josefsson.org.
11561
11562 2007-03-10  Bruno Haible  <bruno@clisp.org>
11563
11564         * modules/canonicalize-lgpl-tests: New file.
11565         * tests/test-canonicalize-lgpl.sh: New file.
11566         * tests/test-canonicalize-lgpl.c: New file.
11567
11568         * modules/c-strcase-tests: New file.
11569         * tests/test-c-strcase.sh: New file.
11570         * tests/test-c-strcasecmp.c: New file.
11571         * tests/test-c-strncasecmp.c: New file.
11572
11573         * modules/atexit-tests: New file.
11574         * tests/test-atexit.sh: New file.
11575         * tests/test-atexit.c: New file.
11576
11577 2007-03-10  Bruno Haible  <bruno@clisp.org>
11578
11579         * tests/test-binary-io.sh: Use temporary filenames that are not so
11580         likely to clash with those of other tests (in a parallel make).
11581         * tests/test-binary-io.c: Likewise.
11582
11583 2007-03-10  Bruno Haible  <bruno@clisp.org>
11584
11585         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
11586         fallback; use #error instead.
11587         Suggested by Simon Josefsson.
11588
11589 2007-03-10  Bruno Haible  <bruno@clisp.org>
11590
11591         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
11592         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
11593         first and the last.
11594
11595 2007-03-10  Bruno Haible  <bruno@clisp.org>
11596
11597         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
11598
11599 2007-03-10  Bruno Haible  <bruno@clisp.org>
11600
11601         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
11602         "make distcheck".
11603         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
11604         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
11605         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
11606
11607 2007-03-10  Bruno Haible  <bruno@clisp.org>
11608
11609         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
11610         variable.
11611         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
11612         variable.
11613
11614 2007-03-09  Eric Blake  <ebb9@byu.net>
11615         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
11616
11617         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
11618         types are not being provided by gnulib.
11619         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
11620         types are supported.
11621
11622 2007-03-10  Bruno Haible  <bruno@clisp.org>
11623
11624         * lib/stdio_.h (__attribute__): New macro.
11625         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
11626         vsprintf): Specify __attribute__ __format__ for GCC.
11627         Suggested by Eric Blake.
11628
11629 2007-03-09  Bruno Haible  <bruno@clisp.org>
11630
11631         * modules/printf-posix-tests: New file.
11632         * tests/test-printf-posix.sh: New file.
11633         * tests/test-printf-posix.c: New file.
11634
11635         * modules/printf-posix: New file.
11636         * lib/printf.c: New file.
11637         * m4/printf-posix-rpl.m4: New file.
11638         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
11639         REPLACE_PRINTF.
11640         * lib/stdio_.h (printf): New declaration.
11641         (format, __format__, ____printf____, ____scanf____, ____strftime____,
11642         ____strfmon____): New macros.
11643         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
11644         REPLACE_PRINTF.
11645
11646 2007-03-09  Bruno Haible  <bruno@clisp.org>
11647
11648         * tests/test-vasnprintf-posix2.sh: New file.
11649         * tests/test-vasnprintf-posix2.c: New file.
11650         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
11651         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
11652         (Makefile.am): Activate test-vasnprintf-posix2.sh.
11653
11654         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
11655         a locale dependent decimal point, rather than always '.'.
11656
11657 2007-03-09  Eric Blake  <ebb9@byu.net>
11658
11659         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
11660         spite of platforms like Tandem/NSK that define it to -1.
11661
11662 2007-03-08  Bruno Haible  <bruno@clisp.org>
11663
11664         * modules/vprintf-posix-tests: New file.
11665         * tests/test-vprintf-posix.sh: New file.
11666         * tests/test-vprintf-posix.c: New file.
11667         * tests/test-printf-posix.h: New file.
11668
11669         * modules/vprintf-posix: New file.
11670         * lib/vprintf.c: New file.
11671         * m4/vprintf-posix.m4: New file.
11672         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
11673         REPLACE_VPRINTF.
11674         * lib/stdio_.h (vprintf): New declaration.
11675         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
11676         REPLACE_VPRINTF.
11677
11678 2007-03-08  Bruno Haible  <bruno@clisp.org>
11679
11680         * modules/fprintf-posix-tests: New file.
11681         * tests/test-fprintf-posix.sh: New file.
11682         * tests/test-fprintf-posix.c: New file.
11683
11684         * modules/fprintf-posix: New file.
11685         * lib/fprintf.c: New file.
11686         * m4/fprintf-posix.m4: New file.
11687         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
11688         REPLACE_FPRINTF.
11689         * lib/stdio_.h (fprintf): New declaration.
11690         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
11691         REPLACE_FPRINTF.
11692
11693 2007-03-08  Bruno Haible  <bruno@clisp.org>
11694
11695         * modules/vfprintf-posix-tests: New file.
11696         * tests/test-vfprintf-posix.sh: New file.
11697         * tests/test-vfprintf-posix.c: New file.
11698         * tests/test-fprintf-posix.h: New file.
11699         * tests/test-fprintf-posix.out: New file.
11700
11701         * modules/vfprintf-posix: New file.
11702         * lib/vfprintf.c: New file.
11703         * m4/vfprintf-posix.m4: New file.
11704         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
11705         REPLACE_VFPRINTF.
11706         * lib/stdio_.h (vfprintf): New declaration.
11707         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
11708         REPLACE_VFPRINTF.
11709
11710 2007-03-08  Bruno Haible  <bruno@clisp.org>
11711
11712         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
11713
11714 2007-03-08  Bruno Haible  <bruno@clisp.org>
11715
11716         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
11717         instead of 'expr' invocations.
11718         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
11719         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
11720         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
11721         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
11722         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
11723         Suggested by Paul Eggert.
11724
11725 2007-03-08  Bruno Haible  <bruno@clisp.org>
11726
11727         * modules/fseterr-tests: New file.
11728         * tests/test-fseterr.c: New file.
11729
11730         * modules/fseterr: New file.
11731         * lib/fseterr.h: New file.
11732         * lib/fseterr.c: New file.
11733
11734 2007-03-08  Bruno Haible  <bruno@clisp.org>
11735
11736         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
11737         * lib/getopt_.h: Likewise.
11738         * lib/mbswidth.h: Likewise.
11739         * lib/setenv.h: Likewise.
11740         * lib/vasnprintf.h: Likewise.
11741         * lib/vasprintf.h: Likewise.
11742         * lib/verror.h: Likewise.
11743         * lib/xsetenv.h: Likewise.
11744         * lib/xvasprintf.h: Likewise.
11745
11746 2007-03-08  Jim Meyering  <jim@meyering.net>
11747
11748         * users.txt: Add parted.
11749
11750         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
11751
11752 2007-03-07  Bruno Haible  <bruno@clisp.org>
11753
11754         * m4/printf.m4: Make the shell script snippets copy&pastable.
11755
11756 2007-03-02  Bruno Haible  <bruno@clisp.org>
11757
11758         * lib/netinet_in_.h: New file.
11759         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
11760         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
11761         * modules/netinet_in (Files): Add lib/netinet_in_.h.
11762         (Depends-on): Add absolute-header.
11763         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
11764         into netinet/in.h.
11765
11766 2007-03-03  Bruno Haible  <bruno@clisp.org>
11767
11768         * lib/sys_select_.h: New file.
11769         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
11770         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
11771         * modules/sys_select (Files): Add lib/sys_select_.h.
11772         (Depends-on): Add absolute-header.
11773         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
11774         into sys/select.h.
11775
11776 2007-03-02  Bruno Haible  <bruno@clisp.org>
11777
11778         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
11779         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
11780         values.
11781         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
11782         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
11783         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
11784         * modules/sys_socket (Depends-on): Add absolute-header.
11785         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
11786         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
11787         (Include): Remove requirement of inclusion of <sys/types.h>.
11788
11789 2007-03-02  Bruno Haible  <bruno@clisp.org>
11790
11791         * lib/byteswap_.h (bswap_32): Fix formula.
11792
11793 2007-03-06  Bruno Haible  <bruno@clisp.org>
11794
11795         * modules/sprintf-posix-tests: New file.
11796         * tests/test-sprintf-posix.c: New file.
11797
11798         * modules/sprintf-posix: New file.
11799         * lib/sprintf.c: New file.
11800         * m4/sprintf-posix.m4: New file.
11801         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
11802         REPLACE_SPRINTF.
11803         * lib/stdio_.h (sprintf): New declaration.
11804         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
11805         REPLACE_SPRINTF.
11806
11807 2007-03-06  Bruno Haible  <bruno@clisp.org>
11808
11809         * modules/vsprintf-posix-tests: New file.
11810         * tests/test-vsprintf-posix.c: New file.
11811         * tests/test-sprintf-posix.h: New file.
11812
11813         * modules/vsprintf-posix: New file.
11814         * lib/vsprintf.c: New file.
11815         * m4/vsprintf-posix.m4: New file.
11816         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
11817         REPLACE_VSPRINTF.
11818         * lib/stdio_.h (vsprintf): New declaration.
11819         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
11820         REPLACE_VSPRINTF.
11821
11822 2007-03-06  Bruno Haible  <bruno@clisp.org>
11823
11824         * modules/vsnprintf (Depend-on): Remove minmax.
11825
11826 2007-03-06  Bruno Haible  <bruno@clisp.org>
11827
11828         * modules/snprintf-posix-tests: New file.
11829         * tests/test-snprintf-posix.c: New file.
11830
11831         * modules/snprintf-posix: New file.
11832         * m4/snprintf-posix.m4: New file.
11833         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
11834         gl_FUNC_SNPRINTF.
11835         (gl_FUNC_SNPRINTF): Invoke it.
11836         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
11837         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
11838         is set.
11839         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
11840
11841 2007-03-06  Bruno Haible  <bruno@clisp.org>
11842
11843         * modules/vsnprintf-posix-tests: New file.
11844         * tests/test-vsnprintf-posix.c: New file.
11845         * tests/test-snprintf-posix.h: New file.
11846
11847         * modules/vsnprintf-posix: New file.
11848         * m4/vsnprintf-posix.m4: New file.
11849         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
11850         gl_FUNC_VSNPRINTF.
11851         (gl_FUNC_VSNPRINTF): Invoke it.
11852         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
11853         * lib/stdio_.h (vsnprintf): Define as a replacement if
11854         REPLACE_VSNPRINTF is set.
11855         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
11856
11857 2007-03-06  Bruno Haible  <bruno@clisp.org>
11858
11859         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
11860         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
11861
11862 2007-03-06  Bruno Haible  <bruno@clisp.org>
11863
11864         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
11865         (asinl): Declare also if HAVE_DECL_ASINL is set.
11866         (atanl): Declare also if HAVE_DECL_ATANL is set.
11867         (ceill): Declare also if HAVE_DECL_CEILL is set.
11868         (cosl): Declare also if HAVE_DECL_COSL is set.
11869         (expl): Declare also if HAVE_DECL_EXPL is set.
11870         (floorl): Declare also if HAVE_DECL_FLOORL is set.
11871         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
11872         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
11873         (logl): Declare also if HAVE_DECL_LOGL is set.
11874         (sinl): Declare also if HAVE_DECL_SINL is set.
11875         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
11876         (tanl): Declare also if HAVE_DECL_TANL is set.
11877         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
11878         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
11879         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
11880         declaration of frexpl, ldexpl.
11881         * modules/printf-frexpl (Depends-on): Add math.
11882         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
11883
11884 2007-03-05  Bruno Haible  <bruno@clisp.org>
11885
11886         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
11887         frexpl and ldexpl are declared.
11888         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
11889
11890 2007-03-05  Bruno Haible  <bruno@clisp.org>
11891
11892         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
11893         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
11894
11895 2007-03-05  Bruno Haible  <bruno@clisp.org>
11896
11897         * lib/stdio_.h: Include <stddef.h>.
11898
11899 2007-03-05  Bruno Haible  <bruno@clisp.org>
11900
11901         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
11902
11903 2007-03-05  Bruno Haible  <bruno@clisp.org>
11904
11905         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
11906         NetBSD 4, from Ralf Wildenhues.
11907
11908 2007-03-04  Bruno Haible  <bruno@clisp.org>
11909
11910         * lib/vasprintf.h: Update #if logic for the case when the functions
11911         exist but are overridden.
11912
11913 2007-03-04  Bruno Haible  <bruno@clisp.org>
11914
11915         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
11916         implementations: glibc-2.4 and MacOS X 10.3.
11917         * tests/test-vasnprintf-posix.c (test_function): Test also the case
11918         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
11919         * tests/test-vasprintf-posix.c (test_function): Likewise.
11920
11921 2007-03-04  Bruno Haible  <bruno@clisp.org>
11922
11923         * modules/vasprintf-posix-tests: New file.
11924         * tests/test-vasprintf-posix.c: New file.
11925
11926         * modules/vasprintf-posix: New file.
11927         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
11928         defined.
11929         * m4/vasprintf-posix.m4: New file.
11930         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
11931         gl_FUNC_VASPRINTF.
11932         (gl_FUNC_VASPRINTF): Invoke it.
11933         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
11934         here.
11935         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
11936
11937 2007-03-04  Bruno Haible  <bruno@clisp.org>
11938
11939         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
11940         REPLACE_GETTIMEOFDAY.
11941         * modules/sys_time (Makefile.am): Likewise.
11942         * m4/sys_time_h.m4: Likewise.
11943         * m4/gettimeofday.m4: Likewise.
11944
11945 2007-03-04  Bruno Haible  <bruno@clisp.org>
11946
11947         * modules/vasnprintf-posix-tests: New file.
11948         * tests/test-vasnprintf-posix.c: New file.
11949
11950         * modules/vasnprintf-posix: New file.
11951         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
11952         printf-frexpl.h.
11953         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
11954         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
11955         REPLACE_VASNPRINTF is defined.
11956         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
11957         gl_FUNC_VASNPRINTF.
11958         (gl_FUNC_VASNPRINTF): Invoke it.
11959         * m4/vasnprintf-posix.m4: New file.
11960         * m4/printf.m4: New file.
11961
11962 2007-03-04  Bruno Haible  <bruno@clisp.org>
11963
11964         Compile progreloc.c only if --enable-relocatable is specified.
11965         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
11966         if --enable-relocatable was specified.
11967         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
11968         lib_SOURCES.
11969
11970 2007-03-04  Jim Meyering  <jim@meyering.net>
11971
11972         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
11973         Use it consistently, rather than enumerating errno constants.
11974
11975 2007-03-04  Bruno Haible  <bruno@clisp.org>
11976
11977         * modules/xvasprintf-tests: New file.
11978         * tests/test-xvasprintf.c: New file.
11979
11980         * modules/vasprintf-tests: New file.
11981         * tests/test-vasprintf.c: New file.
11982
11983         * modules/vasnprintf-tests: New file.
11984         * tests/test-vasnprintf.c: New file.
11985
11986         * modules/vsnprintf-tests: New file.
11987         * tests/test-vsnprintf.c: New file.
11988
11989         * modules/snprintf-tests: New file.
11990         * tests/test-snprintf.c: New file.
11991
11992 2007-03-04  Bruno Haible  <bruno@clisp.org>
11993
11994         Compile relocatable.c only if --enable-relocatable is specified.
11995         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
11996         gl_RELOCATABLE_LIBRARY.
11997         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
11998         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
11999         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
12000         gl_RELOCATABLE_LIBRARY.
12001         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
12002         (Makefile.am): Remove lib_SOURCES.
12003         * modules/relocatable-lib-lgpl (configure.ac): Invoke
12004         gl_RELOCATABLE_LIBRARY.
12005         (Makefile.am): Remove lib_SOURCES.
12006         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
12007         always.
12008         * modules/relocatable-prog-wrapper (configure.ac): Invoke
12009         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
12010
12011 2007-03-04  Bruno Haible  <bruno@clisp.org>
12012
12013         * modules/argmatch-tests: New file.
12014         * tests/test-argmatch.c: New file.
12015
12016         * tests/test-allocsa.c (main): Halve the number of loop runs.
12017
12018         * modules/alloca-opt-tests: New file.
12019         * tests/test-alloca-opt.c: New file.
12020
12021 2007-03-04  Jim Meyering  <jim@meyering.net>
12022
12023         Work around difference between Linux ACLs and Solaris 10 ZFS.
12024         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
12025         for EINVAL.
12026
12027 2007-03-03  Bruno Haible  <bruno@clisp.org>
12028
12029         * modules/relocatable-prog (Depends-on): Add back progreloc's
12030         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
12031
12032 2007-03-03  Bruno Haible  <bruno@clisp.org>
12033
12034         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
12035         * modules/relocatable-lib: New file.
12036
12037 2007-03-03  Bruno Haible  <bruno@clisp.org>
12038
12039         * modules/relocatable-prog: Renamed from modules/relocatable.
12040         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
12041
12042 2007-03-03  Bruno Haible  <bruno@clisp.org>
12043
12044         * modules/relocatable-script (Files): Add doc/relocatable.texi,
12045         m4/relocatable-lib.m4.
12046         (Depends-on): Remove 'relocatable'.
12047         (configure.ac): Add gl_RELOCATABLE_NOP.
12048
12049 2007-03-03  Bruno Haible  <bruno@clisp.org>
12050
12051         * modules/relocatable-prog-wrapper: New file.
12052         * modules/relocatable (Depends-on): Add it. Remove all other
12053         dependencies except progname.
12054         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
12055
12056         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
12057         (gl_FUNC_STRERROR): Nop.
12058         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
12059
12060         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
12061         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
12062
12063         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
12064         (gl_FUNC_READLINK): Update.
12065
12066         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
12067
12068 2007-03-03  Bruno Haible  <bruno@clisp.org>
12069
12070         * lib/xreadlink.c: Include <unistd.h> unconditionally.
12071         * modules/xreadlink (Depends-on): Add unistd.
12072         * modules/xreadlink-with-size (Depends-on): Likewise.
12073
12074 2007-03-03  Bruno Haible  <bruno@clisp.org>
12075
12076         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
12077         extracted from gt_FUNC_SETENV.
12078         (gt_FUNC_SETENV): Remove macro.
12079         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
12080         remove gt_FUNC_SETENV.
12081
12082 2007-03-03  Bruno Haible  <bruno@clisp.org>
12083
12084         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
12085         ENABLE_RELOCATABLE here.
12086         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
12087
12088 2007-03-03  Bruno Haible  <bruno@clisp.org>
12089
12090         * modules/rbtreehash-list-tests (Depends-on): Add progname.
12091         * tests/test-rbtreehash_list.c: Include progname.h.
12092         (main): Call set_program_name.
12093
12094         * modules/rbtree-oset-tests (Depends-on): Add progname.
12095         * tests/test-rbtree_oset.c: Include progname.h.
12096         (main): Call set_program_name.
12097
12098         * modules/rbtree-list-tests (Depends-on): Add progname.
12099         * tests/test-rbtree_list.c: Include progname.h.
12100         (main): Call set_program_name.
12101
12102         * modules/linked-list-tests (Depends-on): Add progname.
12103         * tests/test-linked_list.c: Include progname.h.
12104         (main): Call set_program_name.
12105
12106 2007-03-03  Bruno Haible  <bruno@clisp.org>
12107
12108         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
12109         All uses of __restrict changed to _Restrict_.
12110         * lib/glob_.h (__restrict): Remove macro.
12111
12112 2007-03-02  Bruno Haible  <bruno@clisp.org>
12113
12114         * modules/gettext (configure.ac): Require gettext infrastructure
12115         from version 0.16.1.
12116
12117 2007-03-02  Bruno Haible  <bruno@clisp.org>
12118
12119         * modules/linkedhash-list-tests (Depends-on): Add progname.
12120         * tests/test-linkedhash_list.c: Include progname.h.
12121         (main): Call set_program_name.
12122
12123         * modules/carray-list-tests (Depends-on): Add progname.
12124         * tests/test-carray_list.c: Include progname.h.
12125         (main): Call set_program_name.
12126
12127         * modules/avltreehash-list-tests (Depends-on): Add progname.
12128         * tests/test-avltreehash_list.c: Include progname.h.
12129         (main): Call set_program_name.
12130
12131         * modules/avltree-oset-tests (Depends-on): Add progname.
12132         * tests/test-avltree_oset.c: Include progname.h.
12133         (main): Call set_program_name.
12134
12135         * modules/avltree-list-tests (Depends-on): Add progname.
12136         * tests/test-avltree_list.c: Include progname.h.
12137         (main): Call set_program_name.
12138
12139         * modules/array-oset-tests (Depends-on): Add progname.
12140         * tests/test-array_oset.c: Include progname.h.
12141         (main): Call set_program_name.
12142
12143         * modules/array-list-tests (Depends-on): Add progname.
12144         * tests/test-array_list.c: Include progname.h.
12145         (main): Call set_program_name.
12146
12147         * modules/argp-tests (Depends-on): Add progname.
12148         * tests/test-argp.c: Include argp.h first. Include progname.h.
12149         (main): Call set_program_name.
12150
12151 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
12152
12153         * doc/gnulib-tool.texi (Initial import): Reword description of
12154         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
12155         limited effect even if defined after the first system include.
12156
12157 2007-03-01  Bruno Haible  <bruno@clisp.org>
12158
12159         * build-aux/config.libpath: Update to libtool-1.5.22.
12160         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
12161
12162 2007-03-01  Bruno Haible  <bruno@clisp.org>
12163
12164         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
12165         foo_CFLAGS.
12166         Reported by Ralf Wildenhues.
12167
12168 2007-03-01  Bruno Haible  <bruno@clisp.org>
12169
12170         * build-aux/install-reloc: Remove object files left over by some
12171         compilers.
12172         Reported by Ralf Wildenhues.
12173
12174 2007-03-01  Bruno Haible  <bruno@clisp.org>
12175
12176         * build-aux/install-reloc: Break long lines.
12177
12178 2007-03-01  Bruno Haible  <bruno@clisp.org>
12179
12180         * doc/relocatable.texi: Document that it may not work on OpenBSD.
12181         Reported by Ralf Wildenhues.
12182
12183 2007-03-01  Bruno Haible  <bruno@clisp.org>
12184
12185         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
12186         include ordering constraints.
12187
12188 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
12189
12190         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
12191         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
12192         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
12193         as another example.
12194         * lib/time_.h: Fix misspelling.
12195         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
12196         Require gl_HEADER_TIME_H_DEFAULTS.
12197         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
12198         * m4/time_r.m4 (gl_TIME_R): Likewise.
12199         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
12200
12201 2007-03-01  Bruno Haible  <bruno@clisp.org>
12202
12203         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
12204         * m4/utimens.m4 (gl_UTIMENS): Likewise.
12205
12206 2007-03-01  Jim Meyering  <jim@meyering.net>
12207
12208         * modules/xreadlink (Maintainer): Add my name.
12209         * modules/xreadlink-with-size (Depends-on): Alphabetize.
12210
12211 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
12212             Bruno Haible  <bruno@clisp.org>
12213
12214         * build-aux/install-reloc: Compile also c-ctype.c.
12215         * build-aux/relocatable.sh.in: New file.
12216         * doc/relocatable.texi: New file.
12217         * doc/relocatable-maint.texi: New file.
12218         * doc/gnulib.texi: Include relocatable-maint.texi.
12219         * lib/progreloc.c: Include unistd.h unconditionally.
12220         * lib/relocwrapper.c: Include unistd.h unconditionally.
12221         Include c-ctype.h.
12222         (add_dotbin): Use c_tolower.
12223         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
12224         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
12225         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
12226         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
12227         to m4/relocatable-lib.m4.
12228         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
12229         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
12230         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
12231         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
12232         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
12233         * modules/relocatable: New file.
12234         * modules/relocatable-lib: New file.
12235         * modules/relocatable-script: New file.
12236
12237 2007-02-28  Bruno Haible  <bruno@clisp.org>
12238
12239         Import --enable-relocatable infrastructure.
12240         * build-aux/config.libpath: New file, from GNU gettext.
12241         * build-aux/install-reloc: New file, from GNU gettext.
12242         * build-aux/reloc-ldflags: New file, from GNU gettext.
12243         * lib/relocatable.h: New file, from GNU gettext.
12244         * lib/relocatable.c: New file, from GNU gettext.
12245         * lib/relocwrapper.c: New file, from GNU gettext.
12246         * m4/relocatable.m4: New file, from GNU gettext.
12247
12248 2007-02-28  Bruno Haible  <bruno@clisp.org>
12249
12250         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
12251
12252         * modules/xreadlink: New file, from GNU gettext with modifications.
12253         * lib/xreadlink.c: New file, from GNU gettext.
12254         * lib/xreadlink.h: Add comments.
12255         (xreadlink): New declaration.
12256
12257         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
12258         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
12259         lib/xreadlink-with-size.c.
12260         (configure.ac): Remove gl_XREADLINK invocation.
12261         (Makefile.am): Augment lib_SOURCES.
12262         * m4/xreadlink.m4: Remove file.
12263         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
12264         (xreadlink_with_size): Renamed from xreadink.
12265         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
12266         * modules/canonicalize (Depends-on): Replace xreadlink with
12267         xreadlink-with-size.
12268         * lib/canonicalize.c (canonicalize_filename_mode): Update.
12269
12270 2007-02-25  Jim Meyering  <jim@meyering.net>
12271
12272         * build-aux/announce-gen: When complaining about excess arguments,
12273         list them.
12274
12275 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
12276
12277         * README: Document signed integer overflow situation more
12278         accurately.
12279
12280 2007-02-25  Bruno Haible  <bruno@clisp.org>
12281
12282         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
12283         'a' or 'A' conversion.
12284
12285 2007-02-25  Bruno Haible  <bruno@clisp.org>
12286
12287         * modules/filename: Renamed from modules/pathname.
12288         (Files): Replace lib/pathname.h with lib/filename.h. Replace
12289         lib/concatpath.c with lib/concat-filename.c.
12290         (Makefile.am): Update.
12291         (Include): Replace pathname.h with filename.h.
12292         * lib/filename.h: Renamed from lib/pathname.h.
12293         (concatenated_filename): Renamed from concatenated_pathname.
12294         * lib/concat-filename.c: Renamed from lib/concatpath.c.
12295         (concatenated_filename): Renamed from concatenated_pathname.
12296         * lib/findprog.c: Include filename.h instead of pathname.h.
12297         (find_in_path): Update.
12298         * lib/javacomp.c: Include filename.h instead of pathname.h.
12299         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
12300         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
12301         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
12302         is_oldgcj_14_13_usable, is_javac_usable): Update.
12303         * lib/javaexec.c: Include filename.h instead of pathname.h.
12304         (execute_java_class): Update.
12305         * modules/findprog: Update.
12306         * modules/javacomp: Update.
12307         * modules/javaexec: Update.
12308         * MODULES.html.sh (File system functions): Add 'filename', remove
12309         'pathname'.
12310
12311 2007-02-25  Bruno Haible  <bruno@clisp.org>
12312
12313         * modules/printf-frexpl-tests: New file.
12314         * tests/test-printf-frexpl.c: New file.
12315
12316         * modules/printf-frexpl: New file.
12317         * lib/printf-frexpl.h: New file.
12318         * lib/printf-frexpl.c: New file.
12319         * m4/printf-frexpl.m4: New file.
12320
12321 2007-02-25  Bruno Haible  <bruno@clisp.org>
12322
12323         * modules/printf-frexp-tests: New file.
12324         * tests/test-printf-frexp.c: New file.
12325
12326         * modules/printf-frexp: New file.
12327         * lib/printf-frexp.h: New file.
12328         * lib/printf-frexp.c: New file.
12329         * m4/printf-frexp.m4: New file.
12330
12331 2007-02-25  Bruno Haible  <bruno@clisp.org>
12332
12333         Assume automake >= 1.10 for the tests.
12334         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
12335         * modules/arctwo-tests: Likewise.
12336         * modules/argp-tests: Likewise.
12337         * modules/avltree-list-tests: Likewise.
12338         * modules/avltree-oset-tests: Likewise.
12339         * modules/avltreehash-list-tests: Likewise.
12340         * modules/carray-list-tests: Likewise.
12341         * modules/crc-tests: Likewise.
12342         * modules/des-tests: Likewise.
12343         * modules/gc-arcfour-tests: Likewise.
12344         * modules/gc-arctwo-tests: Likewise.
12345         * modules/gc-des-tests: Likewise.
12346         * modules/gc-hmac-md5-tests: Likewise.
12347         * modules/gc-hmac-sha1-tests: Likewise.
12348         * modules/gc-md2-tests: Likewise.
12349         * modules/gc-md4-tests: Likewise.
12350         * modules/gc-md5-tests: Likewise.
12351         * modules/gc-pbkdf2-sha1-tests: Likewise.
12352         * modules/gc-rijndael-tests: Likewise.
12353         * modules/gc-sha1-tests: Likewise.
12354         * modules/gc-tests: Likewise.
12355         * modules/getaddrinfo-tests: Likewise.
12356         * modules/hmac-md5-tests: Likewise.
12357         * modules/hmac-sha1-tests: Likewise.
12358         * modules/linked-list-tests: Likewise.
12359         * modules/linkedhash-list-tests: Likewise.
12360         * modules/lock-tests: Likewise.
12361         * modules/md2-tests: Likewise.
12362         * modules/md4-tests: Likewise.
12363         * modules/md5-tests: Likewise.
12364         * modules/rbtree-list-tests: Likewise.
12365         * modules/rbtree-oset-tests: Likewise.
12366         * modules/rbtreehash-list-tests: Likewise.
12367         * modules/read-file-tests: Likewise.
12368         * modules/rijndael-tests: Likewise.
12369         * modules/stdint-tests: Likewise.
12370         * modules/tls-tests: Likewise.
12371
12372 2007-02-24  Bruno Haible  <bruno@clisp.org>
12373
12374         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
12375         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
12376         function; instead check whether isnan with a double argument links.
12377         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
12378         function; instead check whether isnan with a 'long double' argument
12379         links.
12380         Reported by Eric Blake <ebb9@byu.net>.
12381
12382 2007-02-24  Bruno Haible  <bruno@clisp.org>
12383
12384         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
12385         defined.
12386         * lib/isnanl.c: Remove all code. Just include isnan.c.
12387         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
12388
12389 2007-02-25  Jim Meyering  <jim@meyering.net>
12390
12391         Avoid conflicting types for 'unsetenv' on FreeBSD.
12392         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
12393         conflicting with FreeBSD's (5.0 and 6.1) function declaration
12394         in stdlib.h.
12395
12396 2007-02-24  Bruno Haible  <bruno@clisp.org>
12397
12398         * modules/isnanl-nolibm-tests: New file.
12399         * tests/test-isnanl.c: New file.
12400
12401         * modules/isnanl-nolibm: New file.
12402         * lib/isnanl.h: New file.
12403         * lib/isnanl.c: New file.
12404         * m4/isnanl.m4: New file.
12405
12406 2007-02-24  Bruno Haible  <bruno@clisp.org>
12407
12408         * modules/isnan-nolibm-tests: New file.
12409         * tests/test-isnan.c: New file.
12410
12411         * modules/isnan-nolibm: New file.
12412         * lib/isnan.h: New file.
12413         * lib/isnan.c: New file.
12414         * m4/isnan.m4: New file.
12415
12416 2007-02-24  Bruno Haible  <bruno@clisp.org>
12417
12418         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
12419         assume that an exponent fits in 20 bits.
12420
12421 2007-02-24  Jim Meyering  <jim@meyering.net>
12422
12423         * m4/regex.m4: Update the description of the configure-time option,
12424         --without-included-regex, to state accurately what the defaults are,
12425         and perhaps to give people an idea why using this option is risky.
12426
12427 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
12428
12429         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
12430         loops on small arguments.  This attempts to avoid the problem
12431         Bruno Haible reported for AIX 4.3.2 in
12432         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
12433
12434 2007-02-23  Bruno Haible  <bruno@clisp.org>
12435
12436         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
12437         Needed for help2man.
12438
12439 2007-02-23  Karl Berry  <karl@gnu.org>
12440
12441         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
12442         exists, foo.h should be cvs-ignored, not committed.
12443
12444 2007-02-23  Eric Blake  <ebb9@byu.net>
12445
12446         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
12447         * lib/stat-time.h (includes): Likewise.
12448         * lib/utimecmp.c (includes): Likewise.
12449         * lib/utimens.h (includes): Likewise.
12450         * lib/getdate.y (includes): Also include "timespec.h" for use
12451         internal to the module.
12452         * modules/utimens (Depends-on): Revert yesterday's patch.
12453         * modules/nanosleep (Depends-on): Add missing dependency.
12454
12455 2007-02-22  Bruno Haible  <bruno@clisp.org>
12456
12457         * lib/glob.c: Don't include getlogin_r.h.
12458
12459 2007-02-22  Jim Meyering  <jim@meyering.net>
12460
12461         * modules/utimens (Depends-on): Add timespec, required for
12462         utimens.h's inclusion of timespec.h.
12463
12464 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
12465
12466         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
12467         long unreadable paths in GNU/Linux.  Problem reported by Andreas
12468         Schwab in
12469         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
12470         I'll try to think of a better way to fix the Solaris problem.
12471
12472         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
12473         like glibc; on Solaris 10, it fails with errno == EINVAL.
12474         POSIX says the behavior is unspecified if the first argument is NULL,
12475         so play it safe and never pass NULL to the system getcwd.
12476
12477 2007-02-21  Jim Meyering  <jim@meyering.net>
12478
12479         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
12480         of gettimeofday.  It would conflict with the one now always
12481         provided via sys_time_.h.  Reported by Matthew Woehlke, as
12482         an IRIX 6.5 build failure.
12483
12484 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
12485
12486         Minor fixups to port to Solaris 10 with Sun C 5.8.
12487         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
12488         * modules/getcwd (Depends-on): Add dirfd.
12489         * lib/putenv.c (putenv): #undef it.
12490         (rpl_putenv): New decl.
12491         (malloc, free): Include <stdlib.h> rather than prototyping separately.
12492
12493 2007-02-20  Bruno Haible  <bruno@clisp.org>
12494
12495         * modules/stdio-tests: New file.
12496         * tests/test-stdio.c: New file.
12497
12498         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
12499         (Depends-on): Add stdio.
12500         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
12501         (Include): Use <stdio.h> instead of vsnprintf.h.
12502         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
12503         HAVE_DECL_VSNPRINTF.
12504         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
12505
12506         * modules/snprintf (Files): Remove lib/snprintf.h.
12507         (Depends-on): Add stdio.
12508         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
12509         (Include): Use <stdio.h> instead of snprintf.h.
12510         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
12511         HAVE_DECL_SNPRINTF.
12512         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
12513         * lib/getaddrinfo.c: Likewise.
12514
12515         * modules/stdio: New file.
12516         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
12517         * lib/snprintf.h: Remove file.
12518         * lib/vsnprintf.h: Remove file.
12519         * lib/.cppi-disable: Remove snprintf.h.
12520         * m4/stdio_h.m4: New file.
12521         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
12522
12523 2007-02-20  Jim Meyering  <jim@meyering.net>
12524
12525         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
12526         used by e.g., mingw.  From Bruno Haible.
12527
12528 2007-02-19  Bruno Haible  <bruno@clisp.org>
12529
12530         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
12531         warnings.
12532         Reported by Ben Pfaff <blp@cs.stanford.edu>.
12533
12534 2007-02-19  Bruno Haible  <bruno@clisp.org>
12535
12536         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
12537         from mingw users.
12538
12539 2007-02-19  Bruno Haible  <bruno@clisp.org>
12540
12541         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
12542         warnings.
12543         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
12544
12545 2007-02-19  Jim Meyering  <jim@meyering.net>
12546
12547         Don't use FD after a successful "fdopendir (fd)".
12548         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
12549         Reset it by calling dirfd on the just-obtained DIR*.
12550
12551         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
12552         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
12553
12554 2007-02-18  Bruno Haible  <bruno@clisp.org>
12555
12556         * lib/readlink.c: Include <unistd.h>.
12557         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
12558         HAVE_READLINK.
12559         * modules/readlink (Depends-on): Add unistd.
12560         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
12561         (Include): Add <unistd.h>.
12562
12563         * lib/getlogin_r.h: Remove file.
12564         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
12565         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
12566         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
12567         HAVE_DECL_GETLOGIN_R.
12568         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
12569         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
12570         (Include): Use <unistd.h> instead of getlogin_r.h.
12571
12572         * lib/getcwd.h: Remove file.
12573         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
12574         * lib/xgetcwd.c: Likewise.
12575         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
12576         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
12577         * modules/getcwd (Files): Remove lib/getcwd.h.
12578         (Depends-on): Add unistd.
12579         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
12580         (Include): Use <unistd.h> instad of getcwd.h.
12581
12582         * lib/ftruncate.c: Include <unistd.h> first.
12583         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
12584         Set HAVE_FTRUNCATE.
12585         * modules/ftruncate (Depends-on): Add unistd.
12586         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
12587
12588         * lib/fchdir.c: Include <unistd.h> first.
12589         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
12590         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
12591         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
12592         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
12593         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
12594
12595         * lib/dup2.c: Include <unistd.h> first.
12596         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
12597         HAVE_DUP2.
12598         * modules/dup2 (Depends-on): Add unistd.
12599         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
12600
12601         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
12602         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
12603         REPLACE_CHOWN. Don't define chown as a macro here.
12604         * modules/chown (Depends-on): Add unistd.
12605         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
12606
12607         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
12608         Add definition for GL_LINK_WARNING.
12609         (chown, dup2): New declarations.
12610         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
12611         link warning.
12612         (ftruncate): New declaration.
12613         (getcwd): New declaration, taken from old getcwd.h.
12614         (getlogin_r): New declaration, taken from old getlogin_r.h.
12615         (readlink): New declaration.
12616         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
12617         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
12618         (gl_PREREQ_UNISTD): Remove macro.
12619         (gl_UNISTD_MODULE_INDICATOR): New macro.
12620         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
12621         many new variables. Don't set UNISTD_H.
12622         * modules/unistd (Description): Change.
12623         (Depends-on): Add link-warning.
12624         (configure.ac): Update.
12625         (Makefile.am): Create unistd.h always. Substitute many new variables
12626         into it.
12627
12628 2007-02-18  Bruno Haible  <bruno@clisp.org>
12629
12630         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
12631         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
12632         HAVE_GETSUBOPT.
12633         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
12634         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
12635         * lib/getsubopt.h: Remove file.
12636         * modules/getsubopt (Files): Remove lib/getsubopt.h.
12637         (Depends-on): Add stdlib.
12638         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
12639         (Includes): Use <stdlib.h> instead of getsubopt.h.
12640         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
12641         Set HAVE_GETSUBOPT.
12642         * lib/getsubopt.c: Don't include getsubopt.h.
12643
12644 2007-02-18  Bruno Haible  <bruno@clisp.org>
12645
12646         * modules/fchdir (Depends-on): Add dup2.
12647
12648 2007-02-18  Bruno Haible  <bruno@clisp.org>
12649
12650         * lib/stdlib_.h: Handle glibc's special invocation convention
12651         specially.
12652
12653 2007-02-18  Bruno Haible  <bruno@clisp.org>
12654
12655         * modules/stdlib-tests: New file.
12656         * tests/test-stdlib.c: New file.
12657
12658         * modules/mkstemp (Files): Remove lib/mkstemp.h.
12659         (Depends-on): Add stdlib.
12660         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
12661         (Includes): Use <stdlib.h> instead of mkstemp.h.
12662         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
12663         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
12664         * lib/mkstemp.c: Don't include mkstemp.h.
12665         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
12666         * lib/stdlib--.h: Don't include mkstemp.h.
12667
12668         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
12669         (Depends-on): Add stdlib.
12670         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
12671         (Includes): Use <stdlib.h> instead of mkdtemp.h.
12672         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
12673         HAVE_MKDTEMP.
12674         * lib/mkdtemp.c: Don't include mkdtemp.h.
12675         * lib/clean-temp.c: Don't include mkdtemp.h.
12676
12677         * modules/exit (Files): Remove lib/exit.h.
12678         (Depends-on): Add stdlib.
12679         (Makefile.am): Remove lib_SOURCES.
12680         (Include): Use <stdlib.h> instead of exit.h.
12681         * lib/argmatch.c: Don't include exit.h.
12682         * lib/execute.c: Likewise.
12683         * lib/pagealign_alloc.c: Likewise.
12684         * lib/pipe.c: Likewise.
12685         * lib/wait-process.c: Likewise.
12686         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
12687         * lib/exitfail.c: Likewise.
12688         * lib/savewd.c: Likewise.
12689         * lib/xsetenv.c: Likewise.
12690
12691         * modules/stdlib: New file.
12692         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
12693         and extra comments about mkstemp().
12694         * lib/exit.h: Remove file.
12695         * lib/mkdtemp.h: Remove file.
12696         * lib/mkstemp.h: Remove file.
12697         * m4/stdlib_h.m4: New file.
12698         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
12699
12700 2007-02-18  Bruno Haible  <bruno@clisp.org>
12701
12702         * modules/math-tests: New file.
12703         * tests/test-math.c: New file.
12704
12705         * modules/math: New file.
12706         * modules/mathl (Files): Remove lib/mathl.h.
12707         (Depends-on): Add math.
12708         (Makefile.am): Don't mention mathl.h.
12709         (Include): Use <math.h> instead of mathl.h.
12710         * lib/math_.h: New file.
12711         * lib/mathl.h: Remove file.
12712         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
12713         mathl.h.
12714         * lib/asinl.c: Likewise.
12715         * lib/atanl.c: Likewise.
12716         * lib/ceill.c: Likewise.
12717         * lib/cosl.c: Likewise.
12718         * lib/expl.c: Likewise.
12719         * lib/floorl.c: Likewise.
12720         * lib/frexpl.c: Likewise.
12721         * lib/ldexpl.c: Likewise.
12722         * lib/logl.c: Likewise.
12723         * lib/sincosl.c: Likewise.
12724         * lib/sinl.c: Likewise.
12725         * lib/sqrtl.c: Likewise.
12726         * lib/tanl.c: Likewise.
12727         * lib/trigl.c: Likewise.
12728         * m4/math_h.m4: New file.
12729         * MODULES.html.sh (Mathematics): Add math.
12730
12731 2007-02-17  Bruno Haible  <bruno@clisp.org>
12732
12733         * modules/wctype-tests: New file.
12734         * tests/test-wctype.c: New file.
12735
12736         * modules/wchar-tests: New file.
12737         * tests/test-wchar.c: New file.
12738
12739         * modules/unistd-tests: New file.
12740         * tests/test-unistd.c: New file.
12741
12742         * modules/time-tests: New file.
12743         * tests/test-time.c: New file.
12744
12745         * modules/sysexits-tests: New file.
12746         * tests/test-sysexits.c: New file.
12747
12748         * modules/sys_time-tests: New file.
12749         * tests/test-sys_time.c: New file.
12750
12751         * modules/sys_stat-tests: New file.
12752         * tests/test-sys_stat.c: New file.
12753
12754         * modules/sys_socket-tests: New file.
12755         * tests/test-sys_socket.c: New file.
12756
12757         * modules/sys_select-tests: New file.
12758         * tests/test-sys_select.c: New file.
12759
12760         * modules/string-tests: New file.
12761         * tests/test-string.c: New file.
12762
12763         * modules/stdbool-tests: New file.
12764         * tests/test-stdbool.c: New file.
12765
12766         * modules/netinet_in-tests: New file.
12767         * tests/test-netinet_in.c: New file.
12768
12769         * modules/inttypes-tests: New file.
12770         * tests/test-inttypes.c: New file.
12771
12772         * modules/fcntl-tests: New file.
12773         * tests/test-fcntl.c: New file.
12774
12775         * modules/byteswap-tests: New file.
12776         * tests/test-byteswap.c: New file.
12777
12778         * modules/arpa_inet-tests: New file.
12779         * tests/test-arpa_inet.c: New file.
12780
12781 2007-02-17  Bruno Haible  <bruno@clisp.org>
12782
12783         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
12784         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
12785         if the corresponding module is not enabled. Emit link warnings if
12786         the function is used nevertheless.
12787         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
12788         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
12789         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
12790         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
12791         * modules/inttypes (Depends-on): Add link-warning.
12792         (Makefile.am): Copy the contents of build-aux/link-warning.h into
12793         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
12794         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
12795         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
12796         * modules/imaxdiv (configure.ac): Likewise.
12797         * modules/strtoimax (configure.ac): Likewise.
12798         * modules/strtoumax (configure.ac): Likewise.
12799
12800 2007-02-17  Bruno Haible  <bruno@clisp.org>
12801
12802         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
12803         gl_STRING_MODULE_INDICATOR_DEFAULTS.
12804         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
12805         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
12806
12807 2007-02-17  Bruno Haible  <bruno@clisp.org>
12808
12809         * modules/link-warning: New file.
12810         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
12811         * lib/string_.h (GL_LINK_WARNING): Remove definition.
12812         * modules/string (Depends-on): Add link-warning.
12813         (Makefile.am): Copy the contents of build-aux/link-warning.h into
12814         string.h.
12815         * MODULES.html.sh (Support for building libraries and executables): Add
12816         link-warning.
12817
12818 2007-02-17  Bruno Haible  <bruno@clisp.org>
12819
12820         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
12821         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
12822         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
12823         long lines.
12824
12825 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
12826             Bruno Haible  <bruno@clisp.org>
12827
12828         * modules/tmpfile: New file.
12829         * lib/tmpfile.c: New file.
12830         * m4/tmpfile.m4: New file.
12831         * MODULES.html.sh (func_all_modules): New section "Input/output".
12832
12833 2007-02-15  Bruno Haible  <bruno@clisp.org>
12834
12835         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
12836         (supports_delete_on_close): New function.
12837         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
12838
12839 2007-02-14  Bruno Haible  <bruno@clisp.org>
12840
12841         * modules/mbspcasecmp-tests: New file.
12842         * tests/test-mbspcasecmp.sh: New file.
12843         * tests/test-mbspcasecmp.c: New file.
12844
12845         New module mbspcasecmp.
12846         * modules/mbspcasecmp: New file.
12847         * lib/mbspcasecmp.c: New file.
12848         * lib/string_.h (strncasecmp): Change warning message.
12849         (mbspcasecmp): New declaration.
12850         * m4/mbspcasecmp.m4: New file.
12851         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
12852         GNULIB_MBSPCASECMP.
12853         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
12854         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
12855
12856 2007-02-14  Bruno Haible  <bruno@clisp.org>
12857
12858         * modules/mbsncasecmp-tests: New file.
12859         * tests/test-mbsncasecmp.sh: New file.
12860         * tests/test-mbsncasecmp.c: New file.
12861
12862         New module mbsncasecmp.
12863         * modules/mbsncasecmp: New file.
12864         * lib/mbsncasecmp.c: New file.
12865         * lib/string_.h (mbsncasecmp): New declaration.
12866         * m4/mbsncasecmp.m4: New file.
12867         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
12868         GNULIB_MBSNCASECMP.
12869         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
12870         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
12871
12872 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
12873
12874         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
12875         Verify that it doesn't overlap with our flags.
12876         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
12877         do not have the desired effect in multibyte locales; instead, use
12878         mbscasecmp.
12879         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
12880         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
12881         we don't require GNU fnmatch ourselves (if our users require it, they
12882         should do so explicitly).
12883
12884         Fix regex code so it doesn't rely on strcasecmp.
12885         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
12886         Otherwise, include gnulib's langinfo.h.
12887         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
12888         undesirable behavior in non-C locales.  Instead, rely on localecharset.
12889         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
12890         * modules/regex (FILES): Remove m4/codeset.m4.
12891         (Depends-on): Add localcharset.  Remove strcase.
12892
12893 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12894
12895         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
12896         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
12897
12898 2007-02-13  Bruno Haible  <bruno@clisp.org>
12899
12900         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
12901         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12902
12903 2007-02-12  Bruno Haible  <bruno@clisp.org>
12904
12905         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
12906         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
12907         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
12908         time warning rather than a link error.
12909
12910 2007-02-12  Bruno Haible  <bruno@clisp.org>
12911
12912         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
12913         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
12914         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12915
12916 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
12917
12918         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
12919         args, not 2.
12920
12921 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
12922
12923         New module 'time', so that apps can include <time.h> as per
12924         POSIX and GNU instead of separate include files like time_r.h
12925         and timegm.h.  This implementation tries out a simpler approach
12926         for replacing decls in standard include files (as compared to
12927         the string module), somewhat as an experiment.
12928
12929         * config/srclist.txt: Comment out mktime.c for now.
12930         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
12931         since it doesn't apply any more.  Use generic wording instead.
12932         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
12933         'time'.
12934         * lib/time_.h, m4/time_h.m4, modules/time: New files.
12935         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
12936         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
12937         Don't include <sys/types.h>; no longer needed since we assume C89.
12938         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
12939         * lib/strftime.c: Likewise.
12940         * lib/time_r.c: Likewise.
12941         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
12942         * lib/nanosleep.c: Include <time.h> first, to check interface.
12943         * lib/strptime.c: Likewise.
12944         * lib/time_r.c: Likewise.
12945         * lib/timegm.c: Likewise.
12946         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
12947         needed.
12948         * lib/timegm.c: Don't include timegm.h; no longer needed.
12949         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
12950         time.h now handles any problems in that area.
12951         (struct timespec, nanosleep): Remove; time.h now arranges for these.
12952         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
12953         that time.h defines struct timespec.
12954         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
12955         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
12956         handles that.
12957         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
12958         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
12959         needed.  Set REPLACE_LOCALTIME.
12960         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
12961         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
12962         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
12963         nanosleep; time_h.m4 now does that.  Don't require
12964         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
12965         module handles this now.
12966         * modules/getdate (Depends-on): Remove timespec.  Add time.
12967         * modules/nanosleep (Depends-on): Likewise.
12968         * modules/stat-time (Depends-on): Likewise.
12969         * modules/nanosleep (Include): Include time.h, not timespec.h.
12970         * modules/strptime (Files): Remove lib/strptime.h.
12971         (Depends-on): Add extensions, time.
12972         (Include): Include time.h, not strptime.h.
12973         * modules/time_r (Files): Remove lib/time_r.h.
12974         (Depends-on): Add time.
12975         (Include): Include time.h, not time_r.h.
12976         * modules/timegm: Likewise.
12977         * modules/timespec (Description): Now does timespec-related decls
12978         of our own, instead of struct timespec itself.
12979         (Depends-on): Add time; remove extensions.
12980         (Maintainer): Add self.
12981         * modules/utimecmp (Depends-on): Add time; remove timespec.
12982         * modules/utimens (Depends-on): Likewise.
12983         * modules/xnanosleep (Depends-on): Likewise.
12984
12985 2007-02-11  Bruno Haible  <bruno@clisp.org>
12986
12987         * lib/c-strstr.c: Include allocsa.h.
12988         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
12989         * lib/c-strcasestr.c: Include allocsa.h.
12990         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
12991         * lib/strcasestr.c: Include allocsa.h.
12992         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
12993         * lib/mbsstr.c: Include allocsa.h.
12994         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
12995         allocsa/freesa instead of malloc/free.
12996         * lib/mbscasestr.c: Include allocsa.h.
12997         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
12998         allocsa/freesa instead of malloc/free.
12999         * modules/c-strstr (Depends-on): Add allocsa.
13000         * modules/c-strcasestr (Depends-on): Likewise.
13001         * modules/strcasestr (Depends-on): Likewise.
13002         * modules/mbsstr (Depends-on): Likewise.
13003         * modules/mbscasestr (Depends-on): Likewise.
13004
13005 2007-02-11  Bruno Haible  <bruno@clisp.org>
13006
13007         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
13008
13009         * modules/mbsspn-tests: New file.
13010         * tests/test-mbsspn.sh: New file.
13011         * tests/test-mbsspn.c: New file.
13012
13013 2007-02-11  Bruno Haible  <bruno@clisp.org>
13014
13015         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
13016
13017         * modules/mbspbrk-tests: New file.
13018         * tests/test-mbspbrk.sh: New file.
13019         * tests/test-mbspbrk.c: New file.
13020
13021 2007-02-11  Bruno Haible  <bruno@clisp.org>
13022
13023         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
13024         unneeded cast.
13025
13026         * modules/mbscspn-tests: New file.
13027         * tests/test-mbscspn.sh: New file.
13028         * tests/test-mbscspn.c: New file.
13029
13030 2007-02-11  Bruno Haible  <bruno@clisp.org>
13031
13032         * modules/mbscasecmp-tests: New file.
13033         * tests/test-mbscasecmp.sh: New file.
13034         * tests/test-mbscasecmp.c: New file.
13035
13036 2007-02-11  Bruno Haible  <bruno@clisp.org>
13037
13038         Ensure O(n) worst-case complexity of mbscasestr.
13039         * lib/mbscasestr.c: Include stdbool.h.
13040         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
13041         functions.
13042         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
13043         the bookkeeping indicates that it's worth it.
13044         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
13045
13046         * modules/mbscasestr-tests: New file.
13047         * tests/test-mbscasestr1.c: New file.
13048         * tests/test-mbscasestr2.sh: New file.
13049         * tests/test-mbscasestr2.c: New file.
13050         * tests/test-mbscasestr3.sh: New file.
13051         * tests/test-mbscasestr3.c: New file.
13052         * tests/test-mbscasestr4.sh: New file.
13053         * tests/test-mbscasestr4.c: New file.
13054         * m4/locale-tr.m4: New file.
13055
13056 2007-02-11  Bruno Haible  <bruno@clisp.org>
13057
13058         Ensure O(n) worst-case complexity of mbsstr.
13059         * lib/mbsstr.c: Include stdbool.h.
13060         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
13061         functions.
13062         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
13063         bookkeeping indicates that it's worth it.
13064         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
13065
13066         * modules/mbsstr-tests: New file.
13067         * tests/test-mbsstr1.c: New file.
13068         * tests/test-mbsstr2.sh: New file.
13069         * tests/test-mbsstr2.c: New file.
13070         * tests/test-mbsstr3.sh: New file.
13071         * tests/test-mbsstr3.c: New file.
13072         * m4/locale-fr.m4: New file.
13073
13074 2007-02-11  Bruno Haible  <bruno@clisp.org>
13075
13076         * lib/mbsrchr.c (mbsrchr): Fix bug.
13077
13078         * modules/mbsrchr-tests: New file.
13079         * tests/test-mbsrchr.sh: New file.
13080         * tests/test-mbsrchr.c: New file.
13081
13082 2007-02-11  Bruno Haible  <bruno@clisp.org>
13083
13084         * lib/mbschr.c (mbschr): Fix bug.
13085
13086         * modules/mbschr-tests: New file.
13087         * tests/test-mbschr.sh: New file.
13088         * tests/test-mbschr.c: New file.
13089         * m4/locale-zh.m4: New file.
13090
13091 2007-02-11  Bruno Haible  <bruno@clisp.org>
13092
13093         Support for copying multibyte string iterators.
13094         * lib/mbiter.h: Include <string.h>.
13095         (mbiter_multi_copy): New function.
13096         (mbi_copy): New macro.
13097         * lib/mbuiter.h: Include <string.h>.
13098         (mbuiter_multi_copy): New function.
13099         (mbui_copy): New macro.
13100
13101 2007-02-11  Bruno Haible  <bruno@clisp.org>
13102
13103         New module mbslen.
13104         * modules/mbslen: New file.
13105         * lib/mbslen.c: New file.
13106         * lib/string_.h (mbslen): New declaration.
13107         * m4/mbslen.m4: New file.
13108         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
13109         GNULIB_MBSLEN.
13110         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
13111         * MODULES.html.sh (Internationalization functions): Add mbslen.
13112
13113 2007-02-11  Bruno Haible  <bruno@clisp.org>
13114
13115         Ensure O(n) worst-case complexity of strcasestr substitute.
13116         * lib/strcasestr.c: Include stdbool.h.
13117         (knuth_morris_pratt): New function.
13118         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
13119         bookkeeping indicates that it's worth it.
13120         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
13121
13122         * modules/strcasestr-tests: New file.
13123         * tests/test-strcasestr.c: New file.
13124
13125 2007-02-11  Bruno Haible  <bruno@clisp.org>
13126
13127         Ensure O(n) worst-case complexity of c_strcasestr.
13128         * lib/c-strcasestr.c: Include stdbool.h, string.h.
13129         (knuth_morris_pratt): New function.
13130         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
13131         the bookkeeping indicates that it's worth it.
13132         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
13133
13134         * modules/c-strcasestr-tests: New file.
13135         * tests/test-c-strcasestr.c: New file.
13136
13137 2007-02-11  Bruno Haible  <bruno@clisp.org>
13138
13139         Ensure O(n) worst-case complexity of c_strstr.
13140         * lib/c-strstr.c: Include stdbool.h, string.h.
13141         (knuth_morris_pratt): New function.
13142         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
13143         bookkeeping indicates that it's worth it.
13144         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
13145
13146         * lib/c-strstr.c: Complete rewrite for maintainability.
13147
13148         * modules/c-strstr-tests: New file.
13149         * tests/test-c-strstr.c: New file.
13150
13151 2007-02-11  Bruno Haible  <bruno@clisp.org>
13152
13153         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
13154         5.2.1 and earlier, whereby \055 was treated just like the range
13155         delimiter '-'.
13156         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
13157
13158 2007-02-08  Bruno Haible  <bruno@clisp.org>
13159
13160         * modules/regex (Depends-on): Add stdbool.
13161         Reported by Dalibor Topic <robilad@kaffe.org>.
13162
13163 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
13164
13165         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
13166         Prefer returning from main to exiting from it.
13167         Remove unnecessary parens after sizeof.
13168
13169 2007-02-05  Bruno Haible  <bruno@clisp.org>
13170
13171         New module mbssep.
13172         * modules/mbssep: New file.
13173         * lib/mbssep.c: New file.
13174         * lib/string_.h (strsep): Add a conditional link warning.
13175         (mbssep): New declaration.
13176         * m4/mbssep.m4: New file.
13177         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
13178         GNULIB_MBSSEP.
13179         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
13180         * MODULES.html.sh (Internationalization functions): Add mbssep.
13181
13182 2007-02-05  Bruno Haible  <bruno@clisp.org>
13183
13184         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
13185         Optimize search in case of 1 delimiter.
13186
13187 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
13188
13189         * lib/acl.h: Include sys/types.h before sys/acl.h.
13190
13191 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
13192
13193         Merge upstream fix for glibc bugzilla #3957:
13194
13195         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
13196
13197         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
13198         bit for RE_HAT_LISTS_NOT_NEWLINE.
13199         (build_charclass_op): Remove bogus comment.
13200
13201 2007-02-05  Simon Josefsson  <simon@josefsson.org>
13202
13203         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
13204
13205 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
13206
13207         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
13208         * lib/memmem.c [!defined _LIBC]: Include config.h.
13209
13210 2007-02-04  Bruno Haible  <bruno@clisp.org>
13211
13212         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
13213         warning message.
13214
13215 2007-02-04  Bruno Haible  <bruno@clisp.org>
13216
13217         New module mbstok_r.
13218         * modules/mbstok_r: New file.
13219         * lib/mbstok_r.c: New file.
13220         * lib/string_.h (strtok_r): Change argument names to match the
13221         comments. Add a conditional link warning.
13222         (mbstok_r): New declaration.
13223         * m4/mbstok_r.m4: New file.
13224         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
13225         GNULIB_MBSTOK_R.
13226         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
13227         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
13228
13229 2007-02-04  Bruno Haible  <bruno@clisp.org>
13230
13231         New module mbsspn.
13232         * modules/mbsspn: New file.
13233         * lib/mbsspn.c: New file.
13234         * lib/string_.h (strspn): Add a conditional link warning.
13235         (mbsspn): New declaration.
13236         * m4/mbsspn.m4: New file.
13237         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
13238         GNULIB_MBSSPN.
13239         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
13240         * MODULES.html.sh (Internationalization functions): Add mbsspn.
13241
13242 2007-02-04  Bruno Haible  <bruno@clisp.org>
13243
13244         New module mbspbrk.
13245         * modules/mbspbrk: New file.
13246         * lib/mbspbrk.c: New file.
13247         * lib/string_.h (strpbrk): Add a conditional link warning.
13248         (mbspbrk): New declaration.
13249         * m4/mbspbrk.m4: New file.
13250         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
13251         GNULIB_MBSPBRK.
13252         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
13253         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
13254
13255 2007-02-04  Bruno Haible  <bruno@clisp.org>
13256
13257         New module mbscspn.
13258         * modules/mbscspn: New file.
13259         * lib/mbscspn.c: New file.
13260         * lib/string_.h (strcspn): Add a conditional link warning.
13261         (mbscspn): New declaration.
13262         * m4/mbscspn.m4: New file.
13263         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
13264         GNULIB_MBSCSPN.
13265         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
13266         * MODULES.html.sh (Internationalization functions): Add mbscspn.
13267
13268 2007-02-04  Bruno Haible  <bruno@clisp.org>
13269
13270         New module mbscasestr, reduced goal of strcasestr.
13271         * modules/mbscasestr: New file.
13272         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
13273         (mbscasestr): Renamed from strcasestr.
13274         * lib/strcasestr.c: Don't include mbuiter.h.
13275         (strcasestr): Remove support for multibyte locales.
13276         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
13277         Change the conditional link warning.
13278         (mbscasestr): New declaration.
13279         * m4/mbscasestr.m4: New file.
13280         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
13281         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
13282         REPLACE_STRCASESTR.
13283         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
13284         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
13285         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
13286         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
13287         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
13288         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
13289         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
13290         (Depends-on): Remove mbuiter.
13291         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
13292
13293 2007-02-04  Bruno Haible  <bruno@clisp.org>
13294
13295         Simplify handling of strncasecmp.
13296         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
13297         the conditional link warning.
13298         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
13299         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
13300         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
13301         * modules/strcase (configure.ac): Don't invoke
13302         gl_STRING_MODULE_INDICATOR.
13303         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
13304
13305 2007-02-04  Bruno Haible  <bruno@clisp.org>
13306
13307         New module mbscasecmp, reduced goal of strcasecmp.
13308         * modules/mbscasecmp: New file.
13309         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
13310         (mbscasecmp): Renamed from strcasecmp.
13311         * lib/strcasecmp.c: Don't include mbuiter.h.
13312         (strcasecmp): Remove support for multibyte locales.
13313         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
13314         Change the conditional link warning.
13315         (mbscasecmp): New declaration.
13316         * m4/mbscasecmp.m4: New file.
13317         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
13318         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
13319         REPLACE_STRCASECMP.
13320         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
13321         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
13322         GNULIB_MBSCASECMP.
13323         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
13324         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
13325         * modules/strcase (Files): Remove m4/mbrtowc.m4.
13326         (Depends-on): Remove mbuiter.
13327         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
13328
13329 2007-02-04  Bruno Haible  <bruno@clisp.org>
13330
13331         New module mbsstr. Remove module strstr.
13332         * modules/mbsstr: New file.
13333         * modules/strstr: Remove file.
13334         * lib/mbsstr.c: Renamed from lib/strstr.c.
13335         (mbsstr): Renamed from strstr.
13336         * lib/string_.h (strstr): Remove declaration. Change the conditional
13337         link warning.
13338         (mbsstr): New declaration.
13339         * m4/mbsstr.m4: New file.
13340         * m4/strstr.m4: Remove file.
13341         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
13342         REPLACE_STRSTR.
13343         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
13344         Don't initialize GNULIB_STRSTR.
13345         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
13346         substitute GNULIB_STRSTR and REPLACE_STRSTR.
13347         * MODULES.html.sh (Internationalization functions): Add mbsstr.
13348         (Support for systems lacking ANSI C 89): Remove strstr.
13349
13350 2007-02-04  Bruno Haible  <bruno@clisp.org>
13351
13352         New module mbsrchr.
13353         * modules/mbsrchr: New file.
13354         * lib/mbsrchr.c: New file.
13355         * lib/string_.h (strrchr): Add a conditional link warning.
13356         (mbsrchr): New declaration.
13357         * m4/mbsrchr.m4: New file.
13358         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
13359         GNULIB_MBSRCHR.
13360         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
13361         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
13362
13363 2007-02-04  Bruno Haible  <bruno@clisp.org>
13364
13365         New module mbschr.
13366         * modules/mbschr: New file.
13367         * lib/mbschr.c: New file.
13368         * lib/string_.h (strchr): Add a conditional link warning.
13369         (mbschr): New declaration.
13370         * m4/mbschr.m4: New file.
13371         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
13372         GNULIB_MBSCHR.
13373         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
13374         * MODULES.html.sh (Internationalization functions): Add mbschr.
13375
13376 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
13377
13378         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
13379
13380         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
13381
13382 2007-02-04  Bruno Haible  <bruno@clisp.org>
13383
13384         New module description section 'configure.ac-early'.
13385         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
13386         (func_get_autoconf_early_snippet): New function.
13387         (func_import, func_create_testdir): Use it. Remove special cases for
13388         modules 'extensions' and 'lock'.
13389         * modules/extensions (configure.ac-early): Require
13390         gl_USE_SYSTEM_EXTENSIONS.
13391         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
13392
13393 2007-02-04  Bruno Haible  <bruno@clisp.org>
13394
13395         Make use of gcj-4.3's -fsource and -ftarget option.
13396         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
13397         and if so try the options -fsource and -ftarget.
13398         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
13399         source_version, ftarget_option, target_version arguments.
13400         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
13401         (is_envjavac_oldgcj_14_14_usable): Renamed from
13402         is_envjavac_gcj_14_14_usable.
13403         (is_envjavac_oldgcj_14_13_usable): Renamed from
13404         is_envjavac_gcj_14_13_usable.
13405         (is_gcj_present): Update.
13406         (is_gcj_43, is_gcj43_usable): New functions.
13407         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
13408         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
13409         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
13410         try the options -fsource and -ftarget.
13411
13412 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
13413
13414         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
13415         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
13416         larger value.
13417
13418 2007-02-03  Jim Meyering  <jim@meyering.net>
13419
13420         Give tools a better chance to allocate space for very large buffers.
13421         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
13422
13423         Make pwd and readlink work also when run with an unreadable parent dir
13424         on systems with openat support.
13425         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
13426         provided getcwd function, even when we have openat support.
13427         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
13428
13429 2007-02-02  Bruno Haible  <bruno@clisp.org>
13430
13431         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
13432         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
13433         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
13434         portability problems if one of these functions is only used on specific
13435         platforms.
13436         Reported by Paul Eggert.
13437
13438 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
13439
13440         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
13441         is causing more trouble than it's curing.
13442         * lib/regex_internal.h (__mempcpy): Remove.
13443         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
13444         (and make the code a tad smaller to boot).
13445         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
13446
13447 2007-02-02  Jim Meyering  <jim@meyering.net>
13448
13449         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
13450         section, not in the Makefile.am: one.
13451
13452 2007-02-02  Eric Blake  <ebb9@byu.net>
13453
13454         * lib/strchrnul.c: Always include config.h first.
13455
13456         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
13457         gnulib strstr is not necessary here.
13458
13459 2007-02-02  Simon Josefsson  <simon@josefsson.org>
13460
13461         * m4/socklen.m4: Fix typo.
13462
13463 2007-02-02  Eric Blake  <ebb9@byu.net>
13464
13465         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
13466         * modules/netinet_in (Makefile.am): Likewise.
13467
13468 2007-02-01  Bruno Haible  <bruno@clisp.org>
13469
13470         * lib/string_.h (GL_LINK_WARNING): New macro.
13471         (strcasecmp, strstr, strcasestr): If provided by the system,
13472         conditionally define as a macro that leads to a warning instead of to
13473         an error.
13474         (strncasecmp): Conditionally define as a macro that leads to a warning.
13475
13476 2007-02-01  Karl Berry  <karl@gnu.org>
13477
13478         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
13479
13480 2007-02-01  Bruno Haible  <bruno@clisp.org>
13481
13482         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
13483         renamings.
13484
13485 2007-02-01  Eric Blake  <ebb9@byu.net>
13486
13487         * modules/regex (Depends-on): Revert dependence on mempcpy.
13488         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
13489         module's definition of mempcpy.
13490         Reported by Paul Eggert.
13491
13492 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
13493
13494         * lib/string_.h: If the gnulib module XYZ is not present, undefine
13495         the symbol XYZ before redefining it.  This fixes a problem with
13496         programs that don't use XYZ, when compiled on systems that define
13497         XYZ to something else.
13498
13499 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
13500
13501         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
13502         occurs when "mkdir -m foo" creates a setgid directory that is (1)
13503         writeable to group or other and (2) is intended to have a special
13504         mode bit that is set or cleared.  In such a case, the directory
13505         should be neither group- nor other-writeable until the special
13506         mode bits are right.
13507
13508 2007-01-31  Eric Blake  <ebb9@byu.net>
13509
13510         * modules/mountlist (Depends-on): Add strstr.
13511
13512         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
13513         bug.
13514         * modules/string (Makefile.am): Remove redundant replacement.
13515         * modules/regex (Depends-on): Add mempcpy.
13516
13517 2007-01-31  Bruno Haible  <bruno@clisp.org>
13518
13519         New module description field 'Link'.
13520         * gnulib-tool (func_usage): Document --extract-link-directive.
13521         (sed_extract_prog): Recognize 'Link' directive.
13522         (func_get_link_directive): New function.
13523         (func_import): Show summary of link directives.
13524         Handle --extract-link-directive option.
13525         * modules/acl (Link): New section.
13526         * modules/clock-time (Link): New section.
13527         * modules/euidaccess (Link): New section.
13528         * modules/gettext (Link): New section.
13529         * modules/iconv (Link): New section.
13530         * modules/lock (Link): New section.
13531         * modules/nanosleep (Link): New section.
13532         * modules/readline (Link): New section.
13533
13534 2007-01-27  Bruno Haible  <bruno@clisp.org>
13535
13536         Enforce the use of gnulib modules for unportable <string.h> functions.
13537         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
13538         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
13539         (gl_HEADER_STRING_H_BODY): Require it.
13540         * lib/string_.h: If the gnulib module XYZ is not present, redefine
13541         the symbol XYZ to one that gives a link error.
13542         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
13543         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
13544         * modules/mempcpy (configure.ac): Likewise.
13545         * modules/memrchr (configure.ac): Likewise.
13546         * modules/stpcpy (configure.ac): Likewise.
13547         * modules/stpncpy (configure.ac): Likewise.
13548         * modules/strcase (configure.ac): Likewise.
13549         * modules/strcasestr (configure.ac): Likewise.
13550         * modules/strchrnul (configure.ac): Likewise.
13551         * modules/strdup (configure.ac): Likewise.
13552         * modules/strndup (configure.ac): Likewise.
13553         * modules/strnlen (configure.ac): Likewise.
13554         * modules/strpbrk (configure.ac): Likewise.
13555         * modules/strsep (configure.ac): Likewise.
13556         * modules/strstr (configure.ac): Likewise.
13557         * modules/strtok_r (configure.ac): Likewise.
13558
13559 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
13560
13561         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
13562
13563 2007-01-30  Jim Meyering  <jim@meyering.net>
13564
13565         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
13566
13567 2007-01-29  Bruno Haible  <bruno@clisp.org>
13568
13569         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
13570         * lib/execute.c: Likewise.
13571         * lib/pipe.c: Likewise.
13572         * lib/printf-args.h: Likewise.
13573         * lib/printf-args.c: Likewise.
13574         * lib/printf-parse.c: Likewise.
13575         * lib/vasnprintf.c: Likewise.
13576
13577 2007-01-29  Eric Blake  <ebb9@byu.net>
13578
13579         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
13580         declaration.
13581
13582 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
13583
13584         * lib/strptime.h (strptime): Use 'restrict' for args where
13585         POSIX requires this.
13586         * lib/strptime.c (strptime): Likewise.
13587         Change license notice from LGPL to GPL, since gnulib-tool will
13588         change this as needed.
13589         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
13590         defined.
13591         Include "strptime.h" first, to check interface.
13592         Do not #undef _LIBC and _NL_CURRENT.
13593         Do not include <stdlib.h>; no longer needed.
13594         Include "time_r.h" and declare ptime_locale_status
13595         only if _LIBC is not defined.
13596         (__P): Remove unused macro.
13597         (match_string): Bring back glibc version, but use it only if _LIBC
13598         is defined.
13599         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
13600         Remove unnecessary assertion and abort() call.
13601         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
13602         * m4/strptime.m4: Fix serial number comment.
13603         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
13604         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
13605         (Depends-on): Add time_r.
13606
13607 2007-01-29  Bruno Haible  <bruno@clisp.org>
13608
13609         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
13610         strptime.
13611         * modules/strptime (Depends-on): Add stdbool.
13612         * lib/strptime.h: Include <time.h> always. Add comments.
13613
13614 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
13615
13616         * modules/strptime: New file.
13617         * lib/strptime.h: New file.
13618         * lib/strptime.c: New file.
13619         * m4/strptime.m4: New file.
13620
13621 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
13622
13623         * MODULES.html.sh: New module mpsort.
13624         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
13625
13626         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
13627         a circularity problem with HP-UX ia64 reported by Bob Proulx in
13628         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
13629         All uses changed.
13630         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
13631         All uses changed.
13632         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
13633         to _Restrict_.
13634         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
13635         the parameter matches the prototype.
13636
13637 2007-01-28  Jim Meyering  <jim@meyering.net>
13638
13639         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
13640         sys/time.h here, reverting that part of the previous patch:
13641         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
13642
13643 2007-01-28  Bruno Haible  <bruno@clisp.org>
13644
13645         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
13646         value of $(SYS_TIME_H).
13647         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
13648         remove it conditionally, too. [added by Jim Meyering]
13649         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
13650         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
13651         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
13652         GETTIMEOFDAY_REPLACEMENT to 1.
13653
13654 2007-01-28  Bruno Haible  <bruno@clisp.org>
13655
13656         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
13657         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
13658         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
13659         Set UNISTD_H instead of UNISTD_H2.
13660         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
13661
13662 2007-01-28  Bruno Haible  <bruno@clisp.org>
13663
13664         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
13665         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
13666
13667 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13668
13669         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
13670         (func_create_testdir): Ensure C locale for `grep' and `tr'
13671         character ranges.
13672         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
13673         ACLOCAL_AMFLAGS parsing state machine.
13674
13675 2007-01-27  Bruno Haible  <bruno@clisp.org>
13676
13677         * modules/unistr/base: Update.
13678
13679 2007-01-27  Bruno Haible  <bruno@clisp.org>
13680
13681         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
13682         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
13683         * modules/unistr/u32-mbtouc-unsafe: Renamed from
13684         modules/unistr/u32-mbtouc.
13685         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
13686         * lib/unistr.h: Update.
13687         * lib/linebreak.c: Update.
13688         * modules/unistr/u32-mbtouc: Renamed from
13689         modules/unistr/u32-mbtouc-safe.
13690         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
13691         * lib/unistr.h: Update.
13692         * lib/unistr/u32-to-u8.c: Update.
13693         * lib/unistr/u32-to-u16.c: Update.
13694
13695 2007-01-27  Bruno Haible  <bruno@clisp.org>
13696
13697         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
13698         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
13699         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
13700         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
13701         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
13702         * modules/unistr/u16-mbtouc-unsafe: Renamed from
13703         modules/unistr/u16-mbtouc.
13704         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
13705         * lib/unistr.h: Update.
13706         * lib/linebreak.c: Update.
13707         * modules/linebreak: Update.
13708         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
13709         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
13710         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
13711         * modules/unistr/u16-mbtouc: Renamed from
13712         modules/unistr/u16-mbtouc-safe.
13713         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
13714         * lib/unistr.h: Update.
13715         * lib/unistr/u16-to-u8.c: Update.
13716         * modules/unistr/u16-to-u8: Update.
13717         * lib/unistr/u16-to-u32.c: Update.
13718         * modules/unistr/u16-to-u32: Update.
13719
13720 2007-01-27  Bruno Haible  <bruno@clisp.org>
13721
13722         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
13723         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
13724         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
13725         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
13726         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
13727         * modules/unistr/u8-mbtouc-unsafe: Renamed from
13728         modules/unistr/u8-mbtouc.
13729         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
13730         * lib/unistr.h: Update.
13731         * lib/striconveh.c: Update.
13732         * modules/striconveh: Update.
13733         * lib/linebreak.c: Update.
13734         * modules/linebreak: Update.
13735         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
13736         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
13737         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
13738         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
13739         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
13740         * lib/unistr.h: Update.
13741         * lib/striconveh.c: Update.
13742         * modules/striconveh: Update.
13743         * lib/unistr/u8-to-u16.c: Update.
13744         * modules/unistr/u8-to-u16: Update.
13745         * lib/unistr/u8-to-u32.c: Update.
13746         * modules/unistr/u8-to-u32: Update.
13747
13748 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13749
13750         Sync from Libtool.
13751         * lib/argz.c: Do not include strings.h nor memory.h, include
13752         string.h unconditionally.  Patch by Simon Josefsson.
13753
13754 2007-01-27  Bruno Haible  <bruno@clisp.org>
13755
13756         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
13757         from gl_HEADER_STRING_H_BODY.
13758         (gl_HEADER_STRING_H_BODY): Require it.
13759         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
13760         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
13761         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
13762         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
13763         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
13764         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
13765         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
13766         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
13767         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
13768         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
13769         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
13770         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
13771         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
13772         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
13773         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
13774
13775 2007-01-27  Bruno Haible  <bruno@clisp.org>
13776
13777         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
13778         check_PROGRAMS into noinst_PROGRAMS.
13779         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
13780         check_PROGRAMS in this case.
13781         (func_import): Set for_test to false.
13782         (func_create_testdir): Set for_test to true.
13783
13784 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
13785             Bruno Haible  <bruno@clisp.org>
13786
13787         * modules/strcasestr (Files): Remove lib/strcasestr.h.
13788         (Depends-on): Add string.
13789         (Includes): Use <string.h> instead of strcasestr.h.
13790         * modules/string (Makefile.am): Also substitute the value of
13791         REPLACE_STRCASESTR.
13792         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
13793         assume strcasestr is declared in <string.h> not <strings.h>. Also
13794         set REPLACE_STRCASESTR.
13795         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
13796         REPLACE_STRCASESTR.
13797         * lib/strcasestr.h: Remove file.
13798         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
13799         * lib/string_.h (strcasestr): New declaration.
13800
13801 2007-01-27  Bruno Haible  <bruno@clisp.org>
13802
13803         * lib/string_.h: Use 'extern'.
13804
13805 2007-01-27  Jim Meyering  <jim@meyering.net>
13806
13807         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
13808         of set-but-not-used local, "q".
13809
13810         * lib/mempcpy.c: Include <config.h> before <string.h>.
13811         This fixes a compilation error on HP-UX, due to the system's
13812         "restrict"-using mempcpy prototype.
13813
13814 2007-01-26  Bruno Haible  <bruno@clisp.org>
13815
13816         Small optimization.
13817         * lib/javacomp.c: Include c-strstr.h.
13818          (is_envjavac_gcj): Use c_strstr instead of strstr.
13819         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
13820
13821 2007-01-26  Bruno Haible  <bruno@clisp.org>
13822
13823         * MODULES.html.sh (Unicode string functions): Add the new modules.
13824
13825         * modules/uniconv/u32-strconv-to-locale: New file.
13826         * lib/uniconv/u32-strconv-to-locale.c: New file.
13827
13828         * modules/uniconv/u16-strconv-to-locale: New file.
13829         * lib/uniconv/u16-strconv-to-locale.c: New file.
13830
13831         * modules/uniconv/u8-strconv-to-locale: New file.
13832         * lib/uniconv/u8-strconv-to-locale.c: New file.
13833
13834         * modules/uniconv/u32-strconv-from-locale: New file.
13835         * lib/uniconv/u32-strconv-from-locale.c: New file.
13836
13837         * modules/uniconv/u16-strconv-from-locale: New file.
13838         * lib/uniconv/u16-strconv-from-locale.c: New file.
13839
13840         * modules/uniconv/u8-strconv-from-locale: New file.
13841         * lib/uniconv/u8-strconv-from-locale.c: New file.
13842
13843         * modules/uniconv/u32-strconv-to-enc: New file.
13844         * lib/uniconv/u32-strconv-to-enc.c: New file.
13845         * modules/uniconv/u32-strconv-to-enc-tests: New file.
13846         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
13847
13848         * modules/uniconv/u16-strconv-to-enc: New file.
13849         * lib/uniconv/u16-strconv-to-enc.c: New file.
13850         * lib/uniconv/u-strconv-to-enc.h: New file.
13851         * modules/uniconv/u16-strconv-to-enc-tests: New file.
13852         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
13853
13854         * modules/uniconv/u8-strconv-to-enc: New file.
13855         * lib/uniconv/u8-strconv-to-enc.c: New file.
13856         * modules/uniconv/u8-strconv-to-enc-tests: New file.
13857         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
13858
13859         * modules/uniconv/u32-strconv-from-enc: New file.
13860         * lib/uniconv/u32-strconv-from-enc.c: New file.
13861         * modules/uniconv/u32-strconv-from-enc-tests: New file.
13862         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
13863
13864         * modules/uniconv/u16-strconv-from-enc: New file.
13865         * lib/uniconv/u16-strconv-from-enc.c: New file.
13866         * modules/uniconv/u16-strconv-from-enc-tests: New file.
13867         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
13868
13869         * modules/uniconv/u8-strconv-from-enc: New file.
13870         * lib/uniconv/u8-strconv-from-enc.c: New file.
13871         * lib/uniconv/u-strconv-from-enc.h: New file.
13872         * modules/uniconv/u8-strconv-from-enc-tests: New file.
13873         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
13874
13875         * modules/uniconv/u32-conv-from-enc: New file.
13876         * lib/uniconv/u32-conv-from-enc.c: New file.
13877         * modules/uniconv/u32-conv-from-enc-tests: New file.
13878         * tests/uniconv/test-u32-conv-from-enc.c: New file.
13879
13880         * modules/uniconv/u16-conv-from-enc: New file.
13881         * lib/uniconv/u16-conv-from-enc.c: New file.
13882         * lib/uniconv/u-conv-from-enc.h: New file.
13883         * modules/uniconv/u16-conv-from-enc-tests: New file.
13884         * tests/uniconv/test-u16-conv-from-enc.c: New file.
13885
13886         * modules/uniconv/u8-conv-from-enc: New file.
13887         * lib/uniconv/u8-conv-from-enc.c: New file.
13888         * modules/uniconv/u8-conv-from-enc-tests: New file.
13889         * tests/uniconv/test-u8-conv-from-enc.c: New file.
13890
13891         * modules/uniconv/base: New file.
13892         * lib/uniconv.h: New file.
13893
13894 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
13895
13896         * doc/gnulib-tool.texi (Initial import): Update to match current
13897         behavior with strdup module.
13898         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
13899         * lib/memmem.h: Remove; all uses removed.  This is now done
13900         by <string.h>.
13901         * lib/mempcpy.h: Likewise.
13902         * lib/memrchr.h: Likewise.
13903         * lib/stpcpy.h: Likewise.
13904         * lib/stpncpy.h: Likewise.
13905         * lib/strcase.h: Likewise.
13906         * lib/strchrnul.h: Likewise.
13907         * lib/strdup.h: Likewise.
13908         * lib/strndup.h: Likewise.
13909         * lib/strnlen.h: Likewise.
13910         * lib/strpbrk.h: Likewise.
13911         * lib/strsep.h: Likewise.
13912         * lib/strstr.h: Likewise.
13913         * lib/strtok_r.h: Likewise.
13914         * lib/string_.h: New file.
13915         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
13916         Rely on <string.h> instead.
13917         * lib/canon-host.c: Likewise.
13918         * lib/chdir-long.c: Likewise.
13919         * lib/concatpath.c: Likewise.
13920         * lib/exclude.c: Likewise.
13921         * lib/fchdir.c: Likewise.
13922         * lib/getaddrinfo.c: Likewise.
13923         * lib/getcwd.c: Likewise.
13924         * lib/getsubopt.c: Likewise.
13925         * lib/glob.c: Likewise.
13926         * lib/hard-locale.c: Likewise.
13927         * lib/iconvme.c: Likewise.
13928         * lib/javacomp.c: Likewise.
13929         * lib/mempcpy.c: Likewise.
13930         * lib/memrchr.c: Likewise.
13931         * lib/regex_internal.h: Likewise.
13932         * lib/stpncpy.c: Likewise.
13933         * lib/strcasecmp.c: Likewise.
13934         * lib/strchrnul.c: Likewise.
13935         * lib/strdup.c: Likewise.
13936         * lib/striconv.c: Likewise.
13937         * lib/striconveh.c: Likewise.
13938         * lib/striconveha.c: Likewise.
13939         * lib/strncasecmp.c: Likewise.
13940         * lib/strndup.c: Likewise.
13941         * lib/strnlen.c: Likewise.
13942         * lib/strsep.c: Likewise.
13943         * lib/strstr.c: Likewise.
13944         * lib/strtok_r.c: Likewise.
13945         * lib/userspec.c: Likewise.
13946         * lib/w32spawn.h: Likewise.
13947         * lib/xstrndup.c: Likewise.
13948         * lib/mountlist.c (strstr): Remove decl.
13949         * m4/string_h.m4: New file.
13950         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
13951         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
13952         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
13953         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
13954         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
13955         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
13956         Set REPLACE_STRCASECMP if necessary.
13957         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
13958         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
13959         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
13960         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
13961         HAVE_DECL_STRDUP if necessary.
13962         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
13963         since gl_FUNC_STRNDUP does that now.
13964         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
13965         Check for decl here...
13966         (gl_PREREQ_STRNLEN): ... not here.
13967         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
13968         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
13969         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
13970         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
13971         necessary.
13972         * modules/string: New file.
13973         * modules/memmem (Files): Remove special-purpose include file.
13974         (Depends-on): Add string.
13975         (Include): Include <string.h>, not the removed file.
13976         * modules/mempcpy: Likewise.
13977         * modules/memrchr: Likewise.
13978         * modules/stpcpy: Likewise.
13979         * modules/stpncpy: Likewise.
13980         * modules/strcase: Likewise.
13981         * modules/strchrnul: Likewise.
13982         * modules/strdup: Likewise.
13983         * modules/strndup: Likewise.
13984         * modules/strnlen: Likewise.
13985         * modules/strpbrk: Likewise.
13986         * modules/strsep: Likewise.
13987         * modules/strstr: Likewise.
13988         * modules/strtok_r: Likewise.
13989         * tests/test-dirname.c: Don't include "strdup.h", since
13990         <string.h> now suffices.
13991         * tests/test-memmem.c: Don't include "memmem.h", since
13992         <string.h> now suffices.
13993
13994 2007-01-25  Bruno Haible  <bruno@clisp.org>
13995
13996         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
13997         *resultp is 0.
13998
13999         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
14000         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
14001         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
14002         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
14003
14004         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
14005         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
14006         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
14007         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
14008         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
14009         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
14010
14011 2007-01-24  Bruno Haible  <bruno@clisp.org>
14012
14013         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
14014         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
14015         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
14016         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
14017         gl_FUNC_FTS_CORE.
14018         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
14019         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
14020         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
14021         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
14022         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
14023         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
14024         gl_FUNC_FCHOWNAT.
14025         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
14026         gl_FUNC_STRFTIME.
14027         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
14028         Reported by Ralf Wildenhues.
14029
14030 2007-01-24  Bruno Haible  <bruno@clisp.org>
14031
14032         Drop AC_REQUIRE calls that are redundant with the module dependencies.
14033         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
14034         gl_GETADDRINFO.
14035         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
14036         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
14037         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
14038
14039 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
14040
14041         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
14042         Don't use 'exit'; just return from 'main'.
14043         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
14044
14045         * lib/fnmatch_.h: Readjust white space and comments to match
14046         glibc, to avoid spurious diffs.
14047
14048 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
14049
14050         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
14051         2004-12-01 change by Jakub Jelinek, since this code won't compile
14052         if !LIBC.  Problem reported by Bob Proulx.
14053
14054 2007-01-23  Bruno Haible  <bruno@clisp.org>
14055
14056         * lib/striconveh.c: Include c-strcaseeq.h.
14057         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
14058         * modules/striconveh (Depends-on): Add c-strcaseeq.
14059
14060 2007-01-23  Bruno Haible  <bruno@clisp.org>
14061
14062         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
14063
14064         * modules/c-strcaseeq: New file.
14065         * lib/c-strcaseeq.h: New file.
14066
14067         * modules/streq: New file.
14068         * lib/streq.h: New file.
14069
14070 2007-01-23  Bruno Haible  <bruno@clisp.org>
14071
14072         * modules/striconveha-tests: New file.
14073         * tests/test-striconveha.c: New file.
14074
14075         * lib/striconveha.h: Include <stdbool.h>.
14076         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
14077         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
14078         (mem_iconveha_notranslit): Renamed from mem_iconveha.
14079         (mem_iconveha): New function.
14080         (str_iconveha_notranslit): Renamed from str_iconveha.
14081         (str_iconveha): New function.
14082         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
14083         c-strcase.
14084
14085 2007-01-23  Bruno Haible  <bruno@clisp.org>
14086
14087         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
14088         encodings without forgiving before trying any encoding with handler.
14089         (str_iconveha): Try all encodings without forgiving before trying any
14090         encoding with handler.
14091
14092 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
14093
14094         Import the following changes from libc.
14095
14096         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
14097
14098         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
14099
14100         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
14101
14102         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
14103         normal_bracket label.
14104
14105         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
14106
14107         [BZ #361]
14108         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
14109         to normal_bracket after fetching the next character.
14110
14111 2007-01-22  Bruno Haible  <bruno@clisp.org>
14112
14113         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
14114         argument.
14115         * lib/striconveh.c (iconv_carefully_1): New function.
14116         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
14117         argument.
14118         (str_cd_iconveh): Update.
14119         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
14120         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
14121         * tests/test-striconveh.c (MAGIC): New macro.
14122         (new_offsets): New function.
14123         (main): Test call with and without offsets.
14124
14125 2007-01-22  Bruno Haible  <bruno@clisp.org>
14126
14127         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
14128         * modules/sys_select (Makefile.am): Likewise.
14129         * modules/sys_socket (Makefile.am): Likewise.
14130         * modules/sys_time (Makefile.am): Likewise.
14131
14132 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
14133
14134         * modules/gettimeofday (License): Change from GPL to LGPL, since
14135         gettimeofday is a library function.
14136
14137 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
14138
14139         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
14140
14141 2007-01-21  Bruno Haible  <bruno@clisp.org>
14142
14143         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
14144
14145 2007-01-21  Bruno Haible  <bruno@clisp.org>
14146
14147         * modules/striconveha: New file.
14148         * lib/striconveha.h: New file.
14149         * lib/striconveha.c: New file.
14150         * MODULES.html.sh (Internationalization functions): Add striconveha.
14151         * lib/striconv.c (str_iconv): Optimize the case of an empty input
14152         string.
14153         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
14154
14155 2007-01-21  Bruno Haible  <bruno@clisp.org>
14156
14157         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
14158         * lib/striconveh.c (str_iconveh): Likewise.
14159
14160 2007-01-21  Bruno Haible  <bruno@clisp.org>
14161
14162         * lib/striconveh.h (mem_iconveh): New declaration.
14163         * lib/striconveh.c (mem_iconveh): New function.
14164         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
14165
14166 2007-01-21  Bruno Haible  <bruno@clisp.org>
14167
14168         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
14169
14170         * lib/striconveh.h (mem_cd_iconveh): Change specification.
14171         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
14172         original result buffer.
14173         (str_cd_iconveh): Update.
14174         * tests/test-striconveh.c (main): Update.
14175
14176         * lib/striconv.h (mem_cd_iconv): Change specification.
14177         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
14178         result buffer.
14179         (str_cd_iconv): Update.
14180         * tests/test-striconv.c (main): Update.
14181
14182 2007-01-21  Bruno Haible  <bruno@clisp.org>
14183
14184         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
14185
14186 2007-01-20  Jim Meyering  <jim@meyering.net>
14187
14188         * lib/userspec.c (parse_with_separator): If a user or group string
14189         starts with "+", skip the corresponding name-to-ID look-up, since
14190         such a look-up must fail: user and group names may not include "+".
14191
14192 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
14193
14194         * lib/poll.c: Include sys/time.h and time.h unconditionally,
14195         since we now assume the sys_time module.
14196         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
14197         check for sys/time.h; no longer needed.
14198         * modules/poll (Depends-on): Depend on sys_time.
14199
14200 2007-01-18  Bruno Haible  <bruno@clisp.org>
14201
14202         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
14203         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
14204
14205         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
14206         gettimeofday.
14207
14208         * tests/test-gettimeofday.c: Include <time.h>.
14209         (dummy): Remove variable.
14210
14211         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
14212         gl_HEADER_SYS_TIME_H.
14213         (gl_HEADER_SYS_TIME_H): New macro.
14214
14215         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
14216         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
14217         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
14218         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
14219         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
14220         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
14221         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
14222         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
14223         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
14224         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
14225         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
14226
14227         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
14228         last change; it caused a compilation error when cross-compiling to
14229         Cygwin.
14230
14231 2007-01-18  Jim Meyering  <jim@meyering.net>
14232
14233         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
14234         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
14235         than the race-prone "test -d sys || mkdir sys".
14236         (configure.ac): Use AC_PROG_MKDIR_P.
14237         * modules/sys_select: Likewise.
14238         * modules/sys_socket: Likewise.
14239         * modules/sys_time: Likewise.
14240
14241 2007-01-18  Eric Blake  <ebb9@byu.net>
14242
14243         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
14244         replace gettimeofday.
14245         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
14246         name, to avoid infinite recursion.
14247
14248 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
14249
14250         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
14251         module sys_time.
14252         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
14253         assume timespec.h defines struct timeval.
14254         * lib/settime.c: Likewise.
14255         * lib/utimens.c: Likewise.
14256         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
14257         since we now assume the gettimeofday module.
14258         * lib/tempname.c (__gen_tempname): Likewise.
14259         * lib/gettimeofday.h: Remove.
14260         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
14261         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
14262         Include <time.h>, for 'time()'.
14263         (localtime_buffer_addr): Also use this workaround if
14264         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
14265         to simplify the uses.  All uses changed.
14266         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
14267         that #undef is inside {}, and 'const' follows type name consistently.
14268         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
14269         (gettimeofday): Do not use the maximum possible value for
14270         tv->tv_usec, since that might break usages other than ls.c.
14271         Instead, we'll leave ls.c alone.  This undoes today's patch
14272         by Bruno.  Add a compile-time warning for 1s-clock resolution;
14273         we've never observed the problem but might as well keep the
14274         canary.
14275         * lib/nanosleep.c: Include timespec.h first, for interface check.
14276         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
14277         now assume the sys_time module.
14278         * lib/tempname.c: Likewise.
14279         * lib/timespec.h: Likewise.
14280         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
14281         needed.
14282         * lib/strftime.c: Likewise.
14283         * lib/timespec.h: Likewise.
14284         * lib/posixtm.c: Include posixtm.h first, for interface check.
14285         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
14286         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
14287         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
14288         * lib/sys_time_.h: New file.
14289         * lib/timespec.h (struct timespec): Use long int, not long.
14290         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
14291         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
14292         Remove obsolescent call to AC_HEADER_TIME.
14293         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
14294         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
14295         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
14296         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
14297         Likewise.
14298         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
14299         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
14300         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
14301         into the sys_time module.  Check for gettimeofday just once.
14302         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
14303         for gettimeofday signature to just check the signature.  Merely
14304         compile it, since linking doesn't test signature.  Improve test for
14305         whether gettimeofday.o is actually needed.
14306         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
14307         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
14308         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
14309         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
14310         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
14311         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
14312         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
14313         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
14314         than worrying about sys/time.h.
14315         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
14316         Don't bother worrying about TIME_WITH_SYS_TIME.
14317         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
14318         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
14319         * m4/sys_time_h.m4: New file.
14320         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
14321         Don't include sys/time.h.  Return from main rather than exiting.
14322         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
14323         all uses changed.
14324         * modules/gethrxtime (Depends-on): Add sys_time.
14325         * modules/gettime (Depends-on): Likewise.
14326         * modules/gettimeofday (Depends-on): Likewise.
14327         * modules/nanosleep (Depends-on): Likewise.
14328         * modules/settime (Depends-on): Likewise.
14329         * modules/tempname (Depends-on): Likewise.
14330         * modules/utimens (Depends-on): Likewise.
14331         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
14332         (Include:) Change back to <sys/time.h>.
14333         (Maintainer:) Add self.
14334         * modules/sys_time: New file.
14335         * modules/tempname (Depends-on): Add gettimeofday.
14336         * tests/test-gettimeofday.c: Include <sys/time.h>
14337         rather than gettimeofday.h.
14338
14339 2007-01-17  Bruno Haible  <bruno@clisp.org>
14340
14341         * gnulib-tool (func_get_license): Revert last patch. Instead, let
14342         the license default to GPL.
14343         (func_create_testdir): Don't complain if a module is LGPL and its
14344         tests module depends on GPLed modules.
14345
14346 2007-01-17  Bruno Haible  <bruno@clisp.org>
14347
14348         * lib/gettimeofday.c (gettimeofday): Add code for the case
14349         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
14350         maximum possible value for tv->tv_usec, rather than the minimum one.
14351
14352 2005-10-08  Martin Lambers  <marlam@marlam.de>
14353 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
14354 2007-01-16  Bruno Haible  <bruno@clisp.org>
14355
14356         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
14357         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
14358         gl_FUNC_GETTIMEOFDAY.
14359         (Include): Add gettimeofday.h.
14360         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
14361         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
14362         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
14363         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
14364         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
14365         * lib/gettimeofday.h: New file.
14366         * lib/gettimeofday.c: Include <sys/timeb.h>.
14367         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
14368         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
14369         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
14370         fall back on time().
14371
14372         * tests/test-gettimeofday.c: New file.
14373         * modules/gettimeofday-tests: New file.
14374
14375 2007-01-16  Eric Blake  <ebb9@byu.net>
14376
14377         * modules/fnmatch (Depends-on): Depend on wchar.
14378         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
14379         * m4/fnmatch.m4: Likewise.
14380         * modules/mbchar (Makefile.am): Assume <wchar.h>.
14381         * m4/mbchar.m4: Likewise.
14382         * modules/mbswidth (Depends-on): Depend on wchar.
14383         * lib/mbswidth.c: Assume <wchar.h>.
14384         * m4/mbswidth.m4: Likewise.
14385         * modules/quotearg (Depends-on): Depend on wchar.
14386         * lib/quotearg.c: Assume <wchar.h>.
14387         * m4/quotearg.m4: Likewise.
14388         * modules/regex (Depends-on): Depend on wchar.
14389         * lib/regex_internal.h: Assume <wchar.h>.
14390         * m4/regex.m4: Likewise.
14391         * modules/stdint (Depends-on): Depend on wchar.
14392         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
14393         * m4/stdint.m4: Likewise.
14394         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
14395         * modules/strftime (Depends-on): Depend on wchar.
14396         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
14397         * modules/strtol (Depends-on): Depend on wchar.
14398         * lib/strtol.c: Assume <wchar.h>.
14399         * modules/wcwidth (Depends-on): Depend on wchar.
14400         * lib/wcwidth.h: Assume <wchar.h>.
14401         * m4/wcwidth.m4: Likewise.
14402
14403 2007-01-16  Bruno Haible  <bruno@clisp.org>
14404
14405         * modules/csharpexec-script: New, created from...
14406         * modules/csharpexec: ... this.
14407
14408 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
14409
14410         * modules/javaexec-script: New, created from...
14411         * modules/javaexec: ... this.
14412
14413 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
14414
14415         * modules/poll (Dependencies): Add sys_select.
14416
14417 2007-01-15  Jim Meyering  <jim@meyering.net>
14418
14419         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
14420         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
14421         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
14422         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
14423
14424 2007-01-15  Bruno Haible  <bruno@clisp.org>
14425
14426         * modules/striconveh: New file.
14427         * lib/striconveh.h: New file.
14428         * lib/striconveh.c: New file.
14429         * MODULES.html.sh (Internationalization functions): Add striconveh.
14430
14431         * modules/striconveh-tests: New file.
14432         * tests/test-striconveh.c: New file.
14433
14434 2007-01-15  Bruno Haible  <bruno@clisp.org>
14435
14436         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
14437         not from GNU libiconv or GNU libc.
14438
14439 2007-01-15  Bruno Haible  <bruno@clisp.org>
14440
14441         * doc/gnulib-intro.texi (Copyright): Explain the different license
14442         terms for module descriptions, autoconf macros, tests, documentation.
14443
14444 2007-01-14  Bruno Haible  <bruno@clisp.org>
14445
14446         * modules/striconv-tests: New file.
14447         * tests/test-striconv.c: New file.
14448
14449 2007-01-14  Bruno Haible  <bruno@clisp.org>
14450
14451         * modules/iconv-tests: New file.
14452         * tests/test-iconv.c: New file.
14453
14454 2007-01-14  Bruno Haible  <bruno@clisp.org>
14455
14456         * gnulib-tool (func_get_license): For test modules, use the license of
14457         the main module.
14458
14459 2007-01-14  Bruno Haible  <bruno@clisp.org>
14460
14461         * modules/iconv (Include): Clarify that <iconv.h> can only be included
14462         if iconv is found to exist.
14463
14464 2007-01-14  Bruno Haible  <bruno@clisp.org>
14465
14466         * modules/c-ctype-tests: New file.
14467         * tests/test-c-ctype.c: New file.
14468
14469 2007-01-14  Bruno Haible  <bruno@clisp.org>
14470
14471         * modules/binary-io-tests: New file.
14472         * tests/test-binary-io.sh: New file.
14473         * tests/test-binary-io.c: New file.
14474
14475 2007-01-14  Bruno Haible  <bruno@clisp.org>
14476
14477         * modules/array-oset-tests: New file.
14478         * tests/test-array_oset.c: New file.
14479
14480 2007-01-14  Bruno Haible  <bruno@clisp.org>
14481
14482         * modules/array-list-tests: New file.
14483         * tests/test-array_list.c: New file.
14484
14485 2007-01-14  Bruno Haible  <bruno@clisp.org>
14486
14487         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
14488         and make.
14489         Reported by Simon Josefsson in
14490         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
14491
14492 2007-01-14  Bruno Haible  <bruno@clisp.org>
14493
14494         * modules/allocsa-tests: New file.
14495         * tests/test-allocsa.c: New file.
14496
14497 2007-01-14  Bruno Haible  <bruno@clisp.org>
14498
14499         * modules/fchdir (Depends-on): Add absolute-header.
14500         * modules/unistd (Depends-on): Likewise.
14501
14502 2006-12-30  Bruno Haible  <bruno@clisp.org>
14503
14504         * modules/fchdir: New file.
14505         * modules/unistd (Files): Add lib/unistd_.h.
14506         (Makefile.am): Generate unistd.h from unistd_.h.
14507         * lib/fchdir.c: New file.
14508         * lib/dirent_.h: New file.
14509         * lib/unistd_.h: New file.
14510         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
14511         * m4/fchdir.m4: New file.
14512         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
14513         (gl_HEADER_UNISTD): Invoke it.
14514         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
14515         function.
14516         * lib/backupfile.c (opendir, closedir): Undefine.
14517         * lib/chown.c (open, close): Undefine.
14518         * lib/clean-temp.c (open, close): Undefine.
14519         * lib/copy-file.c (open, close): Undefine.
14520         * lib/execute.c (open, close): Undefine.
14521         * lib/fsusage.c (open, close): Undefine.
14522         * lib/gc-gnulib.c (open, close): Undefine.
14523         * lib/getcwd.c (opendir, closedir): Undefine.
14524         * lib/glob.c (opendir, closedir): Undefine.
14525         * lib/javacomp.c (open, close): Undefine.
14526         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
14527         * lib/openat-proc.c (open, close): Undefine.
14528         * lib/pagealign_alloc.c (open, close): Undefine.
14529         * lib/pipe.c (open, close): Undefine.
14530         * lib/progreloc.c (open, close): Undefine.
14531         * lib/savedir.c (opendir, closedir): Undefine.
14532         * lib/utime.c (open, close): Undefine.
14533         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
14534
14535 2007-01-10  Bruno Haible  <bruno@clisp.org>
14536
14537         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
14538
14539 2007-01-12  Eric Blake  <ebb9@byu.net>
14540
14541         Provide a robust <wchar.h>.  Further simplifications are now
14542         possible in other modules, but not included here.
14543         * modules/wchar: New module.
14544         * m4/wchar.m4: New file.
14545         * lib/wchar_.h: Likewise.
14546         * modules/mbchar (Depends-on): Depend on wchar, as the first use
14547         of the new module.
14548         * MODULES.html.sh (Extended multibyte and wide character utilities):
14549         New section.
14550
14551 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
14552
14553         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
14554         to a reasonable default for memory allocation.
14555         (xreadlink): Don't allocate a huge buffer, to work around a buggy
14556         file system that reports garbage st_size values for symlinks.
14557         Problem reported by Liyang Hu.
14558
14559 2007-01-11  Simon Josefsson  <simon@josefsson.org>
14560
14561         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
14562         Emacs .#* auto-save files).
14563
14564 2007-01-11  Bruno Haible  <bruno@clisp.org>
14565
14566         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
14567         directory.
14568
14569 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
14570
14571         Use @...@ consistently in lib/wctype_.h.
14572         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
14573         on it being set to 1 or 0.
14574         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
14575         go back to AC_SUBSTing it.
14576         * modules/wctype (Makefile.am): Undo previous change.
14577
14578 2007-01-10  Eric Blake  <ebb9@byu.net>
14579
14580         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
14581         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
14582         * modules/wctype (Makefile.am): Likewise.
14583         Reported by Chris McGuire.
14584
14585 2007-01-10  Jim Meyering  <jim@meyering.net>
14586
14587         fts.c: a small readability/maintainability improvement
14588         * lib/fts.c (fts_read): Make this code slightly more readable and
14589         maintainable by hoisting the "sp->fts_cur = p" assignments to
14590         immediately follow the statements that set P.  Derived from
14591         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
14592
14593 2007-01-10  Eric Blake  <ebb9@byu.net>
14594
14595         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
14596         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
14597         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
14598         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
14599         Reported by Chris McGuire.
14600
14601 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14602
14603         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
14604         in sed script.
14605
14606 2007-01-09  Bruno Haible  <bruno@clisp.org>
14607
14608         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
14609         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
14610         variables.
14611         (func_module): Use them.
14612
14613 2007-01-09  Bruno Haible  <bruno@clisp.org>
14614
14615         * modules/unistr/base: New file.
14616         * lib/unistr.h: New file.
14617
14618         * modules/unistr/u8-to-u16: New file.
14619         * lib/unistr/u8-to-u16.c: New file.
14620
14621         * modules/unistr/u8-to-u32: New file.
14622         * lib/unistr/u8-to-u32.c: New file.
14623
14624         * modules/unistr/u16-to-u8: New file.
14625         * lib/unistr/u16-to-u8.c: New file.
14626
14627         * modules/unistr/u16-to-u32: New file.
14628         * lib/unistr/u16-to-u32.c: New file.
14629
14630         * modules/unistr/u32-to-u8: New file.
14631         * lib/unistr/u32-to-u8.c: New file.
14632
14633         * modules/unistr/u32-to-u16: New file.
14634         * lib/unistr/u32-to-u16.c: New file.
14635
14636         * modules/unistr/u8-check: New file.
14637         * modules/unistr/u16-check: New file.
14638         * modules/unistr/u32-check: New file.
14639         * lib/unistr/u8-check.c: New file.
14640         * lib/unistr/u16-check.c: New file.
14641         * lib/unistr/u32-check.c: New file.
14642
14643         * modules/unistr/u8-chr: New file.
14644         * modules/unistr/u16-chr: New file.
14645         * modules/unistr/u32-chr: New file.
14646         * lib/unistr/u8-chr.c: New file.
14647         * lib/unistr/u16-chr.c: New file.
14648         * lib/unistr/u32-chr.c: New file.
14649
14650         * modules/unistr/u8-cmp: New file.
14651         * modules/unistr/u16-cmp: New file.
14652         * modules/unistr/u32-cmp: New file.
14653         * lib/unistr/u8-cmp.c: New file.
14654         * lib/unistr/u16-cmp.c: New file.
14655         * lib/unistr/u32-cmp.c: New file.
14656
14657         * modules/unistr/u8-cpy: New file.
14658         * modules/unistr/u16-cpy: New file.
14659         * modules/unistr/u32-cpy: New file.
14660         * lib/unistr/u8-cpy.c: New file.
14661         * lib/unistr/u16-cpy.c: New file.
14662         * lib/unistr/u32-cpy.c: New file.
14663         * lib/unistr/u-cpy.h: New file.
14664
14665         * modules/unistr/u8-cpy-alloc: New file.
14666         * modules/unistr/u16-cpy-alloc: New file.
14667         * modules/unistr/u32-cpy-alloc: New file.
14668         * lib/unistr/u8-cpy-alloc.c: New file.
14669         * lib/unistr/u16-cpy-alloc.c: New file.
14670         * lib/unistr/u32-cpy-alloc.c: New file.
14671         * lib/unistr/u-cpy-alloc.h: New file.
14672
14673         * modules/unistr/u8-endswith: New file.
14674         * modules/unistr/u16-endswith: New file.
14675         * modules/unistr/u32-endswith: New file.
14676         * lib/unistr/u8-endswith.c: New file.
14677         * lib/unistr/u16-endswith.c: New file.
14678         * lib/unistr/u32-endswith.c: New file.
14679         * lib/unistr/u-endswith.h: New file.
14680
14681         * modules/unistr/u8-mblen: New file.
14682         * modules/unistr/u16-mblen: New file.
14683         * modules/unistr/u32-mblen: New file.
14684         * lib/unistr/u8-mblen.c: New file.
14685         * lib/unistr/u16-mblen.c: New file.
14686         * lib/unistr/u32-mblen.c: New file.
14687
14688         * modules/unistr/u8-mbtouc: New file.
14689         * modules/unistr/u16-mbtouc: New file.
14690         * modules/unistr/u32-mbtouc: New file.
14691         * lib/unistr/u8-mbtouc.c: New file.
14692         * lib/unistr/u16-mbtouc.c: New file.
14693         * lib/unistr/u32-mbtouc.c: New file.
14694
14695         * modules/unistr/u8-mbtouc-safe: New file.
14696         * modules/unistr/u16-mbtouc-safe: New file.
14697         * modules/unistr/u32-mbtouc-safe: New file.
14698         * lib/unistr/u8-mbtouc-safe.c: New file.
14699         * lib/unistr/u16-mbtouc-safe.c: New file.
14700         * lib/unistr/u32-mbtouc-safe.c: New file.
14701
14702         * modules/unistr/u8-move: New file.
14703         * modules/unistr/u16-move: New file.
14704         * modules/unistr/u32-move: New file.
14705         * lib/unistr/u8-move.c: New file.
14706         * lib/unistr/u16-move.c: New file.
14707         * lib/unistr/u32-move.c: New file.
14708         * lib/unistr/u-move.h: New file.
14709
14710         * modules/unistr/u8-next: New file.
14711         * modules/unistr/u16-next: New file.
14712         * modules/unistr/u32-next: New file.
14713         * lib/unistr/u8-next.c: New file.
14714         * lib/unistr/u16-next.c: New file.
14715         * lib/unistr/u32-next.c: New file.
14716
14717         * modules/unistr/u8-prev: New file.
14718         * modules/unistr/u16-prev: New file.
14719         * modules/unistr/u32-prev: New file.
14720         * lib/unistr/u8-prev.c: New file.
14721         * lib/unistr/u16-prev.c: New file.
14722         * lib/unistr/u32-prev.c: New file.
14723
14724         * modules/unistr/u8-set: New file.
14725         * modules/unistr/u16-set: New file.
14726         * modules/unistr/u32-set: New file.
14727         * lib/unistr/u8-set.c: New file.
14728         * lib/unistr/u16-set.c: New file.
14729         * lib/unistr/u32-set.c: New file.
14730         * lib/unistr/u-set.h: New file.
14731
14732         * modules/unistr/u8-startswith: New file.
14733         * modules/unistr/u16-startswith: New file.
14734         * modules/unistr/u32-startswith: New file.
14735         * lib/unistr/u8-startswith.c: New file.
14736         * lib/unistr/u16-startswith.c: New file.
14737         * lib/unistr/u32-startswith.c: New file.
14738         * lib/unistr/u-startswith.h: New file.
14739
14740         * modules/unistr/u8-stpcpy: New file.
14741         * modules/unistr/u16-stpcpy: New file.
14742         * modules/unistr/u32-stpcpy: New file.
14743         * lib/unistr/u8-stpcpy.c: New file.
14744         * lib/unistr/u16-stpcpy.c: New file.
14745         * lib/unistr/u32-stpcpy.c: New file.
14746         * lib/unistr/u-stpcpy.h: New file.
14747
14748         * modules/unistr/u8-stpncpy: New file.
14749         * modules/unistr/u16-stpncpy: New file.
14750         * modules/unistr/u32-stpncpy: New file.
14751         * lib/unistr/u8-stpncpy.c: New file.
14752         * lib/unistr/u16-stpncpy.c: New file.
14753         * lib/unistr/u32-stpncpy.c: New file.
14754         * lib/unistr/u-stpncpy.h: New file.
14755
14756         * modules/unistr/u8-strcat: New file.
14757         * modules/unistr/u16-strcat: New file.
14758         * modules/unistr/u32-strcat: New file.
14759         * lib/unistr/u8-strcat.c: New file.
14760         * lib/unistr/u16-strcat.c: New file.
14761         * lib/unistr/u32-strcat.c: New file.
14762         * lib/unistr/u-strcat.h: New file.
14763
14764         * modules/unistr/u8-strchr: New file.
14765         * modules/unistr/u16-strchr: New file.
14766         * modules/unistr/u32-strchr: New file.
14767         * lib/unistr/u8-strchr.c: New file.
14768         * lib/unistr/u16-strchr.c: New file.
14769         * lib/unistr/u32-strchr.c: New file.
14770
14771         * modules/unistr/u8-strcmp: New file.
14772         * modules/unistr/u16-strcmp: New file.
14773         * modules/unistr/u32-strcmp: New file.
14774         * lib/unistr/u8-strcmp.c: New file.
14775         * lib/unistr/u16-strcmp.c: New file.
14776         * lib/unistr/u32-strcmp.c: New file.
14777
14778         * modules/unistr/u8-strcpy: New file.
14779         * modules/unistr/u16-strcpy: New file.
14780         * modules/unistr/u32-strcpy: New file.
14781         * lib/unistr/u8-strcpy.c: New file.
14782         * lib/unistr/u16-strcpy.c: New file.
14783         * lib/unistr/u32-strcpy.c: New file.
14784         * lib/unistr/u-strcpy.h: New file.
14785
14786         * modules/unistr/u8-strcspn: New file.
14787         * modules/unistr/u16-strcspn: New file.
14788         * modules/unistr/u32-strcspn: New file.
14789         * lib/unistr/u8-strcspn.c: New file.
14790         * lib/unistr/u16-strcspn.c: New file.
14791         * lib/unistr/u32-strcspn.c: New file.
14792         * lib/unistr/u-strcspn.h: New file.
14793
14794         * modules/unistr/u8-strdup: New file.
14795         * modules/unistr/u16-strdup: New file.
14796         * modules/unistr/u32-strdup: New file.
14797         * lib/unistr/u8-strdup.c: New file.
14798         * lib/unistr/u16-strdup.c: New file.
14799         * lib/unistr/u32-strdup.c: New file.
14800         * lib/unistr/u-strdup.h: New file.
14801
14802         * modules/unistr/u8-strlen: New file.
14803         * modules/unistr/u16-strlen: New file.
14804         * modules/unistr/u32-strlen: New file.
14805         * lib/unistr/u8-strlen.c: New file.
14806         * lib/unistr/u16-strlen.c: New file.
14807         * lib/unistr/u32-strlen.c: New file.
14808         * lib/unistr/u-strlen.h: New file.
14809
14810         * modules/unistr/u8-strmblen: New file.
14811         * modules/unistr/u16-strmblen: New file.
14812         * modules/unistr/u32-strmblen: New file.
14813         * lib/unistr/u8-strmblen.c: New file.
14814         * lib/unistr/u16-strmblen.c: New file.
14815         * lib/unistr/u32-strmblen.c: New file.
14816
14817         * modules/unistr/u8-strmbtouc: New file.
14818         * modules/unistr/u16-strmbtouc: New file.
14819         * modules/unistr/u32-strmbtouc: New file.
14820         * lib/unistr/u8-strmbtouc.c: New file.
14821         * lib/unistr/u16-strmbtouc.c: New file.
14822         * lib/unistr/u32-strmbtouc.c: New file.
14823
14824         * modules/unistr/u8-strncat: New file.
14825         * modules/unistr/u16-strncat: New file.
14826         * modules/unistr/u32-strncat: New file.
14827         * lib/unistr/u8-strncat.c: New file.
14828         * lib/unistr/u16-strncat.c: New file.
14829         * lib/unistr/u32-strncat.c: New file.
14830         * lib/unistr/u-strncat.h: New file.
14831
14832         * modules/unistr/u8-strncmp: New file.
14833         * modules/unistr/u16-strncmp: New file.
14834         * modules/unistr/u32-strncmp: New file.
14835         * lib/unistr/u8-strncmp.c: New file.
14836         * lib/unistr/u16-strncmp.c: New file.
14837         * lib/unistr/u32-strncmp.c: New file.
14838
14839         * modules/unistr/u8-strncpy: New file.
14840         * modules/unistr/u16-strncpy: New file.
14841         * modules/unistr/u32-strncpy: New file.
14842         * lib/unistr/u8-strncpy.c: New file.
14843         * lib/unistr/u16-strncpy.c: New file.
14844         * lib/unistr/u32-strncpy.c: New file.
14845         * lib/unistr/u-strncpy.h: New file.
14846
14847         * modules/unistr/u8-strnlen: New file.
14848         * modules/unistr/u16-strnlen: New file.
14849         * modules/unistr/u32-strnlen: New file.
14850         * lib/unistr/u8-strnlen.c: New file.
14851         * lib/unistr/u16-strnlen.c: New file.
14852         * lib/unistr/u32-strnlen.c: New file.
14853         * lib/unistr/u-strnlen.h: New file.
14854
14855         * modules/unistr/u8-strpbrk: New file.
14856         * modules/unistr/u16-strpbrk: New file.
14857         * modules/unistr/u32-strpbrk: New file.
14858         * lib/unistr/u8-strpbrk.c: New file.
14859         * lib/unistr/u16-strpbrk.c: New file.
14860         * lib/unistr/u32-strpbrk.c: New file.
14861         * lib/unistr/u-strpbrk.h: New file.
14862
14863         * modules/unistr/u8-strrchr: New file.
14864         * modules/unistr/u16-strrchr: New file.
14865         * modules/unistr/u32-strrchr: New file.
14866         * lib/unistr/u8-strrchr.c: New file.
14867         * lib/unistr/u16-strrchr.c: New file.
14868         * lib/unistr/u32-strrchr.c: New file.
14869
14870         * modules/unistr/u8-strspn: New file.
14871         * modules/unistr/u16-strspn: New file.
14872         * modules/unistr/u32-strspn: New file.
14873         * lib/unistr/u8-strspn.c: New file.
14874         * lib/unistr/u16-strspn.c: New file.
14875         * lib/unistr/u32-strspn.c: New file.
14876         * lib/unistr/u-strspn.h: New file.
14877
14878         * modules/unistr/u8-strstr: New file.
14879         * modules/unistr/u16-strstr: New file.
14880         * modules/unistr/u32-strstr: New file.
14881         * lib/unistr/u8-strstr.c: New file.
14882         * lib/unistr/u16-strstr.c: New file.
14883         * lib/unistr/u32-strstr.c: New file.
14884         * lib/unistr/u-strstr.h: New file.
14885
14886         * modules/unistr/u8-strtok: New file.
14887         * modules/unistr/u16-strtok: New file.
14888         * modules/unistr/u32-strtok: New file.
14889         * lib/unistr/u8-strtok.c: New file.
14890         * lib/unistr/u16-strtok.c: New file.
14891         * lib/unistr/u32-strtok.c: New file.
14892         * lib/unistr/u-strtok.h: New file.
14893
14894         * modules/unistr/u8-uctomb: New file.
14895         * modules/unistr/u16-uctomb: New file.
14896         * modules/unistr/u32-uctomb: New file.
14897         * lib/unistr/u8-uctomb.c: New file.
14898         * lib/unistr/u16-uctomb.c: New file.
14899         * lib/unistr/u32-uctomb.c: New file.
14900
14901         * MODULES.html.sh (Unicode string functions): Add the new modules.
14902
14903 2007-01-08  Bruno Haible  <bruno@clisp.org>
14904
14905         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
14906         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
14907         subdirectories.
14908
14909 2007-01-08  Karl Berry  <karl@gnu.org>
14910
14911         * doc/error.texi: mention that main() fns must set program_name
14912         when progname is used.
14913
14914 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
14915
14916         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
14917         WCTYPE_H is empty, for the benefit of builds from non-distclean
14918         directories.  Problem reported by Eric Blake in
14919         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
14920
14921 2007-01-08  Bruno Haible  <bruno@clisp.org>
14922
14923         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
14924         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
14925         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
14926         PROVIDE_CANONICALIZE_FILENAME_MODE.
14927         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
14928
14929 2007-01-08  Bruno Haible  <bruno@clisp.org>
14930
14931         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
14932         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
14933         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
14934         * lib/fts.c: Likewise.
14935         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
14936
14937 2006-12-25  Bruno Haible  <bruno@clisp.org>
14938
14939         * modules/utf8-ucs4-safe: New file.
14940         * lib/utf8-ucs4-safe.h: New file.
14941         * lib/unistr/utf8-ucs4-safe.c: New file.
14942
14943         * modules/utf16-ucs4-safe: New file.
14944         * lib/utf16-ucs4-safe.h: New file.
14945         * lib/unistr/utf16-ucs4-safe.c: New file.
14946
14947         * MODULES.html.sh (Unicode string functions): Add the new modules.
14948
14949 2007-01-08  Bruno Haible  <bruno@clisp.org>
14950
14951         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
14952         (Depends-on): Add unitypes.
14953         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
14954         (u8_mbtouc_aux): Move out to separate file.
14955         (u8_mbtouc): Use ucs4_t, uint8_t types.
14956         * lib/unistr/utf8-ucs4.c: New file.
14957
14958         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
14959         (Depends-on): Add unitypes.
14960         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
14961         (u16_mbtouc_aux): Move out to separate file.
14962         (u16_mbtouc): Use ucs4_t, uint16_t types.
14963         * lib/unistr/utf16-ucs4.c: New file.
14964
14965         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
14966         (Depends-on): Add unitypes.
14967         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
14968         (u8_uctomb_aux): Move out to separate file.
14969         (u8_uctomb): Use ucs4_t, uint8_t types.
14970         * lib/unistr/ucs4-utf8.c: New file.
14971
14972         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
14973         (Depends-on): Add unitypes.
14974         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
14975         (u16_uctomb_aux): Move out to separate file.
14976         (u16_uctomb): Use ucs4_t, uint16_t types.
14977         * lib/unistr/ucs4-utf16.c: New file.
14978
14979 2006-12-25  Bruno Haible  <bruno@clisp.org>
14980
14981         * modules/unitypes: New file.
14982         * lib/unitypes.h: New file.
14983         * MODULES.html.sh (func_all_modules): New section "Unicode string
14984         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
14985         this section. Add unitypes.
14986
14987 2007-01-08  Bruno Haible  <bruno@clisp.org>
14988
14989         Avoid variable names that conflict with those from libtool.
14990         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
14991         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
14992         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
14993         library_names_spec to acl_library_names_spec, hardcode_* to
14994         acl_hardcode_*.
14995         Reported by Ralf Wildenhues.
14996
14997 2007-01-08  Bruno Haible  <bruno@clisp.org>
14998
14999         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
15000         definition.
15001         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
15002         definition.
15003         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
15004         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
15005         definition.
15006         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
15007         definition.
15008         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
15009         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
15010         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
15011         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
15012         definition.
15013         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
15014         definition.
15015         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
15016         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
15017         GC_USE_<algorithm>.
15018         * lib/gc-libgcrypt.c: Likewise.
15019         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
15020         * modules/gc-arctwo (configure.ac): Likewise.
15021         * modules/gc-des (configure.ac): Likewise.
15022         * modules/gc-hmac-md5 (configure.ac): Likewise.
15023         * modules/gc-hmac-sha1 (configure.ac): Likewise.
15024         * modules/gc-md2 (configure.ac): Likewise.
15025         * modules/gc-md4 (configure.ac): Likewise.
15026         * modules/gc-md5 (configure.ac): Likewise.
15027         * modules/gc-random (configure.ac): Likewise.
15028         * modules/gc-rijndael (configure.ac): Likewise.
15029         * modules/gc-sha1 (configure.ac): Likewise.
15030
15031 2007-01-08  Bruno Haible  <bruno@clisp.org>
15032
15033         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
15034         macro definition.
15035         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
15036         definition.
15037         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
15038         definition.
15039         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
15040         * modules/fcntl-safer (configure.ac): Likewise.
15041         * modules/fopen-safer (configure.ac): Likewise.
15042         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
15043         GNULIB_FWRITEERROR macro definition.
15044
15045 2007-01-08  Bruno Haible  <bruno@clisp.org>
15046
15047         * m4/gnulib-common.m4: New file.
15048         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
15049         (func_get_filelist): Add m4/gnulib-common.m4.
15050
15051 2007-01-08  Bruno Haible  <bruno@clisp.org>
15052
15053         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
15054         command.
15055
15056 2007-01-08  Jim Meyering  <jim@meyering.net>
15057
15058         Use a more robust test for a "can't happen" condition.
15059         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
15060         narrowed the st_size value.  Presuming the "can't happen" condition
15061         is true, that narrowing could conceivably convert an invalid st_size
15062         value into a valid one.  Instead, use a change based on Matthew
15063         Woehlke's original patch.
15064
15065         Slight readability improvement: use an assert-like macro
15066         in place of literal "abort ()" uses.
15067         * lib/fts.c (fts_assert): Define.
15068         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
15069         Use this macro instead of a bare 'abort'.
15070
15071 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
15072
15073         Don't worry about using IRIX 5.3's wctype.h broken definitions;
15074         simply work around them.
15075         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
15076         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
15077         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
15078         declaring.
15079         Don't bother to define as macros, since the standard doesn't require it.
15080         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
15081         longer worry about IRIX 5.3.
15082         (HAVE_WCTYPE_CTMP_BUG): Remove.
15083
15084 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
15085
15086         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
15087         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
15088         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
15089         Problems reported by Georg Schwarz for IRIX 5.3.
15090
15091         * gnulib-tool (autoconf_minversion): Take the maximum version number
15092         found, not the minimum.  Problem reported by James Youngman.
15093
15094 2007-01-03  Karl Berry  <karl@gnu.org>
15095
15096         * doc/error.texi: new file, explaining interaction with progname.
15097         * doc/gnulib.texi: include it.  Update copyright.
15098
15099 2007-01-03  Simon Josefsson  <simon@josefsson.org>
15100
15101         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
15102         AC_CANONICAL_HOST, to improve autobuild outputs.
15103
15104 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
15105             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
15106
15107         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
15108         sockets, server sockets, and other file descriptors.  Count errors
15109         to compute the return value.  Reorder the code a bit to be easier
15110         to follow.  Don't set event bits that were not requested (except
15111         POLLERR and POLLHUP).
15112
15113 2007-01-01  Bruno Haible  <bruno@clisp.org>
15114
15115         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
15116
15117 2007-01-03  Jim Meyering  <jim@meyering.net>
15118
15119         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
15120
15121 2007-01-02  Bruno Haible  <bruno@clisp.org>
15122
15123         * modules/settime (Include): Require timespec.h.
15124         * modules/nanosleep (Include): Likewise.
15125
15126 2007-01-01  Bruno Haible  <bruno@clisp.org>
15127
15128         * gnulib-tool (func_emit_copyright_notice): Bump year.
15129         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
15130
15131 2007-01-01  Bruno Haible  <bruno@clisp.org>
15132
15133         Improve support for OpenBSD.
15134         * build-aux/config.rpath (libname_spec): Export.
15135         (library_names_spec): New variable. Export.
15136         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
15137         library_names_spec from the config.rpath output. Locate shared library
15138         through the name pattern in library_names_spec.
15139
15140 2007-01-01  Eric Blake  <ebb9@byu.net>
15141
15142         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
15143
15144 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
15145
15146         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
15147         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
15148         assume the C locale, and avoid an "eval" that could cause trouble.
15149         Problem with SORT reported by Bob Proulx.
15150
15151         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
15152         Define.  Trivial patch from Henning Nielsen Lund, originally
15153         sent to bug-grep@gnu.org today.
15154
15155 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
15156
15157         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
15158         struct stat.  Problem reported by Henning Nielsen Lund.
15159         * lib/acl.c: Include acl.h first, to check interface.  Don't
15160         bother to include sys/types.h and sys/stat.h again.
15161
15162 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
15163
15164         Import the following change from libc; problem reported by
15165         Sven Verdoolaege.
15166
15167         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
15168
15169         [BZ #1373]
15170         * lib/argp.h: Remove __NTH for __argp_usage inline function.
15171
15172 2006-12-28  Jim Meyering  <jim@meyering.net>
15173
15174         * build-aux/announce-gen: Do not assume that the package
15175         builds any of tar.gz, tar.bz2, and .xdelta files.
15176         Suggestion from Simon Josefsson.
15177
15178 2006-12-28  Simon Josefsson  <simon@josefsson.org>
15179
15180         * modules/announce-gen: New file.
15181
15182 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
15183
15184         * lib/mbchar.h: Just include <wctype.h>; the wctype module
15185         handles its gotchas now.
15186         * lib/mbswidth.c: Likewise.
15187         * lib/wcwidth.h: Likewise.
15188         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
15189         and iswcntrl; the wctype module does this stuff now.
15190         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
15191         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
15192         * modules/mbchar (Depends-on): Add wctype.
15193         * modules/mbswidth (Depends-on): Likewise.
15194         * modules/wcwidth (Depends-on): Likewise.
15195
15196 2006-12-27  Eric Blake  <ebb9@byu.net>
15197
15198         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
15199         module uses more than what <wctype.h> is required to provide.
15200
15201 2006-12-26  Eric Blake  <ebb9@byu.net>
15202
15203         * gnulib-tool (sed_extract_prog): Avoid space-tab.
15204
15205 2006-12-26  Eric Blake  <ebb9@byu.net>
15206
15207         * modules/absolute-header: New module.
15208         * modules/fcntl (Depends-on): Depend on it.
15209         * modules/inttypes (Depends-on): Likewise.
15210         * modules/stdint (Depends-on): Likewise.
15211         * modules/sys_stat (Depends-on): Likewise.
15212         * modules/wctype (Depends-on): Likewise.
15213         * MODULES.html.sh (Support for building libraries and
15214         executables): Document it.
15215
15216 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
15217
15218         * gnulib-tool (SED): Remove, undoing previous change.
15219         The problem was that it broke coreutils on Solaris, because
15220         "sed --posix" leaked into a makefile.
15221         (sed): New alias, if 'alias' and GNU sed.
15222
15223 2006-12-24  Jim Meyering  <jim@meyering.net>
15224
15225         Work around an fchownat bug in glibc-2.4:
15226         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
15227         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
15228         in spite of the -P option.
15229         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
15230         New macros.
15231         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
15232         * modules/openat (Files): Add lib/fchownat.c.
15233         * lib/openat.c (fchownat): Don't define here.  Move to...
15234         * lib/fchownat.c: ...this new file.
15235
15236 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
15237
15238         Fix bug reported by Bruno Haible in
15239         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
15240         where quotearg.c didn't compile on Mac OS X 10.2 because it
15241         lacks <wchar.h> and wint_t.
15242         * lib/wctype_.h (__wctype_wint_t): New type.
15243         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
15244         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
15245         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
15246         Arg is now of type __wctype_wint_t, not wint_t.
15247         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
15248         substitute HAVE_WINT_T.
15249         * modules/wctype (Files): Add m4/wint_t.m4.
15250         (wctype.h): Substitute HAVE_WINT_T.
15251
15252 2006-12-23  Bruno Haible  <bruno@clisp.org>
15253
15254         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
15255
15256 2006-12-23  Bruno Haible  <bruno@clisp.org>
15257
15258         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
15259         S_ISLNK.
15260         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
15261         mingw.
15262
15263 2006-12-22  Bruno Haible  <bruno@clisp.org>
15264
15265         * lib/copy-file.c: Include acl.h.
15266         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
15267         Close the file descriptors only after being done with copy_acl.
15268         * modules/copy-file (Depends-on): Add acl.
15269
15270 2006-12-22  Bruno Haible  <bruno@clisp.org>
15271
15272         * gnulib-tool (SED): New variable.
15273         Use $SED instead of sed everywhere.
15274
15275 2006-12-22  Bruno Haible  <bruno@clisp.org>
15276
15277         * modules/no-c++: New file.
15278         * m4/no-c++.m4: New file.
15279         * MODULES.html.sh (Support for building libraries and executables):
15280         Add no-c++.
15281
15282 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
15283
15284         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
15285         Include <limits.h>, and use its INT_MAX to rewrite the
15286         j loop so that it does not overflow 'int'.  Problem reported by
15287         Ralf Wildenhues in
15288         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
15289         Play it safe by shifting left by 1 rather than multiplying by 2,
15290         as GCC is less likely to optimize this away when the value
15291         is signed (when it assumes overflow leads to undefined behavior).
15292         Also, don't assume time_t uses two's complement.
15293
15294 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
15295
15296         * MODULES.html.sh: New module wctype.
15297         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
15298         * lib/fnmatch.c: Don't bother to include <wchar.h> before
15299         <wctype.h>, since the new wctype module should fix this.
15300         * lib/quotearg.c: Include <wctype.h> unconditionally, since
15301         the wctype module should arrange for it.
15302         * lib/regex_internal.h: Likewise.
15303         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
15304         since the wctype module should handle this now.
15305         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
15306         * modules/fnmatch (Depends-on): Add wctype.
15307         * modules/quotearg (Depends-on): Likewise.
15308         * modules/regex (Depends-on): Likewise.
15309
15310 2006-12-19  Bruno Haible  <bruno@clisp.org>
15311
15312         * lib/strdup.h [C++]: Wrap definitions in extern "C".
15313         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
15314
15315 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15316
15317         * modules/savewd (Depends-on): Fix dependency on fcntl.
15318
15319 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
15320
15321         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
15322         conforms to C99, rather than relying on the user's environment
15323         setting of STDINT_H.
15324
15325 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
15326         and Eric Blake  <ebb9@byu.net>
15327
15328         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
15329         This is more consistent with the other defines here.
15330         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
15331         Port to z/OS.  Problem reported by Paul Gilmartin.
15332         Change local vars to use gl_ prefix rather than ac_.
15333         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
15334         with other defines.
15335         * modules/double-slash-root: New module.
15336         * modules/dirname (Files): Remove m4/double-slash-root.m4.
15337         (Depends-on): Add double-slash-root.
15338         * MODULES.html.sh (File system functions): Mention new module.
15339
15340 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
15341
15342         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
15343         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
15344         This is for the benefit of gzip, which doesn't do i18n.
15345
15346 2006-12-12  Jim Meyering  <jim@meyering.net>
15347
15348         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
15349         Reported by Andreas Schwab <schwab@suse.de>.
15350
15351 2006-12-12  Bruno Haible  <bruno@clisp.org>
15352
15353         Merge these changes.
15354         2006-09-05  Bruno Haible  <bruno@clisp.org>
15355         * lib/iconvme.c (iconv_string): No need to save and restore errno when
15356         iconv_alloc succeeded.
15357         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
15358         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
15359         test for " && dest " at the end - dest is always != NULL there. Call
15360         iconv with 4xNULL arguments initially, to reset the state. Call iconv
15361         with 2xNULL arguments, also to flush the state storage. Handle the
15362         IRIX iconv behaviour. Realloc the final result, to throw away unused
15363         memory.
15364
15365 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
15366
15367         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
15368         and fchmodat unconditionally, since glibc 2.4 has them.
15369         Problem reported by Arkadiusz Miskiewicz.
15370
15371 2006-12-10  Bruno Haible  <bruno@clisp.org>
15372
15373         * gnulib-tool (func_import): Show the include files only for those
15374         modules that are copied and specified.
15375         Reported by Karl Berry.
15376
15377 2006-12-08  Jim Meyering  <jim@meyering.net>
15378
15379         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
15380         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
15381
15382         * build-aux/announce-gen: Add two new options, both optional:
15383         --bootstrap-tools=TOOL_LIST
15384               a comma-separated list of tools, e.g.,
15385               autoconf,automake,bison,gnulib
15386         --gnulib-snapshot-date=DATE
15387               if gnulib is in the bootstrap tool list,
15388               then report this as the snapshot date.
15389               If not specified, use the current date/time.
15390               If you specify a date here, be sure it's UTC.
15391
15392 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15393
15394         * tests/test-argp-2.sh: Fix test to match actual output.
15395         (func_compare): Fix sed script to be portable.
15396
15397 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
15398
15399         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
15400         workaround for this case.  It is not autoconfigured now; offhand
15401         it's hard to see how to autoconfigure it.
15402
15403 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
15404
15405         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
15406         a directory that is about to be chowned.  Such a directory's
15407         initial file permissions should permit the owner only and this
15408         should not be changed until after the chown, since the group and
15409         other bits would be incorrect if they granted permission before
15410         the chown.
15411
15412         Fix porting problem for iswctype reported by Georg Schwarz in:
15413         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
15414         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
15415         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
15416         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
15417         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
15418
15419 2006-12-03  Jim Meyering  <jim@meyering.net>
15420
15421         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
15422         p->fts_statp may not yet be defined.
15423         (fts_read): Instead, set it in the caller, once p->fts_statp is
15424         sure to be defined, and corresponds to a top-level directory.
15425         This bug made du -x fail.  Here's the coreutils test case:
15426         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
15427         Reported by Mike Frysinger.
15428
15429 2006-12-01  Jim Meyering  <jim@meyering.net>
15430
15431         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
15432         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
15433         Reported by Simon Josefsson.
15434
15435 2006-11-30  Jim Meyering  <jim@meyering.net>
15436
15437         * m4/warning.m4: Use the all-permissive copyright notice
15438         recommended by RMS (rather than LGPL).
15439         * m4/vararrays.m4: Likewise.
15440         * m4/flexmember.m4: Likewise.
15441
15442 2006-11-29  Bruno Haible  <bruno@clisp.org>
15443
15444         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
15445         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
15446         using +=.
15447         Reported by Simon Josefsson <simon@josefsson.org>.
15448
15449 2006-11-28  James Youngman <jay@gnu.org>
15450
15451         * README: Advise users that they might find the bug-gnulib@gnu.org
15452         and autotools-announce@gnu.org mailing lists useful.
15453
15454 2006-11-28  Bruno Haible  <bruno@clisp.org>
15455
15456         * m4/ptrdiff_max.m4: Remove file.
15457
15458 2006-11-21  Bruno Haible  <bruno@clisp.org>
15459
15460         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
15461         _AC_COMPUTE_INT.
15462         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
15463         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
15464         _AC_COMPUTE_INT.
15465         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
15466         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
15467         _AC_COMPUTE_INT.
15468         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
15469
15470 2006-11-28  Jim Meyering  <jim@meyering.net>
15471
15472         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
15473         warning from "gcc -Wshadow" about shadowing the builtin.
15474
15475 2006-11-27  Bruno Haible  <bruno@clisp.org>
15476
15477         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
15478         _AC_COMPUTE_INT.
15479         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
15480
15481 2006-11-27  Bruno Haible  <bruno@clisp.org>
15482             Paul Eggert  <eggert@cs.ucla.edu>
15483
15484         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
15485
15486 2006-11-26  Bruno Haible  <bruno@clisp.org>
15487
15488         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
15489         noinst_LTLIBRARIES.
15490
15491 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
15492             Bruno Haible  <bruno@clisp.org>
15493
15494         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
15495         if compiling with "gcc -ansi".
15496
15497 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
15498
15499         Fix some incompatibilities with gcc -ansi -pedantic.
15500         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
15501         if compiling pedantically with GCC, unless it's C99 or later.
15502         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
15503         it mishandles gcc -ansi -pedantic as well.
15504         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
15505         if gcc -pedantic.
15506         * lib/regexec.c (check_node_accept_bytes): Don't use auto
15507         initializers for struct if -pedantic, unless it's C99 or later.
15508
15509 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
15510
15511         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
15512         Don't close an fd more than once. Identical atimes indicate
15513         success, not failure.
15514
15515 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
15516
15517         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
15518
15519 2006-11-23  Jim Meyering  <jim@meyering.net>
15520
15521         * build-aux/announce-gen: New file.  From coreutils.
15522
15523 2006-11-22  Jim Meyering  <jim@meyering.net>
15524
15525         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
15526         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
15527         (fts_read): Use a temporary to narrow the overused st_size member
15528         before using it in a switch statement.  Reported by Matthew Woehlke.
15529
15530         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
15531         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
15532
15533 2006-11-20  Bruno Haible  <bruno@clisp.org>
15534
15535         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
15536         changequote instead of pairs of brackets.
15537         Reported by Andreas Schwab <schwab@suse.de>.
15538
15539 2006-11-21  Jim Meyering  <jim@meyering.net>
15540
15541         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
15542         so as to remain compatible with older compilers.
15543         Patch from Michael Deutschmann.
15544
15545 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
15546
15547         * MODULES.html.sh (File system functions): Add openat.
15548
15549         * lib/openat.h (rpl_fstatat): New macro, if
15550         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
15551         (fstatat): Define to rpl_fstatat under the same conditions,
15552         unless COMPILING_FSTATAT.
15553         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
15554         seems to have the bug.
15555         * lib/fstatat.c: New file.
15556         * modules/openat (Files): Add it.
15557
15558 2006-11-20  Bruno Haible  <bruno@clisp.org>
15559
15560         * Makefile: New file.
15561
15562 2006-11-20  Jim Meyering  <jim@meyering.net>
15563
15564         The beginnings of syntax-related checks for gnulib.
15565         * lib/Makefile: New file.
15566         * lib/t-idcache: New script.  Ensure that the two halves of
15567         idcache.c stay in sync.
15568
15569         * lib/idcache.c: Adjust comments in user- and group- portions to
15570         be more accurate, and to be consistent with one another.
15571
15572 2006-11-20  Jim Meyering  <jim@meyering.net>
15573
15574         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
15575         continue using the flexible array member (thus, this module performs
15576         half as many malloc calls), with the addition that...
15577         (getgroup, getuser): Consistently record a non-match via an empty
15578         "name" string, and map an empty string match to a NULL return value.
15579         * modules/idcache (Depends-on): Re-add flexmember.
15580
15581         * lib/idcache.c (getuser): Remove all uses of the register keyword.
15582         (getuidbyname, getgroup, getgidbyname): Likewise.
15583
15584         Use cleaner syntax: NULL rather than 0.
15585         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
15586
15587 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
15588
15589         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
15590         It mishandled the case where the group was missing.
15591         Problem reported by Greg Schafer.
15592         * modules/idcache: Likewise.
15593
15594 2006-11-18  Jim Meyering  <jim@meyering.net>
15595
15596         * check-module (%exempt_header): Add exception for some
15597         conditionally-included headers.
15598
15599         * modules/i-ring (Depends-on): Add verify.
15600         (License): Change to LGPL.
15601
15602 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
15603
15604         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
15605         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
15606         and inttostr.h.  Use snprintf rather than uinttostr, so that
15607         LGPLed code doesn't depend on GPLed.
15608
15609 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
15610
15611         * modules/inline (License): Change from GPL to LGPL.
15612
15613 2006-11-17  Jim Meyering  <jim@meyering.net>
15614
15615         * modules/d-type (License): Switch to LGPL.
15616
15617 2006-11-15  Bruno Haible  <bruno@clisp.org>
15618
15619         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
15620
15621 2006-11-15  Eric Blake  <ebb9@byu.net>
15622
15623         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
15624         the module dependency.
15625
15626 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
15627             Bruno Haible  <bruno@clisp.org>
15628
15629         * gnulib-tool (func_create_testdir): Add license consistency check.
15630
15631 2006-11-15  Eric Blake  <ebb9@byu.net>
15632
15633         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
15634         random "(cached)" in configure output.
15635
15636 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15637
15638         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
15639         test for conforming inttypes.h is both announced and cached.
15640
15641         * MODULES.html.sh (seen_modules, seen_files): New variables.
15642         (func_module): Rewrite to use a few less gnulib-tool and sed
15643         invocations.  Avoid a couple of quadratic algorithms for ...
15644         (missed_modules, missed_files): ... these, with ...
15645         (func_append, func_tmpdir): ... these new functions, from
15646         gnulib-tool.  Analogously, install traps for cleanup.
15647
15648         * tests/test-gc.c (main): Remove unused variables.
15649         * tests/test-read-file.c: Include stdlib.h, for 'free'.
15650
15651 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
15652
15653         * modules/inttostr (License): Change to LGPL.
15654
15655 2006-11-14  Eric Blake  <ebb9@byu.net>
15656
15657         * modules/tempname (License): Change to LGPL.
15658
15659 2006-11-14  Eric Blake  <ebb9@byu.net>
15660
15661         * doc/functions.texi (Function Portability): *printf functions on
15662         Cygwin now understand all POSIX size specifiers.
15663
15664 2006-11-14  Bruno Haible  <bruno@clisp.org>
15665
15666         * modules/c-ctype (License): Change to LGPL.
15667
15668 2006-11-12  Bruno Haible  <bruno@clisp.org>
15669
15670         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
15671         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
15672         for GNOME libraries, for which the include files are installed in
15673         subdirectories of $prefix/include.
15674
15675 2006-11-12  Bruno Haible  <bruno@clisp.org>
15676
15677         * m4/lib-link.m4: Require at least autoconf-2.54.
15678         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
15679         name to underscores for the --with option.
15680
15681 2006-11-13  Bruno Haible  <bruno@clisp.org>
15682
15683         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
15684         the tests directory.
15685         Reported by Ralf Wildenhues.
15686
15687 2006-11-13  Bruno Haible  <bruno@clisp.org>
15688
15689         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
15690         (func_emit_initmacro_end): Undo the override here.
15691         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
15692         Works around the famous automake error in coreutils.
15693
15694 2006-11-13  Eric Blake  <ebb9@byu.net>
15695
15696         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
15697         element, not its node.
15698
15699 2006-11-12  Bruno Haible  <bruno@clisp.org>
15700
15701         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
15702         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
15703
15704 2006-11-12  Bruno Haible  <bruno@clisp.org>
15705
15706         * gnulib-tool: New option --local-symlink.
15707         (func_usage): Document it.
15708         (lsymbolic): New variable.
15709         (func_import, func_create_testdir): If --symlink was not specified,
15710         test whether --local-symlink was specified and the file comes from
15711         the local_gnulib_dir.
15712
15713 2006-11-12  Bruno Haible  <bruno@clisp.org>
15714
15715         * gnulib-tool (func_ln): New function.
15716         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
15717
15718 2006-11-12  Bruno Haible  <bruno@clisp.org>
15719
15720         Finish support for source files in subdirectories.
15721         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
15722         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
15723         AUTOMAKE_OPTIONS.
15724         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
15725
15726 2006-11-12  Bruno Haible  <bruno@clisp.org>
15727
15728         * gnulib-tool (func_get_automake_snippet): Synthesize also an
15729         EXTRA_lib_SOURCES augmentation.
15730         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
15731
15732 2006-11-12  Jim Meyering  <jim@meyering.net>
15733
15734         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
15735         file descriptors.  This also averts a failure on systems with
15736         native openat support when a traversed directory lacks "x" access.
15737         * lib/fts_.h: Include "i-ring.h"
15738         (struct FTS) [fts_fd_ring]: New member.
15739         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
15740         (FCHDIR): Add parentheses.
15741         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
15742         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
15743         When descending, rather than simply closing the previous
15744         fts_cwd_fd value, push that file descriptor onto the ring.
15745         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
15746         (fts_open): Initialize the new fd_ring member.
15747         (fts_close): Clear the ring.
15748         (fts_safe_changedir): When possible, use our new fd_ring to skip
15749         the diropen and fstat and dev/ino comparison that would normally
15750         accompany a virtual `chdir ("..")'.
15751
15752         * modules/fts (Depends-on): Add i-ring.
15753         * modules/i-ring: New module.
15754         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
15755         * m4/i-ring.m4: New file.
15756
15757 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15758
15759         * gnulib-tool (func_create_testdir): Fix replacement of
15760         `build-aux' in configure.ac.  Run autotools in gltests
15761         subdirectory.
15762         (func_create_testdir, func_create_megatestdir, test): There is
15763         no need for '--force' in most autotool invocations in a new
15764         tree.  Actually fail the whole test if any of the tools, or the
15765         configure or make stages fail.
15766
15767         Sync from Automake.
15768         * build-aux/gnupload: Revert last change.  Add pointer to upload
15769         instructions of the GNU Maintenance Instructions.
15770         Suggestion by Karl Berry.
15771
15772 2006-11-10  Jim Meyering  <jim@meyering.net>
15773
15774         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
15775
15776 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
15777
15778         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
15779         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
15780         (bind_textdomain_codeset) [! ENABLE_NLS]:
15781         Evaluate all the arguments.  That way, callers get compatible behavior
15782         if the arguments have side effects.  Also, it avoids some GCC
15783         diagnostics in some cases; Joel E. Denny reported problems when Bison
15784         was configured with --enable-gcc-warnigs.
15785
15786 2006-11-10  Jim Meyering  <jim@meyering.net>
15787
15788         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
15789         relevant options in CFLAGS (like -O, -fno-inline) are taken into
15790         account.
15791
15792 2006-11-10  Jim Meyering  <jim@meyering.net>
15793
15794         * modules/inline: New file/module.
15795         * modules/xalloc (Files): Remove m4/inline.m4.
15796         (Depends-on): Add inline, instead.
15797         * modules/oset: Likewise.
15798         * modules/list: Likewise.
15799
15800 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
15801
15802         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
15803         Problem reported by Matthew Woehlke.
15804
15805 2006-11-09  Bruno Haible  <bruno@clisp.org>
15806
15807         * lib/tempname.c (gen_tempname): Remove variant that invokes
15808         __gen_tempname.
15809         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
15810         __gen_tempname.
15811
15812 2006-11-08  Bruno Haible  <bruno@clisp.org>
15813
15814         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
15815         to 'yes' instead of 'cross-compiling'.
15816
15817 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
15818
15819         * lib/quotearg.h (quotearg_free): New decl.
15820         * lib/quotearg.c (quotearg_free): New function.
15821         (slot0, nslots, slotvec0, slotvec):
15822         Now file-scope so that quotearg_free can get at them.
15823
15824 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15825
15826         Sync from Automake.
15827         * build-aux/gnupload: Add missing 'gnu' to example URL.
15828         Report by Karl Berry.
15829
15830 2006-11-08  Bruno Haible  <bruno@clisp.org>
15831
15832         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
15833         Suggested by Paul Eggert.
15834
15835 2006-11-08  Jim Meyering  <jim@meyering.net>
15836
15837         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
15838         It's already included if !_LIBC.
15839         (fts_safe_changedir): Add a comment.
15840
15841 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
15842
15843         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
15844         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
15845         Matthew Woehlke.
15846
15847         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
15848         definitions up, to avoid colliding with change below.
15849         (static_inline) [HAVE_INLINE]: New macro.
15850         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
15851         Provide extern decls when !HAVE_INLINE.  Do not define unless
15852         static_inline is defined, either by us or by xmalloc.c.  Use
15853         static_inline rather than static inline.
15854         (XCALLOC): Optimize sizeof(T) = 1 case.
15855         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
15856
15857 2006-11-07  Bruno Haible  <bruno@clisp.org>
15858
15859         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
15860         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
15861         AC_C_INLINE.
15862         * modules/xalloc (Files): Add m4/inline.m4.
15863
15864 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15865
15866         * README: Fix typo.
15867         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
15868         (Miscellanous Notes): ...from this.
15869
15870 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
15871
15872         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
15873         Mention that offsetof should be used instead of sizeof.
15874         From Bruno Haible.
15875
15876 2006-11-07  Bruno Haible  <bruno@clisp.org>
15877
15878         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
15879
15880 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
15881
15882         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
15883         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
15884         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
15885         (gl_tree_add_before, gl_tree_add_after):
15886         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
15887         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
15888         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
15889         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
15890         (gl_linked_add_after, gl_linked_add_at): Likewise.
15891         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
15892         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
15893         (gl_tree_add_before, gl_tree_add_after): Likewise.
15894         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
15895         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
15896         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
15897
15898 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15899
15900         * lib/gl_oset.h: Use C comment style, not C++ comment style.
15901
15902 2006-11-06  Bruno Haible  <bruno@clisp.org>
15903
15904         * m4/inline.m4: New file.
15905         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
15906         * modules/list (Files): Add m4/inline.m4.
15907         * modules/oset (Files): Likewise.
15908
15909 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
15910
15911         * lib/idcache.c: Include <stddef.h>, for offsetof.
15912         (struct userid.name): Change from char * to a flexible array member.
15913         All uses changed.
15914         * modules/idcache (Depends-on): Add flexmember.
15915
15916         * MODULES.html.sh (Core language properties): New module flexmember.
15917         * modules/flexmember, m4/flexmember.m4: New files.
15918
15919         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
15920         inline functions that are identical with the old xnmalloc_inline,
15921         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
15922         that we can avoid some unnecessary integer multiplications and
15923         divisions in the common case where the element size is known at
15924         compile time.
15925         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
15926         needed.
15927         (xnboundedmalloc): Remove.
15928         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
15929         arguments, for consistency with rest of this header.
15930         (xcharalloc): Rewrite using XNMALLOC.
15931         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
15932         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
15933         versions have been moved to lib/xalloc.h and renamed to be the
15934         non-*_inline versions.
15935         (xmalloc, xrealloc): Implement without reference to the xnmalloc
15936         and xnrealloc functions, since those functions are now inline and
15937         now call us.
15938         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
15939         renaming described above.
15940         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
15941         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
15942         captures the dependency in AC_C_INLINE.
15943
15944         New module canonicalize-lgpl, proposed by Charles Wilson in
15945         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
15946         with a few small changes afterwards.
15947         * MODULES.html.sh (File system functions): New module
15948         canonicalize-lgpl.
15949         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
15950         and canonicalize_file_name.
15951         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
15952         * modules/canonicalize-lgpl: New files.
15953
15954 2006-11-05  Bruno Haible  <bruno@clisp.org>
15955
15956         * gnulib-tool (func_import, func_create_testdir): Create directories
15957         also for files in subdirectories of lib/.
15958
15959 2006-11-05  Bruno Haible  <bruno@clisp.org>
15960
15961         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
15962         ANSI C compliant.
15963
15964 2006-11-03  Bruno Haible  <bruno@clisp.org>
15965
15966         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
15967         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
15968         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
15969         (xnboundedmalloc): New inline function.
15970         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
15971         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
15972         xmalloc.
15973         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
15974         xmalloc.
15975         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
15976         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
15977         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
15978         xmalloc.
15979         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
15980         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
15981         xmalloc.
15982         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
15983         gl_tree_add_after): Use XMALLOC instead of xmalloc.
15984         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
15985         xmalloc.
15986         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
15987         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
15988         gl_tree_add_after): Use XMALLOC instead of xmalloc.
15989         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
15990         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
15991         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
15992         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
15993
15994 2006-11-03  Bruno Haible  <bruno@clisp.org>
15995
15996         * lib/c-ctype.h [C++]: Define functions without name mangling.
15997         * lib/fwriteerror.h [C++]: Likewise.
15998         * lib/gcd.h [C++]: Likewise.
15999         * lib/linebreak.h [C++]: Likewise.
16000
16001 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
16002
16003         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
16004         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
16005         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
16006         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
16007         Check for functions and headers just once.
16008         Check for declaration of canonicalize_file_name.
16009         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
16010
16011 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
16012
16013         * gnulib-tool (func_import): Fix typo in actioncmd.
16014
16015 2006-11-02  Bruno Haible  <bruno@clisp.org>
16016
16017         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
16018         newline sequence in the Makefile.am snippet as a space, like "make"
16019         does.
16020         Reported by Roger Persson <perrog@gmail.com>.
16021
16022 2006-11-01  Bruno Haible  <bruno@clisp.org>
16023
16024         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
16025         already declared in <string.h>.
16026         * lib/strcase.h (strncasecmp): Don't declare it if yes.
16027
16028 2006-11-01  Bruno Haible  <bruno@clisp.org>
16029
16030         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
16031         * lib/strcase.h: Include <string.h>.
16032         (strcasecmp): Define to rpl_strcasecmp here.
16033
16034 2006-11-01  Bruno Haible  <bruno@clisp.org>
16035
16036         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
16037
16038 2006-11-01  Eric Blake  <ebb9@byu.net>
16039
16040         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
16041
16042         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
16043
16044 2006-10-29  Bruno Haible  <bruno@clisp.org>
16045
16046         Make it compile in C++ mode.
16047         * lib/full-write.c (full_rw): Add a cast.
16048
16049 2006-11-01  Bruno Haible  <bruno@clisp.org>
16050
16051         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
16052         be POSIX compliant.
16053         Reported by Roger Persson <perrog@gmail.com>.
16054
16055 2006-11-01  Eric Blake  <ebb9@byu.net>
16056
16057         * lib/getopt_.h: Fix comments.
16058
16059 2006-10-31  Eric Blake  <ebb9@byu.net>
16060
16061         * modules/tmpdir (Depends-on): Add sys_stat.
16062         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
16063         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
16064         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
16065         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
16066         tempname.
16067
16068 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
16069
16070         Avoid some C++ diagnostics reported by Bruno Haible.
16071         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
16072         xmalloc.
16073         (quotearg_alloc): Use xcharalloc rather than xmalloc.
16074         (struct slotvec): Move to top level.
16075         (quotearg_n_options): Rewrite to avoid xmalloc.
16076         * lib/xalloc.h (xcharalloc): New function.
16077         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
16078         [defined __cplusplus]: Add function template that provides result
16079         type propagation.  This part of the change is from Bruno Haible.
16080
16081 2006-10-29  Bruno Haible  <bruno@clisp.org>
16082
16083         Make it compile in C++ mode.
16084         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
16085         * lib/strnlen1.c (strnlen1): Cast memchr result.
16086         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
16087         * lib/clean-temp.c (string_equals, string_hash): Add casts.
16088         (create_temp_dir): Rename local variable 'template'.
16089         (compile_csharp_using_sscli): Add cast.
16090         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
16091         * lib/findprog.c (find_in_path): Likewise.
16092         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
16093         * lib/wait-process.c (register_slave_subprocess): Likewise.
16094
16095 2006-10-22  Bruno Haible  <bruno@clisp.org>
16096
16097         * modules/tsearch: New file.
16098         * lib/tsearch.h: New file.
16099         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
16100         * m4/tsearch.m4: New file.
16101         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
16102
16103 2006-10-29  Eric Blake  <ebb9@byu.net>
16104
16105         * lib/arcfour.c: Assume config.h.
16106         * lib/arctwo.c: Likewise.
16107         * lib/base64.c: Likewise.
16108         * lib/check-version.c: Likewise.
16109         * lib/crc.c: Likewise.
16110         * lib/des.c: Likewise.
16111         * lib/gc-gnulib.c: Likewise.
16112         * lib/gc-libgcrypt.c: Likewise.
16113         * lib/gc-pbkdf2-sha1.c: Likewise.
16114         * lib/getaddrinfo.c: Likewise.
16115         * lib/getdelim.c: Likewise.
16116         * lib/getline.c: Likewise.
16117         * lib/hmac-md5.c: Likewise.
16118         * lib/hmac-sha1.c: Likewise.
16119         * lib/iconvme.c: Likewise.
16120         * lib/md2.c: Likewise.
16121         * lib/md4.c: Likewise.
16122         * lib/memxor.c: Likewise.
16123         * lib/read-file.c: Likewise.
16124         * lib/readline.c: Likewise.
16125         * lib/rijndael-alg-fst.c: Likewise.
16126         * lib/rijndael-api-fst.c: Likewise.
16127         * lib/xgetdomainname.c: Likewise.
16128
16129 2006-10-28  Eric Blake  <ebb9@byu.net>
16130
16131         * lib/xstrndup.c: Assume config.h.
16132
16133 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
16134
16135         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
16136         stat-macros.h is now for our own macros, whereas stat_h is for
16137         macros in the <sys/stat.h> name space.
16138         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
16139         (STAT_MACROS_H): Remove.
16140         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
16141         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
16142         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
16143         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
16144         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
16145         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
16146         Move these macros to ...
16147         * lib/stat_.h: here.  Don't include stat-macros.h.
16148         * lib/canonicalize.c: Don't include stat-macros.h.
16149         * lib/chown.c: Likewise.
16150         * lib/euidaccess.c: Likewise.
16151         * lib/file-type.c: Likewise.
16152         * lib/filemode.c: Likewise.
16153         * lib/glob.c: Likewise.
16154         * lib/isapipe.c: Likewise.
16155         * lib/lchown.c: Likewise.
16156         * lib/lstat.c: Likewise.
16157         * lib/mkdir-p.c: Likewise.
16158         * lib/rmdir.c: Likewise.
16159         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
16160         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
16161         unless mkdir isn't declared, to speed up 'configure'.
16162         Always create sys/stat.h, since it's unlikely any real sys/stat.h
16163         would define all the S_* symbols.
16164         * modules/canonicalize (Depends-on):
16165         Depend on sys_stat, not stat-macros.
16166         * modules/chown: Likewise.
16167         * modules/euidaccess: Likewise.
16168         * modules/filemode: Likewise.
16169         * modules/file-type: Likewise.
16170         * modules/glob: Likewise.
16171         * modules/isapipe: Likewise.
16172         * modules/lchown: Likewise.
16173         * modules/lstat: Likewise.
16174         * modules/mkancesdirs: Likewise.
16175         * modules/rmdir: Likewise.
16176         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
16177         * modules/modechange: Likewise.
16178         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
16179         (configure.ac): Remove gl_STAT_MACROS.
16180         * modules/sys_stat (Depends-on): Remove stat-macros.
16181
16182 2006-10-27  Bruno Haible  <bruno@clisp.org>
16183
16184         * m4/signed.m4: Remove file.
16185         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
16186         invocation.
16187         * modules/vasnprintf (Files): Remove m4/signed.m4.
16188
16189 2006-10-27  Bruno Haible  <bruno@clisp.org>
16190
16191         Update to GNU gettext 0.16.
16192         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
16193         m4/inttypes-h.m4, m4/signed.m4.
16194         * m4/gettext.m4: Update to GNU gettext 0.16.
16195         * m4/intl.m4: New file, from GNU gettext.
16196         * m4/intldir.m4: New file, from GNU gettext.
16197         * config/srclist.txt: Update
16198
16199 2006-10-27  Eric Blake  <ebb9@byu.net>
16200
16201         * MODULES.html.sh: Document tempname.
16202         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
16203         dependencies.
16204         (Files): Move lib/tempname.c...
16205         * modules/tempname: ...to this new module.
16206         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
16207         (gl_PREREQ_TEMPNAME): Move...
16208         * m4/tempname.m4: ...to this new file.
16209         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
16210         * modules/sys_stat (Depends-on): Add stat-macros.
16211         * lib/stat_.h (includes): Pick up stat macros.
16212         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
16213         if stat macros are broken.
16214         * lib/tempname.c (includes): No need to include "stat-macros.h".
16215         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
16216         (direxists, __path_search) [!_LIBC]: Don't compile these in
16217         gnulib; the tmpdir module covers that.
16218         * lib/tempname.h: New file.
16219
16220 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
16221
16222         * COPYING: Explain how gnulib-tool converts licence headers.
16223         Almost all wording by Eric Blake.
16224
16225 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
16226
16227         * lib/mbchar.h (is_basic_table): Make read-only.
16228         * lib/mbchar.c (is_basic_table): Likewise.
16229         Reported by John Darrington.
16230
16231 2006-10-25  Bruno Haible  <bruno@clisp.org>
16232
16233         * lib/progname.h (set_program_name): Undefine before defining.
16234
16235 2006-10-25  Bruno Haible  <bruno@clisp.org>
16236
16237         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
16238         false for non-gcc C++ compilers.
16239         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
16240
16241 2006-10-24  Bruno Haible  <bruno@clisp.org>
16242
16243         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
16244         iconv implementations like Irix iconv.
16245
16246 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
16247
16248         * modules/vararrays: New file.
16249         * m4/vararrays.m4: New file, taken from diffutils.
16250         * MODULES.html.sh: New module vararrays.
16251
16252 2006-10-24  Karl Berry  <karl@gnu.org>
16253
16254         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
16255         Don't call GNU Unix.
16256
16257 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16258
16259         * users.txt: Add Libtool.
16260
16261         Sync from Libtool:
16262
16263         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
16264
16265         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
16266         to gnulib's policy of including config.h unconditionally.
16267
16268 2006-10-24  Bruno Haible  <bruno@clisp.org>
16269
16270         * modules/wcwidth (Files): Add m4/wint_t.m4.
16271         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
16272         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
16273
16274 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
16275
16276         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
16277         to pacify GCC with some -W flags enabled.  Problem reported by
16278         Bruno Haible.
16279
16280 2006-10-24  Jim Meyering  <jim@meyering.net>
16281
16282         * MODULES.html.sh: Remove uinttostr.  It's not a module.
16283         Reported by Karl Berry.
16284
16285 2006-10-23  Bruno Haible  <bruno@clisp.org>
16286
16287         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
16288
16289 2006-10-24  Bruno Haible  <bruno@clisp.org>
16290
16291         * lib/gl_list.h: Use C comment style, not C++ comment style.
16292
16293 2006-10-23  Eric Blake  <ebb9@byu.net>
16294
16295         * lib/getaddrinfo.c (includes): Add missing include.
16296
16297 2006-10-23  Bruno Haible  <bruno@clisp.org>
16298             Paul Eggert  <eggert@cs.ucla.edu>
16299
16300         Ability to rename obstack_free.
16301         * lib/obstack.h (__obstack_free): New macro. Declare instead of
16302         obstack_free.
16303         (obstack_free): Invoke the __obstack_free macro.
16304         * lib/obstack.c (obstack_free): Use __obstack_free macro.
16305
16306 2006-10-23  Bruno Haible  <bruno@clisp.org>
16307             Paul Eggert  <eggert@cs.ucla.edu>
16308
16309         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
16310         __argc, __argv from the declaration. (They are defined as macros on
16311         mingw.)
16312
16313 2006-10-22  Bruno Haible  <bruno@clisp.org>
16314
16315         * doc/gnulib-intro.texi: New file.
16316         * doc/gnulib.texi: Include it.
16317
16318 2006-10-21  Bruno Haible  <bruno@clisp.org>
16319
16320         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
16321         "Introduction", "Miscellanous Notes", "Particular Modules".
16322
16323 2006-10-21  Bruno Haible  <bruno@clisp.org>
16324
16325         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
16326         Change mostlyclean-local rule to avoid sh syntax error from bash
16327         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
16328
16329 2006-10-23  Jim Meyering  <jim@meyering.net>
16330
16331         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
16332         in place of snprintf.
16333
16334         * modules/inttostr (Files): Add lib/uinttostr.c.
16335         * lib/uinttostr.c (inttostr): New file/function.
16336         * lib/inttostr.h (uinttostr): Declare.
16337         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
16338         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
16339         Add uinttostr.
16340         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
16341
16342 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
16343
16344         * lib/canonicalize.c (ELOOP): Define if not already defined.
16345         Problem reported by Bruno Haible in
16346         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
16347
16348 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
16349
16350         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
16351         Problem reported by Perry Smith and Ville Laurikari.
16352
16353         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
16354         uses.
16355
16356 2006-10-19  Bruno Haible  <bruno@clisp.org>
16357
16358         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
16359         for mingw.
16360
16361 2006-10-19  Bruno Haible  <bruno@clisp.org>
16362
16363         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
16364         Needed for mingw.
16365
16366 2006-10-19  Bruno Haible  <bruno@clisp.org>
16367
16368         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
16369
16370 2006-10-19  Bruno Haible  <bruno@clisp.org>
16371
16372         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
16373         it.
16374
16375 2006-10-19  Bruno Haible  <bruno@clisp.org>
16376
16377         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
16378         invocation.
16379
16380 2006-10-19  Bruno Haible  <bruno@clisp.org>
16381
16382         * gnulib-tool (func_create_testdir): Don't include ftruncate and
16383         mountlist by default.
16384
16385 2006-10-16  Bruno Haible  <bruno@clisp.org>
16386
16387         * lib/c-strstr.c: Include c-strstr.h.
16388
16389 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
16390
16391         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
16392         in a slash.
16393
16394 2006-10-18  Bruno Haible  <bruno@clisp.org>
16395
16396         * lib/lock.h [C++]: Wrap definitions in extern "C".
16397
16398 2006-10-18  Bruno Haible  <bruno@clisp.org>
16399
16400         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
16401         gl_LIBOBJS list.
16402
16403 2006-10-18  Bruno Haible  <bruno@clisp.org>
16404
16405         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
16406
16407 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
16408
16409         * lib/xstrtol.h: Include gettext.h.
16410         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
16411         Problem reported by Eric Blake.
16412         * modules/xstrtol (Depends-on): Add gettext-h.
16413
16414 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
16415
16416         * lib/strftime.c (advance): New macro.
16417         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
16418         incomplete type, so you can't add 0 to it.  Problem and patch
16419         reported by Eelco Dolstra for dietlibc.
16420
16421 2006-10-18  Jim Meyering  <jim@meyering.net>
16422
16423         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
16424         type for a local, and rename it: s/up/user_proc/.
16425
16426 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
16427
16428         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
16429         READ_UTMP_USER_PROCESS.
16430         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
16431
16432 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
16433
16434         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
16435         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
16436
16437 2006-10-17  Eric Blake  <ebb9@byu.net>
16438
16439         * lib/sigprocmask.c (sigprocmask): Fix typo.
16440
16441         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
16442
16443         * modules/clean-temp (Makefile.am): Don't add to make output...
16444         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
16445         config.h.
16446
16447 2006-10-17  Bruno Haible  <bruno@clisp.org>
16448
16449         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
16450         differently if DEFAULT_TEXT_DOMAIN is set.
16451
16452 2006-10-16  Bruno Haible  <bruno@clisp.org>
16453
16454         * lib/clean-temp.c: Include fwriteerror.h.
16455
16456 2006-10-16  Bruno Haible  <bruno@clisp.org>
16457
16458         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
16459
16460 2006-10-16  Bruno Haible  <bruno@clisp.org>
16461
16462         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
16463         * lib/sigprocmask.h: Include <sys/types.h>.
16464         (sigset_t): Use the system's definition if present.
16465
16466 2006-10-17  Eric Blake  <ebb9@byu.net>
16467
16468         * lib/xvasprintf.c (includes): Assume config.h.
16469         * lib/xasprintf.c (includes): Likewise.
16470
16471 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
16472
16473         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
16474         at least as wide as intmax_t.
16475
16476 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
16477
16478         (Imported from Automake.)
16479         * build-aux/gnupload: Update to version 1.1 of directive file.
16480
16481 2006-10-16  Eric Blake  <ebb9@byu.net>
16482
16483         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
16484         match Automake 1.10a.
16485
16486 2006-10-14  Bruno Haible  <bruno@clisp.org>
16487
16488         * modules/sigprocmask: New file.
16489         * lib/sigprocmask.h: New file.
16490         * lib/sigprocmask.c: New file.
16491         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
16492         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
16493         request sigprocmask.o.
16494         (gl_PREREQ_SIGPROCMASK): New macro.
16495         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
16496         (Depends-on): Add sigprocmask.
16497         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
16498         gt_SIGNALBLOCKING. Test for 'raise' only once.
16499         * lib/fatal-signal.c: Include sigprocmask.h.
16500         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
16501         unblock_fatal_signals): Define always.
16502         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
16503         sigprocmask.
16504
16505 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
16506
16507         Sync from Automake.
16508         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
16509         which incorrectly sets the mode of an existing destination
16510         directory.  In some cases the unpatched install-sh could do the
16511         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
16512         system.  We hope this is rare in practice, but it's clearly worth
16513         fixing.  Problem reported by Alex Unleashed in
16514         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
16515         Also, don't bother to check for -m bugs unless we're using -m;
16516         suggested by Stepan Kasal.
16517
16518 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16519
16520         Sync from Automake.
16521         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
16522         `-c' flag, so they appear at the same position as in %FASTDEP%
16523         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
16524         which ignores unknown options only after the first non-option.
16525         Bug report against M4 by Nelson H. F. Beebe.
16526
16527 2006-10-13  Jim Meyering  <jim@meyering.net>
16528
16529         Fix a bug in yesterday's change.
16530         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
16531         p->fts_statp->st_dev would be used uninitialized.
16532         Ensures that we always call fts_stat on the very first entry.
16533         Miklos Szeredi reported that find -xdev stopped working.
16534
16535 2006-10-12  Bruno Haible  <bruno@clisp.org>
16536
16537         * gnulib-tool (func_get_automake_snippet): Append an automatically
16538         computed EXTRA_DIST augmentation.
16539         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
16540         * modules/alloca-opt (Makefile.am): Likewise.
16541         * modules/allocsa (Makefile.am): Likewise.
16542         * modules/arcfour (Makefile.am): Likewise.
16543         * modules/arctwo (Makefile.am): Likewise.
16544         * modules/argmatch (Makefile.am): Likewise.
16545         * modules/argz (Makefile.am): Likewise.
16546         * modules/atexit (Makefile.am): Likewise.
16547         * modules/backupfile (Makefile.am): Likewise.
16548         * modules/byteswap (Makefile.am): Likewise.
16549         * modules/c-strtod (Makefile.am): Likewise.
16550         * modules/c-strtold (Makefile.am): Likewise.
16551         * modules/calloc (Makefile.am): Likewise.
16552         * modules/canon-host (Makefile.am): Likewise.
16553         * modules/canonicalize (Makefile.am): Likewise.
16554         * modules/chdir-long (Makefile.am): Likewise.
16555         * modules/chdir-safer (Makefile.am): Likewise.
16556         * modules/check-version (Makefile.am): Likewise.
16557         * modules/chown (Makefile.am): Likewise.
16558         * modules/cloexec (Makefile.am): Likewise.
16559         * modules/close-stream (Makefile.am): Likewise.
16560         * modules/closeout (Makefile.am): Likewise.
16561         * modules/crc (Makefile.am): Likewise.
16562         * modules/csharpexec (Makefile.am): Likewise.
16563         * modules/cycle-check (Makefile.am): Likewise.
16564         * modules/des (Makefile.am): Likewise.
16565         * modules/dev-ino (Makefile.am): Likewise.
16566         * modules/dirfd (Makefile.am): Likewise.
16567         * modules/dirname (Makefile.am): Likewise.
16568         * modules/dup2 (Makefile.am): Likewise.
16569         * modules/eealloc (Makefile.am): Likewise.
16570         * modules/error (Makefile.am): Likewise.
16571         * modules/euidaccess (Makefile.am): Likewise.
16572         * modules/exclude (Makefile.am): Likewise.
16573         * modules/exitfail (Makefile.am): Likewise.
16574         * modules/fcntl-safer (Makefile.am): Likewise.
16575         * modules/fcntl (Makefile.am): Likewise.
16576         * modules/file-type (Makefile.am): Likewise.
16577         * modules/fileblocks (Makefile.am): Likewise.
16578         * modules/filemode (Makefile.am): Likewise.
16579         * modules/filenamecat (Makefile.am): Likewise.
16580         * modules/fnmatch (Makefile.am): Likewise.
16581         * modules/fopen-safer (Makefile.am): Likewise.
16582         * modules/fpending (Makefile.am): Likewise.
16583         * modules/fprintftime (Makefile.am): Likewise.
16584         * modules/free (Makefile.am): Likewise.
16585         * modules/fsusage (Makefile.am): Likewise.
16586         * modules/ftruncate (Makefile.am): Likewise.
16587         * modules/fts (Makefile.am): Likewise.
16588         * modules/gc-arcfour (Makefile.am): Likewise.
16589         * modules/gc-des (Makefile.am): Likewise.
16590         * modules/gc-hmac-md5 (Makefile.am): Likewise.
16591         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
16592         * modules/gc-md4 (Makefile.am): Likewise.
16593         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
16594         * modules/gc-sha1 (Makefile.am): Likewise.
16595         * modules/gc (Makefile.am): Likewise.
16596         * modules/getaddrinfo (Makefile.am): Likewise.
16597         * modules/getcwd (Makefile.am): Likewise.
16598         * modules/getdelim (Makefile.am): Likewise.
16599         * modules/getdomainname (Makefile.am): Likewise.
16600         * modules/getgroups (Makefile.am): Likewise.
16601         * modules/gethostname (Makefile.am): Likewise.
16602         * modules/gethrxtime (Makefile.am): Likewise.
16603         * modules/getline (Makefile.am): Likewise.
16604         * modules/getloadavg (Makefile.am): Likewise.
16605         * modules/getlogin_r (Makefile.am): Likewise.
16606         * modules/getndelim2 (Makefile.am): Likewise.
16607         * modules/getopt (Makefile.am): Likewise.
16608         * modules/getpagesize (Makefile.am): Likewise.
16609         * modules/getpass-gnu (Makefile.am): Likewise.
16610         * modules/getpass (Makefile.am): Likewise.
16611         * modules/getsubopt (Makefile.am): Likewise.
16612         * modules/gettime (Makefile.am): Likewise.
16613         * modules/gettimeofday (Makefile.am): Likewise.
16614         * modules/getugroups (Makefile.am): Likewise.
16615         * modules/getusershell (Makefile.am): Likewise.
16616         * modules/glob (Makefile.am): Likewise.
16617         * modules/group-member (Makefile.am): Likewise.
16618         * modules/hard-locale (Makefile.am): Likewise.
16619         * modules/hash (Makefile.am): Likewise.
16620         * modules/hmac-md5 (Makefile.am): Likewise.
16621         * modules/hmac-sha1 (Makefile.am): Likewise.
16622         * modules/human (Makefile.am): Likewise.
16623         * modules/idcache (Makefile.am): Likewise.
16624         * modules/imaxabs (Makefile.am): Likewise.
16625         * modules/imaxdiv (Makefile.am): Likewise.
16626         * modules/inet_ntop (Makefile.am): Likewise.
16627         * modules/inet_pton (Makefile.am): Likewise.
16628         * modules/intprops (Makefile.am): Likewise.
16629         * modules/inttostr (Makefile.am): Likewise.
16630         * modules/inttypes (Makefile.am): Likewise.
16631         * modules/isapipe (Makefile.am): Likewise.
16632         * modules/javaversion (Makefile.am): Likewise.
16633         * modules/lchmod (Makefile.am): Likewise.
16634         * modules/lchown (Makefile.am): Likewise.
16635         * modules/localcharset (Makefile.am): Likewise.
16636         * modules/long-options (Makefile.am): Likewise.
16637         * modules/lstat (Makefile.am): Likewise.
16638         * modules/malloc (Makefile.am): Likewise.
16639         * modules/mathl (Makefile.am): Likewise.
16640         * modules/mbchar (Makefile.am): Likewise.
16641         * modules/md2 (Makefile.am): Likewise.
16642         * modules/md4 (Makefile.am): Likewise.
16643         * modules/md5 (Makefile.am): Likewise.
16644         * modules/memcasecmp (Makefile.am): Likewise.
16645         * modules/memchr (Makefile.am): Likewise.
16646         * modules/memcmp (Makefile.am): Likewise.
16647         * modules/memcoll (Makefile.am): Likewise.
16648         * modules/memcpy (Makefile.am): Likewise.
16649         * modules/memmem (Makefile.am): Likewise.
16650         * modules/memmove (Makefile.am): Likewise.
16651         * modules/mempcpy (Makefile.am): Likewise.
16652         * modules/memrchr (Makefile.am): Likewise.
16653         * modules/memset (Makefile.am): Likewise.
16654         * modules/memxor (Makefile.am): Likewise.
16655         * modules/mkancesdirs (Makefile.am): Likewise.
16656         * modules/mkdir-p (Makefile.am): Likewise.
16657         * modules/mkdir (Makefile.am): Likewise.
16658         * modules/mkdtemp (Makefile.am): Likewise.
16659         * modules/mkstemp (Makefile.am): Likewise.
16660         * modules/mktime (Makefile.am): Likewise.
16661         * modules/modechange (Makefile.am): Likewise.
16662         * modules/mountlist (Makefile.am): Likewise.
16663         * modules/nanosleep (Makefile.am): Likewise.
16664         * modules/obstack (Makefile.am): Likewise.
16665         * modules/openat (Makefile.am): Likewise.
16666         * modules/pagealign_alloc (Makefile.am): Likewise.
16667         * modules/pathmax (Makefile.am): Likewise.
16668         * modules/physmem (Makefile.am): Likewise.
16669         * modules/poll (Makefile.am): Likewise.
16670         * modules/posixtm (Makefile.am): Likewise.
16671         * modules/posixver (Makefile.am): Likewise.
16672         * modules/putenv (Makefile.am): Likewise.
16673         * modules/quote (Makefile.am): Likewise.
16674         * modules/quotearg (Makefile.am): Likewise.
16675         * modules/raise (Makefile.am): Likewise.
16676         * modules/read-file (Makefile.am): Likewise.
16677         * modules/readline (Makefile.am): Likewise.
16678         * modules/readlink (Makefile.am): Likewise.
16679         * modules/readtokens (Makefile.am): Likewise.
16680         * modules/readutmp (Makefile.am): Likewise.
16681         * modules/realloc (Makefile.am): Likewise.
16682         * modules/regex (Makefile.am): Likewise.
16683         * modules/rename-dest-slash (Makefile.am): Likewise.
16684         * modules/rename (Makefile.am): Likewise.
16685         * modules/rijndael (Makefile.am): Likewise.
16686         * modules/rmdir (Makefile.am): Likewise.
16687         * modules/rpmatch (Makefile.am): Likewise.
16688         * modules/safe-read (Makefile.am): Likewise.
16689         * modules/safe-write (Makefile.am): Likewise.
16690         * modules/same-inode (Makefile.am): Likewise.
16691         * modules/same (Makefile.am): Likewise.
16692         * modules/save-cwd (Makefile.am): Likewise.
16693         * modules/savedir (Makefile.am): Likewise.
16694         * modules/setenv (Makefile.am): Likewise.
16695         * modules/settime (Makefile.am): Likewise.
16696         * modules/sha1 (Makefile.am): Likewise.
16697         * modules/sig2str (Makefile.am): Likewise.
16698         * modules/snprintf (Makefile.am): Likewise.
16699         * modules/stat-macros (Makefile.am): Likewise.
16700         * modules/stat-time (Makefile.am): Likewise.
16701         * modules/stdbool (Makefile.am): Likewise.
16702         * modules/stdint (Makefile.am): Likewise.
16703         * modules/stdlib-safer (Makefile.am): Likewise.
16704         * modules/stpcpy (Makefile.am): Likewise.
16705         * modules/stpncpy (Makefile.am): Likewise.
16706         * modules/strcase (Makefile.am): Likewise.
16707         * modules/strcasestr (Makefile.am): Likewise.
16708         * modules/strchrnul (Makefile.am): Likewise.
16709         * modules/strcspn (Makefile.am): Likewise.
16710         * modules/strdup (Makefile.am): Likewise.
16711         * modules/strerror (Makefile.am): Likewise.
16712         * modules/strftime (Makefile.am): Likewise.
16713         * modules/strndup (Makefile.am): Likewise.
16714         * modules/strnlen (Makefile.am): Likewise.
16715         * modules/strpbrk (Makefile.am): Likewise.
16716         * modules/strsep (Makefile.am): Likewise.
16717         * modules/strstr (Makefile.am): Likewise.
16718         * modules/strtod (Makefile.am): Likewise.
16719         * modules/strtoimax (Makefile.am): Likewise.
16720         * modules/strtok_r (Makefile.am): Likewise.
16721         * modules/strtol (Makefile.am): Likewise.
16722         * modules/strtoll (Makefile.am): Likewise.
16723         * modules/strtoul (Makefile.am): Likewise.
16724         * modules/strtoull (Makefile.am): Likewise.
16725         * modules/strtoumax (Makefile.am): Likewise.
16726         * modules/strverscmp (Makefile.am): Likewise.
16727         * modules/sys_socket (Makefile.am): Likewise.
16728         * modules/sys_stat (Makefile.am): Likewise.
16729         * modules/sysexits (Makefile.am): Likewise.
16730         * modules/time_r (Makefile.am): Likewise.
16731         * modules/timegm (Makefile.am): Likewise.
16732         * modules/timespec (Makefile.am): Likewise.
16733         * modules/tmpfile-safer (Makefile.am): Likewise.
16734         * modules/trim (Makefile.am): Likewise.
16735         * modules/unistd-safer (Makefile.am): Likewise.
16736         * modules/unlinkdir (Makefile.am): Likewise.
16737         * modules/unlocked-io (Makefile.am): Likewise.
16738         * modules/userspec (Makefile.am): Likewise.
16739         * modules/utime (Makefile.am): Likewise.
16740         * modules/utimecmp (Makefile.am): Likewise.
16741         * modules/utimens (Makefile.am): Likewise.
16742         * modules/vasnprintf (Makefile.am): Likewise.
16743         * modules/vasprintf (Makefile.am): Likewise.
16744         * modules/vsnprintf (Makefile.am): Likewise.
16745         * modules/xalloc (Makefile.am): Likewise.
16746         * modules/xgetcwd (Makefile.am): Likewise.
16747         * modules/xnanosleep (Makefile.am): Likewise.
16748         * modules/xreadlink (Makefile.am): Likewise.
16749         * modules/xstrtod (Makefile.am): Likewise.
16750         * modules/xstrtol (Makefile.am): Likewise.
16751         * modules/xstrtold (Makefile.am): Likewise.
16752         * modules/yesno (Makefile.am): Likewise.
16753         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
16754
16755 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
16756
16757         * modules/error (Makefile.am): Distribute files through
16758         EXTRA_DIST, not lib_SOURCES.
16759
16760 2006-10-12  Eric Blake  <ebb9@byu.net>
16761
16762         * modules/error (Makefile.am): Distribute files in /lib.
16763         * modules/obstack (Makefile.am): Likewise.
16764
16765 2006-10-12  Bruno Haible  <bruno@clisp.org>
16766
16767         * modules/acl (Makefile.am): Distribute all files in lib/ through
16768         EXTRA_DIST.
16769         * modules/arcfour (Makefile.am): Likewise.
16770         * modules/arctwo (Makefile.am): Likewise.
16771         * modules/argmatch (Makefile.am): Likewise.
16772         * modules/argz (Makefile.am): Likewise.
16773         * modules/atexit (Makefile.am): Likewise.
16774         * modules/backupfile (Makefile.am): Likewise.
16775         * modules/c-strtod (Makefile.am): Likewise.
16776         * modules/c-strtold (Makefile.am): Likewise.
16777         * modules/calloc (Makefile.am): Likewise.
16778         * modules/canon-host (Makefile.am): Likewise.
16779         * modules/canonicalize (Makefile.am): Likewise.
16780         * modules/chdir-long (Makefile.am): Likewise.
16781         * modules/chdir-safer (Makefile.am): Likewise.
16782         * modules/check-version (Makefile.am): Likewise.
16783         * modules/chown (Makefile.am): Likewise.
16784         * modules/cloexec (Makefile.am): Likewise.
16785         * modules/close-stream (Makefile.am): Likewise.
16786         * modules/closeout (Makefile.am): Likewise.
16787         * modules/crc (Makefile.am): Likewise.
16788         * modules/cycle-check (Makefile.am): Likewise.
16789         * modules/des (Makefile.am): Likewise.
16790         * modules/dirfd (Makefile.am): Likewise.
16791         * modules/dirname (Makefile.am): Likewise.
16792         * modules/dup2 (Makefile.am): Likewise.
16793         * modules/euidaccess (Makefile.am): Likewise.
16794         * modules/exclude (Makefile.am): Likewise.
16795         * modules/exitfail (Makefile.am): Likewise.
16796         * modules/fcntl-safer (Makefile.am): Likewise.
16797         * modules/file-type (Makefile.am): Likewise.
16798         * modules/fileblocks (Makefile.am): Likewise.
16799         * modules/filemode (Makefile.am): Likewise.
16800         * modules/filenamecat (Makefile.am): Likewise.
16801         * modules/fnmatch (Makefile.am): Likewise.
16802         * modules/fopen-safer (Makefile.am): Likewise.
16803         * modules/fpending (Makefile.am): Likewise.
16804         * modules/fprintftime (Makefile.am): Likewise.
16805         * modules/free (Makefile.am): Likewise.
16806         * modules/fsusage (Makefile.am): Likewise.
16807         * modules/ftruncate (Makefile.am): Likewise.
16808         * modules/fts (Makefile.am): Likewise.
16809         * modules/gc (Makefile.am): Likewise.
16810         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
16811         * modules/getaddrinfo (Makefile.am): Likewise.
16812         * modules/getcwd (Makefile.am): Likewise.
16813         * modules/getdelim (Makefile.am): Likewise.
16814         * modules/getdomainname (Makefile.am): Likewise.
16815         * modules/getgroups (Makefile.am): Likewise.
16816         * modules/gethostname (Makefile.am): Likewise.
16817         * modules/gethrxtime (Makefile.am): Likewise.
16818         * modules/getline (Makefile.am): Likewise.
16819         * modules/getloadavg (Makefile.am): Likewise.
16820         * modules/getlogin_r (Makefile.am): Likewise.
16821         * modules/getopt (Makefile.am): Likewise.
16822         * modules/getpass (Makefile.am): Likewise.
16823         * modules/getpass-gnu (Makefile.am): Likewise.
16824         * modules/getsubopt (Makefile.am): Likewise.
16825         * modules/gettime (Makefile.am): Likewise.
16826         * modules/gettimeofday (Makefile.am): Likewise.
16827         * modules/getugroups (Makefile.am): Likewise.
16828         * modules/getusershell (Makefile.am): Likewise.
16829         * modules/glob (Makefile.am): Likewise.
16830         * modules/group-member (Makefile.am): Likewise.
16831         * modules/hard-locale (Makefile.am): Likewise.
16832         * modules/hash (Makefile.am): Likewise.
16833         * modules/hmac-md5 (Makefile.am): Likewise.
16834         * modules/hmac-sha1 (Makefile.am): Likewise.
16835         * modules/human (Makefile.am): Likewise.
16836         * modules/idcache (Makefile.am): Likewise.
16837         * modules/imaxabs (Makefile.am): Likewise.
16838         * modules/imaxdiv (Makefile.am): Likewise.
16839         * modules/inet_ntop (Makefile.am): Likewise.
16840         * modules/inet_pton (Makefile.am): Likewise.
16841         * modules/inttostr (Makefile.am): Likewise.
16842         * modules/isapipe (Makefile.am): Likewise.
16843         * modules/lchown (Makefile.am): Likewise.
16844         * modules/long-options (Makefile.am): Likewise.
16845         * modules/lstat (Makefile.am): Likewise.
16846         * modules/malloc (Makefile.am): Likewise.
16847         * modules/mathl (Makefile.am): Likewise.
16848         * modules/mbchar (Makefile.am): Likewise.
16849         * modules/md2 (Makefile.am): Likewise.
16850         * modules/md4 (Makefile.am): Likewise.
16851         * modules/md5 (Makefile.am): Likewise.
16852         * modules/memcasecmp (Makefile.am): Likewise.
16853         * modules/memchr (Makefile.am): Likewise.
16854         * modules/memcmp (Makefile.am): Likewise.
16855         * modules/memcoll (Makefile.am): Likewise.
16856         * modules/memcpy (Makefile.am): Likewise.
16857         * modules/memmem (Makefile.am): Likewise.
16858         * modules/memmove (Makefile.am): Likewise.
16859         * modules/mempcpy (Makefile.am): Likewise.
16860         * modules/memrchr (Makefile.am): Likewise.
16861         * modules/memset (Makefile.am): Likewise.
16862         * modules/memxor (Makefile.am): Likewise.
16863         * modules/mkancesdirs (Makefile.am): Likewise.
16864         * modules/mkdir (Makefile.am): Likewise.
16865         * modules/mkdir-p (Makefile.am): Likewise.
16866         * modules/mkdtemp (Makefile.am): Likewise.
16867         * modules/mkstemp (Makefile.am): Likewise.
16868         * modules/mktime (Makefile.am): Likewise.
16869         * modules/modechange (Makefile.am): Likewise.
16870         * modules/mountlist (Makefile.am): Likewise.
16871         * modules/nanosleep (Makefile.am): Likewise.
16872         * modules/openat (Makefile.am): Likewise.
16873         * modules/pagealign_alloc (Makefile.am): Likewise.
16874         * modules/physmem (Makefile.am): Likewise.
16875         * modules/poll (Makefile.am): Likewise.
16876         * modules/posixtm (Makefile.am): Likewise.
16877         * modules/posixver (Makefile.am): Likewise.
16878         * modules/putenv (Makefile.am): Likewise.
16879         * modules/quote (Makefile.am): Likewise.
16880         * modules/quotearg (Makefile.am): Likewise.
16881         * modules/raise (Makefile.am): Likewise.
16882         * modules/read-file (Makefile.am): Likewise.
16883         * modules/readline (Makefile.am): Likewise.
16884         * modules/readlink (Makefile.am): Likewise.
16885         * modules/readtokens (Makefile.am): Likewise.
16886         * modules/readutmp (Makefile.am): Likewise.
16887         * modules/realloc (Makefile.am): Likewise.
16888         * modules/regex (Makefile.am): Likewise.
16889         * modules/rename (Makefile.am): Likewise.
16890         * modules/rename-dest-slash (Makefile.am): Likewise.
16891         * modules/rijndael (Makefile.am): Likewise.
16892         * modules/rmdir (Makefile.am): Likewise.
16893         * modules/rpmatch (Makefile.am): Likewise.
16894         * modules/safe-read (Makefile.am): Likewise.
16895         * modules/safe-write (Makefile.am): Likewise.
16896         * modules/same (Makefile.am): Likewise.
16897         * modules/save-cwd (Makefile.am): Likewise.
16898         * modules/savedir (Makefile.am): Likewise.
16899         * modules/setenv (Makefile.am): Likewise.
16900         * modules/settime (Makefile.am): Likewise.
16901         * modules/sha1 (Makefile.am): Likewise.
16902         * modules/sig2str (Makefile.am): Likewise.
16903         * modules/snprintf (Makefile.am): Likewise.
16904         * modules/stdlib-safer (Makefile.am): Likewise.
16905         * modules/stpcpy (Makefile.am): Likewise.
16906         * modules/stpncpy (Makefile.am): Likewise.
16907         * modules/strcase (Makefile.am): Likewise.
16908         * modules/strcasestr (Makefile.am): Likewise.
16909         * modules/strchrnul (Makefile.am): Likewise.
16910         * modules/strcspn (Makefile.am): Likewise.
16911         * modules/strdup (Makefile.am): Likewise.
16912         * modules/strerror (Makefile.am): Likewise.
16913         * modules/strftime (Makefile.am): Likewise.
16914         * modules/strndup (Makefile.am): Likewise.
16915         * modules/strnlen (Makefile.am): Likewise.
16916         * modules/strpbrk (Makefile.am): Likewise.
16917         * modules/strsep (Makefile.am): Likewise.
16918         * modules/strstr (Makefile.am): Likewise.
16919         * modules/strtod (Makefile.am): Likewise.
16920         * modules/strtoimax (Makefile.am): Likewise.
16921         * modules/strtok_r (Makefile.am): Likewise.
16922         * modules/strtol (Makefile.am): Likewise.
16923         * modules/strtoll (Makefile.am): Likewise.
16924         * modules/strtoul (Makefile.am): Likewise.
16925         * modules/strtoull (Makefile.am): Likewise.
16926         * modules/strtoumax (Makefile.am): Likewise.
16927         * modules/strverscmp (Makefile.am): Likewise.
16928         * modules/time_r (Makefile.am): Likewise.
16929         * modules/timegm (Makefile.am): Likewise.
16930         * modules/tmpfile-safer (Makefile.am): Likewise.
16931         * modules/unistd-safer (Makefile.am): Likewise.
16932         * modules/unlinkdir (Makefile.am): Likewise.
16933         * modules/userspec (Makefile.am): Likewise.
16934         * modules/utime (Makefile.am): Likewise.
16935         * modules/utimecmp (Makefile.am): Likewise.
16936         * modules/utimens (Makefile.am): Likewise.
16937         * modules/vasnprintf (Makefile.am): Likewise.
16938         * modules/vasprintf (Makefile.am): Likewise.
16939         * modules/vsnprintf (Makefile.am): Likewise.
16940         * modules/xalloc (Makefile.am): Likewise.
16941         * modules/xgetcwd (Makefile.am): Likewise.
16942         * modules/xnanosleep (Makefile.am): Likewise.
16943         * modules/xreadlink (Makefile.am): Likewise.
16944         * modules/xstrtod (Makefile.am): Likewise.
16945         * modules/xstrtol (Makefile.am): Likewise.
16946         * modules/xstrtold (Makefile.am): Likewise.
16947         * modules/yesno (Makefile.am): Likewise.
16948
16949 2006-10-12  Jim Meyering  <jim@meyering.net>
16950
16951         * m4/getloadavg.m4: Revert the change below.
16952
16953         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
16954         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
16955         fail with a symlink, which is what coreutils' ./bootstrap now
16956         creates by default.
16957
16958 2006-10-12  Bruno Haible  <bruno@clisp.org>
16959
16960         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
16961         mingw.
16962         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
16963         MSVC and mingw explicitly.
16964
16965 2006-10-11  Simon Josefsson  <jas@extundo.com>
16966             Bruno Haible  <bruno@clisp.org>
16967
16968         Add support for multiple gnulib-tool invocations in the scope of a
16969         single configure.ac file.
16970         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
16971         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
16972         with the same contents as the _LIBADD variable.
16973         (func_emit_initmacro_start, func_emit_initmacro_end,
16974         func_emit_initmacro_done): New functions.
16975         (func_import, func_create_testdir): Invoke them. Allow the identifiers
16976         gl_LIBOBJS and gl_LTLIBOBJS.
16977
16978 2006-10-11  Bruno Haible  <bruno@clisp.org>
16979
16980         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
16981         (func_create_testdir): Don't create po/Makefile.am, don't invoke
16982         autoreconf. Instead, invoke autopoint explicitly but move back the
16983         *.m4 files from gnulib.
16984
16985 2006-10-11  Bruno Haible  <bruno@clisp.org>
16986
16987         * gnulib-tool (func_usage): Make module names after --create-testdir
16988         optional.
16989         (func_create_testdir): If no module was specified, use nearly all
16990         modules.
16991
16992 2006-10-12  Jim Meyering  <jim@meyering.net>
16993
16994         Big performance improvement for fts-based tools that use FTS_NOSTAT.
16995         Avoid spurious inode-mismatch problems on non-POSIX file systems.
16996         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
16997         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
16998         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
16999         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
17000         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
17001         (fts_set_stat_required): New function.
17002         (fts_open): Defer the calls to fts_stat, if possible or requested.
17003         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
17004         into fts_stat itself.
17005         (fts_read): Perform any required (deferred) fts_stat call.
17006         (fts_build): Likewise, for the directory we're about to open and read.
17007         In the readdir loop, carefully decide whether each entry will require
17008         an eventual call to fts_stat, using dirent.d_type info if available.
17009         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
17010         a command line argument into this function.  Update all callers.
17011         Map a return value of FTS_DOT to FTS_D for a command line argument.
17012         * modules/fts (Depends-on): Add d-type.  Alphabetize.
17013         Thanks to Miklos Szeredi for his tenacity and for the initial
17014         bug report about "find" failing on a FUSE-based file system.
17015
17016         * lib/fts.c (fts_open): Use consistent indentation.
17017
17018 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
17019
17020         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
17021         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
17022         reported by Jim Meyering.  All uses of cache variables renamed
17023         to match Autoconf's.
17024         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
17025         the other one.
17026
17027         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
17028         Fix misspelling in diagnostic.
17029
17030 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
17031
17032         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
17033         defined.  Problem reported by Matthew Woehlke.
17034
17035         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
17036         Add support for Tandem NonStop R series.
17037         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
17038         Use new macro.
17039
17040         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
17041         (has_trailing_slash): Omit size arg; all callers changed.
17042         Omit 'inline', since it doesn't help performance and we'd
17043         need to configure it.
17044         Don't count //, ///, etc. as having a trailing slash.
17045         As a side effect, this removes a C99ism reported by Matthew Woehlke.
17046         (rpl_rename_dest_slash): On failure, use rename's errno rather
17047         than (in some cases) an incorrect or junk errno.
17048         Simplify code by removing need to compute length; this does
17049         cause it to make two passes instead of one over the file name,
17050         but it's worth it.
17051
17052         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
17053         change, since Autoconf's version may no longer be appropriate now
17054         that we are using CVS Autoconf's version.  Add support for Tandem.
17055
17056 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
17057             Bruno Haible  <bruno@clisp.org>
17058
17059         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
17060         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
17061         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
17062         gl_AC_TYPE_LONG_LONG.
17063
17064         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
17065         instead of HAVE_LONG_LONG.
17066         * lib/printf-args.c (printf_fetchargs): Likewise.
17067         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
17068         * lib/vasnprintf.c (VASNPRINTF): Likewise.
17069         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
17070         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
17071         gl_AC_TYPE_LONG_LONG.
17072
17073 2006-10-11  Bruno Haible  <bruno@clisp.org>
17074
17075         * m4/longlong.m4: Add comments.
17076         * m4/ulonglong.m4: Likewise.
17077
17078 2006-10-10  Bruno Haible  <bruno@clisp.org>
17079
17080         Make it possible to #define stpcpy, strdup to aliases.
17081         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
17082         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
17083
17084 2006-10-10  Bruno Haible  <bruno@clisp.org>
17085
17086         Make it possible to #define gcd to an alias.
17087         * lib/gcd.c: Include config.h.
17088
17089 2006-10-10  Bruno Haible  <bruno@clisp.org>
17090
17091         Make it possible to #define c_isascii to an alias.
17092         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
17093         defined. Undefine the macros before defining them, to avoid gcc
17094         warnings.
17095         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
17096         define NO_C_CTYPE_MACROS early.
17097
17098 2006-10-10  Bruno Haible  <bruno@clisp.org>
17099
17100         Make it possible to #define set_program_name to an alias.
17101         * lib/progname.c: Don't undefine set_program_name; instead, undefine
17102         ENABLE_RELOCATABLE early.
17103
17104 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
17105
17106         Port to Tandem NSK OSS, which has 64-bit signed int but at most
17107         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
17108         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
17109         More generally, don't assume that 64-bit signed int is available
17110         if unsigned int is, and vice versa.
17111         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
17112         unsigned symbols, not on their signed counterparts.
17113         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
17114         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
17115         (UINT64_C, UINTMAX_C):
17116         Likewise.
17117         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
17118         unsigned counterparts.
17119         (Have_long_long, Unsigned): New macros.
17120         (Int): Renamed from INT.
17121         (strtoimax): Use the new macros.
17122         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
17123         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
17124         * modules/inttypes (inttypes.h): Substitute
17125         HAVE_UNSIGNED_LONG_LONG_INT.
17126         * modules/stdint (stdint.h): Likewise.
17127         (Files): Add m4/ulonglong.m4.
17128
17129 2006-10-10  Bruno Haible  <bruno@clisp.org>
17130
17131         Fix a gcc -Wshadow warning.
17132         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
17133         to 'bucket'.
17134         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
17135         gl_linked_indexof_from_to): Likewise.
17136         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
17137         Likewise.
17138         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
17139         Likewise.
17140         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
17141         Reported by Eric Blake.
17142
17143 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
17144
17145         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
17146         for NetBSD.  Problem reported by Bruno Haible.
17147
17148 2006-10-09  Jim Meyering  <jim@meyering.net>
17149
17150         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
17151         Patch from Bruno Haible.
17152
17153 2006-10-09  Jim Meyering  <jim@meyering.net>
17154
17155         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
17156         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
17157         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
17158
17159 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
17160
17161         Don't include <config.h> twice; this doesn't work in some cases,
17162         e.g., when config.h has "#define intmax_t long long int" and
17163         we include <config.h>, <inttypes.h>, <config.h> in that order.
17164         Problem reported by Matthew Woehlke in:
17165         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
17166         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
17167         * lib/fts-cycle.c: Don't include config.h.
17168         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
17169         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
17170         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
17171         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
17172         inttypes.h.
17173         * lib/xstrtoumax.c: Likewise.
17174         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
17175         __strtol and the like, so that this module is more like its siblings.
17176         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
17177         Remove; no longer needed now that we assume gnulib inttypes.h.
17178
17179 2006-10-08  Bruno Haible  <bruno@clisp.org>
17180
17181         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
17182         option.
17183
17184 2006-10-07  Jim Meyering  <jim@meyering.net>
17185
17186         * modules/inttypes (inttypes.h): Revert what seems to have been
17187         an inadvertent part of today's change: use "|", not "/" in the
17188         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
17189
17190 2006-10-07  Bruno Haible  <bruno@clisp.org>
17191
17192         * modules/sublist: New file.
17193
17194 2006-10-07  Bruno Haible  <bruno@clisp.org>
17195
17196         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
17197         * modules/argz (argz.h): Likewise.
17198         * modules/arpa_inet (arpa/inet.h): Likewise.
17199         * modules/byteswap (byteswap.h): Likewise.
17200         * modules/configmake (configmake.h): Likewise.
17201         * modules/fcntl (fcntl.h): Likewise.
17202         * modules/fnmatch (fnmatch.h): Likewise.
17203         * modules/getopt (getopt.h): Likewise.
17204         * modules/glob (glob.h): Likewise.
17205         * modules/inttypes (inttypes.h): Likewise.
17206         * modules/netinet_in (netinet/in.h): Likewise.
17207         * modules/poll (poll.h): Likewise.
17208         * modules/stdbool (stdbool.h): Likewise.
17209         * modules/stdint (stdint.h): Likewise.
17210         * modules/sys_select (sys/select.h): Likewise.
17211         * modules/sys_socket (sys/socket.h): Likewise.
17212         * modules/sys_stat (sys/stat.h): Likewise.
17213         * modules/sysexits (sysexits.h): Likewise.
17214         * modules/unistd (unistd.h): Likewise.
17215         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
17216         Add a "DO NOT EDIT" comment to the generated file.
17217         (func_import): Likewise for gnulib-comp.m4.
17218
17219 2006-10-07  Bruno Haible  <bruno@clisp.org>
17220
17221         * lib/gl_sublist.h: New file.
17222         * lib/gl_sublist.c: New file.
17223
17224 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
17225
17226         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
17227         name (relative to the original working directory) and the file
17228         name component (relative to the temporary working directory).  All
17229         callers changed.
17230         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
17231         * lib/mkdir-p.c (make_dir_parents): Likewise.
17232         * lib/mkdir-p.h (make_dir_parents): Likewise.
17233
17234 2006-10-06  Eric Blake  <ebb9@byu.net>
17235
17236         Define several macros for use by the clean-temp module.
17237         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
17238         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
17239         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
17240
17241         * lib/clean-temp.h (close_stream_temp): New declaration.
17242         * lib/clean-temp.c (includes): Pull in headers according to what
17243         other modules are in use.
17244         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
17245
17246 2006-10-06  Bruno Haible  <bruno@clisp.org>
17247
17248         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
17249         instead of fopen, fwriteerror.
17250
17251 2006-10-06  Bruno Haible  <bruno@clisp.org>
17252
17253         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
17254         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
17255         int.
17256         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
17257         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
17258         Return an error indicator.
17259         Suggested by Eric Blake.
17260
17261 2006-10-06  Bruno Haible  <bruno@clisp.org>
17262
17263         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
17264         Reported by Eric Blake.
17265
17266 2006-10-06  Bruno Haible  <bruno@clisp.org>
17267
17268         * modules/closeout (Description): Mention stderr too.
17269
17270 2006-10-06  Bruno Haible  <bruno@clisp.org>
17271         and Paul Eggert  <eggert@cs.ucla.edu>
17272
17273         * lib/closeout.c (close_stdout): Also close stderr.
17274         * lib/closeout.h: Update comment.
17275
17276 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
17277
17278         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
17279         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
17280         * lib/dirchownmod.c: Include lchown.h.
17281         * lib/lchown.c: Don't include files that lchown.h now includes.
17282         Don't declare chown, since lchown.h now does that.
17283         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
17284         (lchown): Define to rpl_chown if lchown is declared but
17285         does not exist.  Declare using a prototype if lchown is not
17286         declared.  Add a copyright notice.
17287         * lib/mkstemp.h: Include <unistd.h>.
17288         * lib/openat.c: Include lchown.h.
17289
17290         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
17291         we now test for that separately.
17292         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
17293         rather than O_NOFOLLOW, when testing whether it's possible to
17294         avoid a race condition reliably.
17295         * lib/savewd.c (savewd_chdir): Likewise.
17296
17297         Remove macros that are no longer needed now that stdint.h is
17298         reliable.
17299         * lib/fsusage.c (UINTMAX_MAX): Remove.
17300         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
17301         * lib/utimecmp.c (SIZE_MAX): Remove.
17302
17303         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
17304
17305         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
17306         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
17307         O_NOATIME works.
17308
17309 2006-10-05  Bruno Haible  <bruno@clisp.org>
17310
17311         * lib/gl_list.h (gl_sortedlist_search_from_to,
17312         gl_sortedlist_indexof_from_to): New declarations.
17313         (gl_list_implementation): New fields sortedlist_search_from_to,
17314         sortedlist_indexof_from_to.
17315         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
17316         inline functions.
17317         * lib/gl_list.c (gl_sortedlist_search_from_to,
17318         gl_sortedlist_indexof_from_to): New functions.
17319         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
17320         function.
17321         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
17322         (gl_array_sortedlist_search_from_to): New function.
17323         (gl_array_list_implementation): Update.
17324         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
17325         function.
17326         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
17327         (gl_carray_sortedlist_search_from_to): New function.
17328         (gl_carray_list_implementation): Update.
17329         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
17330         gl_linked_sortedlist_indexof_from_to): New functions.
17331         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
17332         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
17333         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
17334         gl_tree_sortedlist_indexof_from_to): New functions.
17335         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
17336         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
17337         Update.
17338         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
17339         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
17340         Update.
17341
17342 2006-10-05  Bruno Haible  <bruno@clisp.org>
17343
17344         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
17345         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
17346         (struct gl_list_implementation): Add fields search_from_to,
17347         indexof_from_to. Remove fields search, indexof.
17348         (gl_list_search): Use the search_from_to method.
17349         (gl_list_search_from, gl_list_search_from_to): New functions.
17350         (gl_list_indexof): Use the indexof_from_to method.
17351         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
17352         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
17353         (gl_list_search_from, gl_list_search_from_to): New functions.
17354         (gl_list_indexof): Use the indexof_from_to method.
17355         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
17356         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
17357         gl_array_indexof. Add start_index, end_index arguments.
17358         (gl_array_search_from_to): Renamed from gl_array_search. Add
17359         start_index, end_index arguments.
17360         (gl_array_remove, gl_array_list_implementation): Update.
17361         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
17362         gl_carray_indexof. Add start_index, end_index arguments.
17363         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
17364         start_index, end_index arguments.
17365         (gl_carray_remove, gl_carray_list_implementation): Update.
17366         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
17367         gl_linked_search. Add start_index, end_index arguments.
17368         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
17369         start_index, end_index arguments.
17370         (gl_linked_remove): Update.
17371         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
17372         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
17373         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
17374         field to 'size_t'.
17375         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
17376         gl_tree_search. Add start_index, end_index arguments.
17377         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
17378         start_index, end_index arguments.
17379         (gl_tree_remove): Update.
17380         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
17381         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
17382         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
17383         function.
17384         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
17385         gl_tree_search. Add start_index, end_index arguments.
17386         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
17387         start_index, end_index arguments.
17388         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
17389         Update.
17390         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
17391
17392 2006-10-05  Bruno Haible  <bruno@clisp.org>
17393
17394         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
17395
17396         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
17397         fwriteerror_temp): New declarations.
17398         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
17399         (descriptors): New variable.
17400         (cleanup): First, close the descriptors.
17401         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
17402         fclose_temp, fwriteerror_temp): New functions.
17403
17404 2006-10-04  Jim Meyering  <jim@meyering.net>
17405
17406         * lib/fts.c (fts_open): Tiny comment change.
17407
17408 2006-10-04  Bruno Haible  <bruno@clisp.org>
17409
17410         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
17411         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
17412         gl_LOCK_BODY.
17413         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
17414         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
17415         gl_LOCK_EARLY_BODY.
17416         (gl_LOCK): Require gl_LOCK_BODY.
17417
17418 2006-10-04  Bruno Haible  <bruno@clisp.org>
17419
17420         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
17421         (gl_oset_search_atleast): New declaration.
17422         (struct gl_oset_implementation): Add field 'search_atleast'.
17423         (gl_oset_search_atleast): New inline function.
17424         * lib/gl_oset.c (gl_oset_search_atleast): New function.
17425         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
17426         (gl_array_oset_implementation): Update.
17427         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
17428         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
17429         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
17430
17431 2006-10-04  Bruno Haible  <bruno@clisp.org>
17432
17433         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
17434
17435 2006-10-03  Bruno Haible  <bruno@clisp.org>
17436
17437         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
17438         from gl_avltreehash_list_implementation.
17439
17440 2006-10-03  Bruno Haible  <bruno@clisp.org>
17441
17442         * lib/gl_oset.c (gl_oset_add): Fix return type.
17443
17444 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
17445
17446         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
17447
17448 2006-10-02  Eric Blake  <ebb9@byu.net>
17449
17450         * modules/strnlen (Depends-on): Add extensions.
17451
17452 2006-10-02  Eric Blake  <ebb9@byu.net>
17453
17454         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
17455         definition in 2.60+.
17456
17457 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
17458
17459         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
17460         checks.
17461
17462 2006-10-02  Bruno Haible  <bruno@clisp.org>
17463
17464         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
17465         to the AUTOMAKE_OPTIONS.
17466         Reported by Jim Meyering.
17467
17468 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
17469
17470         Work around bug in Solaris 10 /proc file system:
17471         /proc/self/fd/NNN/.. isn't the parent directory of
17472         the directory whose file descriptor is NNN.  This needs to
17473         be worked around at run time, not compile time, since a
17474         program might be built on Solaris 8, where things work, and
17475         run on Solaris 10.
17476         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
17477         to use the following interface instead:
17478         (OPENAT_BUFFER_SIZE): New macro.
17479         (openat_proc_name): New function.
17480         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
17481         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
17482         Likewise.
17483         * lib/openat-proc.c: New file.
17484         * modules/openat (Files): Add lib/openat-proc.c.
17485         (Depends-on): Add same-inode, stdbool.
17486         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
17487
17488 2006-09-29  Bruno Haible  <bruno@clisp.org>
17489
17490         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
17491         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
17492         argument. Set stdout_closed before testing for ferror, not after.
17493         (fwriteerror, fwriteerror_no_ebadf): New functions.
17494
17495 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17496
17497         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
17498
17499 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
17500
17501         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
17502         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
17503
17504 2006-09-28  Jim Meyering  <jim@meyering.net>
17505
17506         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
17507         Include <unistd.h>.
17508
17509 2006-09-28  Bruno Haible  <bruno@clisp.org>
17510
17511         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
17512         * modules/linkedhash-list (Depends-on): Likewise.
17513         * modules/rbtreehash-list (Depends-on): Likewise.
17514
17515 2006-09-28  Bruno Haible  <bruno@clisp.org>
17516
17517         * lib/strndup.h: Simplify the redefinition of strndup.
17518         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
17519         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
17520
17521 2006-09-28  Bruno Haible  <bruno@clisp.org>
17522
17523         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
17524         * lib/gl_linkedhash_list.c: Likewise.
17525         * lib/gl_rbtreehash_list.c: Likewise.
17526
17527 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
17528
17529         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
17530         getaddrinfo.
17531
17532         * lib/__fpending.h: Don't include <stdio_ext.h> unless
17533         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
17534         it causes <stdio_ext.h> to cause a compile-time error.
17535         Problem reported by Nelson H. F. Beebe.
17536         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
17537         of HAVE_DECL___PENDING.
17538
17539         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
17540         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
17541         declaration.
17542
17543 2006-09-27  Jim Meyering  <jim@meyering.net>
17544
17545         This file could end up with a definition for a function
17546         named __strndup, rather than rpl_strndup on a system with
17547         incomplete weak_alias support.
17548         * lib/strndup.c (strndup): Rename from __strndup.
17549         Remove #defines that used to map __strndup to strndup.
17550         Don't use K&R prototypes.
17551         Remove LIBC-related code, since this file is not sync'd with glibc.
17552         * lib/strndup.h: Revamp, accordingly.
17553         * m4/strndup.m4: Modernize.
17554
17555 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
17556
17557         * modules/savewd (Depends-on): Add 'raise'.
17558         * lib/savewd.c: Include <signal.h>, for 'raise'.
17559
17560 2006-09-26  Jim Meyering  <jim@meyering.net>
17561
17562         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
17563         when we detect Darwin 8.7.0's acl_get_file bug.
17564         Rearrange to perform the new (below) run-test while $LIBS
17565         contains any acl-related library.  Set USE_ACL at the end.
17566         (gl_ACL_GET_FILE): New function.
17567
17568 2006-09-26  Eric Blake  <ebb9@byu.net>
17569
17570         * lib/verror.c: Include <config.h> unconditionally.
17571
17572 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
17573
17574         * modules/clock-time (Maintainer): Add self.
17575         * modules/getlogin_r (Depends-on): Add extensions.
17576
17577 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17578
17579         * modules/clock-time: New module.
17580         * modules/nanosleep (Depends-on): Add clock-time.
17581         * modules/gethrxtime (Depends-on): Likewise.
17582         * modules/gettime (Depends-on): Likewise.
17583         * modules/settime (Depends-on): Likewise.
17584
17585         * modules/fts-lgpl: Depend on openat.
17586         * modules/mkancesdirs: Depend on savewd.
17587         * modules/mkdir-p: Likewise.
17588
17589 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17590
17591         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
17592
17593         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
17594         `gl_have_arbitrary_file_name_length_limit' to
17595         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
17596         actually works between configure runs.
17597
17598 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17599             Bruno Haible  <bruno@clisp.org>
17600
17601         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
17602
17603 2006-09-25  Jim Meyering  <jim@meyering.net>
17604
17605         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
17606         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
17607
17608 2006-09-25  Eric Blake  <ebb9@byu.net>
17609
17610         * gnulib-tool (func_import, func_create_testdir): Fix typos in
17611         exec's in 2006-09-18 patch when shuffling fds.
17612
17613 2006-09-25  Bruno Haible  <bruno@clisp.org>
17614
17615         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
17616         Reported by Jim Meyering.
17617
17618 2006-09-24  Jim Meyering  <jim@meyering.net>
17619
17620         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
17621         compare a pointer against a literal "0".  That caused failures with
17622         at least HP-UX's hpcc.
17623
17624 2006-09-22  Simon Josefsson  <jas@extundo.com>
17625
17626         * modules/gc-sha1:
17627         * modules/gc-md4:
17628         * modules/gc-hmac-sha1:
17629         * modules/gc-hmac-md5:
17630         * modules/gc-des:
17631         * modules/gc-arcfour: Distribute more files.
17632
17633 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17634
17635         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
17636         (gl_linked_iterator_from_to): Initialize struct completely.
17637         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
17638         (gl_tree_iterator_from_to): Likewise
17639         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
17640         * lib/gl_array_list.c [lint] (gl_array_iterator)
17641         (gl_array_iterator_from_to): Likewise.
17642         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
17643         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
17644         (gl_carray_iterator_from_to): Likewise.
17645
17646         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
17647         * lib/md4.c (md4_process_block): Remove unused variable.
17648         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
17649         parentheses for clarity.
17650
17651 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17652
17653         * modules/bison-i18n (Depends-on): Add gettext.
17654
17655 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17656
17657         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
17658         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
17659         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
17660         also add missing comma that caused broken test.
17661         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
17662         stdlib.h, for `abort'.
17663         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
17664         variables.
17665         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
17666         include unistd.h if present, for `rmdir'.
17667         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
17668         variables.
17669         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
17670         in the process include standard headers for prototypes.
17671         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
17672         gets declared on GNU/Linux.
17673         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
17674         unistd.h, for `rmdir'.
17675         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
17676
17677         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
17678         always true.
17679         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
17680
17681         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
17682
17683 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17684
17685         * gnulib-tool (func_version): Create output all at once.  This
17686         may help avoid triggering unnecessary SIGPIPEs, and at any
17687         rate it doesn't hurt.
17688
17689 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17690             Bruno Haible  <bruno@clisp.org>
17691
17692         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
17693         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
17694         * m4/signed.m4 (bh_C_SIGNED): Likewise.
17695
17696         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
17697         (gl_FUNC_VASPRINTF): Invoke it.
17698
17699 2006-09-22  Bruno Haible  <bruno@clisp.org>
17700
17701         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
17702         getloadavg.c as first argument.
17703
17704 2006-09-22  Bruno Haible  <bruno@clisp.org>
17705
17706         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
17707         at the beginning of the gl_INIT macro.
17708         * modules/getloadavg (configure.ac): Pass $gl_source_base to
17709         gl_GETLOADAVG.
17710
17711 2006-09-22  Bruno Haible  <bruno@clisp.org>
17712
17713         * gnulib-tool (func_create_megatestdir): Don't include the config-h
17714         module.
17715         Suggested by Ralf Wildenhues.
17716
17717 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
17718
17719         Import this patch from libc:
17720
17721         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
17722
17723         * lib/regex_internal.c (re_string_reconstruct): Handle
17724         offset < pstr->valid_raw_len && pstr->offsets_needed case.
17725         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
17726         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
17727         re_string_context_at.
17728
17729         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
17730         now requires it.
17731         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
17732         gl_REGEX now does it for us.
17733         (gl_REGEX): Add test taken from
17734         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
17735
17736         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
17737         Check that large offsets work.  Modernize Autoconf usages.
17738         Prefer "yes" to mean a good thing rather than a bad.
17739         Don't put "#define mkstemp" in config.h, as this might interfere
17740         with standard system headers that "#define mkstemp mkstemp64".
17741
17742         * modules/mkstemp (Depends-on): Add extensions, so that
17743         mkstemp is visible on some platforms.
17744         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
17745         (Include): Change to "mkstemp.h" from <stdlib.h>.
17746         (Files): Add mkstemp.h.
17747
17748         * lib/mkstemp.h: New file, since some standard headers
17749         #define mkstemp.
17750         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
17751         Include "mkstemp.h".
17752         Make the _LIBC code resemble glibc original more,
17753         e.g., use K&R style.
17754         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
17755         (mkstemp): Remove, since mkstemp.h does this for us.
17756         * lib/stdlib--.h: Include mkstemp.h.
17757
17758         Import this patch from libc:
17759
17760         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
17761
17762         * lib/tempname.c (__gen_tempname): Change attempts_min
17763         into a macro.  Use preprocessor to decide how to initialize
17764         attempts [Coverity CID 67].
17765
17766 2006-09-20  Bruno Haible  <bruno@clisp.org>
17767
17768         * lib/mkdtemp.c: Import from libc.
17769         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
17770                 * sysdeps/posix/tempname.c (__gen_tempname): Change
17771                 attempts_min into a macro.  Use preprocessor to decide how to
17772                 initialize attempts [Coverity CID 67].
17773         2001-11-27  Paul Eggert  <eggert@twinsun.com>
17774                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
17775                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
17776
17777 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17778
17779         * gnulib-tool (func_exit): New function, to allow to pass the
17780         exit status portably through the trap.  Use everywhere.
17781         (--help, --version): Signal a write error.
17782         (trap): catch SIGPIPE, for write errors.
17783         Exit at the end of the trap, with the correct exit status.
17784
17785 2006-09-19  Karl Berry  <karl@gnu.org>
17786
17787         * doc/gnulib.texi: note about the license texinfo files.
17788
17789 2006-09-19  Eric Blake  <ebb9@byu.net>
17790
17791         * gnulib-tool: Avoid space-tab.
17792
17793 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
17794
17795         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
17796         that prevented coreutils 6.1 from building.  Problem reported
17797         by Petter Reinholdtsen.
17798
17799 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
17800
17801         * gnulib-tool (avoidlist): Fix typo that broke options like
17802         --avoid=lock that are used by coreutils bootstrap.
17803
17804 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
17805
17806         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
17807         more systematically.
17808
17809 2006-09-18  Jim Meyering  <jim@meyering.net>
17810
17811         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
17812
17813 2006-09-18  Bruno Haible  <bruno@clisp.org>
17814
17815         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
17816
17817 2006-09-18  Bruno Haible  <bruno@clisp.org>
17818
17819         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
17820         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
17821         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
17822         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
17823         * m4/gettext.m4: Require autoconf >= 2.52.
17824         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
17825         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
17826         of gl_cv_header_inttypes_h.
17827
17828 2006-09-18  Bruno Haible  <bruno@clisp.org>
17829
17830         * lib/javaversion.c: Include configmake.h.
17831
17832 2006-09-18  Bruno Haible  <bruno@clisp.org>
17833
17834         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
17835         avoid that the while loops be executed in a subshell.
17836
17837 2006-09-18  Bruno Haible  <bruno@clisp.org>
17838
17839         * MODULES.html.sh (func_module): Break long lines.
17840         Suggested by Bruce Korb <bkorb@gnu.org>.
17841
17842 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17843
17844         Speed up by a factor of 1.12.
17845         * gnulib-tool (nl): New variable.
17846         (func_import): Rewrite include directive extraction to only read each
17847         directive once.
17848
17849 2006-09-17  Bruno Haible  <bruno@clisp.org>
17850
17851         * modules/javaversion (Makefile.am): Remove DEFS setting.
17852         (Depends-on): Add configmake, for PKGDATADIR definition.
17853
17854 2006-09-17  Bruno Haible  <bruno@clisp.org>
17855
17856         * gnulib-tool (func_create_testdir): Rewrite all files at once.
17857
17858 2006-09-17  Bruno Haible  <bruno@clisp.org>
17859
17860         * gnulib-tool (func_append): New function, stolen from libtool.m4.
17861         (func_modules_transitive_closure, func_modules_add_dummy,
17862         func_modules_to_filelist, func_import, func_create_testdir,
17863         func_create_megatestdir, ...): Use it wherever possible.
17864         Suggested by Ralf Wildenhues.
17865
17866 2006-09-16  Karl Berry  <karl@gnu.org>
17867
17868         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
17869         to avoid sectioning errors.
17870         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
17871         [ifinfo]: blank line after @center-ed titles.
17872         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
17873         Spell FSF address consistently with others.
17874         (These changes approved by rms.)
17875
17876 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17877
17878         Speed up by a factor of 1.61.
17879         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
17880         already checked module names again.
17881
17882 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17883
17884         Speed up by a factor of 1.13.
17885         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
17886         for new_files, and the input to func_add_or_update.
17887
17888 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17889
17890         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
17891         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
17892
17893 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
17894
17895         * modules/mkancesdirs (Depends-on): Add fcntl.
17896         * modules/savewd: New file.
17897         * MODULES.html.sh (File system functions): Add savewd.
17898
17899         * modules/configmake (Makefile.am): Add support for the
17900         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
17901
17902 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
17903
17904         * m4/savewd.m4: New file.
17905
17906 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
17907
17908         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
17909         (dirchownmod): New arg FD.  All callers changed.
17910         Use FD rather than opening the directory ourself, as opening is
17911         now the caller's responsibility.
17912         * lib/dirchownmod.h: Likewise.
17913         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
17914         hosts that require <sys/types.h> before <sys/stat.h>.  Include
17915         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
17916         (test_dir): Remove.
17917         (mkancesdirs): Return length of prefix of FILE that has already
17918         been made, or -2 if there is a child doing the work.  Redo
17919         algorithm so that it is O(N) rather than O(N**2).  Optimize away
17920         ".", and treat ".." specially since it might stray back into
17921         already-created areas.  Use a subprocess if necessary.  New arg
17922         WD; all users changed.  MAKE_DIR function should now return 1
17923         if it creates a directory that is not readable.  Return -2 if
17924         a child process is spun off.
17925         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
17926         Adjust signature to match code.
17927         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
17928         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
17929         all users changed.
17930         * lib/savewd.c, lib/savewd.h: New files.
17931
17932 2006-09-15  Jim Meyering  <jim@meyering.net>
17933
17934         * modules/rename-dest-slash: New module.
17935         * MODULES.html.sh (posix_compat): Add it here.
17936
17937         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
17938
17939 2006-09-15  Jim Meyering  <jim@meyering.net>
17940
17941         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
17942         file.
17943
17944         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
17945
17946 2006-09-15  Jim Meyering  <jim@meyering.net>
17947
17948         * lib/rename-dest-slash.c (has_trailing_slash): Use
17949         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
17950         (rpl_rename_dest_slash): Perform the cheaper trailing slash
17951         test before testing whether SRC is a directory.
17952         Suggestions from Bruno Haible.
17953
17954         Avoid a warning about an unused variable.
17955         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
17956         into the #ifdef block where it's used.
17957
17958         * lib/rename-dest-slash.c: New file.
17959
17960 2006-09-14  Bruno Haible  <bruno@clisp.org>
17961
17962         * lib/allocsa.c: Include <config.h> unconditionally.
17963         * lib/asnprintf.c: Likewise.
17964         * lib/asprintf.c: Likewise.
17965         * lib/c-strcasecmp.c: Likewise.
17966         * lib/c-strcasestr.c: Likewise.
17967         * lib/c-strncasecmp.c: Likewise.
17968         * lib/c-strstr.c: Likewise.
17969         * lib/classpath.c: Likewise.
17970         * lib/clean-temp.c: Likewise.
17971         * lib/concatpath.c: Likewise.
17972         * lib/copy-file.c: Likewise.
17973         * lib/csharpcomp.c: Likewise.
17974         * lib/csharpexec.c: Likewise.
17975         * lib/execute.c: Likewise.
17976         * lib/fatal-signal.c: Likewise.
17977         * lib/findprog.c: Likewise.
17978         * lib/fwriteerror.c: Likewise.
17979         * lib/gl_array_list.c: Likewise.
17980         * lib/gl_array_oset.c: Likewise.
17981         * lib/gl_avltree_list.c: Likewise.
17982         * lib/gl_avltree_oset.c: Likewise.
17983         * lib/gl_avltreehash_list.c: Likewise.
17984         * lib/gl_carray_list.c: Likewise.
17985         * lib/gl_linked_list.c: Likewise.
17986         * lib/gl_linkedhash_list.c: Likewise.
17987         * lib/gl_list.c: Likewise.
17988         * lib/gl_oset.c: Likewise.
17989         * lib/gl_rbtree_list.c: Likewise.
17990         * lib/gl_rbtree_oset.c: Likewise.
17991         * lib/gl_rbtreehash_list.c: Likewise.
17992         * lib/imaxabs.c: Likewise.
17993         * lib/imaxdiv.c: Likewise.
17994         * lib/javacomp.c: Likewise.
17995         * lib/javaexec.c: Likewise.
17996         * lib/javaversion.c: Likewise.
17997         * lib/linebreak.c: Likewise.
17998         * lib/localcharset.c: Likewise.
17999         * lib/lock.c: Likewise.
18000         * lib/mbchar.c: Likewise.
18001         * lib/mbswidth.c: Likewise.
18002         * lib/mkdtemp.c: Likewise.
18003         * lib/pipe.c: Likewise.
18004         * lib/printf-args.c: Likewise.
18005         * lib/printf-parse.c: Likewise.
18006         * lib/progname.c: Likewise.
18007         * lib/progreloc.c: Likewise.
18008         * lib/readlink.c: Likewise.
18009         * lib/sh-quote.c: Likewise.
18010         * lib/stpcpy.c: Likewise.
18011         * lib/stpncpy.c: Likewise.
18012         * lib/strcasecmp.c: Likewise.
18013         * lib/strcasestr.c: Likewise.
18014         * lib/strcspn.c: Likewise.
18015         * lib/striconv.c: Likewise.
18016         * lib/strncasecmp.c: Likewise.
18017         * lib/strnlen1.c: Likewise.
18018         * lib/strstr.c: Likewise.
18019         * lib/strtok_r.c: Likewise.
18020         * lib/tls.c: Likewise.
18021         * lib/tmpdir.c: Likewise.
18022         * lib/unicodeio.c: Likewise.
18023         * lib/unsetenv.c: Likewise.
18024         * lib/vasnprintf.c: Likewise.
18025         * lib/vasprintf.c: Likewise.
18026         * lib/wait-process.c: Likewise.
18027         * lib/xallocsa.c: Likewise.
18028         * lib/xsetenv.c: Likewise.
18029         * lib/xstriconv.c: Likewise.
18030
18031 2006-09-13  Simon Josefsson  <jas@extundo.com>
18032
18033         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
18034         that internally, suggested by Ralf Wildenhues
18035         <Ralf.Wildenhues@gmx.de>.
18036
18037 2006-09-13  Simon Josefsson  <jas@extundo.com>
18038
18039         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
18040         @LIBOBJS@.
18041         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18042
18043 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
18044
18045         * lib/_fpending.c: Include <config.h> unconditionally, since we no
18046         longer worry about uses that don't define HAVE_CONFIG_H.
18047         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
18048         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
18049         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
18050         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
18051         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
18052         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
18053         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
18054         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
18055         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
18056         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
18057         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
18058         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
18059         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
18060         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
18061         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
18062         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
18063         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
18064         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
18065         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
18066         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
18067         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
18068         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
18069         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
18070         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
18071         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
18072         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
18073         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
18074         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
18075         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
18076         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
18077         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
18078         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
18079         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
18080         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
18081         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
18082         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
18083         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
18084         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
18085         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
18086         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
18087         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
18088         Likewise.
18089
18090 2006-09-13  Eric Blake  <ebb9@byu.net>
18091
18092         * lib/getopt.c: Fix typo in last commit.
18093
18094 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
18095
18096         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
18097         dgettext.
18098
18099 2006-09-12  Jim Meyering  <jim@meyering.net>
18100
18101         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
18102         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
18103         Reported by Nelson H. F. Beebe.
18104
18105 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
18106
18107         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
18108         program_invocation_name and program_invocation_short_name are
18109         initialized.
18110         * lib/argp-namefrob.h: Move declarations of program_invocation_name
18111         and program_invocation_short_name to argp.h, so they are visible
18112         to user programs.
18113         * lib/argp.h: Likewise
18114
18115 2006-09-10  Bruno Haible  <bruno@clisp.org>
18116
18117         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
18118         m4/inttypes_h.m4, m4/uintmax_t.m4.
18119
18120 2006-09-10  Bruno Haible  <bruno@clisp.org>
18121
18122         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
18123         gl_AC_TYPE_UINTMAX_T.
18124
18125 2006-09-10  Bruno Haible  <bruno@clisp.org>
18126
18127         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
18128
18129 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
18130
18131         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
18132         convention.  Text proposed by Bruno Haible.
18133         (struct argp_option): Document the use of N_() wrappers.
18134
18135         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
18136         '\v', and translate the two parts separately, instead of feeding
18137         the whole string to gettext.  This allows to exclude
18138         '\v' from the strings visible to the translator by writing doc
18139         strings as N_("..") "\v" N_("..").
18140
18141 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
18142
18143         * config/srclist.txt: Undo latest change; the bug was fixed.
18144
18145 2006-09-09  Bruno Haible  <bruno@clisp.org>
18146
18147         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
18148         assignments if building a library without libtool.
18149         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
18150         in func_emit_lib_Makefile_am.
18151         (func_import): When building a static library libfoo.a, arrange to
18152         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
18153         (func_create_testdir): Likewise.
18154         * modules/gc (configure.ac, Makefile.am): If building statically,
18155         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
18156         * modules/iconvme (configure.ac, Makefile.am): Likewise.
18157         * modules/striconv (configure.ac, Makefile.am): Likewise.
18158         Based on a suggestion by Ralf Wildenhues.
18159
18160 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
18161
18162         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
18163         Check for unistd.h too, since Autoconf doesn't assume POSIX.
18164         Also:
18165
18166         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
18167         Add year_2050_test to catch glibc bug 2821
18168         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
18169
18170         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
18171         Prefer #ifdef to #if.
18172
18173         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
18174         Return from 'main' instead of calling 'exit'.
18175
18176 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
18177
18178         * lib/mktime.c (guess_time_tm): Fix bug where mktime
18179         returned the maximum time_t value rather than (time_t) -1.
18180         Problem originally reported by William Bardwell
18181         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
18182
18183         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
18184         Moved to here ...
18185         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
18186         ... from here.
18187
18188 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
18189
18190         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
18191         2821 is fixed.
18192
18193 2006-09-08  Jim Meyering  <jim@meyering.net>
18194
18195         Don't make generated files read-only.  That would bother too many
18196         people.  However, do retain the ability to work when targets are
18197         read-only: remove the destination and temporary files before writing
18198         them (when generated via sed or echo), or by using the -f option for
18199         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
18200         * modules/alloca-opt, modules/argz, modules/arpa_inet:
18201         * modules/byteswap, modules/configmake, modules/fcntl:
18202         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
18203         * modules/localcharset, modules/netinet_in, modules/poll:
18204         * modules/stdbool, modules/stdint, modules/sys_select:
18205         * modules/sys_socket, modules/sys_stat, modules/sysexits:
18206
18207 2006-09-08  Jim Meyering  <jim@meyering.net>
18208
18209         Avoid new build failure on FreeBSD 6.0.
18210         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
18211         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
18212         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
18213
18214 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18215
18216         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
18217
18218 2006-09-07  Jim Meyering  <jim@meyering.net>
18219
18220         Fix global typo in last change: use chmod u-w, not chmod u-x.
18221         Spotted by Paul Eggert and Bruce Korb.
18222         * modules/alloca-opt, modules/argz, modules/arpa_inet:
18223         * modules/byteswap, modules/configmake, modules/fcntl:
18224         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
18225         * modules/localcharset, modules/netinet_in, modules/poll:
18226         * modules/stdbool, modules/stdint, modules/sys_select:
18227         * modules/sys_socket, modules/sys_stat, modules/sysexits:
18228
18229 2006-09-06  Jim Meyering  <jim@meyering.net>
18230
18231         Make generated files be read-only.
18232         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
18233         Ensure that each generated file is now read-only.
18234         * modules/argz: Likewise.
18235         * modules/arpa_inet: Likewise.
18236         * modules/byteswap: Likewise.
18237         * modules/configmake: Likewise.
18238         * modules/fcntl: Likewise.
18239         * modules/fnmatch: Likewise.
18240         * modules/getopt: Likewise.
18241         * modules/glob: Likewise.
18242         * modules/inttypes: Likewise.
18243         * modules/netinet_in: Likewise.
18244         * modules/poll: Likewise.
18245         * modules/stdbool: Likewise.
18246         * modules/stdint: Likewise.
18247         * modules/sys_select: Likewise.
18248         * modules/sys_socket: Likewise.
18249         * modules/sys_stat: Likewise.
18250         * modules/sysexits: Likewise.
18251         * modules/localcharset: Same as above, but continue using temporary
18252         file named "t-$@" (why different?) rather than the "$@-t" used
18253         everywhere else.
18254
18255         * modules/sysexits (Makefile.am): Replace literal occurrences
18256         of "sysexit.h" more readable, and more consistent, "$@".
18257
18258 2006-09-06  Bruno Haible  <bruno@clisp.org>
18259
18260         * modules/striconv: New file.
18261         * modules/xstriconv: New file.
18262         * MODULES.html.sh (Internationalization functions): Add striconv,
18263         xstriconv.
18264
18265 2006-09-06  Bruno Haible  <bruno@clisp.org>
18266
18267         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
18268         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
18269         not using libtool correctly.
18270
18271 2006-09-06  Bruno Haible  <bruno@clisp.org>
18272
18273         * lib/striconv.h: New file.
18274         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
18275         iconvstring.c.
18276         * lib/xstriconv.h: New file.
18277         * lib/xstriconv.c: New file.
18278
18279 2006-09-06  Bruno Haible  <bruno@clisp.org>
18280
18281         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
18282         lib_..._LDFLAGS.
18283
18284 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18285
18286         * lib/argz_.h: Sync from Libtool.
18287
18288         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
18289                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18290
18291         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
18292
18293 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
18294
18295         * modules/trim: New file.
18296
18297 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
18298
18299         * lib/trim.h: New file.
18300         * lib/trim.c: New file.
18301
18302 2006-09-05  Bruno Haible  <bruno@clisp.org>
18303
18304         * MODULES.html.sh (String handling): Add trim.
18305
18306 2006-09-04  Karl Berry  <karl@gnu.org>
18307
18308         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
18309         until next release.
18310
18311 2006-09-03  Bruno Haible  <bruno@clisp.org>
18312
18313         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
18314         correctly.
18315
18316 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
18317
18318         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
18319         not gl_GETLOADAVG.  Omit unneeded semicolons.
18320         Problems reported by Ralf Wildenhues in
18321         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
18322         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
18323         at the end, which is the usual gnulib style.
18324
18325         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
18326         of doing all the work ourselves.
18327         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
18328         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
18329
18330 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
18331
18332         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
18333         Problem reported by Ralf Wildenhues in
18334         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
18335
18336         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
18337         HAVE_STRUCT_STATFS_F_FSTYPENAME.
18338
18339 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
18340
18341         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
18342         yesterday's patch by changing test -n to test -z.
18343
18344 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
18345
18346         * modules/getloadavg (Files): Add m4/getloadavg.m4.
18347         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
18348         the former is now obsolescent.
18349
18350         * modules/chdir-long (Depends-on): Add fcntl.
18351
18352 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
18353
18354         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
18355         obsolescent, and programs should use gnulib instead.
18356         * m4/getloadavg.m4: New file, with contents taken from Autoconf
18357         but with prefixes changed.
18358
18359 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
18360
18361         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
18362         or stdbool.h, because they might not exist while configuring.
18363
18364         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
18365         Don't include unistd.h or limits.h; not needed, since chdir-long.h
18366         does that for us.
18367         (O_DIRECTORY): Remove.
18368
18369 2006-08-31  Eric Blake  <ebb9@byu.net>
18370
18371         * gnulib-tool: Don't let emacs change spaces to TAB.
18372
18373 2006-08-31  Bruno Haible  <bruno@clisp.org>
18374
18375         * gnulib-tool: When calling func_import more than once, do it in a
18376         subshell.
18377         Reported by Eric Blake <ebb9@byu.net>.
18378
18379 2006-08-31  Bruno Haible  <bruno@clisp.org>
18380
18381         * gnulib-tool (nl): Remove variable.
18382         (sed_transform_lib_file): Use more robust test for config-h module.
18383         (func_import): Fix typo in 2006-08-25 patch.
18384
18385 2006-08-31  Bruno Haible  <bruno@clisp.org>
18386
18387         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
18388         specified, augment Makefile.am variables instead of assigning them.
18389
18390 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
18391
18392         Work around a bug in both the Linux and SunOS 64-bit kernels:
18393         nanosleep mishandles sleeps for longer than 2**31 seconds.
18394         Problem reported by Frank v Waveren in
18395         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
18396         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
18397         Check for nanosleep bug.
18398         (LIB_NANOSLEEP): Append clock_gettime library if needed.
18399
18400 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
18401
18402         Work around a bug in both the Linux and SunOS 64-bit kernels:
18403         nanosleep mishandles sleeps for longer than 2**31 seconds.
18404         Problem reported by Frank v Waveren in
18405         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
18406         * lib/nanosleep.c (BILLION): New constant.
18407         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
18408         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
18409         implementation.
18410
18411 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
18412
18413         * modules/nanosleep (Depends-on): Add gettime.
18414
18415 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
18416         and Simon Josefsson  <jas@extundo.com>
18417         and Oskar Liljeblad  <oskar@osk.mine.nu>
18418
18419         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
18420         * gnulib-tool (func_import): New license type 'unmodifiable license
18421         text'.
18422         * modules/fdl: Use it.  Longer description.
18423         * module/gpl, module/lgpl: New files.
18424
18425 2006-08-30  Jim Meyering  <jim@meyering.net>
18426
18427         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
18428         shadowing the parameter.
18429
18430 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18431
18432         Sync from Libtool:
18433
18434         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18435
18436         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
18437         sharing with gnulib.  Report by Eric Blake.
18438
18439 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
18440
18441         * modules/isapipe: New file.
18442         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
18443
18444 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
18445
18446         * modules/configmake (Makefile.am): Add a comment, and omit
18447         the CONFIGMAKE_ prefix from generated macro names.  Suggested
18448         by Bruno Haible.
18449
18450 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
18451
18452         * m4/isapipe.m4: New file.
18453
18454 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
18455
18456         * lib/isapipe.c, lib/isapipe.h: New files.
18457
18458 2006-08-29  Jim Meyering  <jim@meyering.net>
18459
18460         * modules/configmake (Makefile.am): Make configmake.h depend on
18461         Makefile.  Otherwise, a stale configmake.h could hang around.
18462
18463 2006-08-29  Eric Blake  <ebb9@byu.net>
18464
18465         * lib/error.c (error_at_line, print_errno_message): Match libc, after
18466         resolution of upstream bug 3044.
18467
18468 2006-08-29  Bruno Haible  <bruno@clisp.org>
18469
18470         * modules/localcharset (Depends-on): Add configmake.
18471         (Makefile.am): Remove setting of LIBDIR through DEFS.
18472
18473 2006-08-29  Bruno Haible  <bruno@clisp.org>
18474
18475         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
18476         defined.
18477
18478 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
18479
18480         * modules/fcntl: New file.
18481         * modules/chdir-safer (Depends-on): Add fcntl.
18482         * modules/fts: Likewise.
18483         * modules/mkdir-p: Likewise.
18484
18485         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
18486         This undoes the most recent change, since we're now addressing the
18487         problem in a different way.
18488
18489         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
18490         into output, since the output might be called Makefile.am even
18491         if $makefile_name is something different.
18492         (func_import): Use $makefile_am rather than
18493         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
18494         empty.
18495
18496         * modules/inttypes (Files): Add m4/inttypes-h.m4.
18497
18498 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
18499
18500         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
18501         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
18502         recent change to stdint.m4, since we're now addressing the problem in a
18503         different way.
18504
18505 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
18506
18507         * m4/fcntl_h.m4: New file.
18508
18509 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
18510
18511         * lib/fcntl_.h: New file.
18512         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
18513         the fcntl module.
18514         * lib/dirchownmod.c: Likewise.
18515         * lib/fts.c: Likewise.
18516
18517         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
18518         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
18519         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
18520         just before including <inttypes.h>, to avoid circular inclusion.
18521
18522 2006-08-28  Jim Meyering  <jim@meyering.net>
18523
18524         * doc/visibility.texi: Actually read and correct the grammar of the
18525         sentence affected by yesterday's change.
18526
18527 2006-08-28  Eric Blake  <ebb9@byu.net>
18528
18529         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
18530         needs wrapper.
18531
18532 2006-08-28  Eric Blake  <ebb9@byu.net>
18533
18534         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
18535
18536 2006-08-28  Eric Blake  <ebb9@byu.net>
18537
18538         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
18539
18540 2006-08-28  Bruno Haible  <bruno@clisp.org>
18541
18542         * modules/c-strstr: New file, from GNU gettext.
18543         * MODULES.html.sh (String handling): Add c-strstr.
18544
18545 2006-08-28  Bruno Haible  <bruno@clisp.org>
18546
18547         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
18548         macros.
18549         Reported by Eric Blake.
18550
18551 2006-08-28  Bruno Haible  <bruno@clisp.org>
18552
18553         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
18554         (VASNPRINTF): Return a string of length > INT_MAX without failing.
18555         * lib/vasprintf.c: Include errno.h, limits.h.
18556         (EOVERFLOW): New fallback definition.
18557         (vasprintf): Test here whether the string length is > INT_MAX.
18558         * lib/vsnprintf.c: Include errno.h, limits.h.
18559         (EOVERFLOW): New fallback definition.
18560         (vsnprintf): Fix bug when generated string was too long for the buffer.
18561         Test here whether the string length is > INT_MAX.
18562
18563 2006-08-28  Bruno Haible  <bruno@clisp.org>
18564
18565         * lib/inttypes_.h (SCNX*): Remove definitions.
18566         Reported by Eric Blake.
18567
18568 2006-08-28  Bruno Haible  <bruno@clisp.org>
18569
18570         * lib/c-strstr.h: New file, from GNU gettext.
18571         * lib/c-strstr.c: New file, from GNU gettext.
18572
18573 2006-08-28  Bruno Haible  <bruno@clisp.org>
18574
18575         * gnulib-tool: Reorder some statements.
18576
18577 2006-08-28  Bruno Haible  <bruno@clisp.org>
18578
18579         * gnulib-tool: New option --makefile-name.
18580         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
18581         $makefile_name.
18582         (func_import): Write $makefile_name to the cache file, and read it from
18583         there unless explicitly specified. Use $makefile_name as file name
18584         instead of Makefile.am. Adjust the recommendations accordingly.
18585
18586 2006-08-28  Bruno Haible  <bruno@clisp.org>
18587
18588         * gnulib-tool (func_verify_module): Check against misapplying patch.
18589
18590 2006-08-28  Bruno Haible  <bruno@clisp.org>
18591
18592         * gnulib-tool (func_relativize, func_relconcat): New functions.
18593         Give an error if --local-dir is given with --update.
18594         Remove trailing slashes from $local_gnulib_dir.
18595         (func_import): Store the relativized $local_gnulib_dir in
18596         gnulib-cache.m4, and read it from there if not specified explicitly.
18597
18598 2006-08-28  Bruno Haible  <bruno@clisp.org>
18599
18600         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
18601         is the current directory. Respect also $local_gnulib_dir.
18602
18603 2006-08-28  Bruno Haible  <bruno@clisp.org>
18604             Simon Josefsson  <jas@extundo.com>
18605
18606         BeOS portability.
18607         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
18608
18609 2006-08-27  Jim Meyering  <jim@meyering.net>
18610
18611         * doc/visibility.texi: Remove duplicate word: "pointer".
18612
18613 2006-08-26  Bruno Haible  <bruno@clisp.org>
18614
18615         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
18616         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
18617         (Makefile.am): Create inttypes.h from inttypes_.h.
18618         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
18619
18620         * modules/imaxabs: New file.
18621
18622         * modules/imaxdiv: New file.
18623
18624 2006-08-26  Bruno Haible  <bruno@clisp.org>
18625
18626         * m4/inttypes.m4: New file.
18627         * m4/_inttypes_h.m4: Remove file.
18628         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
18629         PRI_MACROS_BROKEN.
18630         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
18631
18632         * m4/imaxabs.m4: New file.
18633
18634         * m4/imaxdiv.m4: New file.
18635
18636 2006-08-26  Bruno Haible  <bruno@clisp.org>
18637
18638         * lib/inttypes_.h: New file.
18639         * lib/inttypes.h: Remove file.
18640         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
18641
18642         * lib/imaxabs.c: New file.
18643
18644         * lib/imaxdiv.c: New file.
18645
18646 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
18647
18648         New config-h module, so that "make" output needn't be cluttered
18649         by -DHAVE_CONFIG_H.
18650         * MODULES.html.sh (Support for building libraries and executables):
18651         Add config-h.
18652         * modules/config-h: New file.
18653         * gnulib-tool (nl, sed_transform_lib_file): New vars.
18654         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
18655         the config-h module is used.
18656
18657         New configmake module, so that "make" output needn't be cluttered
18658         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
18659         * MODULES.html.sh (Support for building libraries and executables):
18660         Add configmake.
18661         * modules/configmake: New file.
18662
18663 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
18664
18665         * m4/config-h.m4: New file.
18666
18667 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
18668
18669         * config/srclist.txt: Add elisp-comp.
18670
18671 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
18672
18673         * MODULES.html.sh (Support for building libraries and executables):
18674         Add elisp-comp.
18675         * build-aux/elisp-comp: New file.
18676         * modules/elisp-comp: New file.
18677
18678 2006-08-24  Bruno Haible  <bruno@clisp.org>
18679
18680         * gnulib-tool (func_create_testdir): Use non-default values of
18681         sourcebase and m4base.
18682
18683 2006-08-24  Bruno Haible  <bruno@clisp.org>
18684
18685         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
18686         HTML structure.
18687
18688 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
18689
18690         * modules/openat (Depends-on): Add lchown.
18691
18692 2006-08-23  Bruno Haible  <bruno@clisp.org>
18693
18694         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
18695         of gl_LOCK_EARLY instead of gl_LOCK.
18696
18697 2006-08-23  Bruno Haible  <bruno@clisp.org>
18698
18699         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
18700         on OSF/1 to no.
18701         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
18702
18703 2006-08-23  Bruno Haible  <bruno@clisp.org>
18704
18705         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
18706         as unusable.
18707
18708         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
18709         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
18710         (gl_LOCK): New macro.
18711
18712 2006-08-22  Simon Josefsson  <jas@extundo.com>
18713
18714         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
18715         to md5 module.
18716
18717 2006-08-22  Simon Josefsson  <jas@extundo.com>
18718
18719         * MODULES.html.sh: Add "Support for maintaining and release
18720         projects".
18721
18722         * build-aux/gnupload: New file, from coreutils.
18723
18724 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
18725
18726         Avoid the need for AC_LIBSOURCES in m4 macros.
18727         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
18728         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
18729         * modules/check-version (EXTRA_DIST): Add check-version.h.
18730         * modules/crc (EXTRA_DIST): Add crc.h.
18731         * modules/des (EXTRA_DIST): Add des.h.
18732         * modules/gc (EXTRA_DIST): Add gc.h.
18733         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
18734         * modules/getline (EXTRA_DIST): Add getline.h.
18735         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
18736         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
18737         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
18738         * modules/md2 (EXTRA_DIST): Add md2.h.
18739         * modules/md4 (EXTRA_DIST): Add md4.h.
18740         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
18741         * modules/read-file (EXTRA_DIST): Add read-file.h.
18742         * modules/readline (EXTRA_DIST): Add readline.h.
18743         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
18744         rijndael-api-fst.h.
18745
18746 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
18747
18748         * m4/rijndael.m4 (gl_ARCFOUR):
18749         * m4/arctwo.m4 (gl_ARCTWO):
18750         * m4/check-version.m4 (gl_CHECK_VERSION):
18751         * m4/crc.m4 (gl_CRC):
18752         * m4/des.m4 (gl_DES):
18753         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
18754         * m4/gc.m4 (gl_GC):
18755         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
18756         * m4/getline.m4 (gl_FUNC_GETLINE):
18757         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
18758         * m4/hmac-md5.m4 (gl_HMAC_MD5):
18759         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
18760         * m4/md2.m4 (gl_MD2):
18761         * m4/md4.m4 (gl_MD4):
18762         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
18763         * m4/read-file.m4 (gl_FUNC_READ_FILE):
18764         * m4/readline.m4 (gl_FUNC_READLINE):
18765         * m4/rijndael.m4 (gl_RIJNDAEL):
18766         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
18767         to get the necessary .h files and whatnot.
18768
18769 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
18770
18771         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
18772         gnulib rather than the other way around.
18773         * config/srclistvars.sh (COREUTILS): Remove.
18774
18775 2006-08-22  Jim Meyering  <jim@meyering.net>
18776
18777         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
18778
18779         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
18780
18781 2006-08-22  Eric Blake  <ebb9@byu.net>
18782
18783         * modules/regexprops-generic: New file.
18784         * MODULES.html.sh (Support for building documentation): List it.
18785
18786 2006-08-22  Eric Blake  <ebb9@byu.net>
18787
18788         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
18789         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
18790         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
18791         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
18792
18793 2006-08-22  Bruno Haible  <bruno@clisp.org>
18794
18795         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
18796         and lib_LTLIBRARIES like the other lib_* variables.
18797
18798 2006-08-22  Bruno Haible  <bruno@clisp.org>
18799
18800         * build-aux/x-to-1.in: New file, from GNU gettext.
18801
18802 2006-08-22  Bruno Haible  <bruno@clisp.org>
18803
18804         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
18805         <utmpx.h> exists.
18806
18807 2006-08-22  Bruno Haible  <bruno@clisp.org>
18808
18809         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
18810         <utmpx.h> exists.
18811
18812 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
18813
18814         BeOS portability.
18815         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
18816         exist.
18817         Problem reported by Bruno Haible.
18818
18819 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
18820
18821         Avoid the need for AC_LIBSOURCES in m4 macros.
18822         * modules/acl (EXTRA_DIST): Add acl.h.
18823         * modules/argmatch (Files): Add m4/argmatch.m4.
18824         (configure.ac): Add gl_ARGMATCH.
18825         (EXTRA_DIST): Renamed from lib_SOURCES, for
18826         consistency with the other modules.  Remove argmatch.c.
18827         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
18828         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
18829         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
18830         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
18831         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
18832         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
18833         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
18834         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
18835         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
18836         * modules/closeout (EXTRA_DIST): Add closeout.h.
18837         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
18838         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
18839         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
18840         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
18841         dirname.h; remove basename.c and stripslash.c.
18842         * modules/exclude (EXTRA_DIST): Add exclude.h.
18843         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
18844         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
18845         * modules/file-type (EXTRA_DIST): Add file-type.h.
18846         * modules/filemode (EXTRA_DIST): Add filemode.h.
18847         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
18848         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
18849         * modules/fpending (EXTRA_DIST): Add __fpending.h.
18850         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
18851         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
18852         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
18853         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
18854         * modules/getdate (EXTRA_DIST): Add getdate.c.
18855         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
18856         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
18857         * modules/getpass (EXTRA_DIST): Add getpass.h.
18858         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
18859         * modules/group-member (EXTRA_DIST): Add group-member.h.
18860         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
18861         * modules/hash (EXTRA_DIST): Add hash.h.
18862         * modules/human (EXTRA_DIST): Add human.h.
18863         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
18864         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
18865         * modules/lchown (EXTRA_DIST): Add lchown.h.
18866         * modules/long-options (EXTRA_DIST): Add long-options.h.
18867         * modules/lstat (EXTRA_DIST): Add lstat.h.
18868         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
18869         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
18870         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
18871         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
18872         * modules/memxor (EXTRA_DIST): Add memxor.h.
18873         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
18874         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
18875         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
18876         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
18877         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
18878         * modules/physmem (EXTRA_DIST): Add physmem.h.
18879         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
18880         * modules/posixver (EXTRA_DIST): Add posixver.h.
18881         * modules/quote (EXTRA_DIST): Add quote.h.
18882         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
18883         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
18884         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
18885         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
18886         regex_internal.h regexec.c.
18887         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
18888         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
18889         * modules/same (EXTRA_DIST): Add same.h.
18890         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
18891         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
18892         * modules/savedir (EXTRA_DIST): Add savedir.h.
18893         * modules/sha1 (EXTRA_DIST): Add sha1.h.
18894         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
18895         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
18896         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
18897         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
18898         * modules/strdup (EXTRA_DIST): Add strdup.h.
18899         * modules/strftime (EXTRA_DIST): Add strftime.h.
18900         * modules/strndup (EXTRA_DIST): Add strndup.h.
18901         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
18902         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
18903         * modules/time_r (EXTRA_DIST): Add time_r.h.
18904         * modules/timespec (EXTRA_DIST): Add timespec.h.
18905         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
18906         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
18907         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
18908         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
18909         * modules/userspec (EXTRA_DIST): Add userspec.h.
18910         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
18911         * modules/utimens (EXTRA_DIST): Add utimens.h.
18912         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
18913         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
18914         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
18915         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
18916         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
18917         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
18918         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
18919         * modules/yesno (EXTRA_DIST): Add yesno.h.
18920
18921 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
18922
18923         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
18924
18925         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
18926         * m4/dev-ino.m4, same-inode.m4: Remove.
18927
18928         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
18929         * m4/acl.m4 (AC_FUNC_ACL):
18930         * m4/backupfile.m4 (gl_BACKUPFILE):
18931         * m4/c-strtod.m4 (gl_C99_STRTOLD):
18932         * m4/canon-host.m4 (gl_CANON_HOST):
18933         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
18934         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
18935         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
18936         * m4/cloexec.m4 (gl_CLOEXEC):
18937         * m4/close-stream.m4 (gl_CLOSE_STREAM):
18938         * m4/closeout.m4 (gl_CLOSEOUT):
18939         * m4/dirfd.m4 (gl_FUNC_DIRFD):
18940         * m4/dirname.m4 (gl_DIRNAME):
18941         * m4/exclude.m4 (gl_EXCLUDE):
18942         * m4/exitfail.m4 (gl_EXITFAIL):
18943         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
18944         * m4/file-type.m4 (gl_FILE_TYPE):
18945         * m4/filemode.m4 (gl_FILEMODE):
18946         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
18947         * m4/fpending.m4 (gl_FUNC_FPENDING):
18948         * m4/fprintftime.m4 (gl_FPRINTFTIME):
18949         * m4/fts.m4 (gl_FUNC_FTS):
18950         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
18951         * m4/getdate.m4 (gl_GETDATE):
18952         * m4/gethrxtime.m4 (gl_GETHRXTIME):
18953         * m4/getpagesize.m4 (gl_GETPAGESIZE):
18954         * m4/getpass.m4 (gl_FUNC_GETPASS):
18955         * m4/gettime.m4 (gl_GETTIME):
18956         * m4/getugroups.m4 (gl_GETUGROUPS):
18957         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
18958         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
18959         * m4/hard-locale.m4 (gl_HARD_LOCALE):
18960         * m4/hash.m4 (gl_HASH):
18961         * m4/idcache.m4 (gl_IDCACHE):
18962         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
18963         * m4/lchown.m4 (gl_FUNC_LCHOWN):
18964         * m4/long-options.m4 (gl_LONG_OPTIONS):
18965         * m4/lstat.m4 (gl_FUNC_LSTAT):
18966         * m4/md5.m4 (gl_MD5):
18967         * m4/memcasecmp.m4 (gl_MEMCASECMP):
18968         * m4/memcoll.m4 (gl_MEMCOLL):
18969         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
18970         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
18971         * m4/memxor.m4 (gl_MEMXOR):
18972         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
18973         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
18974         * m4/modechange.m4 (gl_MODECHANGE):
18975         * m4/mountlist.m4 (gl_MOUNTLIST):
18976         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
18977         * m4/openat.m4 (gl_FUNC_OPENAT):
18978         * m4/pathmax.m4 (gl_PATHMAX):
18979         * m4/physmem.m4 (gl_PHYSMEM):
18980         * m4/posixtm.m4 (gl_POSIXTM):
18981         * m4/posixver.m4 (gl_POSIXVER):
18982         * m4/quote.m4 (gl_QUOTE):
18983         * m4/quotearg.m4 (gl_QUOTEARG):
18984         * m4/readtokens.m4 (gl_READTOKENS):
18985         * m4/readutmp.m4 (gl_READUTMP):
18986         * m4/regex.m4 (gl_REGEX):
18987         * m4/safe-read.m4 (gl_SAFE_READ):
18988         * m4/safe-write.m4 (gl_SAFE_WRITE):
18989         * m4/same.m4 (gl_SAME):
18990         * m4/save-cwd.m4 (gl_SAVE_CWD):
18991         * m4/savedir.m4 (gl_SAVEDIR):
18992         * m4/settime.m4 (gl_SETTIME):
18993         * m4/sha1.m4 (gl_SHA1):
18994         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
18995         * m4/stat-macros.m4 (gl_STAT_MACROS):
18996         * m4/stat-time.m4 (gl_STAT_TIME):
18997         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
18998         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
18999         * m4/strdup.m4 (gl_FUNC_STRDUP):
19000         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
19001         * m4/strndup.m4 (gl_FUNC_STRNDUP):
19002         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
19003         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
19004         * m4/time_r.m4 (gl_TIME_R):
19005         * m4/timespec.m4 (gl_TIMESPEC):
19006         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
19007         * m4/unlinkdir.m4 (gl_UNLINKDIR):
19008         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
19009         * m4/userspec.m4 (gl_USERSPEC):
19010         * m4/utimecmp.m4 (gl_UTIMECMP):
19011         * m4/utimens.m4 (gl_UTIMENS):
19012         * m4/xalloc.m4 (gl_XALLOC):
19013         * m4/xgetcwd.m4 (gl_XGETCWD):
19014         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
19015         * m4/xreadlink.m4 (gl_XREADLINK):
19016         * m4/xstrtod.m4 (gl_XSTRTOD):
19017         * m4/yesno.m4 (gl_YESNO):
19018         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
19019         to get the necessary .h files and whatnot.
19020
19021 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
19022             Bruno Haible  <bruno@clisp.org>
19023
19024         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
19025         /bin/sh understanding of '!' conditional negation.
19026
19027 2006-08-21  Jim Meyering  <jim@meyering.net>
19028
19029         * modules/openat (Depends-on): Really alphabetize.
19030
19031         * modules/acl (Depends-on): Add error and quote.
19032
19033         * check-module (find_included_lib_files): Add at-func.c to the
19034         ok-to-include-more-than-once white list.
19035
19036         * modules/openat (Depends-on): Add lstat.  Alphabetize.
19037
19038 2006-08-21  Bruno Haible  <bruno@clisp.org>
19039
19040         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
19041         Emit a pkgdata_DATA variable only if some snippets add contents to it.
19042         Reported by Martin Lambers <marlam@marlam.de>.
19043
19044 2006-08-21  Bruno Haible  <bruno@clisp.org>
19045
19046         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
19047         specify an installation location, don't emit a noinst_LIBRARIES or
19048         noinst_LTLIBRARIES assignment.
19049
19050 2006-08-21  Bruno Haible  <bruno@clisp.org>
19051
19052         BeOS portability.
19053         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
19054         BeOS has mbrtowc() but no <wctype.h>.
19055
19056 2006-08-21  Bruno Haible  <bruno@clisp.org>
19057
19058         BeOS portability.
19059         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
19060         exist.
19061
19062 2006-08-21  Bruno Haible  <bruno@clisp.org>
19063
19064         BeOS portability.
19065         * lib/mbchar.h: Include <wctype.h> only if it exists.
19066
19067 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
19068
19069         Remove files that are no longer needed by their respective modules.
19070         * m4/obstack.m4: Remove.
19071         * m4/strerror_r.m4: Remove.
19072         * m4/uint32_t.m4: Remove.
19073         * m4/uintptr_t.m4: Remove.
19074         * m4/ullong_max.m4: Remove.
19075         * m4/xstrtoimax.m4: Remove.
19076         * m4/xstrtoumax.m4: Remove.
19077
19078         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
19079         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
19080         dependencies now capture this.
19081
19082         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
19083         Do not use AC_LIBSOURCES, since gnulib modules now do this.
19084         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
19085         * m4/human.m4 (gl_HUMAN): Likewise.
19086         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
19087         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
19088
19089         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
19090
19091         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
19092         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
19093         stdint.
19094         * m4/human.m4 (gl_HUMAN): Likewise.
19095         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
19096         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
19097         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
19098         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
19099         * m4/xstrtol (gl_XSTRTOL): Likewise.
19100
19101         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
19102         AC_TYPE_LONG_LONG_INT.
19103         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
19104         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
19105         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
19106         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
19107
19108         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
19109         on stdbool.
19110
19111         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
19112         (gl_PREREQ_XSTRTOUL): Remove.
19113
19114         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
19115
19116         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
19117         mode.
19118
19119 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
19120
19121         Add and change modules to make it easier for coreutils to use
19122         gnulib-tool.
19123         * modules/backupfile (Files): Remove m4/d-ino.m4.
19124         (Depends-on): Add d-ino.
19125         * modules/cycle-check (Depends-on): Add stdint.
19126         (lib_SOURCES): Add cycle-check.h.
19127         * modules/d-ino: New module.
19128         * modules/d-type: New module.
19129         * modules/error (Files): Remove m4/strerror_r.m4.
19130         * modules/filemode (Files): Add m4/st_dm_mode.m4.
19131         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
19132         m4/inttypes_h.m4, m4/uintmax_t.m4.
19133         (Depends-on): Add stdint.
19134         (lib_SOURCES): Add fsusage.h.
19135         * modules/getcwd (Files): Remove d-ino.m4.
19136         (Depends-on): Add d-ino.
19137         * modules/getndelim2 (Depends-on): Add stdint.
19138         * modules/glob (Files): Remove m4/d-type.m4.
19139         (Depends-on): Add d-type.
19140         * modules/host-os: New module.
19141         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
19142         m4/inttypes_h.m4, m4/uintmax_t.m4.
19143         * Depends-on: Add stdint.
19144         (lib_SOURCES): Add human.h.
19145         * modules/inttostr (Files): Remove m4/intmax_t.m4,
19146         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
19147         m4/uintmax_t.m4, m4/ulonglong.m4.
19148         (Depends-on): Add stdint.
19149         (EXTRA_DIST): Add inttostr.h.
19150         * modules/lchmod: New module.
19151         * modules/link-follow: New module.
19152         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
19153         (Depends-on): Add lchmod.
19154         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
19155         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
19156         (Depends-on): Add stdint.
19157         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
19158         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
19159         (Depends-on): Add stdint.
19160         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
19161         * modules/perl: New module.
19162         * modules/regex (Depends-on): Add stdint.
19163         * modules/rmdir-errno: New module.
19164         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
19165         m4/intmax_t.m4.
19166         (Depends-on): Add stdint.
19167         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
19168         m4/uintmax_t.m4.
19169         (Depends-on): Add stdint.
19170         * modules/unlink-busy: New module.
19171         * modules/utimecmp (Depends-on): Add stdint.
19172         * modules/uptime: New module.
19173         * modules/winsz-ioctl: New module.
19174         * modules/winsz-termios: New module.
19175         * modules/xnanosleep (Depends-on): Add nanosleep.
19176         * modules/ullong_max: Remove.
19177         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
19178         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
19179         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
19180         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
19181         (Depends-on): Add inttypes.
19182         (lib_SOURCES): Add xstrtol.h.
19183         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
19184         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
19185         * MODULES.html.sh: Move 'assert' into the assert section.
19186         Move 'dummy' into the linking section.
19187         Remove ullong_max.
19188         Add section for compatibility checks for POSIX:2001 functions,
19189         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
19190         winsz-ioctl, and winsz-termios into it.
19191         Add lchmod.
19192         Add top-level Misc section and put host-os, perl, and uptime
19193         into it.
19194
19195 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
19196
19197         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
19198         now assume the stdint module.  Do not include inttypes.h.
19199         * lib/fsusage.h: Likewise.
19200         * lib/getndelim2.c: Likewise.
19201         * lib/human.h: Likewise.
19202         * lib/inttostr.h: Likewise.
19203         * lib/obstack.c: Likewise.
19204         * lib/regex_internal.h: Likewise.
19205         * lib/tempname.c: Likewise.
19206         * lib/utimecmp.c: Likewise.
19207         * lib/xstrtol.h: Likewise.
19208
19209         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
19210
19211         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
19212         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
19213         * lib/xtime.h: Likewise.
19214
19215 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
19216
19217         * modules/openat (Files): Add lib/fchmodat.c.
19218         Fixes problem reported by Jay Youngman.
19219
19220 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
19221
19222         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
19223         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
19224
19225 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
19226             Bruno Haible  <bruno@clisp.org>
19227
19228         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
19229         and is a script that invokes bison. Tighten the code. Add comments.
19230
19231 2006-08-18  Jim Meyering  <jim@meyering.net>
19232
19233         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
19234         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
19235         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
19236         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
19237
19238 2006-08-18  Bruno Haible  <bruno@clisp.org>
19239
19240         * modules/bison-i18n: New file.
19241         * MODULES.html.sh (Internationalization functions): Add it.
19242
19243 2006-08-18  Bruno Haible  <bruno@clisp.org>
19244
19245         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
19246         sys/statvfs.h. When getmntinfo was found, check its declaration and
19247         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
19248
19249 2006-08-18  Bruno Haible  <bruno@clisp.org>
19250
19251         * m4/bison-i18n.m4: New file, from bison.
19252
19253 2006-08-18  Bruno Haible  <bruno@clisp.org>
19254
19255         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
19256         (ME_DUMMY): Treat "kernfs" as a dummy.
19257         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
19258
19259 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
19260
19261         Update from coreutils.
19262
19263         2006-08-15  Jim Meyering  <jim@meyering.net>
19264
19265         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
19266
19267         2006-01-17  Jim Meyering  <jim@meyering.net>
19268
19269         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
19270
19271         2006-01-11  Jim Meyering  <jim@meyering.net>
19272
19273         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
19274         Check for the lchmod function.
19275
19276 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
19277
19278         Update from coreutils.
19279
19280         * lib/__fpending.h: Add copyright notice.
19281         * lib/fprintftime.h: Likewise.
19282         * lib/savedir.c: Use (C) in copyright notice.
19283         * lib/savedir.h: Likewise.
19284
19285         2006-08-15  Jim Meyering  <jim@meyering.net>
19286
19287         * lib/at-func.c: New file, with the logic of all emulated at-functions.
19288         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
19289         in support of the EXPECTED_ERRNO macro.
19290         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
19291         definitions.  Instead, define the appropriate symbols and include
19292         "at-func.c".
19293         * lib/mkdirat.c (mkdirat): Likewise.
19294         * lib/fchmodat.c (fchmodat): Likewise.
19295         (ENOSYS): Remove definition.
19296         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
19297         it.  Don't include "unistd--.h" -- it wasn't ever used.
19298
19299         2006-01-17  Jim Meyering  <jim@meyering.net>
19300
19301         Rewrite fts.c not to change the current working directory,
19302         by using openat, fstatat, fdopendir, etc..
19303
19304         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
19305         (HAVE_OPENAT_SUPPORT): Define.
19306         [_LIBC] (fchdir): Don't undef or define; no longer used.
19307         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
19308         Now, this `function' always succeeds, and consumes its file descriptor
19309         parameter -- so callers must not close such FDs.  Update callers.
19310         (diropen_fd, opendirat, cwd_advance_fd): New functions.
19311         (diropen): Add parameter, SP.  Adjust all callers.
19312         Implement using diropen_fd, rather than open.
19313         (fts_open): Initialize new member, fts_cwd_fd.
19314         Remove fts_rft-setting code.
19315         (fts_close): Close fts_cwd_fd, if necessary.
19316         (__opendir2): Define in terms of opendir or opendirat,
19317         depending on whether the FST_NOCHDIR flag is set.
19318         (fts_build): Since fts_safe_changedir consumes its FD, and since
19319         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
19320         and close the dup'd file descriptor upon failure.
19321         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
19322         (fts_safe_changedir): Tweak semantics to reflect that this function
19323         now calls cwd_advance_fd and hence consumes its FD argument.
19324         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
19325         [struct FTS] (fts_rft): Remove now-unused member.
19326         [struct FTS] (fts_cycle.state): Improve comment.
19327
19328         * lib/openat.c (openat_needs_fchdir): New function.
19329         * lib/openat.h (openat_needs_fchdir): Declare it.
19330
19331 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
19332
19333         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
19334         Problem and fix reported by Pádraig Brady in
19335         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
19336
19337 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
19338
19339         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
19340
19341 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
19342
19343         * lib/memcoll.c (memcoll): Optimize for the common case where the
19344         arguments are bytewise equal.
19345
19346 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
19347
19348         * doc/regexprops-generic.texi: Add a copyright notice.
19349
19350 2006-08-15  Bruno Haible  <bruno@clisp.org>
19351
19352         * modules/tmpdir (License): Change to LGPL.
19353
19354 2006-08-15  Bruno Haible  <bruno@clisp.org>
19355
19356         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
19357         module.
19358
19359 2006-08-14  Simon Josefsson  <jas@extundo.com>
19360
19361         * config/srclist.txt: Add gnupload.
19362
19363 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
19364
19365         Change copyright notice from LGPL 2 to GPL 2, since that's the
19366         standard form used in the gnulib repository.
19367         * tests/test-lock.c: Likewise.
19368         * tests/test-stdint.c: Likewise.
19369         * tests/test-tls.c: Likewise.
19370
19371         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
19372         prelude-manager.  User shorter URLs for GNU projects, without '?'.
19373         Add copyright notice.
19374
19375         * check-module: Add copyright notice.  Output a copyright
19376         notice if "--version" is specified.
19377         * modules/COPYING: New file.
19378         * tests/test-getaddrinfo.c: Add copyright notice.
19379         * tests/test-verify.c: Likewise.
19380
19381 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
19382
19383         Change copyright notice from LGPL 2 to GPL 2, since that's the
19384         standard form used in the gnulib repository.
19385         * lib/lock.c: LGPL -> GPL.
19386         * lib/lock.h: Likewise.
19387         * lib/strnlen1.c: Likewise.
19388         * lib/strnlen1.h: Likewise.
19389         * lib/tls.c: Likewise.
19390         * lib/tls.h: Likewise.
19391         * lib/tmpdir.c: Likewise.
19392
19393         * lib/TODO: Remove; this belongs only in coreutils.
19394
19395 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
19396
19397         Add copyright notices to long-enough files that lack them, since
19398         otherwise the files aren't clearly free.  Use the same notice that
19399         getdate.texi already uses.
19400         * doc/alloca-opt.texi: Add copyright notice.
19401         * doc/alloca.texi: Likewise.
19402         * doc/ctime.texi: Likewise.
19403         * doc/functions.texi: Likewise.
19404         * doc/gcd.texi: Likewise.
19405         * doc/gnulib-tool.texi: Likewise.
19406         * doc/inet_ntoa.texi: Likewise.
19407         * doc/visibility.texi: Likewise.
19408
19409         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
19410         * doc/quote.texi: Add copyright notice.
19411
19412         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
19413         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
19414         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
19415         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
19416         is now obsolete, and give a pointer to the Sun list.
19417         Add copyright notice.
19418
19419 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
19420
19421         * config/srclistvars.sh: Add copyright notice.
19422
19423 2006-08-14  Eric Blake  <ebb9@byu.net>
19424
19425         Import the following change from libc:
19426
19427         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
19428
19429         Upstream bug 2997.
19430         * lib/misc/error.c: Add space between program name and message if file
19431         name is missing.
19432
19433 2006-08-12  Karl Berry  <karl@gnu.org>
19434
19435         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
19436         remove, these originate in gnulib now.
19437
19438 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19439
19440         * doc/Makefile (standards.info standards.html standards.dvi):
19441         Also depend on make-stds.texi.
19442
19443 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
19444
19445         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
19446         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
19447
19448         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
19449         in wchar_t.  Problem reported by Eric Blake.
19450
19451         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
19452         LEN is smaller than SIZE.  Suggested by Bruno Haible.
19453         Also, help the compiler to keep LEN in a register.
19454
19455 2006-08-11  Eric Blake  <ebb9@byu.net>
19456
19457         * users.txt: Sort.  Add tar.
19458
19459 2006-08-11  Bruno Haible  <bruno@clisp.org>
19460
19461         * users.txt: New file.
19462
19463 2006-08-11  Bruno Haible  <bruno@clisp.org>
19464
19465         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
19466         before <wchar.h>. Needed for OSF/1 and BSD/OS.
19467
19468 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
19469
19470         * modules/snprintf (Depends-on): Remove minmax.
19471         (Maintainer): Add self and Bruno.
19472
19473 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
19474
19475         * lib/.cppi-disable: Add snprintf.h, socket_.h.
19476         * lib/snprintf.c: Include <errno.h> and <limits.h>.
19477         (EOVERFLOW): Define if the system does not.
19478         Do not include "minmax.h"; it wasn't used.
19479         (snprintf): Don't assume size_t promotes to an unsigned type.
19480         Fix bug when generated string was too long for the buffer: the
19481         buffer's contents are supposed to be the initial prefix of the
19482         output.  Don't assume vasnprintf returns EOVERFLOW if the size
19483         exceeds INT_MAX; do the check ourselves.
19484
19485         Import the following changes from libc:
19486
19487         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
19488
19489         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
19490         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
19491         set wc to the byte which couldn't be converted.
19492         (re_string_reconstruct): Don't clear valid_raw_len before calling
19493         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
19494         tip_context using re_string_context_at.
19495
19496         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
19497
19498         * lib/posix/regex.h: g++ still cannot handled [restrict].
19499
19500         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
19501
19502         * lib/posix/regex.h: Remove special handling for VMS.
19503
19504 2006-08-10  Jim Meyering  <jim@meyering.net>
19505
19506         * modules/same-inode: New module.
19507         * modules/dev-ino: New module.
19508         * modules/cycle-check: Depend on these modules, rather than simply
19509         including their .h files.
19510         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
19511         required via m4/cycle-check.m4.
19512         * modules/same: Depend on new same-inode module, rather than
19513         including same-inode.h.
19514         * modules/chdir-safer: New file.
19515
19516         * modules/chown (Depends-on): Add stat-macros.
19517
19518 2006-08-10  Jim Meyering  <jim@meyering.net>
19519
19520         * m4/cycle-check.m4: New file.
19521         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
19522         * m4/dev-ino.m4, m4/same-inode.m4: New files.
19523
19524 2006-08-10  Eric Blake  <ebb9@byu.net>
19525
19526         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
19527         in from original proposal.
19528
19529 2006-08-10  Eric Blake  <ebb9@byu.net>
19530         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19531
19532         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
19533         namespace.
19534
19535 2006-08-10  Bruno Haible  <bruno@clisp.org>
19536
19537         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
19538         as well.
19539
19540 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
19541
19542         Sync from coreutils.
19543
19544         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
19545
19546         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
19547         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
19548
19549 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
19550
19551         * modules/restrict: Remove; no longer needed now that we assume
19552         Autoconf 2.59 or later.
19553         * MODULES.html.sh: Remove 'restrict'.
19554         * modules/argp (Depends-on): Remove 'restrict'.
19555         * modules/base64 (Depends-on): Likewise.
19556         * modules/gc (Depends-on): Likewise.
19557         * modules/getaddrinfo (Depends-on): Likewise.
19558         * modules/glob (Depends-on): Likewise.
19559         * modules/inet_ntop (Depends-on): Likewise.
19560         * modules/inet_pton (Depends-on): Likewise.
19561         * modules/memxor (Depends-on): Likewise.
19562         * modules/regex (Depends-on): Likewise.
19563         * modules/strtok_r (Depends-on): Likewise.
19564         * modules/time_r (Depends-on): Likewise.
19565
19566 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
19567
19568         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
19569         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
19570         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
19571         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
19572         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
19573         * m4/memxor.m4 (gl_MEMXOR): Likewise.
19574         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
19575         gl_C_RESTRICT replaced by AC_C_RESTRICT.
19576
19577         Merge from coreutils.
19578         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
19579         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
19580         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
19581         * m4/time_r.m4 (gl_TIME_R): Likewise.
19582
19583 2006-08-09  Karl Berry  <karl@gnu.org>
19584
19585         * config/srclist.txt: no more gettext-tools, per Bruno.
19586
19587 2006-08-08  Eric Blake  <ebb9@byu.net>
19588
19589         * modules/verror: New module.
19590         * MODULES.html.sh: Document it.
19591
19592 2006-08-08  Eric Blake  <ebb9@byu.net>
19593
19594         * lib/verror.h, lib/verror.c: New files.
19595
19596 2006-08-08  Eric Blake  <ebb9@byu.net>
19597
19598         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
19599         verror_at_line output complies with GNU Coding Standards even when
19600         file is NULL.
19601
19602 2006-08-07  Bruno Haible  <bruno@clisp.org>
19603
19604         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
19605         versions of AIX.
19606         Reported by Ralf Wildenhues.
19607
19608 2006-08-07  Bruno Haible  <bruno@clisp.org>
19609
19610         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
19611         in an AC_DEFUN. Needed so that the autoconf snippets can use
19612         AC_REQUIRE.
19613
19614 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19615
19616         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
19617         Initialize pkgdata_DATA.
19618         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
19619         overriding it.
19620
19621 2006-08-06  Eric Blake  <ebb9@byu.net>
19622
19623         * lib/error.h: Fold in some upstream changes from glibc.
19624         * lib/error.c: Likewise.
19625
19626 2006-08-04  Bruno Haible  <bruno@clisp.org>
19627
19628         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
19629         Make the mostlyclean-local rule depend on mostlyclean-generic.
19630         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
19631
19632 2006-07-31  Bruno Haible  <bruno@clisp.org>
19633
19634         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
19635         <stdlib.h>, <string.h>.
19636
19637 2006-07-30  Bruno Haible  <bruno@clisp.org>
19638
19639         * modules/readlink (License): Change to LGPL.
19640
19641 2006-07-30  Bruno Haible  <bruno@clisp.org>
19642
19643         * modules/javaversion (Makefile.am): Distribute javaversion.java and
19644         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
19645         set PKGDATADIR to point to it.
19646
19647 2006-07-30  Bruno Haible  <bruno@clisp.org>
19648
19649         * modules/csharpexec (configure.ac): Comment out macro invocation.
19650         * modules/javaexec (configure.ac): Likewise.
19651         * modules/javacomp-script (configure.ac): Likewise.
19652
19653         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
19654
19655 2006-07-30  Bruno Haible  <bruno@clisp.org>
19656
19657         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
19658         linked-list.
19659
19660 2006-07-30  Bruno Haible  <bruno@clisp.org>
19661
19662         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
19663
19664 2006-07-30  Bruno Haible  <bruno@clisp.org>
19665
19666         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
19667         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
19668         get removed.
19669
19670 2006-07-29  Bruno Haible  <bruno@clisp.org>
19671
19672         Make it possible for gnulib-tool to work with locally modified or
19673         augmented gnulib repositories.
19674         * gnulib-tool (func_usage): Document --local-dir option.
19675         (local_gnulib_dir): New variable.
19676         Handle --local-dir option.
19677         (func_lookup_file): New function.
19678         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
19679         (func_get_description, func_get_filelist, func_get_description,
19680         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
19681         func_get_automake_snippet, func_get_include_directive,
19682         func_get_license, func_get_maintainer): Use func_lookup_file.
19683         (func_import, func_create_testdir): Use func_lookup_file.
19684
19685 2006-07-29  Bruno Haible  <bruno@clisp.org>
19686
19687         * modules/setenv (Depends-on): Add unistd.
19688
19689 2006-07-29  Bruno Haible  <bruno@clisp.org>
19690
19691         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
19692
19693 2006-07-29  Bruno Haible  <bruno@clisp.org>
19694
19695         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
19696
19697 2006-07-29  Bruno Haible  <bruno@clisp.org>
19698
19699         * gnulib-tool (import, update): If there is no Makefile.am, look at
19700         aclocal.m4, instead of bailing out.
19701
19702 2006-07-29  Bruno Haible  <bruno@clisp.org>
19703
19704         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
19705         Categorize the options by when they are useful.
19706
19707 2006-07-29  Bruno Haible  <bruno@clisp.org>
19708
19709         * gnulib-tool (func_usage): Document option --no-libtool.
19710         Handle option --no-libtool.
19711         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
19712         for changed semantics of $libtool variable.
19713         (func_import): Likewise. If libtool is not used, show this through
19714         an option --no-libtool.
19715         (func_create_testdir): Update.
19716
19717 2006-07-29  Bruno Haible  <bruno@clisp.org>
19718
19719         * gnulib-tool (func_import): Extend error message about missing
19720         --doc-base.
19721
19722 2006-07-29  Bruno Haible  <bruno@clisp.org>
19723
19724         * gnulib-tool (func_import): Don't create the $docbase directory if
19725         there is no file to store there.
19726
19727 2006-07-29  Bruno Haible  <bruno@clisp.org>
19728
19729         * gnulib-tool (autoconf_minversion): If a --dir option is given and
19730         relevant, look for configure.ac there, not in the current directory.
19731         Also use a simple search for AC_PREREQ, not "autoconf --trace".
19732
19733 2006-07-29  Bruno Haible  <bruno@clisp.org>
19734
19735         * gnulib-tool (SORT): New variable.
19736         (func_usage): Undocument --assume-autoconf option.
19737         Remove --assume-autoconf option handling.
19738         (autoconf_minversion): Determine from the contents of configure.ac.
19739         (func_import): Remove autoconf_minversion handling.
19740         Suggested by Eric Blake.
19741
19742 2006-07-29  Bruno Haible  <bruno@clisp.org>
19743
19744         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
19745
19746 2006-07-29  Bruno Haible  <bruno@clisp.org>
19747
19748         * config/srclist.txt (*setenv.[ch]): Remove rules.
19749
19750 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19751
19752         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
19753
19754 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19755
19756         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
19757         arpa/inet.h.
19758
19759 2006-07-28  Simon Josefsson  <jas@extundo.com>
19760
19761         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
19762         * modules/inet_pton (Depends-on): Likewise.
19763
19764 2006-07-28  Simon Josefsson  <jas@extundo.com>
19765
19766         * m4/netinet_in_h.m4: New file.
19767
19768 2006-07-28  Simon Josefsson  <jas@extundo.com>
19769
19770         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
19771         #include's.
19772
19773 2006-07-28  Simon Josefsson  <jas@extundo.com>
19774
19775         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
19776         #include's.
19777
19778 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
19779
19780         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
19781         setgid on directories only if they set these bits.
19782         * lib/modechange.h: Remove obsolete comment about masks.
19783
19784 2006-07-28  Eric Blake  <ebb9@byu.net>
19785
19786         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
19787         macro expansion.
19788
19789 2006-07-28  Bruno Haible  <bruno@clisp.org>
19790
19791         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
19792
19793 2006-07-28  Bruno Haible  <bruno@clisp.org>
19794
19795         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
19796
19797 2006-07-28  Bruno Haible  <bruno@clisp.org>
19798
19799         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
19800         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
19801         Define fallbacks.
19802         Avoids link error on FreeBSD 4.x.
19803         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
19804
19805         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
19806         encoding.
19807         * lib/mbswidth.c (iswcntrl): Likewise.
19808
19809 2006-07-27  Bruno Haible  <bruno@clisp.org>
19810
19811         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
19812         test.
19813
19814 2006-07-27  Bruno Haible  <bruno@clisp.org>
19815
19816         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
19817         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
19818         defined.
19819
19820 2006-07-26  Eric Blake  <ebb9@byu.net>
19821
19822         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
19823
19824 2006-07-26  Eric Blake  <ebb9@byu.net>
19825
19826         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
19827         like mingw that lack mkstemp.
19828         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
19829         avoid compilation warning on mingw.
19830
19831 2006-07-26  Bruno Haible  <bruno@clisp.org>
19832
19833         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
19834         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
19835         INT_FAST*_MIN, INTPTR_MIN.
19836
19837 2006-07-25  Bruno Haible  <bruno@clisp.org>
19838
19839         * modules/version-etc (Depends-on): Add stdarg.
19840
19841 2006-07-25  Bruno Haible  <bruno@clisp.org>
19842
19843         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
19844         complex commands.
19845
19846 2006-07-25  Bruno Haible  <bruno@clisp.org>
19847
19848         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
19849         defined in <stdarg.h> or config.h.
19850
19851 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
19852
19853         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
19854         (gl_STDIO_SAFER): Remove.
19855
19856 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
19857
19858         * MODULES.html.sh (File stream based Input/Output):
19859         Add fopen-safer, tmpfile-safer; remove stdio-safer.
19860         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
19861         * modules/fopen-safer, modules/tmpfile-safer: New files.
19862         * modules/stdio-safer: Remove.
19863
19864 2006-07-24  Bruno Haible  <bruno@clisp.org>
19865
19866         * modules/tmpdir: New file.
19867         * MODULES.html.sh (File system functions): Add it.
19868
19869 2006-07-24  Bruno Haible  <bruno@clisp.org>
19870
19871         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
19872         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
19873
19874 2006-07-24  Bruno Haible  <bruno@clisp.org>
19875
19876         * modules/clean-temp: New file.
19877
19878 2006-07-24  Bruno Haible  <bruno@clisp.org>
19879
19880         * m4/tmpdir.m4: New file, from GNU gettext.
19881
19882 2006-07-24  Bruno Haible  <bruno@clisp.org>
19883
19884         * lib/tmpdir.h: New file, from GNU gettext.
19885         * lib/tmpdir.c: New file, from GNU gettext.
19886
19887 2006-07-24  Bruno Haible  <bruno@clisp.org>
19888
19889         * lib/clean-temp.h: New file, from GNU gettext.
19890         * lib/clean-temp.c: New file, from GNU gettext.
19891
19892 2006-07-23  Eric Blake  <ebb9@byu.net>
19893
19894         * modules/stdio-safer (Files): Add tmpfile-safer.c.
19895         (Depends-on): Add binary-io.
19896
19897 2006-07-23  Eric Blake  <ebb9@byu.net>
19898
19899         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
19900
19901 2006-07-23  Eric Blake  <ebb9@byu.net>
19902
19903         * lib/tmpfile-safer.c: New file.
19904         * lib/stdio-safer.h (fopen_safer): Add prototype.
19905         * lib/stdio--.h (tmpfile): Make safer.
19906
19907 2006-07-23  Bruno Haible  <bruno@clisp.org>
19908
19909         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
19910         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
19911         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
19912         gl_linked_remove_at): Use it.
19913
19914 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19915         and Simon Josefsson <jas@extundo.com>
19916
19917         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
19918
19919         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
19920
19921 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
19922
19923         * modules/close-stream: New file.
19924         * modules/closeout (Description): Make it clear that it exits
19925         with a diagnostic on error.
19926         (Depends-on): Add close-stream.  Remove fpending, stdbool.
19927         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
19928
19929 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
19930
19931         * m4/close-stream.m4: New file.
19932
19933 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
19934
19935         * lib/close-stream.c, lib/close-stream.h: New files.
19936
19937 2006-07-22  Bruno Haible  <bruno@clisp.org>
19938
19939         Merge from GNU gettext 0.15.
19940
19941         2006-05-01  Bruno Haible  <bruno@clisp.org>
19942
19943                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
19944
19945         2006-07-22  Bruno Haible  <bruno@clisp.org>
19946
19947                 * modules/javaversion: New file.
19948                 * MODULES.html.sh (Java): Add javaversion.
19949
19950         2006-03-12  Bruno Haible  <bruno@clisp.org>
19951
19952                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
19953
19954         2005-12-04  Bruno Haible  <bruno@clisp.org>
19955
19956                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
19957                 (untested).
19958
19959         2006-06-21  Bruno Haible  <bruno@clisp.org>
19960
19961                 Avoid warnings from recent versions of mcs.
19962                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
19963                 -o, -L, -r any more. Use options documented since mcs-1.0
19964                 instead. Similarly for -g.
19965
19966         2005-12-04  Bruno Haible  <bruno@clisp.org>
19967
19968                 * build-aux/csharpcomp.sh.in: Suffix for resources is
19969                 .resources, not .resource.
19970
19971         2005-07-09  Bruno Haible  <bruno@clisp.org>
19972
19973                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
19974                 add a .dll suffix.
19975                 Reported by Mark Junker <mjscod@gmx.de>.
19976
19977         2006-07-22  Bruno Haible  <bruno@clisp.org>
19978
19979                 * modules/gettext: Upgrade to gettext-0.15.
19980                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
19981                 m4/visibility.m4.
19982                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
19983
19984 2006-07-22  Bruno Haible  <bruno@clisp.org>
19985
19986         Merge from GNU gettext 0.15.
19987
19988         2006-03-25  Bruno Haible  <bruno@clisp.org>
19989
19990                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
19991
19992         2006-07-21  Bruno Haible  <bruno@clisp.org>
19993
19994                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
19995                 "1.1".
19996
19997         2006-05-09  Bruno Haible  <bruno@clisp.org>
19998
19999                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
20000                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
20001                 for the conftestver execution.
20002
20003         2006-05-01  Bruno Haible  <bruno@clisp.org>
20004
20005                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
20006                 optional target-version argument. Verify that the compiler
20007                 groks source of the specified source-version, or add -source
20008                 option as necessary. Verify that the compiler produces
20009                 bytecode in the specified target-version, or add -target and
20010                 -source options as necessary. Make the result of the test
20011                 available as variable CONF_JAVAC. Also log error output in
20012                 config.log.
20013
20014         2006-03-11  Bruno Haible  <bruno@clisp.org>
20015
20016                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
20017
20018         2006-05-09  Bruno Haible  <bruno@clisp.org>
20019
20020                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
20021                 CLASSPATH_SEPARATOR to a semicolon.
20022
20023         2006-03-12  Bruno Haible  <bruno@clisp.org>
20024
20025                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
20026                 available as variable CONF_JAVA, for subsequent autoconf
20027                 tests. Also log error output in config.log.
20028
20029         2006-07-19  Bruno Haible  <bruno@clisp.org>
20030
20031                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
20032                 that getline works on glibc2 systems. Needed to avoid trouble
20033                 in relocatable.c.
20034                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
20035
20036         2005-12-04  Bruno Haible  <bruno@clisp.org>
20037
20038                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
20039                 launcher (untested).
20040
20041         2005-12-04  Bruno Haible  <bruno@clisp.org>
20042
20043                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
20044
20045         2006-07-22  Bruno Haible  <bruno@clisp.org>
20046
20047                 * gettext.m4: Update from GNU gettext-0.15.
20048                 * nls.m4: Likewise.
20049                 * po.m4: Likewise.
20050                 * inttypes-pri.m4: Likewise.
20051                 * inttypes-h.m4: Renamed from inttypes.m4.
20052                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
20053
20054 2006-07-22  Bruno Haible  <bruno@clisp.org>
20055
20056         Merge from GNU gettext 0.15.
20057
20058         2005-07-05  Bruno Haible  <bruno@clisp.org>
20059
20060                 * printf-args.c (printf_fetchargs): Work around broken
20061                 definition of wint_t on mingw.
20062
20063         2005-02-12  Bruno Haible  <bruno@clisp.org>
20064
20065                 * xallocsa.h: Add extern "C" for C++.
20066
20067         2006-05-17  Bruno Haible  <bruno@clisp.org>
20068
20069                 Cygwin portability.
20070                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
20071
20072         2006-04-30  Bruno Haible  <bruno@clisp.org>
20073
20074                 * progreloc.c: Include <mach-o/dyld.h> if available.
20075                 (find_executable): Use _NSGetExecutablePath when possible.
20076
20077         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
20078
20079                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
20080                 function.
20081
20082         2005-12-29  Bruno Haible  <bruno@clisp.org>
20083
20084                 * progreloc.c (set_program_name_and_installdir): Fix
20085                 compilation error.
20086
20087         2005-12-04  Bruno Haible  <bruno@clisp.org>
20088
20089                 Cygwin portability.
20090                 * progreloc.c: Include <windows.h> also on Cygwin.
20091                 (find_executable): Add support for Cygwin.
20092                 (set_program_name_and_installdir): Handle also platforms with
20093                 nonempty EXEEXT.
20094
20095         2006-07-11  Bruno Haible  <bruno@clisp.org>
20096
20097                 * javacomp.c: Fix a comment.
20098                 Reported by Jim Meyering.
20099
20100         2006-04-30  Bruno Haible  <bruno@clisp.org>
20101
20102                 * javacomp.h (compile_java_class): Add source_version,
20103                 target_version arguments.
20104                 * javacomp.c: Rewritten to choose only a compiler that
20105                 respects the specified source_version and target_version.
20106
20107         2006-06-27  Bruno Haible  <bruno@clisp.org>
20108
20109                 Assume correct S_ISDIR macro.
20110                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
20111
20112         2006-07-22  Bruno Haible  <bruno@clisp.org>
20113
20114                 * javaversion.h: New file, from GNU gettext.
20115                 * javaversion.c: New file, from GNU gettext.
20116                 * javaversion.java: New file, from GNU gettext.
20117                 * javaversion.class: New file, from GNU gettext.
20118
20119         2006-05-17  Bruno Haible  <bruno@clisp.org>
20120
20121                 Cygwin portability.
20122                 * javaexec.c (execute_java_class): Test for jview program
20123                 also on Cygwin.
20124
20125         2006-04-09  Bruno Haible  <bruno@clisp.org>
20126
20127                 * fatal-signal.c: Don't include string.h.
20128                 (at_fatal_signal): Use a copying loop instead of memcpy.
20129
20130         2005-12-04  Bruno Haible  <bruno@clisp.org>
20131
20132                 * csharpexec.c: Add support for 'clix' launcher (untested).
20133                 (execute_csharp_using_sscli): New function.
20134                 (execute_csharp_program): Call it.
20135
20136         2006-06-21  Bruno Haible  <bruno@clisp.org>
20137
20138                 Avoid warnings from recent versions of mcs.
20139                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
20140                 -o, -L, -r any more. Use options documented since mcs-1.0
20141                 instead. Similarly for -g.
20142
20143         2005-07-09  Bruno Haible  <bruno@clisp.org>
20144
20145                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
20146                 add a .dll suffix.
20147                 Reported by Mark Junker <mjscod@gmx.de>.
20148
20149         2006-06-17  Bruno Haible  <bruno@clisp.org>
20150
20151                 * config.charset: Update for NetBSD 3.0.
20152
20153         2006-05-17  Bruno Haible  <bruno@clisp.org>
20154
20155                 Cygwin portability.
20156                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
20157
20158         2006-05-16  Bruno Haible  <bruno@clisp.org>
20159
20160                 * localcharset.c [CYGWIN]: Include <windows.h>.
20161                 (get_charset_aliases): For Cygwin, return the same CPxxx
20162                 aliases list as under WIN32.
20163                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
20164                 the environment variables. Fall back to GetACP().
20165
20166         2006-04-05  Bruno Haible  <bruno@clisp.org>
20167
20168                 * config.charset: Update Juan Manuel Guerrero's address.
20169
20170         2005-02-12  Bruno Haible  <bruno@clisp.org>
20171
20172                 * allocsa.h: Add extern "C" for C++.
20173
20174         2005-02-10  Bruno Haible  <bruno@clisp.org>
20175
20176                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
20177                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
20178
20179         2006-07-22  Bruno Haible  <bruno@clisp.org>
20180
20181                 * gettext.h: Update to GNU gettext-0.15.
20182
20183 2006-07-22  Bruno Haible  <bruno@clisp.org>
20184
20185         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
20186         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
20187         lib-prefix.m4, longdouble.m4, ssize_t.m4.
20188
20189 2006-07-21  Eric Blake  <ebb9@byu.net>
20190
20191         * modules/stdlib-safer: New file.
20192         * MODULES.html.sh (File stream based Input/Output): Add
20193         stdlib-safer.
20194
20195 2006-07-21  Eric Blake  <ebb9@byu.net>
20196
20197         * lib/stdlib-safer.h: New file from coreutils, required by
20198         stdlib--.h.
20199
20200 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
20201
20202         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
20203
20204 2006-07-20  Bruno Haible  <bruno@clisp.org>
20205
20206         * gnulib-tool: Recognize new option --assume-autoconf.
20207         (autoconf_minversion): New variable.
20208         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
20209
20210 2006-07-20  Bruno Haible  <bruno@clisp.org>
20211
20212         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
20213
20214 2006-07-19  Derek R. Price  <derek@ximbiot.com>
20215
20216         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
20217         Reindent and repaginate.
20218
20219 2006-07-19  Derek Price  <derek@ximbiot.com>
20220
20221         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
20222         Correct grammar.
20223
20224 2006-07-17  Bruno Haible  <bruno@clisp.org>
20225
20226         * modules/list: New file.
20227         * modules/array-list: New file.
20228         * modules/carray-list, modules/carray-list-tests: New files.
20229         * modules/linked-list, modules/linked-list-tests: New files.
20230         * modules/avltree-list, modules/avltree-list-tests: New files.
20231         * modules/rbtree-list, modules/rbtree-list-tests: New files.
20232         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
20233         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
20234         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
20235         * modules/oset: New file.
20236         * modules/array-oset: New file.
20237         * modules/avltree-oset, modules/avltree-oset-tests: New files.
20238         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
20239         * tests/test-carray_list.c: New file.
20240         * tests/test-linked_list.c: New file.
20241         * tests/test-avltree_list.c: New file.
20242         * tests/test-rbtree_list.c: New file.
20243         * tests/test-linkedhash_list.c: New file.
20244         * tests/test-avltreehash_list.c: New file.
20245         * tests/test-rbtreehash_list.c: New file.
20246         * tests/test-avltree_oset.c: New file.
20247         * tests/test-rbtree_oset.c: New file.
20248         * MODULES.html.sh (Container data structures): New section.
20249
20250 2006-07-17  Bruno Haible  <bruno@clisp.org>
20251
20252         * m4/gl_list.m4: New file.
20253
20254 2006-07-17  Bruno Haible  <bruno@clisp.org>
20255
20256         * lib/gl_list.h: New file.
20257         * lib/gl_list.c: New file.
20258         * lib/gl_array_list.h: New file.
20259         * lib/gl_array_list.c: New file.
20260         * lib/gl_carray_list.h: New file.
20261         * lib/gl_carray_list.c: New file.
20262         * lib/gl_linked_list.h: New file.
20263         * lib/gl_linked_list.c: New file.
20264         * lib/gl_anylinked_list1.h: New file.
20265         * lib/gl_anylinked_list2.h: New file.
20266         * lib/gl_avltree_list.h: New file.
20267         * lib/gl_avltree_list.c: New file.
20268         * lib/gl_anyavltree_list1.h: New file.
20269         * lib/gl_anyavltree_list2.h: New file.
20270         * lib/gl_rbtree_list.h: New file.
20271         * lib/gl_rbtree_list.c: New file.
20272         * lib/gl_anyrbtree_list1.h: New file.
20273         * lib/gl_anyrbtree_list2.h: New file.
20274         * lib/gl_anytree_list1.h: New file.
20275         * lib/gl_anytree_list2.h: New file.
20276         * lib/gl_linkedhash_list.h: New file.
20277         * lib/gl_linkedhash_list.c: New file.
20278         * lib/gl_anyhash_list1.h: New file.
20279         * lib/gl_anyhash_list2.h: New file.
20280         * lib/gl_avltreehash_list.h: New file.
20281         * lib/gl_avltreehash_list.c: New file.
20282         * lib/gl_rbtreehash_list.h: New file.
20283         * lib/gl_rbtreehash_list.c: New file.
20284         * lib/gl_anytreehash_list1.h: New file.
20285         * lib/gl_anytreehash_list2.h: New file.
20286
20287         * lib/gl_oset.h: New file.
20288         * lib/gl_oset.c: New file.
20289         * lib/gl_array_oset.h: New file.
20290         * lib/gl_array_oset.c: New file.
20291         * lib/gl_avltree_oset.h: New file.
20292         * lib/gl_avltree_oset.c: New file.
20293         * lib/gl_rbtree_oset.h: New file.
20294         * lib/gl_rbtree_oset.c: New file.
20295         * lib/gl_anytree_oset.h: New file.
20296
20297 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
20298
20299         * m4/mkancesdirs.m4: New file.
20300         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
20301         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
20302         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
20303         it.
20304
20305 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
20306
20307         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
20308         * lib/mkancesdirs.h: New files.
20309         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
20310         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
20311         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
20312         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
20313         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
20314         callers changed.  Revamp internals significantly, by not
20315         attempting to create directories that are temporarily more
20316         permissive than the final results.  Do not attempt to use
20317         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
20318         This removes some race conditions, fixes some bugs, and simplifies
20319         things.  Use new dirchownmod function to do owner and mode changes.
20320         * lib/mkdir-p.h: Likewise.
20321         * lib/modechange.c (octal_to_mode): New function.
20322         (struct mode_change): New member mentioned.
20323         (make_node_op_equals): New arg mentioned.  All callers changed.
20324         (mode_compile): Keep track of which mode bits the user has explicitly
20325         mentioned.
20326         (mode_adjust): New arg DIR, so that we implement the X op correctly.
20327         New arg PMODE_BITS, to keep track of which mode bits the user
20328         mentioned; it treats S_ISUID and S_ISGID speciall.
20329         All callers changed.
20330         * lib/modechange.h: Likewise.
20331
20332 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
20333
20334         * MODULES.html.sh: Add mkancestors.
20335         * modules/mkancesdirs: New module.
20336         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
20337         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
20338         The chdir-safer and afs files are now orphans; I'll remove them
20339         unless someone speaks up.
20340         Add lib/dirchownmod.c, lib/dirchownmod.h.
20341         (Depends-on): Remove alloca, chown, save-cwd, dirname.
20342         Add lchown, mkancesdirs.
20343         (Maintainer): Add self.
20344
20345 2006-07-15  Karl Berry  <karl@gnu.org>
20346
20347         * gnulib-tool: help message wording/arrangement.
20348
20349 2006-07-14  Simon Josefsson  <jas@extundo.com>
20350
20351         * doc/gnulib.texi (Libtool and Windows): New section.
20352
20353 2006-07-12  Simon Josefsson  <jas@extundo.com>
20354
20355         * modules/gendocs (License): Fix license, approved by Karl.
20356
20357 2006-07-12  Eric Blake  <ebb9@byu.net>
20358
20359         * MODULES.html.sh: Add gendocs.
20360
20361 2006-07-11  Eric Blake  <ebb9@byu.net>
20362
20363         * modules/fdl: New module, to install doc/fdl.texi.
20364         * MODULES.html.sh: Add new section for documentation modules.
20365         * gnulib-tool: Avoid space-tab.
20366         (--doc-base): New option, to manage files from doc.
20367
20368 2006-07-11  Eric Blake  <ebb9@byu.net>
20369
20370         * m4/absolute-header.m4: Fix comments to match recent change.
20371
20372 2006-07-11  Eric Blake  <ebb9@byu.net>
20373
20374         * gnulib-tool: List --doc-base before --tests-base.
20375
20376 2006-07-11  Derek R. Price  <derek@ximbiot.com>
20377
20378         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
20379
20380 2006-07-11  Bruno Haible  <bruno@clisp.org>
20381
20382         * README: Mention where to put documentation.
20383
20384 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20385
20386         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
20387
20388 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
20389
20390         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
20391         to stdint.m4.
20392
20393 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
20394
20395         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
20396         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
20397         "no/such/file/stdint.h" when there is no such file, so that
20398         the resulting C code can be parsed by dodgy compilers.
20399         Problems reported by Bob Proulx.
20400
20401 2006-07-10  Derek R. Price  <derek@ximbiot.com>
20402
20403         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
20404         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
20405         macros into the GNU _D_EXACT_NAMLEN.
20406         * lib/savedir.c:  Likewise.
20407         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
20408
20409 2006-07-10  Derek R. Price  <derek@ximbiot.com>
20410         and Paul Eggert  <eggert@cs.ucla.edu>
20411
20412         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
20413         * m4/savedir.m4:
20414         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
20415         macros into the GNU _D_EXACT_NAMLEN.
20416
20417 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
20418
20419         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
20420         around the absolute name, to work around a problem with the HP-UX
20421         11.23 native C compiler, reported by Bob Proulx.
20422
20423 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
20424
20425         * doc/maintain.texi, make-stds.texi: Sync from
20426         <http://savannah.gnu.org/projects/gnustandards>.
20427
20428 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
20429
20430         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
20431
20432 2006-07-09  Jim Meyering  <jim@meyering.net>
20433
20434         * m4/glob.m4: Remove a doubled word in a comment.
20435
20436 2006-07-09  Jim Meyering  <jim@meyering.net>
20437
20438         * lib/argp-pv.c: Remove a doubled word in a comment.
20439         * lib/check-version.c (check_version): Likewise.
20440         * lib/javacomp.c (compile_java_class): Likewise.
20441
20442 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
20443
20444         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
20445         for the benefit of people using Autoconf 2.60.  If you want to
20446         support older Autoconf versions you can copy m4/onceonly_2_57.m4
20447         (or m4/onceonly.m4, if pre-2.57) manually.
20448
20449 2006-07-08  Jim Meyering  <jim@meyering.net>
20450
20451         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
20452         comment.
20453         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
20454         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
20455         comment.
20456
20457 2006-07-08  Jim Meyering  <jim@meyering.net>
20458
20459         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
20460
20461 2006-07-07  Simon Josefsson  <jas@extundo.com>
20462
20463         * tests/test-crc.c: Change expected crc value, the test vector
20464         were probably computed using the old broken crc.c?
20465
20466 2006-07-06  Simon Josefsson  <jas@extundo.com>
20467
20468         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
20469         now the canonical place for the M4 file).
20470
20471         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
20472         from the sys_socket dependency now.
20473
20474         * modules/inet_pton (Files): Ditto.
20475
20476         * modules/inet_ntop (Files): Ditto.
20477
20478 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
20479
20480         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
20481         not gl_PREREQ_GETUSERSHELL.
20482
20483 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20484
20485         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
20486         with only one argument, for Autoconf 2.60.
20487         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
20488         expand to nothing, so add a shell command to avoid syntax error.
20489         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
20490
20491 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20492
20493         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
20494
20495 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
20496
20497         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
20498         no longer needed.  Check for isblank decl.
20499         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
20500         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
20501         of existence.
20502
20503 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
20504
20505         * lib/getloadavg.c: Use __VMS, not VMS.
20506         * lib/getopt.c: Likewise.
20507         * lib/getpagesize.h: Likewise.
20508         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
20509         and probably does not work.
20510
20511 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
20512
20513         * lib/.cppi-disable: Add wcwidth.
20514         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
20515         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
20516         (ISGRAPH): Remove.  All uses changed to isgraph.
20517         (FOLD) [!defined _LIBC]: Remove special case.
20518         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
20519         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
20520         HAVE_ISBLANK.
20521         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
20522         case.
20523
20524 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
20525
20526         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
20527         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
20528         brackets.  Other minor changes to suppress some compiler
20529         warnings.
20530
20531 2006-07-06  Derek R. Price  <derek@ximbiot.com>
20532         and Paul Eggert  <eggert@cs.ucla.edu>
20533
20534         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
20535         of invoking obsolescent AC_HEADER_DIRENT macro.
20536         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
20537         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
20538         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
20539         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
20540         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
20541         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
20542         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
20543         * m4/readdir.m4: Remove; no longer needed.
20544
20545 2006-07-06  Derek R. Price  <derek@ximbiot.com>
20546         and Paul Eggert  <eggert@cs.ucla.edu>
20547
20548         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
20549         Don't worry about this obsolete case any more.
20550         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
20551         directories.
20552         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
20553         worry about this obsolete case any more.
20554         * lib/fts.c: Likewise.
20555         * lib/getcwd.c: Likewise.
20556         * lib/glob.h: Likewise.
20557         * lib/savedir.c: Likewise.
20558
20559 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
20560
20561         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
20562         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
20563         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
20564         needed.
20565         All uses removed.
20566         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
20567         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
20568         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
20569         needed.
20570         * m4/getdate.m4 (gl_GETDATE): Likewise.
20571         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
20572         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
20573         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
20574         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
20575         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
20576         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
20577         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
20578         needed.
20579
20580 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
20581
20582         * lib/memcasecmp.c: Include <limits.h>.
20583         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
20584         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
20585         Don't assume isdigit succeeds only on '0' through '9'.
20586
20587 2006-07-05  Eric Blake  <ebb9@byu.net>
20588
20589         * modules/getaddrinfo (Depends-on): Add snprintf.
20590
20591 2006-07-05  Eric Blake  <ebb9@byu.net>
20592
20593         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
20594         to avoid 'header present but could not be compiled' on cygwin.
20595
20596 2006-07-05  Eric Blake  <ebb9@byu.net>
20597
20598         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
20599         missing from netdb.h.
20600         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
20601
20602 2006-07-05  Derek R. Price  <derek@ximbiot.com>
20603
20604         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
20605         no longer needed.
20606         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
20607         * m4/getdate.m4 (gl_GETDATE): Likewise.
20608         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
20609         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
20610         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
20611         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
20612         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
20613
20614 2006-07-05  Derek R. Price  <derek@ximbiot.com>
20615
20616         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
20617         All uses of is_space replaced by isspace.
20618         * lib/exit.h: Don't talk about STDC_HEADERS.
20619         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
20620         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
20621         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
20622         replaced by isprint etc.
20623         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
20624         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
20625         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
20626         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
20627         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
20628         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
20629
20630 2006-07-05  Bruno Haible  <bruno@clisp.org>
20631
20632         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
20633         the function exists, before testing against AIX.
20634         Reported by Martin Lambers <marlam@marlam.de>.
20635
20636 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
20637
20638         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
20639         From Mark D. Baushke.
20640
20641 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
20642
20643         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
20644         to the absolute name, not just one, to bypass Sun C 5.8's
20645         "warning: #include of /usr/include/... may be non-portable".
20646
20647 2006-07-04  Eric Blake  <ebb9@byu.net>
20648
20649         * modules/dirname-tests: New test module.
20650         * tests/test-dirname.c: New file, replacing dirname.c
20651         TEST_DIRNAME section that was recently deleted.
20652
20653 2006-07-04  Bruno Haible  <bruno@clisp.org>
20654
20655         Assume ANSI C header files and <ctype.h> functions.
20656         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
20657         (mbsnwidth): Use isprint, iscntrl instead.
20658
20659 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
20660
20661         Merge from coreutils.
20662         * MODULES.html.sh: Add xstrtold.
20663         * modules/xstrtold: New file.
20664         * modules/cycle-check (Files): Add lib/same-inode.h.
20665         * modules/dirname (Files): Add m4/double-slash-root.m4.
20666         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
20667         * modules/mkdir-p (Files): Add lib/same-inode.h.
20668         * modules/same (Files): Add lib/same-inode.h.
20669
20670 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
20671
20672         * m4/absolute-header.m4: Renamed from full-header-path.m4.
20673         This is to keep the terminology clean; POSIX talks about
20674         "absolute pathnames", not "full pathnames", but the GNU
20675         Coding Standards say to use "path" for something else;
20676         so use "absolute" to keep both sides happy.
20677         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
20678         Set gl_absolute_header, not gl_full_header_path.
20679         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
20680         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
20681         All uses changed.
20682
20683         Merge from coreutils.
20684
20685         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
20686
20687         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
20688         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
20689         want to require the building of c-strtod.o.
20690         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
20691         needs -lm directly.
20692         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
20693
20694         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
20695
20696         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
20697         --as-needed option if available.  Problem reported by Albert Chin in
20698         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
20699         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
20700         cc merely issues a bunch of annoying warnings for --as-needed
20701         (this problem was reported by Bob Proulx).  Also, try linking with
20702         -lm to detect a bug in binutils 2.16 (this problem was reported
20703         by Ralf Wildenhues).
20704
20705         2006-06-18  Jim Meyering  <jim@meyering.net>
20706
20707         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
20708         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
20709         macro.
20710         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
20711         also check for glibc-2.4's abort-inducing bug.
20712
20713         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
20714         Low-probability clean-up should be to use rmdir to get rid of
20715         the just-created directory, not unlink.
20716
20717         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
20718         configure fail, and request a bug report to inform us about it.
20719         Add a comment that, barring reports to the contrary, in 2007 we'll
20720         assume ftruncate is universally available.
20721
20722         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
20723
20724         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
20725
20726         2006-03-12  Jim Meyering  <jim@meyering.net>
20727
20728         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
20729         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
20730         * m4/same.m4 (gl_SAME): Likewise.
20731         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
20732
20733         2006-03-11  Eric Blake  <ebb9@byu.net>
20734
20735         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
20736         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
20737         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
20738         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
20739
20740 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
20741
20742         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
20743         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
20744         reported by Mark D. Baushke, one in
20745         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
20746
20747         Merge from coreutils.
20748
20749         * lib/.cppi-disable: Add stdint_.h.
20750         * lib/.cvsignore: Add stdint.h.
20751
20752         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
20753
20754         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
20755         both double and long double versions.
20756         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
20757         * lib/xstrtold.c: New file.
20758         * lib/xstrtod.h (xstrtold): New decl.
20759
20760         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
20761
20762         * lib/filemode.c (setst): Remove.
20763         (strmode): Rewrite to avoid setst.  This makes the code shorter,
20764         (arguably) clearer, and the generated code is a bit smaller on my
20765         Debian GNU/Linux stable x86 host.
20766
20767         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
20768
20769         * lib/filemode.c: Include "filemode.h" first, to test the interface.
20770         Assume that filemode.h includes sys/types.h and sys/stat.h.
20771         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
20772         (ftypelet): Reorder to put common cases first, for efficiency.
20773         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
20774         to do 'M'.
20775         (strmode): Renamed from mode_string, and now stores 12 bytes instead
20776         of 10, for compatibility with FreeBSD.  All callers changed.
20777         (filemodestring): Now stores 12 bytes instead of 10, and sets file
20778         types that can't be deduced solely from st_mode.  First arg is now a
20779         const pointer.
20780         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
20781         (strmode): Renamed from mode_string.
20782         (filemodestring): New decl.
20783         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
20784         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
20785         needed.
20786         (S_ISPORT, S_ISWHT): New macros, if not already defined.
20787
20788         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
20789
20790         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
20791         fsusage.h now does that.  Include fsusage.h first, to test interface.
20792         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
20793         at most one method (the old code could have generated decls that
20794         didn't conform to C89, not that this was ever exercised).
20795         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
20796
20797         2006-03-19  Jim Meyering  <jim@meyering.net>
20798
20799         Work even in a chroot where d_ino values for entries in "/"
20800         don't match the stat.st_ino values for the same names.
20801         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
20802         number, iterate through all entries again, using lstat instead.
20803         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
20804         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
20805
20806         * lib/getcwd.c (__getcwd): Clarify a comment.
20807         Use memcpy in place of a call to strcpy.
20808
20809         2006-03-12  Jim Meyering  <jim@meyering.net>
20810
20811         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
20812         matches that of the current directory (which we're about to chdir ".."
20813         out of), then save the dev-ino of the parent, instead.
20814
20815         * lib/same-inode.h (SAME_INODE): New file/macro.
20816         * lib/chdir-safer.c (SAME_INODE): Remove definition.
20817         Include "same-inode.h", instead.
20818         * lib/same.c: Likewise.
20819         * lib/cycle-check.h: Include "same-inode.h".
20820         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
20821         * lib/cycle-check.c (SAME_INODE): Remove definition.
20822         * lib/root-dev-ino.h: Include "same-inode.h".
20823
20824         2006-03-11  Eric Blake  <ebb9@byu.net>
20825
20826         * lib/same.c (same_name): s/base_name/last_component/
20827         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
20828         * lib/filenamecat.c (file_name_concat): Likewise.
20829
20830         2006-03-11  Eric Blake  <ebb9@byu.net>,
20831                     Paul Eggert  <eggert@cs.ucla.edu>
20832
20833         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
20834         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
20835         drive prefix.
20836         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
20837         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
20838         (last_component): New method.
20839         * lib/dirname.c (dir_len): Determine when drive letters need a
20840         subsequent slash.  Preserve // when it is special.
20841         (dir_name): Don't append dot when drive letter is absolute.
20842         [TEST_DIRNAME]: Move into a full-blown gnulib test.
20843         * lib/basename.c (base_name): New semantics - malloc the result.
20844         Preserve // when it is special.  Preserve relative files that look
20845         like drive letters.
20846         (base_len): Preserve // when it is special.
20847         (last_component): New method, similar to old base_name semantics.
20848         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
20849         base_name.  Strip redundant slashes from ///.
20850
20851 2006-07-03  Jim Meyering  <jim@meyering.net>
20852
20853         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
20854         macro is used before the first cycle_check call.
20855
20856 2006-07-03  Eric Blake  <ebb9@byu.net>
20857
20858         * modules/dirname (Depends-on): Add xstrndup.
20859
20860 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
20861
20862         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
20863         test cases, so that config.log is a bit easier to follow.
20864
20865 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
20866
20867         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
20868         both are 64 bits, since this seems to be the tradition, and this
20869         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
20870         we ever run into a host that prefers long long to long in this
20871         case, we'll need another configure-time test.  Problem reported by
20872         Jim Meyering.
20873
20874 2006-07-02  Eric Blake  <ebb9@byu.net>
20875
20876         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
20877
20878 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
20879
20880         * modules/inttypes (Depends-on): No longer depends on stdint.
20881         * modules/stdint (Description): Say more about assumptions.
20882         Say that the fast types might differ.  Say macros are used.
20883         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
20884         (Makefile.am): Revise list of substituted symbols to match
20885         new stdint.m4.
20886         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
20887         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
20888         * tests/test-stdint.c (verify_same_types)
20889         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
20890         the code conforms to C99/C89.
20891         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
20892         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
20893
20894 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
20895
20896         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
20897         but fix a bug, by requiring at least 64 bits.
20898         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
20899         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
20900         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
20901         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
20902
20903         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
20904         changes.  Make 2.59 a prerequisite.  Check and substitute for
20905         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
20906         inttypes.h.  Do not use special include files; just use the
20907         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
20908         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
20909         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
20910         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
20911         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
20912         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
20913         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
20914         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
20915         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
20916         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
20917         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
20918         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
20919         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
20920         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
20921         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
20922         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
20923         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
20924         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
20925         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
20926         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
20927         WINT_MAX.  Check for C99 conformance more strictly, by detecting
20928         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
20929         not check for things that C99 does not require, e.g., int8_t.  If
20930         a test isn't needed unless <stdint.h> isn't working, and is
20931         unlikely to be needed for any other reason, then don't do it
20932         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
20933         size_t, since we assume C89 freestanding at least.  Do not check
20934         for sig_atomic_t, wchar_t, or wint_t, since the code now does
20935         the right thing even if the types are not defined.  Instead use:
20936         (gl_STDINT_TYPE_PROPERTIES): New macro.
20937         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
20938         testing whether <sys/types.h> clashes, as Autoconf does this for
20939         us now.  All uses removed.
20940         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
20941         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
20942         (gl_CHECK_TYPE_SAME):
20943         Remove; no longer needed.
20944         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
20945         exists, since we'll return 0 anyway in that case.
20946         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
20947
20948 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
20949
20950         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
20951         possible collision with system files.
20952         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
20953         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
20954         WCHAR_MIN and WCHAR_MAX in this case.
20955         (<stddef.h>): Do not include; no longer needed.
20956         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
20957         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
20958         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
20959         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
20960         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
20961         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
20962         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
20963         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
20964         !defined(__c99))]: Include in this case too, since it's harmless
20965         now.
20966         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
20967         dangerous to do so.
20968         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
20969         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
20970         (_STDINT_MIN, _STDINT_MAX): New macros.
20971         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
20972         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
20973         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
20974         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
20975         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
20976         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
20977         macros, not typedefs; this simplifies things quite a bit.
20978         Use long int for all types narrower than int64_t.
20979         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
20980         Define in terms of long long int or int64_t or long int,
20981         not int64_t or int32_t.  This saves some compile-time testing.
20982         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
20983         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
20984         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
20985         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
20986         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
20987         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
20988         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
20989         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
20990         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
20991         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
20992         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
20993         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
20994         undef any previous version and define our own version, for
20995         simplicity and consistency with the new macros for types.
20996         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
20997         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
20998         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
20999         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
21000         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
21001         @WINT_T_SUFFIX@ to keep things simple here.
21002         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
21003         Simplify by assuming typical 8/16/32/64 host, since we're
21004         already doing that elsewhere anyway.
21005         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
21006         and assume long long int is 64 bits if available.  This
21007         speeds up 'configure'.
21008
21009 2006-07-01  Eric Blake  <ebb9@byu.net>
21010
21011         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
21012         Reported by Andreas Buening.
21013
21014 2006-07-01  Eric Blake  <ebb9@byu.net>
21015
21016         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
21017
21018 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
21019
21020         * lib/getaddrinfo.c: fixed typo
21021
21022 2006-06-29  Jim Meyering  <jim@meyering.net>
21023
21024         * modules/strftime (Maintainer): Add my name, since with the
21025         FPRINTFTIME changes strftime.c has forked from glibc.
21026
21027 2006-06-29  Eric Blake  <ebb9@byu.net>
21028
21029         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
21030
21031 2006-06-29  Eric Blake  <ebb9@byu.net>
21032
21033         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
21034
21035 2006-06-29  Eric Blake  <ebb9@byu.net>
21036
21037         * lib/stat_.h: New file.
21038
21039 2006-06-29  Eric Blake  <ebb9@byu.net>
21040
21041         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
21042         unused static function.
21043
21044 2006-06-29  Eric Blake  <ebb9@byu.net>
21045
21046         * doc/functions.texi (Function Portability): Document missing lstat
21047         on mingw.
21048
21049 2006-06-29  Eric Blake  <ebb9@byu.net>
21050
21051         * MODULES.html.sh: Add sys_stat.
21052         * modules/sys_stat: New module.
21053         * modules/mkstemp (Depends-on): Add sys_stat.
21054
21055 2006-06-29  Derek R. Price  <derek@ximbiot.com>
21056
21057         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
21058
21059 2006-06-29  Derek R. Price  <derek@ximbiot.com>
21060
21061         * m4/c-bs-a.m4: Removed.
21062
21063 2006-06-29  Derek R. Price  <derek@ximbiot.com>
21064
21065         * lib/strftime.c: Assume strftime() exists.
21066
21067 2006-06-29  Derek Price  <derek@ximbiot.com>
21068
21069         * modules/c-bs-a: Removed - \a is C89.
21070         * MODULES.html.sh: Remove c-bs-a.
21071
21072 2006-06-29  Bruno Haible  <bruno@clisp.org>
21073
21074         * modules/wcwidth (License): Change to LGPL.
21075
21076 2006-06-28  Simon Josefsson  <jas@extundo.com>
21077
21078         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
21079         on _WIN32.
21080
21081         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
21082         getnameinfo.
21083
21084 2006-06-28  Simon Josefsson  <jas@extundo.com>
21085
21086         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
21087
21088 2006-06-28  Simon Josefsson  <jas@extundo.com>
21089
21090         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
21091         functions there.  It will succeed on Windows XP, but on Windows
21092         2000 and (presumably) earlier, it will fail, and use the internal
21093         re-implementation.
21094         (use_win32_p): New function.
21095         (getaddrinfo): Use strtoul on servname, to support numeric ports.
21096         Support AI_NUMERICSERV to disable getservbyname.
21097         (getnameinfo): New function, only supports
21098         NI_NUMERICHOST|NI_NUMERICSERV for now.
21099
21100         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
21101         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
21102         getnameinfo.
21103
21104 2006-06-28  Eric Blake  <ebb9@byu.net>
21105
21106         * modules/wcwidth: New file.
21107         * modules/mbchar (Depends-on): Add wcwidth.
21108         * modules/mbswidth (Depends-on): Add wcwidth.
21109         * MODULES.html.sh: Add wcwidth.
21110
21111 2006-06-28  Eric Blake  <ebb9@byu.net>
21112
21113         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
21114         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
21115
21116 2006-06-28  Eric Blake  <ebb9@byu.net>
21117
21118         * lib/xvasprintf.h: Fix comments.
21119
21120 2006-06-28  Eric Blake  <ebb9@byu.net>
21121
21122         * lib/mbchar.h (wcwidth): Include wcwidth.h.
21123         * lib/mbswidth.c (wcwidth): Move from here...
21124         * lib/wcwidth.h: ...to this new file.
21125
21126 2006-06-28  Derek R. Price  <derek@ximbiot.com>
21127
21128         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
21129
21130         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
21131         it's obsolete.
21132         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
21133
21134 2006-06-28  Derek R. Price  <derek@ximbiot.com>
21135
21136         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
21137         Autoconf 2.60 says this stuff was obsolete.
21138
21139 2006-06-28  Bruno Haible  <bruno@clisp.org>
21140
21141         * modules/wcwidth (Files): Add m4/wchar_t.m4.
21142
21143 2006-06-28  Bruno Haible  <bruno@clisp.org>
21144
21145         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
21146         gt_TYPE_WCHAR_T.
21147
21148 2006-06-28  Bruno Haible  <bruno@clisp.org>
21149
21150         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
21151         declaration for wcwidth.
21152         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
21153
21154 2006-06-28  Bruno Haible  <bruno@clisp.org>
21155
21156         * lib/mkdtemp.c [MINGW]: Include <io.h>.
21157         (mkdir): Define using _mkdir.
21158
21159 2006-06-28  Bruno Haible  <bruno@clisp.org>
21160
21161         * lib/getaddrinfo.h: Fix POSIX URL.
21162         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
21163         _WIN32.
21164         (use_win32_p): Make static.
21165         (getaddrinfo): Reject service name if it is empty or does not consist
21166         solely of decimal digits, or if its value is > 65535.
21167         (getnameinfo): Remove useless casts.
21168
21169 2006-06-27  Simon Josefsson  <jas@extundo.com>
21170
21171         * modules/sys_select: New file, suggested by Bruno Haible, Paul
21172         Eggert and Martin Lambers.
21173
21174 2006-06-27  Simon Josefsson  <jas@extundo.com>
21175
21176         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
21177         Eggert and Martin Lambers.
21178
21179 2006-06-27  Bruno Haible  <bruno@clisp.org>
21180
21181         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
21182         result to 0, not to empty.
21183         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
21184
21185 2006-06-27  Bruno Haible  <bruno@clisp.org>
21186
21187         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
21188
21189 2006-06-26  Simon Josefsson  <jas@extundo.com>
21190
21191         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
21192         present.
21193
21194 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
21195
21196         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
21197         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
21198         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
21199
21200 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
21201
21202         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
21203
21204 2006-06-26  Bruno Haible  <bruno@clisp.org>
21205
21206         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
21207
21208 2006-06-26  Bruno Haible  <bruno@clisp.org>
21209
21210         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
21211
21212 2006-06-26  Bruno Haible  <bruno@clisp.org>
21213
21214         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
21215         SGI C compiler in pre-C99 mode.
21216         Suggested by Mark D. Baushke and Larry Jones.
21217
21218 2006-06-26  Bruno Haible  <bruno@clisp.org>
21219
21220         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
21221         WCHAR_MAX.
21222         Reported by Mark D. Baushke and Larry Jones.
21223
21224 2006-06-26  Bruno Haible  <bruno@clisp.org>
21225
21226         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
21227         in pre-C99 mode.
21228         Suggested by Mark D. Baushke and Larry Jones.
21229
21230 2006-06-23  Simon Josefsson  <jas@extundo.com>
21231             Bruno Haible  <bruno@clisp.org>
21232
21233         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
21234         Emit mostlyclean-local rule.
21235         (func_emit_tests_Makefile_am): Likewise.
21236         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
21237
21238 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
21239
21240         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
21241
21242 2006-06-23  Bruno Haible  <bruno@clisp.org>
21243
21244         * tests/test-stdint.c: Update to match ISO C 99 Technical
21245         Corrigendum 1.
21246
21247 2006-06-23  Bruno Haible  <bruno@clisp.org>
21248
21249         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
21250
21251 2006-06-23  Bruno Haible  <bruno@clisp.org>
21252
21253         * lib/stdint_.h: Treat IRIX like OpenBSD.
21254
21255 2006-06-23  Bruno Haible  <bruno@clisp.org>
21256
21257         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
21258         ISO C 99 Technical Corrigendum 1.
21259
21260 2006-06-22  Simon Josefsson  <jas@extundo.com>
21261
21262         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
21263         MinGW.
21264
21265 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
21266
21267         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
21268         needed.  Some compiler complained about some of them.  Problem reported
21269         by Larry Jones in
21270         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
21271
21272 2006-06-21  Simon Josefsson  <jas@extundo.com>
21273
21274         * tests/test-getaddrinfo.c: New file.
21275
21276         * modules/getaddrinfo-tests: New file.
21277
21278         * MODULES.html.sh: Add inet_pton.
21279
21280         * modules/inet_pton: New file.
21281
21282 2006-06-21  Simon Josefsson  <jas@extundo.com>
21283
21284         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
21285         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
21286         of using the (limited) gnulib implementation on Windows XP.
21287
21288         * m4/inet_pton.m4: New file.
21289
21290 2006-06-21  Simon Josefsson  <jas@extundo.com>
21291
21292         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
21293         variable.
21294
21295         * lib/socket_.h: Don't define WINVER.
21296
21297         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
21298         slightly modified to work in gnulib.
21299
21300 2006-06-21  Simon Josefsson  <jas@extundo.com>
21301
21302         * doc/gnulib.texi (Windows sockets): Add.
21303
21304 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
21305
21306         * lib/read-file.c (fread_file): Start with buffer allocation of
21307         0 bytes rather than 1 byte; this simplifies the code.
21308         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
21309         code to free buffer and save/restore errno.
21310         (internal_read_file): Remove unused local.
21311
21312 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
21313
21314         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
21315         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
21316         Problem reported by Denis Excoffier in
21317         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
21318
21319 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21320
21321         * modules/sys_socket, modules/socklen: Include sys/types since
21322         FreeBSD 4.x's sys/socket.h needs it.
21323
21324 2006-06-19  Simon Josefsson  <jas@extundo.com>
21325
21326         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
21327
21328 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
21329
21330         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
21331
21332 2006-06-19  Bruno Haible  <bruno@clisp.org>
21333
21334         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
21335         and FULL_PATH_INTTYPES_H in angle brackets.
21336         Reported by Mark D. Baushke <mdb@gnu.org>.
21337
21338 2006-06-17  Eric Blake  <ebb9@byu.net>
21339
21340         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
21341         errno.
21342
21343 2006-06-17  Bruno Haible  <bruno@clisp.org>
21344
21345         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
21346         <sys/inttypes.h>.
21347
21348 2006-06-17  Bruno Haible  <bruno@clisp.org>
21349
21350         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
21351         whether errno is declared. Assume <errno.h> declares errno.
21352
21353 2006-06-17  Bruno Haible  <bruno@clisp.org>
21354
21355         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
21356
21357 2006-06-17  Bruno Haible  <bruno@clisp.org>
21358
21359         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
21360         problem on Solaris 2.5.1.
21361
21362 2006-06-16  Eric Blake  <ebb9@byu.net>
21363
21364         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
21365         * lib/unicodeio.c [!defined errno]: Likewise.
21366         * lib/strtol.c [!defined errno]: Likewise.
21367         * lib/strtod.c [!defined errno]: Likewise.
21368
21369 2006-06-15  Eric Blake  <ebb9@byu.net>
21370
21371         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
21372
21373 2006-06-15  Eric Blake  <ebb9@byu.net>
21374
21375         * config/srclist.txt (ssize_t.m4): Lose sync.
21376
21377 2006-06-15  Bruno Haible  <bruno@clisp.org>
21378
21379         * modules/stdint (Files): Include m4/full-header-path.m4,
21380         m4/size_max.m4, m4/wchar_t.m4.
21381         (Makefile.am): Many more substitutions.
21382         * modules/stdint-tests: New file.
21383         * tests/test-stdint.c: New file.
21384
21385 2006-06-15  Bruno Haible  <bruno@clisp.org>
21386
21387         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
21388         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
21389         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
21390         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
21391         gl_CHECK_TYPE_SAME): New macros.
21392
21393 2006-06-15  Bruno Haible  <bruno@clisp.org>
21394
21395         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
21396
21397 2006-06-15  Bruno Haible  <bruno@clisp.org>
21398
21399         * lib/stdint_.h: Rewritten to be fully auto-configured.
21400         Fixes bug on HP-UX/IA64.
21401
21402 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
21403
21404         * lib/getdate.y (__attribute__): Don't define if already defined.
21405         Problem reported by Larry Jones.
21406         * lib/utimens.c (__attribute__): Likewise.
21407
21408 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
21409
21410         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
21411         reported by Andreas Schwab.
21412
21413 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21414             Bruno Haible  <bruno@clisp.org>
21415
21416         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
21417         check for the declaration of strnlen and a run test that exposes the
21418         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
21419         rpl_strndup.
21420
21421 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21422             Bruno Haible  <bruno@clisp.org>
21423
21424         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
21425
21426 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21427
21428         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
21429         compile test, for Tru64 4.0D.
21430
21431 2006-05-28  Karl Berry  <karl@gnu.org>
21432
21433         * config/srclist.txt (printf-args.c): lose sync.
21434
21435 2006-05-26  Martin Lambers  <marlam@marlam.de>
21436
21437         * lib/getpass.c: Updates the test for the native W32 API, and adds
21438         missing includes, thus fixing compilation warnings.
21439
21440 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
21441
21442         * lib/exclude.c (exclude_fnmatch): New function.
21443         (excluded_file_name): Call exclude_fnmatch.
21444         * lib/exclude.h (excluded_file_name): New prototype
21445
21446 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
21447
21448         * lib/tempname.c (small_open, large_open): New macros.
21449         (__open, __open64) [!_LIBC]: Remove.
21450         (__gen_tempname): Use small_open and large_open instead of __open
21451         and __open64.  This fixes a portability bug on HP-UX 11.11i
21452         reported by Simon Wing-Tang in
21453         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
21454
21455 2006-05-24  Bruno Haible  <bruno@clisp.org>
21456
21457         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
21458         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
21459         Reported by Thorsten Maerz <torte@netztorte.de> via
21460         Aaron Stone <aaron@serendipity.cx>.
21461
21462 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
21463
21464         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
21465         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
21466         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
21467         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
21468         not really conditional on the cache.
21469         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
21470
21471 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
21472
21473         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
21474         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
21475         (my_usleep): Don't mishandle maximum value.
21476
21477 2006-05-19  Jim Meyering  <jim@meyering.net>
21478
21479         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
21480
21481 2006-05-17  Bruno Haible  <bruno@clisp.org>
21482
21483         Cygwin portability.
21484         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
21485
21486 2006-05-17  Bruno Haible  <bruno@clisp.org>
21487
21488         * lib/stdint_.h: Fix recognition of Cygwin.
21489
21490 2006-05-15  Bruno Haible  <bruno@clisp.org>
21491
21492         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
21493         on libtool patch by Ralf Wildenhues.
21494
21495 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
21496
21497         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
21498         test for C99 conformance; (bool) 0.5 is an integer constant
21499         expression, but (bool) -0.5 is not.  Problem reported by Fedor
21500         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
21501
21502 2006-05-11  Simon Josefsson  <jas@extundo.com>
21503
21504         * m4/xvasprintf.m4: Fix obvious typo.
21505
21506 2006-05-11  Jim Meyering  <jim@meyering.net>
21507
21508         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
21509         James Lemley.
21510
21511 2006-05-10  Simon Josefsson  <jas@extundo.com>
21512
21513         * lib/md4.c: Typo fix, update copyright years.
21514         (K1, K2): Don't use L because it turn computations into 64-bit on
21515         64-bit platforms.
21516
21517 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
21518
21519         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
21520         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
21521         unwanted sign propagation, e.g., on hosts with 64-bit int.
21522         There still are some problems with reeelly weird theoretical hosts
21523         (e.g., 33-bit int) but it's not worth worrying about now.
21524         * lib/sha1.c (rol): Likewise.
21525         (K1, K2, K3, K4): Remove unnecessary L suffix.
21526
21527 2006-05-10  Bruno Haible  <bruno@clisp.org>
21528
21529         * lib/des.c: Cast to avoid warnings.
21530
21531 2006-05-09  Bruno Haible  <bruno@clisp.org>
21532
21533         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
21534         (Depends-on): Depend also on xsize, stdarg.
21535         (configure.ac): Add gl_XVASPRINTF.
21536
21537 2006-05-09  Bruno Haible  <bruno@clisp.org>
21538
21539         * m4/xvasprintf.m4: New file.
21540
21541 2006-05-09  Bruno Haible  <bruno@clisp.org>
21542
21543         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
21544         (EOVERFLOW): Define fallback value.
21545         (xstrcat): New function.
21546         (xvasprintf): Recognize the special case of a string concatenation.
21547
21548 2006-05-08  Eric Blake  <ebb9@byu.net>
21549
21550         * gnulib-tool (func_version): Base copyright year on CVS date.
21551         (func_emit_copyright_notice): New function.
21552         (func_emit_lib_Makefile_am): Use it.
21553         (func_emit_tests_Makefile_am): Likewise.
21554         (func_import): Likewise.
21555
21556 2006-05-08  Bruno Haible  <bruno@clisp.org>
21557
21558         * modules/stdarg: New file.
21559         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
21560
21561 2006-05-08  Bruno Haible  <bruno@clisp.org>
21562
21563         * m4/stdarg.m4: New file, from GNU gettext.
21564
21565 2006-05-08  Bruno Haible  <bruno@clisp.org>
21566
21567         * config/srclist.txt (build-aux/config.rpath): different from latest
21568         release.
21569
21570 2006-05-08  Bruno Haible  <bruno@clisp.org>
21571
21572         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
21573
21574 2006-05-05  Jim Meyering  <jim@meyering.net>
21575
21576         * m4/warning.m4: New file, derived from bison's file by the same name.
21577
21578 2006-05-03  Bruno Haible  <bruno@clisp.org>
21579
21580         * lib/stdint_.h: Shorter URL.
21581         * lib/inttypes.h: Likewise.
21582
21583 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
21584
21585         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
21586
21587 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
21588
21589         * lib/verify.h: Document the internals better.  Most of this change
21590         was written by Bruno Haible.
21591
21592 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
21593
21594         * doc/verify.texi: New file, partly based on a proposal by
21595         Bruno Haible.
21596
21597 2006-05-02  Bruno Haible  <bruno@clisp.org>
21598
21599         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
21600         test from here...
21601         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
21602
21603 2006-04-29  Bruno Haible  <bruno@clisp.org>
21604
21605         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
21606         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
21607
21608 2006-04-29  Bruno Haible  <bruno@clisp.org>
21609
21610         * gnulib-tool: Make --update option actually work.
21611
21612 2006-04-29  Bruno Haible  <bruno@clisp.org>
21613
21614         * doc/gcd.texi: New file.
21615         * doc/gnulib.texi: Include it.
21616
21617 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
21618
21619         * lib/getdate.y (get_date): When adding relative date, start with the
21620         initial time, not with the result of the first mktime call.
21621
21622 2006-04-25  Bruno Haible  <bruno@clisp.org>
21623
21624         * gnulib-tool (func_import): Output the include directives in three
21625         blocks, sorted separately.
21626         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21627
21628 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
21629
21630         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
21631         to define main with arguments, for C++.  Reported by Eric Blake.
21632         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
21633         Prefer 'int main ()' to 'int main (void)', for C++.
21634         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
21635         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
21636         for 'main', for C99 and C++.
21637
21638 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
21639
21640         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
21641         Don't assume that exit status -1 is valid.
21642         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
21643         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
21644         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
21645         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
21646         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
21647         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
21648         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
21649         functions can be used without declaring them, or that you can
21650         exit with status -1.
21651         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
21652
21653 2006-04-24  Karl Berry  <karl@gnu.org>
21654
21655         * config/srclist.txt (longdouble.m4): sync lost.
21656
21657 2006-04-24  Eric Blake  <ebb9@byu.net>
21658
21659         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
21660
21661 2006-04-24  Bruno Haible  <bruno@clisp.org>
21662
21663         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
21664         poll() implementation in AIX.
21665         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21666
21667 2006-04-24  Bruno Haible  <bruno@clisp.org>
21668
21669         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
21670         assigned exactly once.
21671
21672 2006-04-23  Claudio Fontana  <claudio@gnu.org>
21673             Bruno Haible  <bruno@clisp.org>
21674
21675         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
21676         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
21677         for AM_CPPFLAGS.
21678
21679 2006-04-23  Bruno Haible  <bruno@clisp.org>
21680
21681         * modules/copy-file: Depend on unistd.
21682         * modules/execute: Likewise.
21683         * modules/fatal-signal: Likewise.
21684         * modules/findprog: Likewise.
21685         * modules/mkdtemp : Likewise.
21686         * modules/pipe: Likewise.
21687         * modules/wait-process: Likewise.
21688
21689 2006-04-23  Bruno Haible  <bruno@clisp.org>
21690
21691         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
21692         condition was already detected.
21693         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21694
21695 2006-04-23  Bruno Haible  <bruno@clisp.org>
21696
21697         * lib/copy-file.c: Include <unistd.h> unconditionally.
21698         * lib/execute.c: Likewise.
21699         * lib/fatal-signal.c: Likewise.
21700         * lib/findprog.c: Likewise.
21701         * lib/mkdtemp.c: Likewise.
21702         * lib/pipe.h: Likewise.
21703         * lib/pipe.c: Likewise.
21704         * lib/wait-process.h: Likewise.
21705
21706 2006-04-23  Bruno Haible  <bruno@clisp.org>
21707
21708         * gnulib-tool (func_usage): Fix --import description. Document
21709         --update.
21710         (func_import): Create temporary file in a temporary directory, if
21711         --dry-run is specified. Silence errors from 'grep' when there are no
21712         m4 files in $m4dir.
21713         (func_create_testdir): Silence errors from 'grep' when there are no
21714         m4 files in $m4dir.
21715         Reported by Karl Berry <karl@freefriends.org>.
21716
21717 2006-04-20  Bruno Haible  <bruno@clisp.org>
21718
21719         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
21720         one argument, so that the code will be portable to Autoconf 2.60.
21721         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
21722         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
21723         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
21724
21725 2006-04-19  Derek Price  <derek@ximbiot.com>
21726             Eric Blake  <ebb9@byu.net>
21727
21728         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
21729         rather than "/full/path.h".  Update comment to match.  Shorten &
21730         generalize m4_translit call via AS_TR_CPP.
21731
21732 2006-04-19  Derek Price  <derek@ximbiot.com>
21733             Eric Blake  <ebb9@byu.net>
21734
21735         * lib/inttypes.h: Correct grammar in comment.
21736
21737 2006-04-18  Derek Price  <derek@ximbiot.com>
21738             Paul Eggert  <eggert@cs.ucla.edu>
21739
21740         * modules/inttypes: New file.
21741         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
21742
21743 2006-04-18  Derek Price  <derek@ximbiot.com>
21744             Paul Eggert  <eggert@cs.ucla.edu>
21745
21746         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
21747         New files.
21748
21749 2006-04-18  Derek Price  <derek@ximbiot.com>
21750             Paul Eggert  <eggert@cs.ucla.edu>
21751
21752         * lib/inttypes.h: New file.
21753         * lib/strtoimax.c: Assume <inttypes.h>.
21754
21755 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
21756
21757         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
21758         isn't mounted.  Problem reported by Kir Kolyshkin.
21759
21760 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
21761
21762         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
21763         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
21764         Derek R. Price.
21765         * lib/regex.h (RE_DUP_MAX): Update comment to match current
21766         implementation.
21767
21768 2006-04-12  Eric Blake  <ebb9@byu.net>
21769
21770         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
21771         is now done automatically by the corresponding Autoconf macro.
21772
21773 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
21774
21775         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
21776         time_r.h.
21777
21778 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
21779
21780         Merge regex changes from libc, removing some of our
21781         POSIX-conformance changes that were rejected and redoing them in a
21782         less-intrusive way.
21783
21784         * lib/regcomp.c (re_compile_internal, init_dfa):
21785         Length arg is now size_t, not Idx.  All uses changed.
21786         (peek_token): Forward decl now says internal_function.
21787         (__re_error_msgid, __re_error_msgid_idx):
21788         Now static rather than extern with attribute_hidden.
21789         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
21790         For some reason libc prefers K&R style defns for external functions.
21791         (regerror) [!defined _LIBC]: Likewise.
21792         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
21793         (seek_collating_symbol_entry, lookup_collation_sequence_value):
21794         (build_range_exp, build_collating_symbol):
21795         Use K&R-style defn.
21796         (re_compile_fastmap): Use '\0' to memset, not 0.
21797         (utf8_sb_map): Make the calculations more obvious.
21798         (init_dfa, parse_bracket_exp, build_charclass_op):
21799         Call calloc and cast result, as glibc does.
21800         (init_word_char, fetch_token, peek_token, peek_token_bracket):
21801         (build_range_exp, build_collating_symbol):
21802         Now internal functions.
21803
21804         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
21805
21806         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
21807         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
21808         Don't depend on VMS; depend on __VMS instead, for POSIX
21809         namespace cleanness.
21810         (regoff_t): Define to ssize_t, not long int.
21811
21812         Remove the REG_ macros named below.  Instead, make the old names
21813         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
21814         __USE_GNU_REGEX.
21815         (REG_BACKSLASH_ESCAPE_IN_LISTS):
21816         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
21817         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
21818         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
21819         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
21820         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
21821         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
21822         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
21823         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
21824         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
21825         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
21826         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
21827         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
21828         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
21829         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
21830         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
21831         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
21832         (REG_NREGS):
21833         Remove.  All uses replaced by the old RE_* names.
21834         (RE_BACKSLASH_ESCAPE_IN_LISTS):
21835         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
21836         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
21837         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
21838         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
21839         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
21840         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
21841         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
21842         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
21843         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
21844         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
21845         Don't bother having these macros be independent of each others'
21846         values, since they no longer exist in the POSIX name space.
21847
21848         Rename the following member names back to their old names,
21849         unless !__USE_GNU_REGEX.  All uses changed back.
21850         (buffer): Renamed from re_buffer.
21851         (allocated): Renamed from re_allocated.
21852         (used): Renamed from re_used.
21853         (syntax): Renamed from re_syntax.
21854         (fastmap): Renamed from re_fastmap.
21855         (translate): Renamed from re_translate.
21856         (can_be_null): Renamed from re_can_be_null.
21857         (regs_allocated): Renamed from re_regs_allocated.
21858         (fastmap_accurate): Renamed from re_fastmap_accurate.
21859         (no_sub): Renamed from re_no_sub.
21860         (not_bol): Renamed from re_not_bol.
21861         (not_eol): Renamed from re_not_eol.
21862         (newline_anchor): Renamed from re_newline_anchor.
21863         (num_regs): Renamed from rm_num_regs.
21864         (start): Renamed from rm_start.
21865         (end): Renamed from rm_end.
21866
21867         (free_state): Move up a bit.
21868
21869         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
21870         #define to be empty.
21871         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
21872         when that is what is intended.
21873         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
21874         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
21875         (MAX): New macro.
21876         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
21877         All uses changed back to re_malloc, etc.  It's now the caller's
21878         responsibility to check for overflow; all callers changed.
21879         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
21880         (re_x2nrealloc): Remove.
21881         (free_state): Remove decl.
21882
21883         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
21884         (re_set_registers, re_exec):
21885         Use K&R-style defn.
21886
21887         2006-01-31  Roland McGrath  <roland@redhat.com>
21888
21889         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
21890         Reported by Mike Frysinger <vapier@gentoo.org>.
21891
21892         2006-01-15  Andreas Jaeger  <aj@suse.de>
21893
21894         [BZ #1950]
21895         * lib/regex_internal.c (re_string_reconstruct): Adjust for
21896         build_wcs_upper_buffer change.
21897         (build_wcs_upper_buffer): Change return type.
21898
21899         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
21900
21901         * lib/regex_internal.h: Include <stdint.h> if available.
21902
21903         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
21904
21905         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
21906
21907         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
21908
21909         * lib/regcomp.c: Adjust for changed secondary hash function.
21910
21911         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
21912
21913         * lib/regex.h: Pretty printing.
21914         Clean up namespace a bit.
21915
21916         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
21917
21918         * lib/regexec.c (update_cur_sifted_state, check_arrival,
21919         check_arrival_add_next_nodes): Avoid using uninitialized variable.
21920
21921         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
21922                     Ulrich Drepper  <drepper@redhat.com>
21923
21924         [BZ #1302]
21925         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
21926         changed.
21927         (bitset_word_t): Renamed from bitset_word.  All uses changed.
21928
21929         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
21930
21931         [BZ #281]
21932         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
21933         * lib/regcomp.c: Remove unnecessary uses of
21934         unsigned RE_TRANSLATE_TYPE.
21935         * lib/regex_internal.h: Likewise.
21936         * lib/regex_internal.c: Likewise.
21937         * lib/regexec.c: Likewise.
21938         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
21939
21940         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
21941
21942         * lib/regexec.c (find_recover_state): Remove unnecessary
21943         initialization.
21944         (transit_state_bkref): Make DFA a const pointer.
21945         (get_subexp): Likewise.
21946         (check_arrival): Likewise.
21947         (update_cur_sifted_state): Likewise.
21948         (re_search_internal): Likewise.
21949         (prune_impossible_nodes): Likewise.
21950         (acquire_init_state_context): Likewise.
21951         (proceed_next_node): Likewise.
21952         (set_regs): Likewise.
21953         (free_fail_stack_return): Likewise.
21954         (check_arrival_expand_ecl): Mark DFA parameter as const.
21955         (check_arrival_expand_ecl_sub): Likewise.
21956         (check_subexp_limits): Likewise.
21957         (sub_epsilon_src_nodes):  Likewise.
21958         (add_epsilon_src_nodes):  Likewise.
21959         (merge_state_array): Likewise.
21960         (update_regs): Likewise.
21961         (build_trtable): Likewise.
21962         (sift_states_backward): Mark MCTX parameter as const.
21963         (build_sifted_states): Likewise.
21964         (update_cur_sifted_state): Likewise.
21965         (sift_states_mkref): Likewise.
21966         (check_arrival_expand_ecl): Mark eclosure as const.
21967         (check_dst_limits_calc_pos_1): Likewise.
21968         * lib/regex_internal.h (re_match_context_t): Make dfa a const
21969         pointer.
21970
21971         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
21972
21973         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
21974         (transit_state_sb): Likewise.
21975         (transit_state_mb): Likewise.
21976         (sift_states_iter_mb): Likewise.
21977         (check_arrival_add_next_nodes): Likewise.
21978         (check_node_accept_bytes): Change first parameter to pointer-to-const.
21979         [_LIBC] (re_search_2_stub): Use mempcpy.
21980
21981         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
21982         mbrtowc for very simple UTF-8 case.
21983
21984         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
21985         a pointer-to-const.
21986         (re_acquire_state_context): Likewise.
21987         * lib/regex_internal.h: Adjust prototypes.
21988
21989         * lib/regex.c: Prevent using C++ compilers.
21990
21991         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
21992         (re_acquire_state_context): Likewise.
21993
21994 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
21995
21996         * modules/regex (Depends-on): Add ssize_t.
21997
21998 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
21999
22000         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
22001         translation table.
22002
22003 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
22004
22005         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
22006
22007 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
22008             Bruno Haible  <bruno@clisp.org>
22009
22010         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
22011         <sys/types.h> and <inttypes.h>.
22012
22013 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22014
22015         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
22016         `__error_t_defined', so argp.h will not typedef the former.
22017
22018 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
22019
22020         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
22021         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
22022         glibc names.  Even if glibc is changed to conform to POSIX, the
22023         traditional names will be available anyway, since regex depends on
22024         the extensions module.  Also, fix a longstanding typo in the
22025         implementation of Spencer ERE test #75 from grep 2.3.  Problems
22026         reported by Emanuele Giaquinta.  Also, change sense of cached
22027         variable, so that the message makes sense.
22028
22029 2006-03-24  Simon Josefsson  <jas@extundo.com>
22030
22031         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
22032         including some doc fixes.
22033         (base64_encode_alloc): Fix +1 bug on allocation failures.
22034
22035 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22036
22037         * lib/base64.c (base64_encode): Do not read past end of array with
22038         unsanitized input on systems with CHAR_BIT > 8.
22039
22040 2006-03-24  Eric Blake  <ebb9@byu.net>
22041
22042         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
22043
22044 2006-03-22  Karl Berry  <karl@gnu.org>
22045
22046         * config/srclist.txt (*setenv.[ch]): get from coreutils.
22047         * config/srclistvars.sh (COREUTILS): new var.
22048
22049 2006-03-17  Jim Meyering  <jim@meyering.net>
22050
22051         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
22052         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
22053
22054 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
22055
22056         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
22057         no longer needs it.  Instead, check that regoff_t is as least
22058         as wide as ptrdiff_t.
22059
22060         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
22061         so that our regex.h stays compatible with the installed regex.
22062         This is helpful for installers who configure --without-included-regex.
22063         Problem reported by Emanuele Giaquinta.
22064
22065 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
22066
22067         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
22068         Typedef to long int, not to off_, as POSIX will likely change
22069         in that direction.
22070
22071 2006-03-15  Eric Blake  <ebb9@byu.net>
22072
22073         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
22074
22075 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
22076
22077         * lib/argp-help.c (validate_uparams): Fix typo
22078         * lib/argp-parse.c (argp_default_options): Consistently begin help
22079         messages with a lowercase letter.
22080
22081 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
22082
22083         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
22084         overrun buffers and shouldn't be used (much as gets shouldn't be
22085         used).
22086         * lib/time_r.c (asctime_r, ctime_r): Likewise.
22087
22088 2006-03-08  Simon Josefsson  <jas@extundo.com>
22089
22090         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
22091         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22092
22093 2006-03-08  Simon Josefsson  <jas@extundo.com>
22094
22095         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
22096         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22097
22098 2006-03-08  Simon Josefsson  <jas@extundo.com>
22099
22100         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
22101         signal that configure disabled the device.
22102
22103 2006-03-08  Simon Josefsson  <jas@extundo.com>
22104
22105         * build-aux/maint.mk: Fix refresh-po, to handle no translated
22106         languages.
22107
22108 2006-03-07  Simon Josefsson  <jas@extundo.com>
22109
22110         * modules/getopt (Depends-on): Add unistd.
22111
22112         * modules/unistd: New file.
22113
22114 2006-03-07  Simon Josefsson  <jas@extundo.com>
22115
22116         * modules/gc-random: New file.
22117
22118 2006-03-07  Simon Josefsson  <jas@extundo.com>
22119
22120         * m4/unistd_h.m4: New file.
22121
22122 2006-03-07  Simon Josefsson  <jas@extundo.com>
22123
22124         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
22125         test to be side-effect free by storing the result in the cache
22126         variable gl_cv_lib_readline, and moving the assignment of
22127         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
22128         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22129
22130 2006-03-07  Simon Josefsson  <jas@extundo.com>
22131
22132         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
22133         error on missing devices (the functions will return an error).
22134
22135         * m4/gc.m4: Move random stuff to gc-random.m4
22136
22137 2006-03-07  Simon Josefsson  <jas@extundo.com>
22138
22139         * lib/unistd_.h: New file.
22140
22141 2006-03-07  Simon Josefsson  <jas@extundo.com>
22142
22143         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
22144
22145 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
22146
22147         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
22148         Problem reported by Juan Manuel Guerrero.
22149
22150 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
22151
22152         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
22153         the unistd module.
22154         * lib/getlogin_r.c: Likewise.
22155         * lib/getlogin_r.h: Likewise.
22156         * lib/glob.c: Likewise.
22157         * lib/pagealign_alloc.c: Likewise.
22158         * lib/unistd_.h: Remove; no longer needed.
22159
22160 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
22161
22162         * MODULES.html.sh (Support for systems lacking POSIX:2001):
22163         Add unistd.
22164         * modules/c-stack (Depends-on): Add unistd.
22165         * modules/getlogin_r: Likewise.
22166         * modules/glob: Likewise.
22167         * modules/pagealign_alloc: Likewise.
22168         * modules/unistd (Files): Remove lib/unistd_.h.
22169         (EXTRA_DIST): Remove.
22170         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
22171         need unistd_.h.
22172         (MOSTLYCLEANFILES): Remove unistd.h-t.
22173
22174 2006-03-03  Simon Josefsson  <jas@extundo.com>
22175
22176         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
22177
22178 2006-03-03  Simon Josefsson  <jas@extundo.com>
22179
22180         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
22181         libidn and bison.
22182
22183 2006-03-03  Simon Josefsson  <jas@extundo.com>
22184
22185         * build-aux/maint.mk: Add indent target.
22186
22187 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
22188
22189         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
22190         our replacement poll.h in any case, to avoid a differing
22191         declaration from a system header.  Seen on AIX.
22192
22193 2006-03-01  Simon Josefsson  <jas@extundo.com>
22194
22195         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
22196         <kasal@ucw.cz>.
22197
22198 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
22199
22200         * modules/gettime (Depends-on): Add extensions module.
22201         * modules/nanosleep (Depends-on): Likewise.
22202         * modules/settime (Depends-on): Likewise.
22203
22204 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
22205
22206         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
22207         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
22208         pedantically.
22209         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
22210         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
22211
22212         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
22213         not "==".  Reported by Ralf Wildenhues.
22214
22215 2006-03-01  Karl Berry  <karl@gnu.org>
22216
22217         * doc/Copyright/request-*: new files, synced from gnuorg.
22218
22219 2006-03-01  Karl Berry  <karl@gnu.org>
22220
22221         * config/srclist.txt (Copyright/*): new entries.
22222
22223 2006-02-28  Simon Josefsson  <jas@extundo.com>
22224
22225         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
22226
22227 2006-02-27  Simon Josefsson  <jas@extundo.com>
22228
22229         * lib/base64.h: Indent #define's.  From Jim Meyering
22230         <jim@meyering.net>.
22231
22232 2006-02-27  Jim Meyering  <jim@meyering.net>
22233
22234         Revert the change of 2006-02-24, so these files can continue
22235         to be sync'd from gettext.
22236         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
22237         of `config.h'.
22238
22239 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
22240
22241         * modules/intprops: New file.
22242         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
22243         Add intprops.
22244         * modules/getloadavg (Files): Remove lib/intprops.h.
22245         (Depends-on): Add intprops.
22246         * modules/human: Likewise.
22247         * modules/inttostr: Likewise.
22248         * modules/openat: Likewise.
22249         * modules/sig2str: Likewise.
22250         * modules/userspec: Likewise.
22251         * modules/utimecmp: Likewise.
22252         * modules/xnanosleep: Likewise.
22253         * modules/xstrtol: Likewise.
22254
22255 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
22256
22257         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
22258         * modules/lock-tests (TESTS): Use $(EXEEXT).
22259         * modules/tls-tests: Likewise.
22260         * modules/argp-tests: Likewise.
22261         (check_PROGRAMS): New var, replacing...
22262         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
22263
22264 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22265
22266         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
22267         `config.h'.
22268
22269 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
22270
22271         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
22272
22273 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22274
22275         Sync from coreutils.
22276         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
22277         gl_CHDIR_SAFER.
22278
22279 2006-02-22  Jim Meyering  <jim@meyering.net>
22280
22281         Sync from coreutils.
22282         * m4/chdir-safer.m4: New file.
22283
22284 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
22285
22286         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
22287         AT_FDCWD exceeds INT_MAX.
22288         * lib/openat.h (AT_FDCWD): Likewise.
22289
22290 2006-02-17  Eric Blake  <address@hidden>
22291
22292         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
22293
22294 2006-02-16  Simon Josefsson  <jas@extundo.com>
22295
22296         * modules/getaddrinfo (Depends-on): Add sys_socket.
22297
22298 2006-02-15  Simon Josefsson  <jas@extundo.com>
22299
22300         * build-aux/maint.mk: Add dsyntax-check rule.
22301
22302 2006-02-15  Eric Blake  <ebb9@byu.net>
22303
22304         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
22305         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
22306         'present but cannot compile' warnings on cygwin.
22307         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
22308         use ws2tcpip.h if sys/socket.h works.
22309         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
22310         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
22311
22312 2006-02-14  Simon Josefsson  <jas@extundo.com>
22313
22314         * modules/maintainer-makefile (Files): Rename.
22315
22316         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
22317         and (the local) Makefile.cfg to maint-cfg.mk.
22318
22319         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
22320         to the latter.
22321
22322         * modules/maintainer-makefile: New module.
22323
22324         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
22325         severaly stripped to make it possible to build it up from scratch
22326         with reliable tests.
22327
22328         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
22329         fixes to permit overriding the default actions when configure and
22330         makefile are not available.
22331
22332 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
22333
22334         Sync from coreutils.
22335         * modules/lstat (Depends-on): Don't depend on xalloc.
22336         (License): Change from GPL to LGPL, since this is now simply a
22337         replacement for a libc function.
22338
22339 2006-02-14  Jim Meyering  <jim@meyering.net>
22340
22341         Sync from coreutils.
22342
22343         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
22344         failure on deficient systems, and simplify gnulib lgpl dependencies.
22345         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
22346         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
22347
22348         * lib/xalloc-die.c: Remove unused definition of N_.
22349
22350 2006-02-14  Jim Meyering  <jim@meyering.net>
22351
22352         Sync from coreutils.
22353         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
22354         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
22355         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
22356         double-quote uses of that variable, to accommodate the rare case in
22357         which getmntent is available in none of the libraries checked.  This
22358         happens at least on FreeBSD 5.0.
22359
22360 2006-02-13  Simon Josefsson  <jas@extundo.com>
22361
22362         * gnulib-tool (Usage): Fix --import, from
22363         karl@freefriends.org (Karl Berry).
22364
22365 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
22366
22367         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
22368
22369 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
22370
22371         * lib/argp-namefrob.h: Restore changes accidentally lost during the
22372         "autoupdate" on 2005-12-12.
22373
22374 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
22375
22376         * modules/closeout (Depends-on): Remove atexit.
22377
22378 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
22379
22380         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
22381         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
22382
22383 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
22384
22385         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
22386         __EXTENSIONS__ if this causes compilation to fail.  Problem
22387         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
22388         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
22389
22390 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
22391
22392         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
22393         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
22394         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
22395         All uses changed.
22396
22397 2006-01-26  Simon Josefsson  <jas@extundo.com>
22398
22399         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
22400         prototype is visible on mingw32.
22401
22402         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
22403         for mingw32.
22404
22405         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
22406         mingw32).
22407
22408 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
22409
22410         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
22411         attempt to open for write; this always fails, at least on POSIX
22412         hosts.  This reinstates the 2006-01-09 change, which was
22413         inadvertently removed.
22414
22415 2006-01-26  Bruno Haible  <bruno@clisp.org>
22416
22417         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
22418         Reported by Paul Eggert.
22419
22420 2006-01-26  Bruno Haible  <bruno@clisp.org>
22421             Paul Eggert  <eggert@cs.ucla.edu>
22422
22423         * lib/stdbool_.h (_Bool)
22424         [(! (defined __cplusplus || defined __BEOS__)
22425           && !defined __GNUC__
22426           && !(defined __HP_cc || defined __xlc__
22427                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
22428                || defined __sgi))]:
22429         #define to signed char in these cases too; this simplifies
22430         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
22431         etc., separately) and makes it more conservative.
22432
22433 2006-01-25  Simon Josefsson  <jas@extundo.com>
22434
22435         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
22436         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
22437         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
22438
22439 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
22440
22441         * lib/argp-namefrob.h: Bugfix. Remove stray #
22442
22443 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
22444
22445         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
22446         so that we test the test.
22447         Check for yet another HP-UX cc bug involving *bool |= bool.
22448
22449 2006-01-25  Karl Berry  <karl@gnu.org>
22450
22451         * config/srclist.txt (vasnprintf.c): sync lost.
22452
22453 2006-01-25  Jim Meyering  <jim@meyering.net>
22454
22455         Sync from the stable (b5) branch of coreutils:
22456
22457         * lib/fts.c (fts_children): Don't let close() clobber errno from
22458         failed fchdir().
22459
22460         * lib/fts.c (fts_stat): When following a symlink-to-directory,
22461         don't necessarily interpret stat-fails+lstat-succeeds as indicating
22462         a dangling symlink.  That can also happen at least for ELOOP.
22463         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
22464         FYI, this bug predates the inclusion of fts.c in coreutils.
22465
22466         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
22467         in their own block, so pre-c99 compilers don't object.
22468
22469         Avoid the double-free (first in fts_read, second in fts_close) that
22470         would occur when an `active' directory is made inaccessible (e.g.,
22471         via chmod a-x) during a traversal.
22472         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
22473         before returning.  Reproduce this failure by
22474         mkdir -p a/b; cd a; chmod a-x . b
22475         Reported by Stavros Passas.
22476
22477 2006-01-25  Jim Meyering  <jim@meyering.net>
22478
22479         * lib/fileblocks.c: Remove more useless parentheses.
22480         * lib/readutmp.h: Likewise.
22481
22482 2006-01-25  Bruno Haible  <bruno@clisp.org>
22483
22484         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
22485         warnings.
22486         Reported by Paul Eggert.
22487
22488 2006-01-25  Bruno Haible  <bruno@clisp.org>
22489
22490         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
22491         rid of a trap command. For Solaris sh.
22492         Reported by Mark D. Baushke <mdb@gnu.org>.
22493
22494 2006-01-24  Simon Josefsson  <jas@extundo.com>
22495
22496         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
22497         Bruno.
22498
22499 2006-01-24  Karl Berry  <karl@gnu.org>
22500
22501         * config/srclist.txt (argp-namefrob.h): sync lost.
22502
22503 2006-01-24  Jim Meyering  <jim@meyering.net>
22504
22505         * modules/openat (Files): Add lib/intprops.h.
22506         From Mark D. Baushke.
22507
22508 2006-01-24  Jim Meyering  <jim@meyering.net>
22509
22510         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
22511         Reported by Mark D. Baushke.
22512
22513 2006-01-24  Jim Meyering  <jim@meyering.net>
22514
22515         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
22516
22517 2006-01-24  Bruno Haible  <bruno@clisp.org>
22518
22519         * modules/strnlen (Maintainer): Change from glibc to all.
22520
22521 2006-01-24  Bruno Haible  <bruno@clisp.org>
22522
22523         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
22524         Patch by Paul Eggert.
22525
22526 2006-01-24  Bruno Haible  <bruno@clisp.org>
22527
22528         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
22529         already has it.
22530         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
22531         2005-11-26.
22532
22533         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
22534         'signed char' to avoid problems with the built-in _Bool type.
22535         Reported by Paul Eggert on 2005-11-26.
22536
22537 2006-01-24  Bruno Haible  <bruno@clisp.org>
22538
22539         * gnulib-tool (func_import): Avoid constructing complicated sed
22540         expressions inside backquote.
22541         Report and solution by Mark D. Baushke <mdb@gnu.org>.
22542
22543 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
22544
22545         These changes imported from libc.
22546         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
22547         test and two separate function calls.
22548         * lib/strndup.c (__strndup): Add libc_hidden_def.
22549
22550 2006-01-23  Simon Josefsson  <jas@extundo.com>
22551
22552         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
22553         Remove the test_*_SOURCES variable: automake infers it by default.
22554         * modules/tls-tests: Likewise.
22555
22556 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
22557
22558         Work around porting bugs reported by Dieter in
22559         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
22560         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
22561         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
22562         Include "getopt.h" first, to check interface.
22563         (getenv): Declare only if defined HAVE_DECL_GETENV &&
22564         !HAVE_DECL_GETENV.
22565         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
22566         (__strndup): Revert to K&R-style function dfns, the glibc style.
22567         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
22568         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
22569         Include strnlen.h first, to get prototype properly.
22570         (strnlen): Renamed from __strnlen.
22571         Remove weak alias.
22572
22573 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
22574
22575         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
22576
22577 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
22578
22579         * config/srclist.txt: Adjust to reflect glibc reorganization.
22580         This affects only comments.
22581
22582 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
22583
22584          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
22585          Reported by Bruce Korb <bkorb@gnu.org>.
22586
22587 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
22588
22589         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
22590         to pacify gcc -Wswitch-default.
22591
22592 2006-01-22  Bruno Haible  <bruno@clisp.org>
22593
22594         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
22595         temporary buffer for sprintf, take into account the precision also
22596         for 'd', 'i', 'u', 'o', 'x', 'X'.
22597
22598 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
22599
22600         * modules/argp-tests: New module
22601         * tests/test-argp.c: New file
22602         * tests/test-argp-2.sh: New file
22603
22604 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
22605
22606         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
22607         (__argp_base_name): Removed
22608         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
22609         typo.
22610         (__argp_base_name): Provide macro definition or extern declaration
22611         depending on the configuration
22612
22613 2006-01-20  Simon Josefsson  <jas@extundo.com>
22614
22615         * modules/inet_ntop (Depends-on): Depend on sys_socket.
22616
22617 2006-01-20  Simon Josefsson  <jas@extundo.com>
22618
22619         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
22620
22621 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
22622
22623         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
22624         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
22625         Suggested by Bruno Haible.
22626
22627 2006-01-20  Karl Berry  <karl@gnu.org>
22628
22629         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
22630         until changes propagate, I guess.
22631
22632 2006-01-19  Simon Josefsson  <jas@extundo.com>
22633
22634         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
22635
22636 2006-01-19  Simon Josefsson  <jas@extundo.com>
22637
22638         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
22639
22640 2006-01-19  Simon Josefsson  <jas@extundo.com>
22641
22642         * gnulib-tool: Set check_PROGRAMS.
22643
22644         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
22645         modules/des-tests, modules/gc-arcfour-tests,
22646         modules/gc-arctwo-tests, modules/gc-des-tests,
22647         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
22648         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
22649         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
22650         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
22651         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
22652         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
22653         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
22654         test_*_SOURCES.
22655
22656 2006-01-18  Simon Josefsson  <jas@extundo.com>
22657
22658         * modules/socklen (Depends-on): Depend on sys_socket.
22659
22660 2006-01-18  Simon Josefsson  <jas@extundo.com>
22661
22662         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
22663         modules/des-tests, modules/gc-arcfour-tests,
22664         modules/gc-arctwo-tests, modules/gc-des-tests,
22665         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
22666         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
22667         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
22668         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
22669         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
22670         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
22671         $(EXEEXT) to automake TESTS variable, for mingw32.
22672
22673 2006-01-17  Simon Josefsson  <jas@extundo.com>
22674
22675         * modules/socklen (Include): Need sys/socket.h.
22676
22677 2006-01-17  Bruno Haible  <bruno@clisp.org>
22678
22679         * modules/ssize_t (Include): Add <sys/types.h>.
22680
22681 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
22682
22683         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
22684         it's not portable and it doesn't work with cross-compiles.
22685         Problem reported by Bruno Haible.  Fix missing-$ typo in
22686         'test "gl_cv_ignore_unused_libraries" ...' that prevented
22687         -zignore from being used with Sun's C compiler.
22688
22689 2006-01-12  Simon Josefsson  <jas@extundo.com>
22690
22691         * lib/base64.c: Fix warning, reported by Bruno Haible
22692         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
22693
22694 2006-01-12  Bruno Haible  <bruno@clisp.org>
22695
22696         * modules/ldd: New file.
22697         * build-aux/ldd.sh.in: New file.
22698         * MODULES.html.sh (Support for building libraries and executables): Add
22699         ldd.
22700
22701 2006-01-12  Bruno Haible  <bruno@clisp.org>
22702
22703         * m4/ldd.m4: New file.
22704
22705 2006-01-12  Bruno Haible  <bruno@clisp.org>
22706
22707         * gnulib-tool (func_import, func_create_testdir): Don't go into an
22708         endless loop while replacing $auxdir with build-aux.
22709
22710 2006-01-11  Simon Josefsson  <jas@extundo.com>
22711
22712         * lib/stdint_.h (SIZE_MAX): Add missing (.
22713
22714 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
22715
22716         Sync from coreutils.
22717         * lib/md5.c: Fix commentary typos.
22718         (alignof, UNALIGNED_P): No need for a GCC-specific version.
22719         * lib/md5.h (__attribute__): Remove; unused.
22720         * lib/sha1.c: Fix commentary to match md5 better.
22721         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
22722         so that we don't need to worry about alignment.  All uses changed.
22723         This merges the 2005-10-28 md5 change into sha1.
22724
22725 2006-01-11  Jim Meyering  <jim@meyering.net>
22726
22727         Sync from coreutils.
22728         * lib/md5.c (OP): Fix spacing.
22729
22730 2006-01-11  Bruno Haible  <bruno@clisp.org>
22731
22732         Ensure automatic ordering between gl_LOCK and gl_ARGP.
22733         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
22734         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
22735
22736 2006-01-11  Bruno Haible  <bruno@clisp.org>
22737
22738         Ensure automatic ordering between gl_LOCK and gl_ARGP.
22739         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
22740         the "early" section as well.
22741
22742 2006-01-11  Bruno Haible  <bruno@clisp.org>
22743
22744         Avoid "ar: no archive members specified" error on MacOS X.
22745         * gnulib-tool (func_modules_add_dummy): New function.
22746         (func_import, func_create_testdir): Invoke it.
22747
22748 2006-01-11  Bruno Haible  <bruno@clisp.org>
22749
22750         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
22751         with $auxdir in AC_CONFIG_FILES statements.
22752
22753 2006-01-11  Bruno Haible  <bruno@clisp.org>
22754
22755         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
22756         Initialize also noinst_HEADERS to empty.
22757
22758 2006-01-11  Bruno Haible  <bruno@clisp.org>
22759
22760         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
22761         variables.
22762         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
22763         autoreconf.
22764
22765 2006-01-11  Bruno Haible  <bruno@clisp.org>
22766
22767         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
22768         overridable by the user.
22769         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22770
22771 2006-01-10  Simon Josefsson  <jas@extundo.com>
22772
22773         * modules/sys_socket: New file.
22774
22775 2006-01-10  Simon Josefsson  <jas@extundo.com>
22776
22777         * m4/sys_socket_h.m4: New file.
22778
22779 2006-01-10  Simon Josefsson  <jas@extundo.com>
22780
22781         * lib/socket_.h: New file.
22782
22783 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
22784
22785         * modules/readutmp (Maintainer): Add myself.
22786
22787 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
22788
22789         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
22790         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
22791         People who are still concerned with buggy memcmp implementations
22792         can invoke gl_FUNC_MEMCMP themselves.
22793
22794 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
22795
22796         * lib/regex_internal.h (BITSET_WORD_BITS):
22797         Work around a bug in 64-bit PGC (before version 6.1-2), where the
22798         preprocessor mishandles large unsigned values as if they were signed.
22799         Problem reported by Claudio Fontana in
22800         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
22801
22802 2006-01-10  Jim Meyering  <jim@meyering.net>
22803
22804         Avoid the double-free (first in fts_read, second in fts_close) that
22805         would occur when an `active' directory is made inaccessible (e.g.,
22806         via chmod a-x) during a traversal.
22807         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
22808         before returning.  Reproduce this failure by
22809         mkdir -p a/b; cd a; chmod a-x . b
22810         Reported by Stavros Passas.
22811
22812         Sync from coreutils.
22813         * lib/sha1.c: Tweak grammar in a comment.
22814
22815 2006-01-10  Jim Meyering  <jim@meyering.net>
22816
22817         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
22818         Patch by Joerg Sonnenberger.
22819
22820 2006-01-10  Bruno Haible  <bruno@clisp.org>
22821
22822         * modules/readutmp: Depend on module free.
22823         * modules/strtok_r: Depend on module restrict.
22824
22825 2006-01-10  Bruno Haible  <bruno@clisp.org>
22826
22827         * modules/gettext (configure.ac): Add an invocation of
22828         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
22829
22830 2006-01-10  Bruno Haible  <bruno@clisp.org>
22831
22832         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
22833         Reported by Werner Lemberg <wl@gnu.org>.
22834
22835 2006-01-10  Bruno Haible  <bruno@clisp.org>
22836
22837         * lib/localcharset.c: Update from GNU gettext.
22838
22839 2006-01-10  Bruno Haible  <bruno@clisp.org>
22840
22841         * lib/argp.h (__const): Remove macro. Use const instead.
22842         * lib/argp-fmtstream.h (__const): Likewise.
22843         * lib/glob_.h (__const): Remove macro.
22844         * lib/glob-libc.h: Use const instead of __const.
22845
22846 2006-01-10  Bruno Haible  <bruno@clisp.org>
22847
22848         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
22849         variable.
22850         Needed to avoid an automake error regarding the 'gettext' module.
22851
22852 2006-01-09  Simon Josefsson  <jas@extundo.com>
22853
22854         * modules/inet_ntop (Depends-on): Add restrict.
22855
22856 2006-01-09  Simon Josefsson  <jas@extundo.com>
22857
22858         * modules/gc-rijndael-tests (License): Put under LGPL.
22859
22860         * modules/gc-des-tests (License): Likewise.
22861
22862         * modules/gc-arcfour-tests (License): Likewise.
22863
22864         * modules/gc-arctwo-tests (License): Likewise.
22865
22866         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
22867
22868         * modules/gc-hmac-sha1-tests (Files): Likewise.
22869
22870         * modules/gc-hmac-md5-tests (License): Likewise.
22871
22872         * modules/gc-sha1-tests (License): Likewise.
22873
22874         * modules/gc-md5-tests (License): Likewise.
22875
22876         * modules/gc-md4-tests (License): Likewise.
22877
22878         * modules/gc-md2-tests (License): Likewise.
22879
22880         * modules/gc-tests (License): Likewise.
22881
22882         * modules/des-tests (License): Likewise.
22883
22884         * modules/md4-tests (License): Likewise.
22885
22886         * modules/md2-tests (License): Likewise.
22887
22888 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
22889
22890         Sync from coreutils:
22891
22892         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
22893         * modules/lib-ignore: New file.
22894         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
22895         chdir-safer.m4, lchmod.m4.
22896         * modules/openat: Add mkdirat.c, openat-priv.h.
22897
22898 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
22899
22900         Sync from coreutils.
22901         * m4/lib-ignore.m4: New file.
22902         * m4/lchmod.m4: New file.
22903
22904 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
22905
22906         Sync from coreutils.
22907         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
22908         for write access: POSIX says that must fail.
22909         * lib/fts.c (diropen): Likewise.
22910         * lib/save-cwd.c (save_cwd): Likewise.
22911         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
22912         well, for minor improvements on hosts that lack O_DIRECTORY.
22913         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
22914         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
22915         Fall back on chown if open failed with EACCES.
22916
22917         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
22918         Report an error at compile-time if only a 1-second nominal clock
22919         resolution is found.
22920
22921         * lib/lchmod.h: New file.
22922         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
22923         (make_dir_parents): Use lchown rather than chown, and
22924         lchmod rather than chmod.
22925
22926         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
22927         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
22928         "proc" reported by n0dalus.
22929
22930         * lib/mountlist.c: Include <limits.h>.
22931         (dev_from_mount_options)
22932         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
22933         New function.  It no longer assumes "dev=" has the System V meaning
22934         on Linux (since it doesn't).  It also parses "dev=" more carefully.
22935         (read_file_system_list)
22936         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
22937         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
22938         dev= in that case.
22939
22940         * lib/posixtm.h (PDS_PRE_2000): New macro.
22941         * lib/posixtm.c (year): Arg is now syntax_bits rather than
22942         allow_century.  All usages changed.  Reject dates outside the range
22943         1969-1999 if PDS_PRE_2000 is used.
22944
22945 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
22946
22947         Sync from coreutils.
22948         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
22949         (Time of day items): Mention the possibility of leap seconds.
22950         Problem reported by Dr. David Alan Gilbert.
22951
22952 2006-01-09  Jim Meyering  <jim@meyering.net>
22953
22954         Sync from coreutils.
22955
22956         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
22957
22958         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
22959
22960         * lib/modechange.c (mode_compile): Reject an invalid mode string
22961         that starts with an octal digit.  From Andreas Gruenbacher.
22962
22963         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
22964         and dup to open_safer and dup_safer, respectively.
22965         (openat_permissive): Fix typo in comment.
22966
22967         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
22968         "gettext.h"; either no longer needed or are guaranteed by openat.h.
22969         (_): Remove; no longer needed.
22970         (openat): Renamed from rpl_openat; no need for rpl_openat
22971         since openat.h renames openat for us.
22972         Replace most of the body with a call to openat_permissive,
22973         to avoid duplicate code.
22974         Port to (probably hypothetical) environments were mode_t is
22975         wider than int.
22976         (openat_permissive): Require mode arg, so that we can check
22977         types better.  Put it just after flags.  Change cwd failure
22978         indicator from pointer-to-bool to pointer-to-errno-value.
22979         All callers changed.
22980         Invoke openat_save_fail and/or openat_restore_fail if
22981         cwd_errno is null, so that openat can call us.
22982         (openat_permissive, fdopendir, fstatat, unlinkat):
22983         Simplify errno handling to avoid some duplicate code,
22984         as it's OK to set errno on success.
22985         * lib/openat.h: Revamp code so that function macros depend on
22986         __OPENAT_PREFIX only, not also on AT_FDCWD.
22987         (openat_ro): Remove.  Caller changed to use openat_permissive.
22988         (openat_permissive): Now a macro, if not a function.
22989         (openat_restore_fail, openat_save_fail): Now always functions,
22990         since mkdirat needs them even if __OPENAT_PREFIX is defined.
22991
22992         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
22993         and openat.c.
22994         * lib/mkdirat.c: Include openat-priv.h.
22995         Remove definitions of macros defined therein.
22996         * lib/openat.c: Likewise.
22997
22998         * lib/mkdirat.c (mkdirat): New file and function.
22999         * lib/openat.h (mkdirat): Declare.
23000
23001         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
23002
23003         * lib/openat.h (openat_permissive): Declare.
23004         (openat_ro): Define.
23005
23006         * lib/openat.c (EXPECTED_ERRNO): New macro.
23007         (openat_permissive): New function -- used in remove.c rewrite.
23008         (all functions): Set errno just before returning, only if there
23009         was an actual failure.
23010         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
23011
23012         Emulate openat-family functions using Linux's procfs, if possible.
23013         Idea and some code based on Ulrich Drepper's glibc changes.
23014
23015         * lib/openat.c: (BUILD_PROC_NAME): New macro.
23016         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
23017         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
23018         before falling back on save_cwd and restore_cwd.
23019         (fdopendir, fstatat, unlinkat): Likewise.
23020
23021         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
23022         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
23023
23024         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
23025         as second argument to va_arg.  Otherwise, some versions of gcc
23026         warn that `if this code is reached, the program will abort'.
23027
23028 2006-01-09  Jim Meyering  <jim@meyering.net>
23029
23030         Sync from coreutils.
23031         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
23032         Require openat-priv.h.
23033
23034 2006-01-09  Bruno Haible  <bruno@clisp.org>
23035
23036         * modules/strnlen (Include): Use strnlen.h.
23037
23038 2006-01-09  Bruno Haible  <bruno@clisp.org>
23039
23040         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
23041
23042 2006-01-09  Bruno Haible  <bruno@clisp.org>
23043
23044         * lib/sysexit_.h (EX_OK): New macro.
23045         Suggested by Martin Lambers <marlam@marlam.de>.
23046
23047 2006-01-09  Bruno Haible  <bruno@clisp.org>
23048
23049         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
23050         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
23051
23052 2006-01-09  Bruno Haible  <bruno@clisp.org>
23053
23054         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
23055         numbers.
23056
23057 2006-01-09  Bruno Haible  <bruno@clisp.org>
23058
23059         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
23060         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
23061         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
23062         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
23063
23064 2006-01-09  Bruno Haible  <bruno@clisp.org>
23065
23066         * build-aux/javacomp.sh.in: New file, moved from lib/.
23067         * modules/javacomp-script (Files): Update.
23068         (configure.ac): Add AC_CONFIG_FILES invocation.
23069         (EXTRA_DIST): Remove variable.
23070
23071         * build-aux/javaexec.sh.in: New file, moved from lib/.
23072         * modules/javaexec (Files): Update.
23073         (configure.ac): Add AC_CONFIG_FILES invocation.
23074         (EXTRA_DIST): Remove javaexec.sh.in.
23075
23076         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
23077         * modules/csharpcomp-script (Files): Update.
23078         (configure.ac): Add AC_CONFIG_FILES invocation.
23079         (EXTRA_DIST): Remove variable.
23080
23081         * build-aux/csharpexec.sh.in: New file, moved from lib/.
23082         * modules/csharpexec (Files): Update.
23083         (configure.ac): Add AC_CONFIG_FILES invocation.
23084         (EXTRA_DIST): Remove csharpexec.sh.in.
23085
23086 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
23087
23088         Sync from coreutils.
23089
23090         Add POSIX ACL support
23091         * lib/acl.h (copy_acl, set_acl): Add declarations.
23092         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
23093         systems other than Linux.
23094         (chmod_or_fchmod): New function: use fchmod when possible,
23095         and chmod otherwise.
23096         (file_has_acl): Add a POSIX ACL implementation, with a
23097         Linux-specific subcase.
23098         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
23099         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
23100         acls are unsupported.
23101         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
23102         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
23103         are unsupported.
23104
23105 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
23106
23107         Sync from coreutils.
23108         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
23109
23110 2006-01-07  Bruno Haible  <bruno@clisp.org>
23111
23112         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
23113         gl_EARLY.
23114
23115 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
23116
23117         * lib/strftime.c (tzname): Don't declare if it is already #defined.
23118         Problem reported for Mingw by Mark Junker.
23119
23120 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
23121
23122         * README: Gnulib normally doesn't generate a tarball.
23123
23124 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
23125
23126         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
23127         long int, not int, for nanosecond counts, so that people who are
23128         used to POSIX struct timespec won't be surprised.  Reported by Jim
23129         Meyering.
23130
23131 2005-12-28  Bruno Haible  <bruno@clisp.org>
23132
23133         * build-aux/config.rpath: Update from GNU gettext.
23134
23135 2005-12-16  Jim Meyering  <jim@meyering.net>
23136
23137         * modules/fprintftime: New module.
23138         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
23139
23140 2005-12-16  Jim Meyering  <jim@meyering.net>
23141
23142         * m4/fprintftime.m4: New file.
23143
23144 2005-12-16  Jim Meyering  <jim@meyering.net>
23145
23146         * lib/fprintftime.c, lib/fprintftime.h: New files.
23147
23148 2005-12-15  Simon Josefsson  <jas@extundo.com>
23149
23150         * modules/socklen (configure.ac): Fix M4 macro name, to align with
23151         new m4/socklen.m4.
23152
23153 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
23154
23155         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
23156         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
23157
23158 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
23159
23160         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
23161         * lib/argp-help.c (fill_in_uparams): Check if the constructed
23162         struct uparams is valid. Fall back to the default values if it is
23163         not.
23164
23165 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
23166
23167         * modules/argp (Files): Add argp-pin.c
23168         (Depends-on): dirname
23169         (lib_SOURCES): Add argp-pin.c
23170
23171 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
23172
23173         * m4/argp.m4:  Check if program_invocation_name and
23174         program_invocation_short_name are declared and define appropriate
23175         macros if they are not.
23176
23177 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
23178
23179         * lib/argp-help.c (__argp_base_name): New function
23180         (__argp_short_program_name): Rewrite using __argp_base_name
23181         * lib/argp-namefrob.h: Define program_invocation_name and
23182         program_invocation_short_name if requested
23183         (__argp_base_name): Add prototype
23184         * lib/argp-parse.c (argp_def): Use gettext wrappers
23185         (argp_default_parser): Use __argp_base_name
23186         * lib/argp-pin.c: New file. Defines program_invocation_name and
23187         program_invocation_short_name on systems that lack them.
23188
23189 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
23190
23191         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
23192         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
23193         porting problem reported by Georg Schwarz in
23194         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
23195
23196 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
23197
23198         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
23199         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
23200         porting problem reported by Georg Schwarz in
23201         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
23202
23203 2005-12-05  Bruno Haible  <bruno@clisp.org>
23204
23205         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
23206         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
23207         Reported by Mark Junker <mjscod@gmx.de>.
23208
23209 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
23210
23211         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
23212         Use implementation from Albert Chin, with some
23213         comments/corrections by Stepan Kasal and myself.
23214
23215 2005-12-02  Bruno Haible  <bruno@clisp.org>
23216
23217         * gnulib-tool (func_import): Accept GPLed build tool modules when
23218         --lgpl is given.
23219         * modules/csharpcomp-script: New file.
23220         * modules/csharpcomp: Depend on it.
23221         * modules/javacomp-script: New file.
23222         * modules/javacomp: Depend on it.
23223         Suggested by Simon Josefsson.
23224
23225 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
23226
23227         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
23228         statement, to work around an HP-UX 10.20 compiler bug reported by
23229         Peter O'Gorman.
23230
23231 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
23232
23233         * modules/savedir (Depends-on): Add openat.
23234
23235 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
23236
23237         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
23238         (uintmax_t) [defined uintmax_t]: Do not declare.
23239         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
23240         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
23241         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
23242         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
23243         sake of portability to weird hosts that C allows (though we don't
23244         know of any practical examples).
23245
23246         * lib/savedir.h (fdsavedir): New decl.
23247         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
23248         contains most of the former guts of savedir.
23249         (savedir): Use savedirstream.
23250         Include "openat.h".
23251
23252 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
23253
23254         * modules/obstack (Files): Add m4/ulonglong.m4.
23255         Problem reported by Davide Angelocola.
23256
23257 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
23258
23259         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
23260         coreutils no longer futzes with rounding modes.
23261
23262 2005-11-14  Jim Meyering  <jim@meyering.net>
23263
23264         * lib/mkstemp-safer.c: Include <config.h>, required for possible
23265         replacement of mkstemp.
23266
23267 2005-11-10  Simon Josefsson  <jas@extundo.com>
23268
23269         * lib/readline.c: Remove EOL.
23270
23271 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
23272
23273         * modules/gethrxtime (Depends-on): Add gettime.
23274
23275 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
23276
23277         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
23278         or gettimeofday; no longer needed.
23279
23280 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
23281
23282         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
23283         time business.
23284         (gethrxtime) [! (HAVE_NANOUPTIME
23285         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
23286         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
23287         our own approximation.
23288
23289 2005-11-08  Eric Blake  <ebb9@byu.net>
23290
23291         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
23292
23293 2005-11-08  Eric Blake  <ebb9@byu.net>
23294
23295         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
23296
23297 2005-11-04  Bruno Haible  <bruno@clisp.org>
23298
23299         * gnulib-tool: Implement --update mode.
23300
23301 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
23302
23303         Fix porting problem reported by Theodoros V. Kalamatianos.
23304         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
23305         Don't assume that futimes failing means we must fail.
23306
23307 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
23308
23309         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
23310         variables to suggest the intended function of the PATH_MAX check.
23311
23312 2005-10-30  Kean Johnston  <jkj@sco.com>
23313
23314         Trivial changes to support SCO systems.
23315         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
23316         as PATH_MAX.
23317         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
23318         where __ptr is null when no I/O is pending.
23319
23320 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
23321
23322         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
23323         leave errno alone.  Problem reported by Dmitry V. Levin.
23324
23325 2005-10-28  Simon Josefsson  <jas@extundo.com>
23326
23327         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
23328         Test more.
23329
23330         * tests/test-gc-md2.c, tests/test-md2.c: New files.
23331
23332         * modules/md2, modules/md2-tests: New files.
23333
23334 2005-10-28  Simon Josefsson  <jas@extundo.com>
23335
23336         * m4/inet_ntop.m4: More tests.
23337
23338         * m4/gc-md2.m4, md2.m4: New file.
23339
23340 2005-10-28  Simon Josefsson  <jas@extundo.com>
23341
23342         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
23343         "restrict" keywords, as per POSIX.  Protect the function
23344         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
23345         Don't use K&R prototypes.  Check the sprintf return values.
23346         Re-define EAFNOSUPPORT if not present.  Indent.
23347
23348         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
23349         suggested by Bruno Haible <bruno@clisp.org>.
23350
23351         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
23352
23353         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
23354
23355         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
23356         libgcrypt).
23357
23358         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
23359
23360         * lib/md2.h, lib/md2.c: New files.
23361
23362 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
23363
23364         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
23365         errno alone.  Problem reported by Frederic Jolliton.
23366
23367 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
23368
23369         * modules/verify (License): Change from GPL to LGPL.  This is a
23370         tiny module and there are apparently near-equivalents that are
23371         under the BSD license.
23372
23373 2005-10-24  Simon Josefsson  <jas@extundo.com>
23374
23375         * modules/sha1: Relicense to LGPL.
23376
23377 2005-10-24  Simon Josefsson  <jas@extundo.com>
23378
23379         * lib/md4.h: Shrink buffer size, now that we changed the type.
23380
23381 2005-10-23  Simon Josefsson  <jas@extundo.com>
23382
23383         * gnulib-tool (func_import): Fix --tests-base.
23384
23385 2005-10-22  Simon Josefsson  <jas@extundo.com>
23386
23387         * modules/arcfour (Depends-on): Need stdint.
23388
23389 2005-10-22  Simon Josefsson  <jas@extundo.com>
23390
23391         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
23392         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
23393
23394 2005-10-22  Simon Josefsson  <jas@extundo.com>
23395
23396         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
23397         suggested by Bruno Haible <bruno@clisp.org>.
23398
23399 2005-10-22  Simon Josefsson  <jas@extundo.com>
23400
23401         * lib/crc.h: Include stddef.h, for size_t.
23402
23403 2005-10-22  Simon Josefsson  <jas@extundo.com>
23404
23405         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
23406         arcfour_context struct (simplify test vector testing in GNU
23407         Shishi).
23408
23409 2005-10-21  Simon Josefsson  <jas@extundo.com>
23410
23411         * modules/des, modules/des-tests: New files.
23412
23413         * modules/gc-des, modules/gc-des-tests: New files.
23414
23415         * tests/test-des.c, tests/test-gc-des.c: New file.
23416
23417 2005-10-21  Simon Josefsson  <jas@extundo.com>
23418
23419         * modules/arctwo, modules/arctwo-tests: New files.
23420
23421         * tests/test-arctwo.c: New file.
23422
23423         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
23424
23425         * tests/test-gc-arctwo.c: New file.
23426
23427 2005-10-21  Simon Josefsson  <jas@extundo.com>
23428
23429         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
23430         Bruno Haible <bruno@clisp.org>.
23431
23432         * m4/gc-des.m4: New file.
23433
23434 2005-10-21  Simon Josefsson  <jas@extundo.com>
23435
23436         * m4/arctwo.m4: New file.
23437
23438         * m4/gc-arctwo.m4: New file.
23439
23440 2005-10-21  Simon Josefsson  <jas@extundo.com>
23441
23442         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
23443         block.
23444
23445 2005-10-21  Simon Josefsson  <jas@extundo.com>
23446
23447         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
23448         <bruno@clisp.org>.
23449
23450         * lib/hmac-sha1.c (hmac_sha1): Likewise.
23451
23452         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
23453         Bruno Haible <bruno@clisp.org>.
23454
23455         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
23456         <bruno@clisp.org>.
23457
23458 2005-10-21  Simon Josefsson  <jas@extundo.com>
23459
23460         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
23461
23462 2005-10-21  Simon Josefsson  <jas@extundo.com>
23463
23464         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
23465
23466 2005-10-21  Simon Josefsson  <jas@extundo.com>
23467
23468         * lib/des.h, lib/des.c: New files.
23469
23470         * lib/gc-gnulib.c: Support DES.c
23471
23472 2005-10-21  Simon Josefsson  <jas@extundo.com>
23473
23474         * lib/arctwo.h, lib/arctwo.c: New files.
23475
23476         * lib/gc-gnulib.c: Support ARCTWO.
23477
23478 2005-10-21  Simon Josefsson  <jas@extundo.com>
23479
23480         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
23481         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23482
23483 2005-10-21  Simon Josefsson  <jas@extundo.com>
23484
23485         * gnulib-tool (func_import, func_create_testdir): Define automake
23486         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
23487         Makefile.am snippet),
23488         suggested by Bruno Haible <bruno@clisp.org>.
23489
23490         * modules/gc (Makefile.am): Use it.
23491
23492 2005-10-21  Bruno Haible  <bruno@clisp.org>
23493
23494         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
23495         patch.
23496
23497 2005-10-19  Simon Josefsson  <jas@extundo.com>
23498
23499         * tests/test-gc-rijndael.c: New file.
23500
23501         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
23502
23503 2005-10-19  Simon Josefsson  <jas@extundo.com>
23504
23505         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
23506         interface too.
23507
23508 2005-10-19  Simon Josefsson  <jas@extundo.com>
23509
23510         * tests/test-gc-arcfour.c: New file.
23511
23512         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
23513
23514 2005-10-19  Simon Josefsson  <jas@extundo.com>
23515
23516         * modules/gc-md4, modules/gc-md4-tests: New file.
23517
23518         * tests/test-gc-md4.c: New file.
23519
23520 2005-10-19  Simon Josefsson  <jas@extundo.com>
23521
23522         * m4/gc-md4.m4: New file.
23523
23524 2005-10-19  Simon Josefsson  <jas@extundo.com>
23525
23526         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
23527         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
23528         <kasal@ucw.cz>.
23529
23530 2005-10-19  Simon Josefsson  <jas@extundo.com>
23531
23532         * m4/gc-arcfour.m4: New file.
23533
23534         * m4/gc-rijndael.m4: New file.
23535
23536 2005-10-19  Simon Josefsson  <jas@extundo.com>
23537
23538         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
23539
23540 2005-10-19  Simon Josefsson  <jas@extundo.com>
23541
23542         * lib/gc-gnulib.c: Support ARCFOUR.
23543
23544 2005-10-19  Simon Josefsson  <jas@extundo.com>
23545
23546         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
23547         support.
23548
23549         * lib/gc.h: Add ECB enum type.
23550
23551         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
23552
23553 2005-10-18  Simon Josefsson  <jas@extundo.com>
23554
23555         * tests/test-md5.c: New file.
23556
23557         * modules/md5-tests: New file.
23558
23559 2005-10-18  Simon Josefsson  <jas@extundo.com>
23560
23561         * tests/test-md4.c: New file.
23562
23563         * modules/md4, modules/md4-tests: New files.
23564
23565 2005-10-18  Simon Josefsson  <jas@extundo.com>
23566
23567         * m4/md4.m4: New file.
23568
23569 2005-10-18  Simon Josefsson  <jas@extundo.com>
23570
23571         * lib/md4.h, lib/md4.c: New files, based on md5.?.
23572
23573 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
23574
23575         * gnulib-tool (func_create_testdir): Omit the second check whether
23576         BUILT_SOURCES in nonempty.
23577
23578 2005-10-17  Simon Josefsson  <jas@extundo.com>
23579
23580         * tests/test-rijndael.c: New file.
23581
23582 2005-10-17  Simon Josefsson  <jas@extundo.com>
23583
23584         * modules/sha1: Depend on stdint instead of md5.
23585
23586         * modules/md5: Depend on stdint, remove uint32_t.
23587
23588 2005-10-17  Simon Josefsson  <jas@extundo.com>
23589
23590         * modules/gc-sha1-tests: New file.
23591
23592         * tests/test-gc-sha1.c: New file.
23593
23594 2005-10-17  Simon Josefsson  <jas@extundo.com>
23595
23596         * m4/md5.m4: Remove call to uint32_t.m4.
23597
23598 2005-10-17  Simon Josefsson  <jas@extundo.com>
23599
23600         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
23601
23602         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
23603         md5.h.
23604
23605         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
23606
23607         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
23608
23609 2005-10-17  Simon Josefsson  <jas@extundo.com>
23610
23611         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
23612
23613 2005-10-17  Simon Josefsson  <jas@extundo.com>
23614
23615         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
23616
23617 2005-10-17  Simon Josefsson  <jas@extundo.com>
23618
23619         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
23620
23621         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
23622
23623 2005-10-17  Bruno Haible  <bruno@clisp.org>
23624
23625         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
23626         that it can also be used in a test.
23627
23628 2005-10-16  Bruno Haible  <bruno@clisp.org>
23629
23630         * gnulib-tool (func_emit_tests_Makefile_am): Also define
23631         TESTS_ENVIRONMENT, so that individual tests can augment it.
23632
23633         * gnulib-tool (func_create_testdir): Use an intermediate target for
23634         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
23635         macros, like $(ALLOCA_H), which cannot be passed through the command
23636         line.
23637
23638 2005-10-15  Simon Josefsson  <jas@extundo.com>
23639
23640         * modules/rijndael-tests: New file.
23641
23642         * modules/rijndael: New file.
23643
23644 2005-10-15  Simon Josefsson  <jas@extundo.com>
23645
23646         * m4/rijndael.m4: New file.
23647
23648 2005-10-15  Simon Josefsson  <jas@extundo.com>
23649
23650         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
23651
23652         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
23653
23654 2005-10-14  Simon Josefsson  <jas@extundo.com>
23655
23656         * tests/test-arcfour.c: New file.
23657
23658         * modules/arcfour, modules/arcfour-tests: New files.
23659
23660 2005-10-14  Simon Josefsson  <jas@extundo.com>
23661
23662         * m4/arcfour.m4: New file.
23663
23664 2005-10-14  Simon Josefsson  <jas@extundo.com>
23665
23666         * lib/arcfour.h, lib/arcfour.c: New files.
23667
23668 2005-10-14  Roland McGrath  <roland@redhat.com>
23669
23670         Import from libc.  [BZ #1331]
23671         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
23672         macro argument.
23673         Reported by Matej Vela <vela@debian.org>.
23674
23675 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
23676
23677         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
23678         include <wchar.h>; no longer needed.
23679
23680 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
23681
23682         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
23683
23684 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
23685         and  Ulrich Drepper  <drepper@redhat.com>
23686
23687         Import from libc.
23688         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
23689         instead of inline stream orientation test and two separate
23690         function calls.  Pay no attention to USE_IN_LIBIO.
23691
23692 2005-10-13  Simon Josefsson  <jas@extundo.com>
23693
23694         * modules/gc-hmac-md5-tests: New file.
23695
23696         * tests/test-gc-hmac-sha1.c: New file.
23697
23698         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
23699
23700         * modules/gc-hmac-md5-tests: New file.
23701
23702         * tests/test-gc-md5.c: New file.
23703
23704         * modules/gc-md5-tests: New file.
23705
23706 2005-10-13  Simon Josefsson  <jas@extundo.com>
23707
23708         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
23709         Move memory allocation outside of loop.
23710
23711 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
23712
23713         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
23714         intermediate directory is in a read-only file system.  Problem
23715         reported by Eric Blake.
23716
23717 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
23718
23719         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
23720
23721 2005-10-12  Simon Josefsson  <jas@extundo.com>
23722
23723         * tests/test-hmac-sha1.c: New file.
23724
23725         * modules/hmac-sha1-tests: New file.
23726
23727         * modules/hmac-sha1: New file.
23728
23729 2005-10-12  Simon Josefsson  <jas@extundo.com>
23730
23731         * modules/gc-sha1: New file.
23732
23733 2005-10-12  Simon Josefsson  <jas@extundo.com>
23734
23735         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
23736
23737         * tests/test-gc-pbkdf2-sha1.c: New file.
23738
23739 2005-10-12  Simon Josefsson  <jas@extundo.com>
23740
23741         * modules/gc-md5, modules/gc-hmac-md5: New files.
23742
23743         * modules/gc (Files): Remove md5, memxor and hmac files.
23744
23745 2005-10-12  Simon Josefsson  <jas@extundo.com>
23746
23747         * m4/gc-pbkdf2-sha1.m4: New file.
23748
23749         * m4/gc-hmac-sha1.m4: New file.
23750
23751         * m4/gc-sha1: New file.
23752
23753         * m4/hmac-sha1.m4: New file.
23754
23755 2005-10-12  Simon Josefsson  <jas@extundo.com>
23756
23757         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
23758
23759         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
23760
23761 2005-10-12  Simon Josefsson  <jas@extundo.com>
23762
23763         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
23764         suggested by Bruno Haible <bruno@clisp.org>.
23765
23766 2005-10-12  Simon Josefsson  <jas@extundo.com>
23767
23768         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
23769
23770 2005-10-12  Simon Josefsson  <jas@extundo.com>
23771
23772         * lib/gc-pbkdf2-sha1.c: New file.
23773
23774         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
23775
23776 2005-10-12  Simon Josefsson  <jas@extundo.com>
23777
23778         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
23779
23780         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
23781
23782 2005-10-12  Simon Josefsson  <jas@extundo.com>
23783
23784         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
23785         GC_USE_HMAC_MD5, respectively.
23786
23787         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
23788         (gc_md5): Fix typo.
23789
23790         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
23791
23792         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
23793
23794         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
23795
23796 2005-10-12  Bruno Haible  <bruno@clisp.org>
23797
23798         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
23799         Reported by Stepan Kasal <kasal@ucw.cz>.
23800
23801 2005-10-11  Simon Josefsson  <jas@extundo.com>
23802
23803         * tests/test-crc.c: New file.
23804
23805         * modules/crc, modules/crc-tests: New files.
23806
23807 2005-10-11  Simon Josefsson  <jas@extundo.com>
23808
23809         * m4/crc.m4: New file.
23810
23811 2005-10-11  Simon Josefsson  <jas@extundo.com>
23812
23813         * lib/gc.h: Add gc_hash and gc_hash_buffer.
23814
23815         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
23816
23817         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
23818
23819 2005-10-11  Simon Josefsson  <jas@extundo.com>
23820
23821         * lib/crc.h, lib/crc.c: New files.
23822
23823         * lib/gc.h (gc_hash_buffer): Add doc.
23824
23825 2005-10-11  Bruno Haible  <bruno@clisp.org>
23826
23827         * modules/c-strcasestr: New file.
23828         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
23829
23830 2005-10-11  Bruno Haible  <bruno@clisp.org>
23831
23832         * modules/c-strcase: New file.
23833         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
23834
23835 2005-10-11  Bruno Haible  <bruno@clisp.org>
23836
23837         * lib/strcasecmp.c: Include limits.h.
23838         (strcasecmp): Avoid integer overflow on exotic platforms.
23839         * lib/strncasecmp.c: Include limits.h.
23840         (strncasecmp): Avoid integer overflow on exotic platforms.
23841         Reported by Paul Eggert.
23842
23843 2005-10-11  Bruno Haible  <bruno@clisp.org>
23844
23845         * lib/c-strcasestr.h: New file, from GNU gettext.
23846         * lib/c-strcasestr.c: New file, from GNU gettext.
23847
23848 2005-10-11  Bruno Haible  <bruno@clisp.org>
23849
23850         * lib/c-strcase.h: New file, from GNU gettext.
23851         * lib/c-strcasecmp.c: New file, from GNU gettext.
23852         * lib/c-strncasecmp.c: New file, from GNU gettext.
23853
23854 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
23855
23856         * modules/mempcpy (License): GPL -> LGPL.
23857         * modules/strchrnul (License): Likewise.
23858         * modules/sysexits (License): Likewise.
23859
23860 2005-10-08  Simon Josefsson  <jas@extundo.com>
23861
23862         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
23863
23864 2005-10-07  Simon Josefsson  <jas@extundo.com>
23865
23866         * m4/memxor.m4: Remove gl_C_RESTRICT call.
23867
23868 2005-10-06  Simon Josefsson  <jas@extundo.com>
23869
23870         * tests/test-hmac-md5.c: New file.
23871
23872         * modules/hmac-md5-tests: New file.
23873
23874         * modules/hmac-md5: New file.
23875
23876 2005-10-06  Simon Josefsson  <jas@extundo.com>
23877
23878         * m4/hmac-md5.m4: New file.
23879
23880         * m4/memxor.m4: Require gl_C_RESTRICT.
23881
23882 2005-10-06  Simon Josefsson  <jas@extundo.com>
23883
23884         * lib/memxor.c (memxor): Avoid casts and warnings.
23885
23886 2005-10-06  Simon Josefsson  <jas@extundo.com>
23887
23888         * lib/hmac-md5.c: New file.
23889
23890         * lib/hmac.h: New file.
23891
23892 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
23893
23894         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
23895         promotes to int, not unsigned int, to catch the AIX 5.3
23896         compiler bug.
23897
23898 2005-10-05  Simon Josefsson  <jas@extundo.com>
23899
23900         * modules/memxor: New file.
23901
23902         * modules/iconv (Files): Move config.rpath to havelib, it is used
23903         there.
23904
23905         * modules/havelib (Files): Add config.rpath.
23906
23907 2005-10-05  Simon Josefsson  <jas@extundo.com>
23908
23909         * m4/memxor.m4: New file.
23910
23911 2005-10-05  Simon Josefsson  <jas@extundo.com>
23912
23913         * lib/memxor.c (memxor): Fix compiler error.
23914
23915         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
23916         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
23917
23918         * lib/memxor.h, lib/memxor.c: New files.
23919
23920         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
23921         we assume all systems have it, suggested by Jim Meyering
23922         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
23923         any systems lack sys/socket.h; mingw32 is known to lack it, but we
23924         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
23925         same reasons.
23926
23927 2005-10-05  Simon Josefsson  <jas@extundo.com>
23928
23929         * config/srclist.txt: Add glibc bug 1423 for md5.h.
23930
23931 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
23932
23933         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
23934         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
23935         needed, since the source code now assumes these .h files.
23936
23937 2005-10-05  Derek Price  <derek@ximbiot.com>
23938
23939         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
23940
23941 2005-10-05  Bruno Haible  <bruno@clisp.org>
23942
23943         * modules/stdint (License): Change to LGPL.
23944
23945 2005-10-04  Simon Josefsson  <jas@extundo.com>
23946
23947         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
23948         D. Baushke" <mdb@gnu.org>.
23949
23950 2005-10-04  Bruno Haible  <bruno@clisp.org>
23951
23952         * lib/verify.h (verify_true): Provide alternative definition for C++.
23953
23954 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
23955
23956         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
23957         (SSIZE_MAX): New macro, if not already defined.
23958         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
23959         than 2 GiB.
23960
23961 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
23962
23963         Sync from coreutils.
23964         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
23965         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
23966         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
23967         ULLONG_MAX doesn't work with 2.7.2.1.
23968
23969 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
23970
23971         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
23972         From Ben Pfaff.
23973
23974         * modules/exclude (Depends-on): Depend on verify.
23975         * modules/strtoimax (Depends-on): Likewise.
23976         * modules/utimecmp (Depends-on): Likewise.
23977
23978 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
23979
23980         * lib/exclude.c: Include verify.h.
23981         (verify): Remove.  All callers changed to use verify.h's version.
23982         * lib/strtoimax.c: Likewise.
23983         * lib/utimecmp.c: Likewis.e
23984
23985         Sync from coreutils.
23986         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
23987         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
23988         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
23989         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
23990         bother returning ENOSYS if settimeofday or stime fails; just let
23991         them return whatever errno they want to return.
23992         * lib/utimens.c: Include unistd.h, for dup2.
23993         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
23994         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
23995
23996 2005-10-02  Jim Meyering  <jim@meyering.net>
23997
23998         Sync from coreutils.
23999         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
24000         from glibc-2.2.5 that fails for read-only files.
24001
24002 2005-10-02  Jim Meyering  <jim@meyering.net>
24003
24004         Sync from coreutils.
24005         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
24006         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
24007         `#if HAVE_CONFIG_H'.
24008         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
24009         Remove AT_FDCWD test.
24010         Do not consume the fd unless successful.
24011         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
24012         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
24013         block, so that we don't even try to compile it if settimeofday is
24014         available.  This works around a compilation failure on OSF1 V5.1,
24015         due to stime requiring a `long int*' while tv_sec is `int'.
24016
24017 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
24018
24019         Sync from coreutils.
24020         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
24021         against `yes', rather than just testing for nonempty.
24022
24023 2005-10-01  Simon Josefsson  <jas@extundo.com>
24024
24025         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
24026         and Darwin.
24027
24028         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
24029         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
24030         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
24031         freeaddrinfo and gai_strerror are declared by the POSIX headers.
24032         Check if struct addrinfo is declared.
24033
24034 2005-10-01  Simon Josefsson  <jas@extundo.com>
24035
24036         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
24037         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
24038         AI_* and EAI_* definitions.  Protect function declarations.
24039
24040 2005-10-01  Jim Meyering  <jim@meyering.net>
24041
24042         Sync from coreutils.
24043
24044         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
24045         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
24046         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
24047         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
24048         in the inet and nsl libraries.  Required on Solaris 5.7.
24049
24050 2005-10-01  Jim Meyering  <jim@meyering.net>
24051
24052         Sync from coreutils.
24053         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
24054         in the inet and nsl libraries.  Required on Solaris 5.7.
24055
24056 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
24057
24058         * lib/getdelim.c (getdelim): Remove unused variables.
24059
24060 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
24061
24062         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
24063         so that the code works even with ancient cpp.  Portability problem
24064         with GCC 2.7.2.1 reported by Thomas M.Ott.
24065
24066 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
24067
24068         * modules/regex (Depends-on): Add strcase.
24069
24070         * modules/gethostname (Licence): Change from GPL to LGPL, since
24071         gethostname.c is a trivial implementation of a standard library
24072         function.
24073         * modules/poll (License): Change from GPL to LGPL, since it's
24074         derived from LGPL code.
24075
24076 2005-09-27  Jim Meyering  <jim@meyering.net>
24077
24078         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
24079         HAVE_CONFIG_H.
24080
24081         * lib/intprops.h (signed_type_or_expr__): Define.
24082         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
24083         for unsigned types.
24084
24085 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
24086
24087         * lib/verify.h (verify_expr): Remove, replacing with:
24088         (verify_true): New macro that returns true instead of void.
24089         (verify_type__): Remove.
24090         (verify): Use verify_true rather than verify_type__.
24091
24092 2005-09-26  Bruno Haible  <bruno@clisp.org>
24093
24094         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
24095         is necessary.
24096         (lib_SOURCES): Remove mbchar.c.
24097         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
24098         (Files): Add m4/mbrtowc.m4.
24099         * modules/mbiter: Likewise.
24100         * modules/mbuiter: Likewise.
24101
24102 2005-09-26  Bruno Haible  <bruno@clisp.org>
24103
24104         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
24105         compile mbchar.c if they are not both present.
24106         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
24107         * m4/mbiter.m4 (gl_MBITER): Likewise.
24108         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
24109         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
24110         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
24111
24112 2005-09-25  Jim Meyering  <jim@meyering.net>
24113
24114         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
24115         also uses socklen_t.
24116
24117 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
24118
24119         * lib/utimens.c (ENOSYS): Define if not already defined.
24120         (futimens): Support having a null PATH if the file descriptor
24121         is nonnegative.
24122
24123         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
24124         Remove.
24125         (__attribute): Define to empty unless GCC 3.1 or later.
24126         This works around a core dump on OpenBSD 3.4, which has GCC
24127         2.95.3, which dumps core when given __attribute__(()).  It also
24128         simplifies other tests, since we really don't want to bother with
24129         worrying about which ancient version of GCC supported what.
24130         Original problem reported by Yoann Vandoorselaere, with part of
24131         the fix suggested by Derek Price.
24132
24133 2005-09-24  Jim Meyering  <jim@meyering.net>
24134
24135         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
24136         so we can once again use a positive bitfield width of 1 -- now we
24137         don't have to explain why we were using a bitfield width of 2.
24138
24139 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
24140
24141         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
24142         and similarly for the other external symbols.  Problem reported
24143         by James Gallager.
24144
24145         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
24146         bug reported by Jim Meyering.
24147
24148         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
24149         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
24150         not needed, since socklen is a prerequisite module.
24151
24152 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
24153
24154         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
24155         Problem reported by Eric Blake.
24156         (getaddrinfo): Initialize se so that it's not garbage.
24157         Redo internal storage allocation so that it doesn't make unportable
24158         assumptions about alignment.
24159         Fix a memory leak.
24160
24161         * lib/utimens.c (futimens): Use futimesat if available.
24162         Prefer it to futimes since it doesn't have the futimes bug.
24163
24164         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
24165         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
24166         Instead, declare a function that returns a pointer to an array,
24167         and use verify_type__ to declare the size of the array.
24168         Problem and germ of a solution reported by Bruno Haible.
24169         (verify_type__): Use 2, not 1, for bitfield size, to avoid
24170         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
24171
24172 2005-09-23  Jim Meyering  <jim@meyering.net>
24173
24174         Sync from coreutils.
24175         Correct build failure (socklen_t not defined) on at least
24176         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
24177         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
24178
24179 2005-09-23  Jim Meyering  <jim@meyering.net>
24180
24181         * modules/getaddrinfo (Depends-on): Add socklen.
24182
24183 2005-09-23  Bruno Haible  <bruno@clisp.org>
24184
24185         * tests/test-verify.c: New file.
24186
24187 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
24188
24189         Sync from coreutils.
24190
24191         * modules/argmatch (Depends-on): Add verify.
24192         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
24193         unistd-safer.
24194         * modules/save-cwd (Depends-on): Likewise.
24195
24196         * modules/openat (Files): Add lib/openat-die.c.
24197         (Depends-on): Remove error, exitfail.
24198         Add dirname.
24199
24200         * modules/verify: New file.
24201         * MODULES.html.sh (Diagnostics <assert.h>): New section,
24202         with "verify" module.
24203
24204 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
24205
24206         Sync from coreutils.
24207
24208         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
24209         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
24210         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
24211         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
24212         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
24213         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
24214         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
24215         Don't bother checking for string.h, stdlib.h, unistd.h.
24216         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
24217         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
24218         module's job.
24219         * m4/jm-macros.m4 (gl_MACROS): Likewise.
24220         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
24221
24222         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
24223         (gl_GETDATE): Use it.
24224
24225         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
24226
24227 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
24228
24229         Sync from coreutils.
24230
24231         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
24232         stat-time.h.
24233         * lib/argmatch.h: Include verify.h
24234         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
24235         (ARGMATCH_ASSERT): Remove; unused.
24236         * lib/canonicalize.c: Assume STDC_HEADERS.
24237         * lib/exclude.c: Include "strcase.h".
24238         * lib/regex_internal.h [!defined _LIBC]: Likewise.
24239         * lib/getusershell.c: Include stdio--.h rather than stdio.h
24240         and stdio-safer.h.
24241         (getusershell): Call fopen, not fopen_safer.
24242         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
24243         Do not include unistd-safer.h.
24244         (save_cwd): Don't call fd_safer; no longer needed
24245         now that we include fcntl--.h.
24246
24247         * lib/getdate.y (relative_time): New type.
24248         (RELATIVE_TIME_0): New constant.
24249         (parser_control): Use relative_time instead of doing it ourselves.
24250         (%union): Add new relative_time rel member.
24251         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
24252         Now typeless.
24253         (relunit, relunit_snumber): Now of type rel.
24254         (zone, rel, relunit, get_date): Adjust to above changes.
24255
24256         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
24257         Do not include unistd-safer.h.
24258         (getloadavg): Don't call fd_safer; no longer needed
24259         now that we include fcntl--.h.
24260
24261         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
24262         (make_dir_parents): Treat ENOSYS like EEXIST.
24263
24264         Improve quality of diagnostics on restore_cwd failure.
24265         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
24266         (make_dir_parents): Last arg is now int * (for errno), not bool *.
24267         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
24268         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
24269         each time through the loop.  Do not diagnose restore_cwd failure;
24270         that is the caller's job (and perhaps the caller does not care).
24271
24272         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
24273         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
24274         If the file already exists but is not a directory, don't bother
24275         to try to make its parents.
24276         Close potential file descriptor leak if we can't chdir("/") (!).
24277         Don't always return true if chdir($PWD) fails; return true only
24278         if the requested action was done successfully (except for the
24279         chdir($PWD)).
24280         Don't log final directory unless we actually made it.
24281         Refactor to avoid duplicate code to fix up permissions.
24282         Don't attempt to fix up parent permissions if chdir($PWD) fails.
24283
24284         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
24285         to make it a bit faster and (I hope) clearer.
24286         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
24287         Fix bug in formats like %2N.
24288
24289         * lib/verify.h: New file.
24290
24291 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
24292
24293         Sync from coreutils.
24294         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
24295
24296 2005-09-22  Jim Meyering  <jim@meyering.net>
24297
24298         Sync from coreutils.
24299
24300         * m4/lstat.m4 (gl_FUNC_LSTAT):
24301         Use AC_LIBSOURCES to require lstat.c and lstat.h.
24302         Remove obsolete comment.
24303         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
24304         * m4/xstrtod.m4: Likewise.
24305
24306         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
24307
24308 2005-09-22  Jim Meyering  <jim@meyering.net>
24309
24310         Sync from coreutils.
24311
24312         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
24313
24314         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
24315         the .tm_year member, since otherwise gcc-4.0 would now warn about
24316         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
24317
24318         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
24319         order to avoid an unsuppressible warning from gcc on 64-bit systems.
24320
24321         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
24322         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
24323         when run in a time zone for which daylight savings time is in effect
24324         for the starting date.
24325
24326         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
24327         stop us from restricting permissions of just-created absolute-named
24328         directories.
24329         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
24330         to restore initial working directory.
24331         * lib/mkdir-p.c (make_dir_parents): New parameter:
24332         different_working_dir, to tell caller if/when we change the working
24333         directory and are unable to return to the initial one.
24334         * lib/mkdir-p.h (make_dir_parents): Update prototype.
24335         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
24336         `return false'.  This fixes a bug introduced on 2004-07-30.
24337
24338         * lib/openat.c (fdopendir): Be sure to close the supplied
24339         file descriptor before returning.  This makes our replacement
24340         implementation a little closer to Solaris's, where fdopendir
24341         ties the file descriptor to the returned DIR* pointer.
24342         * lib/openat.c (unlinkat): New function.
24343         * lib/openat.h (unlinkat): Add prototype.
24344         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
24345         (openat_restore_fail): Rename from openat_restore_die.
24346         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
24347
24348         Provide an alternative to exiting immediately upon save_cwd or
24349         restore_cwd failure.  Now, an application can arrange e.g.,
24350         to perform a longjump in that case.
24351         * lib/openat.c: Include dirname.h.
24352         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
24353         (rpl_openat, fdopendir, fstatat): Call openat_save_die
24354         and openat_restore_die rather than calling error directly.
24355         Don't include "error.h" or "exitfail.h"; they're no longer needed.
24356
24357         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
24358         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
24359         define.
24360
24361         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
24362         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
24363                             int utc, int nanoseconds);
24364         Background:
24365         date should not have to allocate a megabyte of virtual memory to
24366         handle a format argument like +%1048575T.  When implemented with
24367         strftime, it must allocate such a buffer, use strftime to fill it
24368         in, print it, then free it.
24369         With fprintftime, it simply prints everything and exits.
24370         With no need for memory allocation, that's one fewer way to fail.
24371         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
24372         optional field width, not before, so we accept %9:z, not %:9z.
24373         (my_strftime): Be sure to use L_('x') for literals.
24374
24375         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
24376         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
24377         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
24378         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
24379         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
24380         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
24381         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
24382         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
24383         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
24384         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
24385         * lib/xgethostname.c, lib/xreadlink.c:
24386         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
24387
24388         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
24389         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
24390         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
24391         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
24392         and don't include <sys/file.h>).
24393
24394 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
24395
24396         Sync from coreutils.
24397
24398         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
24399         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
24400         [!LDAV_DONE]: Avoid unused variable warning.
24401
24402 2005-09-21  Bruno Haible  <bruno@clisp.org>
24403
24404         * lib/unicodeio.h (unicode_to_mb): New declaration.
24405
24406 2005-09-20  Derek Price  <derek@ximbiot.com>
24407
24408         * lib/getaddrinfo.c: Don't include <netdb.h> included from
24409         getaddrinfo.h.
24410
24411 2005-09-20  Bruno Haible  <bruno@clisp.org>
24412
24413         * gnulib-tool: Remove trailing slashes from the values specified for
24414         --source-base, --m4-base, --tests-base, --aux-dir.
24415         Suggested by Simon Josefsson <jas@extundo.com>.
24416
24417 2005-09-20  Bruno Haible  <bruno@clisp.org>
24418
24419         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
24420         func_modules_to_filelist, func_import, func_create_testdir): Make all
24421         sorting results locale-independent, so that gnulib-cache.m4 doesn't
24422         change when gnulib-tool is invoked in a different locale.
24423
24424 2005-09-19  Simon Josefsson  <jas@extundo.com>
24425
24426         * m4/socklen.m4: Fix typo.
24427
24428 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24429
24430         Use a consistent style for including <config.h>.
24431         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
24432         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
24433         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
24434         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
24435         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
24436         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
24437         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
24438         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
24439         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
24440         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
24441         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
24442         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
24443         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
24444         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
24445         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
24446         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
24447         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
24448         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
24449         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
24450         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
24451         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
24452         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
24453         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
24454         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
24455         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
24456         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
24457         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
24458         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
24459         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
24460         lib/xstrtoumax.c, lib/yesno.c:
24461         Standardize inclusion of config.h.
24462         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
24463         lib/inttostr.h:  Removed inclusion of config.h from header files.
24464         * lib/inttostr.c:  Adjusted in-tree users.
24465         * lib/timespec.h: Remove superfluous warning to include config.h.
24466         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
24467         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
24468         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
24469         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
24470         config.h with HAVE_CONFIG_H.
24471
24472 2005-09-19  Jim Meyering  <jim@meyering.net>
24473
24474         * modules/pathmax (License): Change to LGPL.
24475
24476 2005-09-19  Derek Price  <derek@ximbiot.com>
24477
24478         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
24479
24480 2005-09-19  Bruno Haible  <bruno@clisp.org>
24481
24482         * gnulib-tool (import): Provide default for --tests-base.
24483
24484 2005-09-19  Bruno Haible  <bruno@clisp.org>
24485
24486         * doc/quote.texi: New file, extracted from gnulib.texi.
24487         * doc/ctime.texi: New file, extracted from gnulib.texi.
24488         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
24489         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
24490         * doc/gnulib.texi: Include them.
24491
24492 2005-09-18  Bruno Haible  <bruno@clisp.org>
24493
24494         Portability fix.
24495         * gnulib-tool (func_readlink): New function.
24496         (func_ln_if_changed): Use it.
24497
24498 2005-09-18  Bruno Haible  <bruno@clisp.org>
24499
24500         * gnulib-tool: Support --with-tests also with --import.
24501         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
24502         (func_import): Use variables $testsbase and $inctests. Emit a
24503         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
24504         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
24505         SUBDIRS += $testsdir.
24506         (func_create_testdir): Update.
24507
24508 2005-09-18  Bruno Haible  <bruno@clisp.org>
24509
24510         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
24511         instead of $dry_run.
24512         (func_cp_if_changed, func_mv_if_changed): Remove functions.
24513         (func_ln_if_changed): Don't handle dry-run here.
24514         (func_import): In dry-run mode, detect more precisely which actions
24515         would be performed, and don't use "...ing" verbs.
24516
24517 2005-09-18  Bruno Haible  <bruno@clisp.org>
24518
24519         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
24520         (func_import): Use join on two temporary files instead of three nested
24521         loops, in order to determine which files are new or old.
24522
24523 2005-09-18  Bruno Haible  <bruno@clisp.org>
24524
24525         * gnulib-tool (func_import): Comment out code that spits out the
24526         new files with --dry-run.
24527
24528 2005-09-18  Bruno Haible  <bruno@clisp.org>
24529
24530         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
24531
24532 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
24533
24534         * lib/stat-time.h: New file.
24535         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
24536         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
24537         in a different way.
24538         (timespec_cmp): New function.
24539         * lib/utimecmp.c: Include stat-time.h.
24540         (SYSCALL_RESOLUTION): Depend on whether various struct stat
24541         members exist, not on the obsolescent ST_MTIM_NSEC.
24542         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
24543
24544 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
24545
24546         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
24547
24548 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
24549
24550         * MODULES.html.sh (File system functions): Add stat-time.
24551         * modules/stat-time: New file.
24552         * modules/timespec (Files): Remove m4/st_mtim.m4; this
24553         is now done in a different way, by the stat-time module.
24554         * modules/utimecmp (Depends-on): Add stat-time.
24555
24556 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
24557
24558         * m4/st_mtim.m4: Remove.  Superseded by...
24559         * m4/stat-time.m4: New file.
24560         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
24561         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
24562
24563 2005-09-15  Derek Price  <derek@ximbiot.com>
24564
24565         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
24566
24567 2005-09-15  Derek Price  <derek@ximbiot.com>
24568
24569         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
24570         * lib/regex_internal.c: Ditto, using this...
24571         (__GNUC_PREREQ): ...new macro.
24572         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
24573         using...
24574         (__GNUC_PREREQ): ...this new macro.
24575
24576         * lib/strstr.h: Include string.h. Define strstr as a macro here.
24577
24578 2005-09-15  Derek Price  <derek@ximbiot.com>
24579             Paul Eggert  <eggert@cs.ucla.edu>
24580
24581         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
24582         changes, consolidating in...
24583         * lib/regex_internal.h: ...this file.
24584
24585 2005-09-13  Jim Meyering  <jim@meyering.net>
24586
24587         * lib/canon-host.c: Filter through gnu indent and reword comments
24588         slightly.
24589         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
24590
24591 2005-09-13  Derek Price  <derek@ximbiot.com>
24592
24593         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
24594         failure.
24595         Reported by Jim Meyering  <jim@meyering.net>.
24596
24597 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
24598
24599         * lib/base64.c: Typo.
24600         (base64_encode): Put b64str in initialized data section.
24601
24602 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
24603
24604         Merge glibc and coreutils changes into gnulib, plus a few
24605         extra fixes.
24606         * lib/md5.c: Use #error rather than a string.
24607         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
24608         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
24609         (__attribute__): Define to empty for non recent-GCC.
24610         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
24611         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
24612         Renamed from their non-__ counterparts, with new macros replacing
24613         them if not _LIBC.  Add __THROW attribute.
24614         (rol): Remove.
24615         (struct md5_ctx): Align buffer if using GCC.
24616         * lib/sha1.h (struct sha1_ctx): Likewise.
24617         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
24618         The old name was backwards.
24619         (NOTSWAP): Remove; not used.
24620         (rol): New macro, moved here from md5.h.
24621         (sha1_process_block): Remove a FIXME that doesn't make sense.
24622
24623 2005-09-12  Derek Price  <derek@ximbiot.com>
24624
24625         Return usable errors from canon-host.
24626         * lib/canon-host.h: New file.
24627         * lib/canon-host.c (canon_host): Wrap...
24628         (canon_host_r): ...this new function, which now relies exclusively on
24629         getaddrinfo.
24630         (ch_strerror): New function.
24631         (last_cherror): New global.
24632         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
24633         interface.
24634         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
24635         void *.
24636         (freeaddrinfo): Free ai->ai_canonname when set.
24637
24638 2005-09-12  Derek Price  <derek@ximbiot.com>
24639
24640         Make canon-host require getaddrinfo.
24641         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
24642         AC_LIBSOURCE canon-host.h.  Call...
24643         (gl_PREREQ_CANON_HOST): ...this new function, which requires
24644         gl_GETADDRINFO.
24645         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
24646
24647 2005-09-12  Derek Price  <derek@ximbiot.com>
24648
24649         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
24650         LGPL.
24651         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
24652
24653 2005-09-12  Derek Price  <derek@ximbiot.com>
24654
24655         * lib/gai_strerror.c: Include config.h when available.  Include
24656         getaddrinfo.h before other headers to test interface.
24657         Reported by Larry Jones <lawrence.jones@ugs.com>.
24658
24659 2005-09-12  Derek Price  <derek@ximbiot.com>
24660             Paul Eggert  <eggert@cs.ucla.edu>
24661
24662         * modules/glob (Files): Add glob-libc.h.
24663
24664 2005-09-12  Derek Price  <derek@ximbiot.com>
24665             Paul Eggert  <eggert@cs.ucla.edu>
24666
24667         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
24668         glob_.h, glob-libc.h.
24669         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
24670
24671 2005-09-12  Derek Price  <derek@ximbiot.com>
24672             Paul Eggert  <eggert@cs.ucla.edu>
24673
24674         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
24675         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
24676         protecting things that should be done only in gnulib contexts.
24677         * lib/glob_.h: New file, containing only the glob things needed for
24678         gnulib.
24679         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
24680         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
24681         (glob, globfree, glob_pattern_p): Now defined simply in terms of
24682         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
24683         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
24684         and to respect the namespace rules better.
24685
24686 2005-09-08  Simon Josefsson  <jas@extundo.com>
24687
24688         * modules/socklen: New file.
24689
24690 2005-09-08  Simon Josefsson  <jas@extundo.com>
24691
24692         * m4/socklen.m4: New file.
24693
24694 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
24695
24696         * modules/utimens (Files): Add m4/utimbuf.m4, since
24697         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
24698         Reported by Sergey Poznyakoff.
24699
24700 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
24701
24702         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
24703         definitions, since that's the preferred style in glibc.
24704         Fix a minor spacing issue, and update copyright notice to match
24705         glibc's.
24706
24707 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
24708
24709         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
24710
24711 2005-09-06  Simon Josefsson  <jas@extundo.com>
24712
24713         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
24714         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
24715
24716 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
24717
24718         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
24719         warning.
24720
24721 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
24722
24723         * config/srclist.txt: Add glibc bug 1302.
24724
24725 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
24726
24727         Change bitset word type from unsigned int to unsigned long int,
24728         as this has better performance on typical 64-bit hosts.
24729         Port bitset code to hosts with unusual word sizes.
24730         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
24731         (build_collating_symbol):
24732         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
24733         argument is a bitset.  This is merely a style issue, but it makes
24734         it clearer that an entire array is expected.
24735         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
24736         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
24737         Port to the case where bitset_word is not the same as unsigned int.
24738         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
24739         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
24740         Likewise.
24741         * lib/regexec.c (check_dst_limits_calc_pos_1,
24742         check_subexp_matching_top):
24743         (build_trtable, group_nodes_into_DFAstates):
24744         Likewise.
24745         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
24746         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
24747         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
24748         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
24749         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
24750         * lib/regcomp.c (optimize_subexps, lower_subexp):
24751         Work even if bitset_word has holes in its bitwise representation.
24752         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
24753         * lib/regexec.c (check_dst_limits_calc_pos_1,
24754         check_subexp_matching_top):
24755         Likewise.
24756         * lib/regex_internal.c (re_string_reconstruct):
24757         Don't assume UCHAR_MAX == 255.
24758         * lib/regex_internal.h (bitset_set_all): Likewise.
24759         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
24760         All uses changed.
24761         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
24762         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
24763         All uses changed.
24764         (BITSET_WORD_MAX): New macro.
24765         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
24766         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
24767         (bitset_empty, bitset_copy):
24768         Prefer sizeof (bitset) to multiplying it out ourselves.
24769         (bitset_not_merge): Remove; unused.
24770         (bitset_contain): Return bool, not unsigned int with one bit on.
24771         All callers changed.
24772         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
24773         alignment than re_node_set; do this by defining a new internal
24774         type struct dests_alloc and using it to allocate memory.
24775
24776 2005-09-05  Bruno Haible  <bruno@clisp.org>
24777
24778         * gnulib-tool (func_import): Fix comparison in handling of symbolic
24779         links.
24780
24781 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
24782
24783         * modules/size_max (Makefile.am): Add size_max.h
24784
24785 2005-09-04  Derek Price  <derek@ximbiot.com>
24786
24787         * gnulib-tool (func_import): Fix reversed $symbolic logic.
24788
24789 2005-09-03  Simon Josefsson  <jas@extundo.com>
24790
24791         * gnulib-tool: Fix typo.
24792
24793 2005-09-03  Simon Josefsson  <jas@extundo.com>
24794
24795         * config/srclist.txt: Add glibc bug 1293.
24796
24797 2005-09-03  Derek Price  <derek@ximbiot.com>
24798
24799         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
24800         From Larry Jones <lawrence.jones@ugs.com>.
24801
24802 2005-09-02  Simon Josefsson  <jas@extundo.com>
24803
24804         * modules/socklen: New file.
24805
24806 2005-09-02  Simon Josefsson  <jas@extundo.com>
24807
24808         * modules/havelib: New module.
24809
24810         * modules/gettext, modules/iconv, modules/lock, modules/readline:
24811         Use havelib.
24812
24813 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
24814
24815         Check for arithmetic overflow when calculating sizes, to prevent
24816         some buffer-overflow issues.  These patches are conservative, in the
24817         sense that when I couldn't determine whether an overflow was possible,
24818         I inserted a run-time check.
24819         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
24820         macros.
24821         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
24822         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
24823         (re_xnrealloc, re_x2nrealloc): New inline functions.
24824         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
24825         parse_bracket_exp):
24826         (build_equiv_class, build_charclass): Check for arithmetic overflow
24827         in size expression calculations.
24828         * lib/regex_internal.c (re_string_realloc_buffers):
24829         (build_wcs_upper_buffer, re_node_set_add_intersect):
24830         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
24831         (re_dfa_add_node, register_state): Likewise.
24832         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
24833         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
24834         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
24835         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
24836
24837 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
24838
24839         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
24840         m4/ulonglong.m4.  Problem reported by Martin Lambers.
24841
24842 2005-09-02  Bruno Haible  <bruno@clisp.org>
24843
24844         Support for lib vs. lib64 distinction on biarch platforms.
24845         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
24846         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
24847         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
24848
24849 2005-09-02  Bruno Haible  <bruno@clisp.org>
24850
24851         * gnulib-tool (import): In the other first-use case, provide defaults
24852         as well.
24853
24854 2005-09-02  Bruno Haible  <bruno@clisp.org>
24855
24856         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
24857         patches not yet found in the latest gettext release.
24858
24859 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
24860
24861         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
24862         to avoid a collision with bits/local_lim.h in glibc.
24863         All uses changed.  Problem reported by Dmitry V. Levin in
24864         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
24865
24866         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
24867         bugs in int versus size_t comparisons.
24868         (re_string_context_at): Fix bug where the code assumed that
24869         Idx is signed.
24870
24871         Use bool where appropriate.
24872         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
24873         All callers changed.
24874         (calc_eclosure_iter): Likewise, for ROOT arg.
24875         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
24876         (build_charclass_op): Likewise, for NON_MATCH arg.
24877         * lib/regex_internal.c (re_string_allocate, re_string_construct):
24878         (re_string_construct_common): Likewise, for ICASE arg.
24879         * lib/regexec.c (re_search_2_stub, re_search_stub):
24880         Likewise, for RET_LEN arg.
24881         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
24882         (set_regs): Likewise, for FL_BACKTRACK arg.
24883         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
24884         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
24885         (calc_eclosure_iter, parse_bracket_exp):
24886         Use bool for internal variables that are booleans.
24887         * lib/regexec.c (re_search_internal, check_matching,
24888         proceed_next_node):
24889         (set_regs, build_sifted_states, sift_states_bkref):
24890         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
24891         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
24892         (find_collation_sequence_value):
24893         Likewise.
24894         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
24895         (re_node_set_compare):
24896         Return bool, not int. All callers changed.
24897         * lib/regexec.c (check_halt_node_context, check_dst_limits):
24898         (build_trtable, check_node_accept): Likewise.
24899         * lib/regex_internal.h: Include stdbool.h.
24900
24901         Fix bugs uncovered when converting to bool.
24902         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
24903         failure instead of charging ahead blindly.
24904         * lib/regex_internal.c (register_state): Likewise.
24905         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
24906         for freeing internal storage.
24907         (group_nodes_into_DFA_states): Use unsigned int, not int, for
24908         bitset pieces used as boolean, to avoid undefined behavior
24909         on hosts that do int overflow checking.
24910
24911 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
24912
24913         * config/srclist.txt: Add glibc bugs 1285-1287.
24914
24915 2005-09-01  Jim Meyering  <jim@meyering.net>
24916
24917         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
24918         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
24919         Require gl_STAT_MACROS, too.
24920
24921 2005-09-01  Bruno Haible  <bruno@clisp.org>
24922
24923         * gnulib-tool (import): In the first-use case, provide defaults.
24924
24925 2005-09-01  Bruno Haible  <bruno@clisp.org>
24926
24927         * gnulib-tool (func_import): Remove the .tmp files.
24928
24929 2005-09-01  Bruno Haible  <bruno@clisp.org>
24930
24931         * gnulib-tool (func_import): Fix handling of symbolic links.
24932
24933 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
24934
24935         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
24936         old glibc regex code mishandles strings longer than 2**31 bytes.
24937         This patch fixes this when the regex code is used in gnulib
24938         (i.e., outside glibc).
24939
24940         This patch should not affect the use of the regex code inside
24941         glibc.  No doubt this problem also needs to be handled for glibc
24942         as well, but the result will be an incompatible change to the
24943         glibc ABI, and the old ABI will have to be supported too.  That
24944         can be the the subject for another patch.
24945
24946         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
24947         governing whether the rest of this patch is active.  By default,
24948         the macro is disabled and the patch has no effect.
24949         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
24950         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
24951         (struct re_pattern_buffer, re_search, re_search_2, re_match):
24952         (re_match_2, re_set_registers): Use the new types.
24953         * lib/regex_internal.h (Idx, re_hashval_t): New types.
24954         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
24955         New macros.
24956         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
24957         (re_string_context_at, bin_tree_t, re_dfastate_t):
24958         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
24959         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
24960         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
24961         (re_string_char_size_at, re_string_wchar_at):
24962         (re_string_elem_size_at):
24963         Use the new types and macros to port to 64-bit hosts.
24964         Use unsigned types for internal values, so that the code
24965         mostly works even for arrays larger than SSIZE_MAX.
24966         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
24967         (search_duplicated_node, calc_eclosure_iter, fetch_number):
24968         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
24969         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
24970         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
24971         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
24972         (calc_inveclosure, parse_dup_op, build_range_exp):
24973         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
24974         (fetch_number, create_token_tree, mark_opt_subexp):
24975         Likewise.
24976         * lib/regex_internal.c (re_string_construct_common,
24977         create_ci_newstate):
24978         (create_cd_newstate, re_string_allocate, re_string_construct):
24979         (re_string_realloc_buffers, build_wcs_upper_buffer):
24980         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
24981         (re_string_reconstruct, re_string_peek_byte_case):
24982         (re_string_fetch_byte_case, re_string_context_at):
24983         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
24984         (re_node_set_init_copy, re_node_set_add_intersect):
24985         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
24986         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
24987         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
24988         (re_acquire_state, re_acquire_state_context, register_state):
24989         Likewise.
24990         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
24991         search_cur_bkref_entry):
24992         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
24993         (re_search_internal, re_search_2_stub, re_search_stub)
24994         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
24995         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
24996         (update_cur_sifted_state, check_dst_limits):
24997         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
24998         (check_subexp_limits, sift_states_bkref, merge_state_array):
24999         (check_subexp_matching_top, get_subexp, get_subexp_sub):
25000         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
25001         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
25002         (expand_bkref_cache, check_node_accept_bytes):
25003         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
25004         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
25005         (acquire_init_state_context, check_halt_node_context):
25006         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
25007         (sift_states_backward, clean_state_log_if_needed):
25008         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
25009         (find_recover_state, transit_state_sb, transit_state_mb):
25010         (transit_state_bkref, build_trtable, match_ctx_clean):
25011         Likewise.
25012         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
25013         to work around an assumption that REG_MISSING is negative.
25014
25015         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
25016         (seek_collating_symbol_entry) [defined _LIBC]:
25017         (lookup_collation_sequence_value) [defined _LIBC]:
25018         (build_range_exp, build_collating_symbol) [defined _LIBC]:
25019         Use prototypes rather than old-style function definitions.
25020         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
25021         (transit_state_sb) [0]:
25022         (find_collation_sequence_value) [defined _LIBC]: Likewise.
25023
25024         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
25025         rm_eo.
25026
25027         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
25028         (optimize_subexps, lower_subexp):
25029         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
25030         since the signed shift might overflow.  Use 1u<<31 instead.
25031         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
25032         Likewise.
25033         * lib/regexec.c (check_dst_limits_calc_pos_1,
25034         check_subexp_matching_top): Likewise.
25035
25036         * lib/regcomp.c (optimize_subexps, lower_subexp):
25037         Use CHAR_BIT rather than 8, for clarity.
25038         * lib/regexec.c (check_dst_limits_calc_pos_1):
25039         (check_subexp_matching_top): Likewise.
25040         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
25041         have to worry about portability issues when shifting it left.
25042         Remove no-longer-needed test for table_size > 0.
25043         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
25044         in a word, as the resulting behavior is undefined.
25045         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
25046         in one case, a <= should have been an <, and in another case the
25047         whole test was missing.
25048         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
25049         the standard name CHAR_BIT.
25050         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
25051         this is not true on one's complement and signed-magnitude hosts.
25052
25053         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
25054         next_last_offset.
25055         (struct re_dfa_t): Remove unused member states_alloc.
25056         * lib/regcomp.c (init_dfa): Don't initialize unused members.
25057
25058 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
25059
25060         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
25061         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
25062         and large-file glibc and in 32-bit large-file Solaris.
25063
25064 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
25065
25066         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
25067         lengths fit in regoff_t; this isn't true if regoff_t is the same
25068         width as size_t.
25069         * lib/regex.c (re_search_internal): 5th arg is LAST_START
25070         (= START + RANGE) instead of RANGE.  This avoids overflow
25071         problems when regoff_t is the same width as size_t.
25072         All callers changed.
25073         (re_search_2_stub): Check for overflow when adding the
25074         sizes of the two strings.
25075         (re_search_stub): Check for overflow when adding START
25076         to RANGE; if it occurs, substitute the extreme value.
25077
25078 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
25079
25080         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
25081
25082 2005-08-31  Jim Meyering  <jim@meyering.net>
25083
25084         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
25085         a pointer-to-const.
25086         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
25087         (register_state): Likewise.
25088         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
25089         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
25090         (group_nodes_into_DFAstates): Likewise.
25091
25092 2005-08-31  Jim Meyering  <jim@meyering.net>
25093
25094         * check-module: Add a FIXME comment.
25095
25096 2005-08-31  Eric Blake  <ebb9@byu.net>
25097
25098         * modules/unistd-safer (Files): Add unistd--.h.
25099         * modules/stdio-safer (Files): Add stdio--.h.
25100
25101 2005-08-31  Derek Price  <derek@ximbiot.com>
25102
25103         * lib/getdelim.c (getdelim): Return EOF on EOF.
25104         Reported by Larry Jones <lawrence.jones@ugs.com>.
25105
25106 2005-08-31  Bruno Haible  <bruno@clisp.org>
25107
25108         Avoid unnecessary diffs in the generated lib/Makefile.am.
25109         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
25110         the generated files.
25111         (func_import): Don't set cmd.
25112
25113 2005-08-31  Bruno Haible  <bruno@clisp.org>
25114
25115         * lib/strstr.c: Include <stddef.h>, for NULL.
25116         * lib/strcasestr.c: Likewise.
25117         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
25118
25119 2005-08-31  Bruno Haible  <bruno@clisp.org>
25120
25121         * gnulib-tool: New option --macro-prefix.
25122         (func_import): Use macro_prefix.
25123         (import): Handle option --macro-prefix.
25124
25125 2005-08-31  Bruno Haible  <bruno@clisp.org>
25126
25127         * gnulib-tool (import): Rename most ac_* variables to cached_*.
25128         Also use new variables cached_lgpl, cached_libtool.
25129
25130 2005-08-31  Bruno Haible  <bruno@clisp.org>
25131
25132         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
25133         always instantiating them.
25134
25135 2005-08-31  Bruno Haible  <bruno@clisp.org>
25136
25137         * gnulib-tool (func_import): Read the previous cached settings
25138         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
25139         earlier added by gnulib but are now dropped. Warn when a gnulib file
25140         overwrites a non-gnulib file.
25141
25142 2005-08-31  Bruno Haible  <bruno@clisp.org>
25143
25144         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
25145         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
25146         projects that don't keep autogenerated files in CVS. Put into
25147         actioncmd only the specified modules, not the transitive closure.
25148
25149 2005-08-31  Bruno Haible  <bruno@clisp.org>
25150
25151         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
25152         Create directories that shall be filled.
25153         (import): Don't look for gl_* macros in configure.ac. Recurse across
25154         all directories containing a gnulib-cache.m4 files, if meaningful.
25155
25156 2005-08-31  Bruno Haible  <bruno@clisp.org>
25157
25158         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
25159         (import): Set seen_libtool when we see gl_LIBTOOL.
25160
25161 2005-08-31  Bruno Haible  <bruno@clisp.org>
25162
25163         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
25164         declaration macro definitions from generated gnulib.m4.
25165
25166 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
25167
25168         * lib/iconvme.h: Add prototype for iconv_alloc.
25169
25170 2005-08-29  Simon Josefsson  <jas@extundo.com>
25171
25172         * lib/iconvme.c: Fix errno.
25173
25174 2005-08-29  Bruno Haible  <bruno@clisp.org>
25175
25176         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
25177         that it works when the directory contains spaces.
25178
25179 2005-08-29  Bruno Haible  <bruno@clisp.org>
25180
25181         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
25182
25183 2005-08-29  Bruno Haible  <bruno@clisp.org>
25184
25185         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
25186         Emit more advice.
25187
25188 2005-08-29  Bruno Haible  <bruno@clisp.org>
25189         and Stepan Kasal  <kasal@ucw.cz>
25190
25191         * check-module: If more parameters are given, check each of them
25192         separately; add more exceptions, as noted by Jim Meyering.
25193         (check_module): New procedure.
25194         (%exempt_header): Now contains all exceptions.
25195
25196 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
25197
25198         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
25199
25200 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
25201
25202         * lib/iconvme.c: Split iconv_string into iconv_alloc.
25203
25204 2005-08-28  Bruno Haible  <bruno@clisp.org>
25205
25206         * m4/gnulib-tool.m4: New file.
25207
25208 2005-08-27  Jim Meyering  <jim@meyering.net>
25209
25210         * modules/unistd-safer (Files): Add pipe-safer.c.
25211         * modules/fcntl-safer (Files): Add creat-safer.c.
25212
25213 2005-08-27  Jim Meyering  <jim@meyering.net>
25214
25215         * m4/stdlib-safer.m4: New file.  From coreutils.
25216         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
25217         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
25218         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
25219         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
25220         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
25221
25222 2005-08-27  Jim Meyering  <jim@meyering.net>
25223
25224         * lib/fopen-safer.c: Merge minor changes from coreutils.
25225         * lib/dup-safer.c: Likewise.
25226         * lib/fd-safer.c: Likewise.
25227
25228         Merge from coreutils.
25229         * lib/stdio--.h: New file.
25230         * lib/stdlib--.h: New file.
25231         * lib/mkstemp-safer.c: New file.
25232
25233         GNU tar needs these.
25234         * lib/pipe-safer.c: New file.
25235         * lib/creat-safer.c: New file.
25236         * lib/fcntl--.h (creat): Define to creat_safer.
25237         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
25238         * lib/unistd--.h (pipe): Define to pipe_safer.
25239         * lib/unistd-safer.h: Declare pipe_safer.
25240
25241 2005-08-26  Simon Josefsson  <jas@extundo.com>
25242
25243         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
25244         Haible <bruno@clisp.org>.
25245
25246 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
25247
25248         * lib/regex_internal.h: Remove all references to
25249         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
25250         or better.
25251         (bitset_not, bitset_merge, bitset_not_merge):
25252         (bitset_mask, re_string_allocate, re_string_construct):
25253         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
25254         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
25255         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
25256         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
25257         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
25258         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
25259         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
25260         (re_acquire_state_context):
25261         Remove unnecessary forward decls.
25262         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
25263         Put __attribute at function definition,
25264         now that the function decl has been removed.
25265         * lib/regex_internal.c (re_string_peek_byte_case):
25266         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
25267         Likewise.
25268
25269 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
25270
25271         * m4/regex.m4: Add AC_PREREQ(2.50).
25272         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
25273
25274 2005-08-25  Simon Josefsson  <jas@extundo.com>
25275
25276         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
25277         __fsetlocking.
25278
25279 2005-08-25  Simon Josefsson  <jas@extundo.com>
25280
25281         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
25282         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
25283         GLIBC specific code.
25284
25285 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
25286
25287         Make regex safe for g++.  This fixes one real bug (an "err"
25288         that should have been "*err").  g++ problem reported by
25289         Sam Steingold.
25290         * lib/regex_internal.h (re_calloc): New macro, consistent with
25291         re_malloc etc.  All callers of calloc changed to use re_calloc.
25292         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
25293         not int.  All callers changed.
25294         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
25295         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
25296         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
25297         (find_recover_state): Change "err" to "*err"; this fixes what
25298         appears to be a real bug.
25299         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
25300         versus int.
25301
25302 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
25303
25304         * modules/regex (Depends-on): Add malloc, since the code
25305         assumes that !malloc(0) means failure.
25306
25307 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
25308
25309         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
25310
25311         alloca modernization/simplification for regex.
25312         * lib/regex.c: Remove portability cruft for alloca.  This no longer
25313         needs to be at the start of the file, and can be moved into
25314         regex_internal.h and simplified.
25315         * lib/regex_internal.h: Include <alloca.h>.
25316         (__libc_use_alloca) [!defined _LIBC]: New macro.
25317         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
25318         now works outside glibc.
25319
25320 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
25321
25322         * config/srclist.txt: Add glibc bugs 1241, 1245.
25323
25324 2005-08-25  Jim Meyering  <jim@meyering.net>
25325
25326         * lib/open-safer.c: Include <config.h>.
25327         Otherwise, we'd lose LARGEFILE support in any file using
25328         e.g. "fcntl--.h"
25329
25330 2005-08-25  Bruno Haible  <bruno@clisp.org>
25331
25332         * m4/minmax.m4: Require autoconf 2.52.
25333         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
25334         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
25335         alternatives of translit over the alphabet.
25336         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
25337
25338 2005-08-24  Simon Josefsson  <jas@extundo.com>
25339
25340         * tests/test-getpass.c: New file.
25341
25342 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
25343
25344         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
25345         for GNU regex features.
25346
25347 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
25348
25349         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
25350         * lib/regex.h (regerror): Likewise.
25351
25352         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
25353         requires this.  (The code never needed it.)
25354
25355         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
25356         All uses of recently-renamed identifiers changed to use the new,
25357         POSIX-compliant names.  The code will build and run just fine
25358         without these changes, but it's better to eat our own dog food
25359         and use the standard-conforming names.
25360
25361         * lib/regex.h: Fix a multitude of POSIX name space violations.
25362         These changes have an effect only for programs that define
25363         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
25364         do not change anything for programs compiled in the normal way.
25365         Also, there is no effect on the ABI.
25366
25367         (_REGEX_SOURCE): New macro.
25368         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
25369         defined and _GNU_SOURCE is not; this fixes a name space violation.
25370
25371         Rename the following macros to obey POSIX requirements.
25372         The old names are still visible as macros if _REGEX_SOURCE is defined.
25373         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
25374         RE_BACKSLASH_ESCAPE_IN_LISTS.
25375         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
25376         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
25377         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
25378         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
25379         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
25380         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
25381         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
25382         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
25383         (REG_INTERVALS): renamed from RE_INTERVALS.
25384         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
25385         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
25386         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
25387         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
25388         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
25389         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
25390         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
25391         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
25392         RE_UNMATCHED_RIGHT_PAREN_ORD.
25393         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
25394         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
25395         (REG_DEBUG): renamed from RE_DEBUG.
25396         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
25397         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
25398         unusual, since we can't clash with the POSIX REG_ICASE.
25399         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
25400         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
25401         (REG_NO_SUB): renamed from RE_NO_SUB.
25402         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
25403         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
25404         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
25405         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
25406         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
25407         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
25408         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
25409         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
25410         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
25411         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
25412         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
25413         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
25414         RE_SYNTAX_POSIX_MINIMAL_BASIC.
25415         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
25416         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
25417         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
25418         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
25419         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
25420         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
25421         (REG_FIXED): Renamed from REGS_FIXED.
25422         (REG_NREGS): Renamed from RE_NREGS.
25423
25424         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
25425         of other REG_* macros, since POSIX says the user is allowed to
25426         #undef these macros selectively.
25427
25428         (reg_errcode_t): Update comment stating what other tables need
25429         to be consistent.
25430
25431         Rename the following enum values to obey POSIX requirements.
25432         The old names are still visible as macros.
25433         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
25434         is not defined, since GNU is supposed to be a superset of POSIX as
25435         much as possible, and since we want reg_errcode_t to be a signed
25436         type for implementation consistency.
25437         (_REG_NOERROR): Renamed from REG_NOERROR.
25438         (_REG_NOMATCH): Renamed from REG_NOMATCH.
25439         (_REG_BADPAT): Renamed from REG_BADPAT.
25440         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
25441         (_REG_ECTYPE): Renamed from REG_ECTYPE.
25442         (_REG_EESCAPE): Renamed from REG_EESCAPE.
25443         (_REG_ESUBREG): Renamed from REG_ESUBREG.
25444         (_REG_EBRACK): Renamed from REG_EBRACK.
25445         (_REG_EPAREN): Renamed from REG_EPAREN.
25446         (_REG_EBRACE): Renamed from REG_EBRACE.
25447         (_REG_BADBR): Renamed from REG_BADBR.
25448         (_REG_ERANGE): Renamed from REG_ERANGE.
25449         (_REG_ESPACE): Renamed from REG_ESPACE.
25450         (_REG_BADRPT): Renamed from REG_BADRPT.
25451         (_REG_EEND): Renamed from REG_EEND.
25452         (_REG_ESIZE): Renamed from REG_ESIZE.
25453         (_REG_ERPAREN): Renamed from REG_ERPAREN.
25454         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
25455         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
25456         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
25457         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
25458
25459         (_REG_RE_NAME, _REG_RM_NAME): New macros.
25460         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
25461         changed.  But support the old name if the new one is not defined
25462         and if _REGEX_SOURCE.
25463
25464         Change the following member names in struct re_pattern_buffer.
25465         The old names are still supported if !_REGEX_SOURCE.
25466         The new names are always supported, regardless of _REGEX_SOURCE.
25467         (re_buffer): Renamed from buffer.
25468         (re_allocated): Renamed from allocated.
25469         (re_used): Renamed from used.
25470         (re_syntax): Renamed from syntax.
25471         (re_fastmap): Renamed from fastmap.
25472         (re_translate): Renamed from translate.
25473         (re_can_be_null): Renamed from can_be_null.
25474         (re_regs_allocated): Renamed from regs_allocated.
25475         (re_fastmap_accurate): Renamed from fastmap_accurate.
25476         (re_no_sub): Renamed from no_sub.
25477         (re_not_bol): Renamed from not_bol.
25478         (re_not_eol): Renamed from not_eol.
25479         (re_newline_anchor): Renamed from newline_anchor.
25480
25481         Change the following member names in struct re_registers.
25482         The old names are still supported if !_REGEX_SOURCE.
25483         The new names are always supported, regardless of _REGEX_SOURCE.
25484         (rm_num_regs): Renamed from num_regs.
25485         (rm_start): Renamed from start.
25486         (rm_end): Renamed from end.
25487
25488         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
25489         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
25490         Prepend __ to parameter names.
25491
25492         Undo yesterday's changes.
25493
25494 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
25495
25496         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
25497         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
25498         lib/regex.c.
25499
25500 2005-08-24  Jim Meyering  <jim@meyering.net>
25501
25502         Sync from coreutils.
25503         * m4/fcntl-safer.m4: New file.
25504
25505         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
25506         and object files for this module.
25507
25508 2005-08-24  Jim Meyering  <jim@meyering.net>
25509
25510         Sync from coreutils.
25511         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
25512
25513 2005-08-24  Jim Meyering  <jim@meyering.net>
25514
25515         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
25516         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
25517
25518 2005-08-24  Jim Meyering  <jim@meyering.net>
25519
25520         * modules/fcntl-safer: New module.
25521         * modules/fts (Depends-on): Add fcntl-safer.
25522         * MODULES.html.sh (File descriptor based Input/Output):
25523         Add fcntl-safer.
25524
25525 2005-08-24  Bruno Haible  <bruno@clisp.org>
25526
25527         Support for unit test modules.
25528         * modules/README: Mention tests modules.
25529         * modules/TEMPLATE-TESTS: New file.
25530         * gnulib-tool: New options --extract-tests-module, --with-tests and
25531         --tests-base (unused for the moment).
25532         (testsbase, inctests): New variables.
25533         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
25534         (func_verify_module): Exclude TEMPLATE-TESTS.
25535         (func_verify_nontests_module, func_verify_tests_module): New functions.
25536         (func_get_dependencies): Add implicit dependency for tests modules.
25537         (func_get_tests_module): New function.
25538         (func_modules_transitive_closure): When --with-tests was specified,
25539         include the unit tests as well, unless explicitly avoided.
25540         (func_emit_lib_Makefile_am): Ignore the tests modules here.
25541         (func_emit_tests_Makefile_am): New function.
25542         (func_create_testdir): When --with-tests was specified, emit a
25543         tests/ directory.
25544         * MODULES.html.sh (Future developments): Update.
25545
25546 2005-08-24  Bruno Haible  <bruno@clisp.org>
25547
25548         * modules/tls-tests: New file.
25549         * tests/test-tls.c: New file, from GNU gettext.
25550
25551 2005-08-24  Bruno Haible  <bruno@clisp.org>
25552
25553         * modules/lock-tests: New file.
25554         * tests/test-lock.c: New file, from GNU gettext.
25555
25556 2005-08-24  Bruno Haible  <bruno@clisp.org>
25557
25558         * lib/lock.h: Add multiple inclusion guard.
25559         * lib/tls.h: Add multiple inclusion guard.
25560
25561 2005-08-24  Bruno Haible  <bruno@clisp.org>
25562
25563         * gnulib-tool: Add support for the --aux-dir option to
25564         --create-testdir, --create-megatestdir, --test, --megatest.
25565         (func_create_testdir, func_create_megatestdir): Optionally emit a
25566         AC_CONFIG_AUX_DIR directive.
25567         (create-testdir, create-megatestdir, test, megatest): Provide a
25568         default value for $auxdir.
25569
25570 2005-08-24  Bruno Haible  <bruno@clisp.org>
25571
25572         * gnulib-tool (import): Use compound statement instead of subshell
25573         where possible.
25574
25575 2005-08-24  Bruno Haible  <bruno@clisp.org>
25576
25577         * gnulib-tool (import): Change --aux-dir default to "build-aux".
25578
25579 2005-08-24  Bruno Haible  <bruno@clisp.org>
25580
25581         * gnulib-tool (func_version): Update.
25582
25583 2005-08-24  Bruno Haible  <bruno@clisp.org>
25584
25585         * gnulib-tool (func_import, func_create_testdir,
25586         func_create_megatestdir): Quote all autoconf macro arguments.
25587
25588 2005-08-24  Bruno Haible  <bruno@clisp.org>
25589
25590         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
25591         option --force, because --force causes the aclocal.m4 of each
25592         subdirectory to be newer than the corresponding config.h.in.
25593
25594 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
25595
25596         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
25597         All contents moved to gl_REGEX.
25598         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
25599         assume that it does.
25600
25601 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
25602
25603         * lib/regex.h (REG_NOSYS)
25604         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
25605         Define, since POSIX requires it as of 2001.
25606         (_REG_ENOSYS)
25607         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
25608         New private symbol, used to keep the enum signed in all cases.
25609         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
25610         Youngman in
25611         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
25612
25613         * lib/regex_internal.c (re_string_skip_chars, register_state):
25614         (calc_state_hash):
25615         Remove forward decls; no longer needed now that we use prototypes.
25616         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
25617         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
25618         (clean_state_log_if_needed): Likewise.
25619
25620 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
25621
25622         * config/srclist.txt: Add glibc bugs 1231-1233.
25623
25624 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
25625
25626         Fix problems reported by Sam Steingold in
25627         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
25628         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
25629         assumed that reg_errcode_t is a signed type, which is not
25630         necessarily true if _XOPEN_SOURCE is not defined.
25631         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
25632         since some compilers warn about it otherwise.
25633
25634 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
25635
25636         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
25637         (init_word_char, create_initial_state, duplicate_node_closure):
25638         (fetch_token, peek_token_bracket, build_range_exp):
25639         (build_collating_symbol): Remove forward decls; no longer needed
25640         now that we use prototypes.
25641
25642         * lib/regcomp.c:
25643         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
25644         (re_compile_fastmap_iter, regcomp, regerror, regfree):
25645         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
25646         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
25647         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
25648         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
25649         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
25650         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
25651         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
25652         (build_range_exp, build_collating_symbol, parse_bracket_exp):
25653         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
25654         (build_charclass, build_charclass_op, fetch_number, create_tree):
25655         (create_token_tree, mark_opt_subexp, duplicate_tree):
25656         Use prototypes rather than old-style definitions.
25657
25658         * lib/regex_internal.c:
25659         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
25660         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
25661         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
25662         (re_string_reconstruct, re_string_peek_byte_case):
25663         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
25664         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
25665         (re_node_set_init_copy, re_node_set_add_intersect):
25666         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
25667         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
25668         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
25669         (re_acquire_state, re_acquire_state_context, register_state):
25670         (create_ci_newstate, create_cd_newstate, free_state):
25671         Likewise.
25672         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
25673         re_search_2):
25674         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
25675         (re_search_internal, prune_impossible_nodes):
25676         (acquire_init_state_context, check_matching, static):
25677         (check_halt_node_context, check_halt_state_context, proceed_next_node):
25678         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
25679         (update_regs, sift_states_backward, build_sifted_states):
25680         (clean_state_log_if_needed, merge_state_array):
25681         (update_cur_sifted_state, add_epsilon_src_nodes):
25682         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
25683         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
25684         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
25685         (find_recover_state, check_subexp_matching_top, transit_state_mb):
25686         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
25687         (check_arrival, check_arrival_add_next_nodes):
25688         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
25689         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
25690         (check_node_accept_bytes, check_node_accept, extend_buffers):
25691         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
25692         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
25693         (sift_ctx_init):
25694         Likewise.
25695
25696         * lib/regex_internal.h:
25697         (re_string_allocate, re_string_construct, re_string_reconstruct):
25698         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
25699         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
25700         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
25701         (re_string_context_at, re_string_peek_byte_case):
25702         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
25703         is defined, since we now use prototypes always.
25704
25705         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
25706         C89 or better.  All uses removed.
25707
25708 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
25709
25710         * config/srclist.txt: Add glibc bugs 1220-1227.
25711
25712 2005-08-20  Jim Meyering  <jim@meyering.net>
25713
25714         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
25715         of unused local, dfa.
25716
25717 2005-08-20  Bruno Haible  <bruno@clisp.org>
25718
25719         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
25720
25721 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
25722
25723         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
25724         (re_node_set_insert_last, re_dfa_add_node):
25725         Rename local variables to avoid GCC shadowing warnings.
25726
25727 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
25728
25729         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
25730         [defined lint]: Suppress bogus uninitialized-variable warnings.
25731
25732         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
25733         and let the caller return REG_ESPACE if out of space.  This
25734         removes an uninitialied-variable warning with GCC 4.0.1, and also
25735         avoids taking the address of a local variable.  All callers
25736         changed.
25737
25738 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
25739
25740         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
25741         $LIBCSRC/posix/regexec.c.
25742         Add glibc bug 1217 for regcomp.c.
25743
25744 2005-08-19  Jim Meyering  <jim@meyering.net>
25745
25746         * lib/regexec.c (proceed_next_node): Redo local variables to
25747         avoid GCC shadowing warnings.
25748
25749 2005-08-18  Bruno Haible  <bruno@clisp.org>
25750
25751         * lib/strstr.c (strstr): Fix return value in multibyte case.
25752         * lib/strcasestr.c (strcasestr): Likewise.
25753
25754 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
25755
25756         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
25757
25758 2005-08-17  Jim Meyering  <jim@meyering.net>
25759
25760         Make the %s format (seconds since the epoch) work for a negative
25761         number and when used with a zero-padded field width, e.g. %015s.
25762
25763         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
25764         label so that it precedes the code to set `digits'.  Otherwise,
25765         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
25766         print `00-22'.  Now, it prints `-0022', as it should.
25767
25768 2005-08-17  Bruno Haible  <bruno@clisp.org>
25769
25770         * modules/strstr (Files): Add m4/mbrtowc.m4.
25771         (Depends-on): Add mbuiter.
25772
25773 2005-08-17  Bruno Haible  <bruno@clisp.org>
25774
25775         * modules/strcasestr: New file.
25776         * MODULES.html.sh (String handling, based on ANSI C 89): Add
25777         strcasestr.
25778
25779 2005-08-17  Bruno Haible  <bruno@clisp.org>
25780
25781         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
25782
25783 2005-08-17  Bruno Haible  <bruno@clisp.org>
25784
25785         * modules/mbuiter: New file.
25786         * MODULES.html.sh (Extended multibyte and wide character utilities):
25787         Add mbuiter.
25788
25789 2005-08-17  Bruno Haible  <bruno@clisp.org>
25790
25791         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
25792         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
25793
25794 2005-08-17  Bruno Haible  <bruno@clisp.org>
25795
25796         * m4/strcasestr.m4: New file.
25797
25798 2005-08-17  Bruno Haible  <bruno@clisp.org>
25799
25800         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
25801         * lib/strstr.c: Completely rewritten, with multibyte locale support.
25802
25803 2005-08-17  Bruno Haible  <bruno@clisp.org>
25804
25805         * lib/strcasestr.h: New file.
25806         * lib/strcasestr.c: New file.
25807
25808 2005-08-17  Bruno Haible  <bruno@clisp.org>
25809
25810         * lib/strcasecmp.c: Use mbuiter.h.
25811
25812 2005-08-17  Bruno Haible  <bruno@clisp.org>
25813
25814         * lib/mbuiter.h: New file.
25815
25816 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
25817
25818         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
25819         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
25820         and gl_GETOPT are both invoked via different paths (as happens
25821         with GNU tar CVS because it uses both argp and getopt), the former
25822         wins.
25823
25824 2005-08-16  Bruno Haible  <bruno@clisp.org>
25825
25826         * modules/tls: New file.
25827         * MODULES.html.sh (Multithreading): Add tls.
25828
25829 2005-08-16  Bruno Haible  <bruno@clisp.org>
25830
25831         * modules/strnlen1: New file.
25832         * MODULES.html.sh (String handling): Add strnlen1.
25833
25834 2005-08-16  Bruno Haible  <bruno@clisp.org>
25835
25836         * modules/strcase (Files): Add m4/mbrtowc.m4.
25837         (Depends-on): Add strnlen1, mbchar.
25838
25839 2005-08-16  Bruno Haible  <bruno@clisp.org>
25840
25841         * modules/mbiter: New file.
25842         * MODULES.html.sh (Extended multibyte and wide character utilities):
25843         Add mbiter.
25844
25845 2005-08-16  Bruno Haible  <bruno@clisp.org>
25846
25847         * modules/mbfile: New file.
25848         * MODULES.html.sh (Extended multibyte and wide character utilities):
25849         Add mbfile.
25850
25851 2005-08-16  Bruno Haible  <bruno@clisp.org>
25852
25853         * modules/mbchar: New file.
25854         * MODULES.html.sh (Extended multibyte and wide character utilities):
25855         New section.
25856
25857 2005-08-16  Bruno Haible  <bruno@clisp.org>
25858
25859         * m4/tls.m4: New file, from GNU gettext.
25860
25861 2005-08-16  Bruno Haible  <bruno@clisp.org>
25862
25863         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
25864         always.
25865         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
25866
25867 2005-08-16  Bruno Haible  <bruno@clisp.org>
25868
25869         * m4/mbiter.m4: New file.
25870
25871 2005-08-16  Bruno Haible  <bruno@clisp.org>
25872
25873         * m4/mbfile.m4: New file.
25874
25875 2005-08-16  Bruno Haible  <bruno@clisp.org>
25876
25877         * m4/mbchar.m4: New file.
25878
25879 2005-08-16  Bruno Haible  <bruno@clisp.org>
25880
25881         * lib/tls.h: New file, from GNU gettext.
25882         * lib/tls.c: New file, from GNU gettext.
25883
25884 2005-08-16  Bruno Haible  <bruno@clisp.org>
25885
25886         * lib/strnlen1.h: New file.
25887         * lib/strnlen1.c: New file.
25888
25889 2005-08-16  Bruno Haible  <bruno@clisp.org>
25890
25891         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
25892         (mbi_init): Update.
25893         (mbi_avail, mbi_advance): Let the iteration end before the terminating
25894         NUL byte, not after it.
25895
25896 2005-08-16  Bruno Haible  <bruno@clisp.org>
25897
25898         * lib/strcase.h (strcasecmp): Add note in comments.
25899         * lib/strncasecmp.c: Use code from strcasecmp.c.
25900         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
25901         (strcasecmp): Work correctly in multibyte locales.
25902
25903 2005-08-16  Bruno Haible  <bruno@clisp.org>
25904
25905         * lib/mbiter.h: New file.
25906
25907 2005-08-16  Bruno Haible  <bruno@clisp.org>
25908
25909         * lib/mbfile.h: New file.
25910
25911 2005-08-16  Bruno Haible  <bruno@clisp.org>
25912
25913         * lib/mbchar.h: New file.
25914         * lib/mbchar.c: New file.
25915
25916 2005-08-16  Bruno Haible  <bruno@clisp.org>
25917
25918         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
25919         the valid ones. Makes the comparison operations transitive:
25920         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
25921         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
25922
25923 2005-08-15  Simon Josefsson  <jas@extundo.com>
25924
25925         * modules/ssize_t (License): Change to 'unlimited'.
25926
25927         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
25928
25929 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
25930
25931         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
25932         Add comments for each pending glibc patch.
25933
25934 2005-08-15  Bruno Haible  <bruno@clisp.org>
25935
25936         * lib/regex.h (__restrict_arr): Don't define to __restrict if
25937         __cplusplus is defined.
25938
25939 2005-08-14  Jim Meyering  <jim@meyering.net>
25940
25941         Sync from coreutils.
25942
25943         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
25944         Use the hash-table-based cycle-detection code not just when
25945         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
25946         Reported by James Youngman in
25947         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
25948         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
25949         FTS_TIGHT_CYCLE_CHECK.
25950         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
25951         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
25952         once again.
25953         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
25954         * lib/fts.c (fd_safer): Remove decl.
25955         Include fcntl--.h rather than unistd-safer.h
25956         (fts_safe_changedir): Don't call fd_safer; no longer needed
25957         now that we include fcntl--.h.
25958
25959 2005-08-12  Simon Josefsson  <jas@extundo.com>
25960
25961         * modules/getndelim2: Use ssize_t module.
25962         * modules/getnline: Likewise.
25963         * modules/safe-read: Likewise.
25964         * modules/xreadlink: Likewise.
25965
25966         * modules/ssize_t: New file.
25967
25968 2005-08-12  Simon Josefsson  <jas@extundo.com>
25969
25970         * m4/readline.m4: Look for termcap, curses or ncurses if required.
25971
25972 2005-08-12  Simon Josefsson  <jas@extundo.com>
25973
25974         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
25975         ssize_t.
25976
25977 2005-08-12  Simon Josefsson  <jas@extundo.com>
25978
25979         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
25980         readline, getdelim and check_version.
25981         (Support for systems lacking ISO C 99: Sizes of integer types):
25982         Add size_max.
25983
25984 2005-08-12  Bruno Haible  <bruno@clisp.org>
25985
25986         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
25987
25988 2005-08-11  Simon Josefsson  <jas@extundo.com>
25989
25990         * modules/readline: New file.
25991
25992         * modules/strnlen (Files): Add strnlen.h.
25993
25994 2005-08-11  Simon Josefsson  <jas@extundo.com>
25995
25996         * m4/readline.m4: New file.
25997
25998 2005-08-11  Simon Josefsson  <jas@extundo.com>
25999
26000         * lib/readline.h, readline.c: New file.
26001
26002 2005-08-11  Simon Josefsson  <jas@extundo.com>
26003
26004         * doc/gnulib.texi (Initial import, Finishing touches): Mention
26005         gl_AVOID.
26006
26007 2005-08-11  Bruno Haible  <bruno@clisp.org>
26008
26009         * lib/strnlen.h (strnlen): Change parameter name to match comment.
26010
26011 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
26012
26013         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
26014
26015 2005-08-10  Simon Josefsson  <jas@extundo.com>
26016
26017         * tests/test-iconvme.c: New file.
26018
26019 2005-08-10  Simon Josefsson  <jas@extundo.com>
26020
26021         * m4/strnlen.m4: New file.
26022
26023         * m4/strndup.m4: Don't check for strnlen declaration, done in
26024         strnlen.m4.
26025
26026 2005-08-10  Simon Josefsson  <jas@extundo.com>
26027
26028         * lib/strndup.c: Use strnlen.h.
26029
26030         * lib/strnlen.h: New file.
26031
26032 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
26033
26034         * README: Typos.
26035
26036 2005-08-02  Simon Josefsson  <jas@extundo.com>
26037
26038         * modules/readline: New file.
26039
26040 2005-08-02  Simon Josefsson  <jas@extundo.com>
26041
26042         * modules/getdelim: New file.
26043
26044         * modules/getline: Rewrite, don't use getndelim2.
26045
26046 2005-08-02  Simon Josefsson  <jas@extundo.com>
26047
26048         * m4/getline.m4: Separate out getdelim stuff into separate module.
26049
26050         * m4/getdelim.m4: New file.
26051
26052 2005-08-02  Simon Josefsson  <jas@extundo.com>
26053
26054         * lib/getline.h, getline.c: Rewrite.
26055
26056         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
26057
26058 2005-07-31  Bruno Haible  <bruno@clisp.org>
26059
26060         * lib/lock.h (gl_lock_initializer): New macro.
26061         (gl_lock_define_initialized): Use it.
26062         (gl_rwlock_initializer): New macro.
26063         (gl_rwlock_define_initialized): Use it.
26064         (gl_recursive_lock_initializer): New macro.
26065         (gl_recursive_lock_define_initialized): Use it.
26066
26067 2005-07-30  Karl Berry  <karl@gnu.org>
26068
26069         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
26070         Report from Ben Pfaff, regarding getopt.
26071
26072 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
26073
26074         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
26075         normal way.
26076         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
26077         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
26078         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
26079         (gl_GETOPT): Use the new macros.  Most of the implementation
26080         is moved to the new macros.  This is for programs like Emacs
26081         that don't want all the functionality of gl_GETOPT.
26082
26083 2005-07-26  Bruno Haible  <bruno@clisp.org>
26084
26085         * m4/lock.m4: Update from GNU gettext.
26086
26087 2005-07-26  Bruno Haible  <bruno@clisp.org>
26088
26089         * lib/lock.h: Update from GNU gettext.
26090         * lib/lock.c: Update from GNU gettext.
26091
26092 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
26093
26094         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
26095         obsolescent AC_TRY_RUN.  Include the default includes files, for
26096         'exit'.
26097
26098 2005-07-24  Bruno Haible  <bruno@clisp.org>
26099
26100         * modules/visibility: New file.
26101         * MODULES.html.sh (Misc): Add visibility.
26102
26103 2005-07-24  Bruno Haible  <bruno@clisp.org>
26104
26105         * m4/visibility.m4: New file.
26106
26107 2005-07-24  Bruno Haible  <bruno@clisp.org>
26108
26109         * doc/visibility.texi: New file.
26110
26111 2005-07-22  Bruno Haible  <bruno@clisp.org>
26112
26113         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
26114         $(ALLOCA_H), redundant through BUILT_SOURCES.
26115         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
26116         redundant through BUILT_SOURCES.
26117         * modules/byteswap (Makefile.am): Remove explicit dependency on
26118         $(BYTESWAP_H), redundant through BUILT_SOURCES.
26119         * modules/fnmatch (Makefile.am): Remove explicit dependency on
26120         $(FNMATCH_H), redundant through BUILT_SOURCES.
26121         * modules/getopt (Makefile.am): Remove explicit dependency on
26122         $(GETOPT_H), redundant through BUILT_SOURCES.
26123         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
26124         redundant through BUILT_SOURCES.
26125         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
26126         redundant through BUILT_SOURCES.
26127         * modules/stdbool (Makefile.am): Remove explicit dependency on
26128         $(STDBOOL_H), redundant through BUILT_SOURCES.
26129         * modules/stdint (Makefile.am): Remove explicit dependency on
26130         $(STDINT_H), redundant through BUILT_SOURCES.
26131         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
26132         Remove explicit dependency on $(SYSEXITS_H).
26133         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
26134
26135 2005-07-18  Simon Josefsson  <jas@extundo.com>
26136
26137         * lib/check-version.c (check_version): Accept identical versions too.
26138
26139 2005-07-18  Bruno Haible  <bruno@clisp.org>
26140
26141         * modules/lock: New file.
26142         * MODULES.html.sh (Multithreading): New section.
26143
26144 2005-07-18  Bruno Haible  <bruno@clisp.org>
26145
26146         * m4/lock.m4: New file, from GNU gettext.
26147
26148 2005-07-18  Bruno Haible  <bruno@clisp.org>
26149
26150         * lib/lock.h: New file, from GNU gettext.
26151         * lib/lock.c: New file, from GNU gettext.
26152
26153 2005-07-18  Bruno Haible  <bruno@clisp.org>
26154
26155         * lib/lock.h (gl_once_t): New type.
26156         (gl_once_define, gl_once): New macros.
26157         * lib/lock.c (fresh_once): New variable.
26158         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
26159         functions.
26160
26161 2005-07-16  Simon Josefsson  <jas@extundo.com>
26162
26163         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
26164         workaround, suggested by Bruno.
26165
26166 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
26167
26168         * modules/xalloc (Depends-on): Add xalloc-die.
26169         * modules/xvasprintf (Depends-on): Add xalloc-die.
26170
26171 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
26172
26173         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
26174         with a minor change.
26175
26176 2005-07-15  Bruno Haible  <bruno@clisp.org>
26177
26178         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
26179         When using lib/poll.c, define poll as rpl_poll.
26180
26181 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
26182
26183         * modules/argp (Depends-on): Remove unlocked-io.
26184
26185 2005-07-14  Derek Price  <derek@ximbiot.com>
26186
26187         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
26188         for glob symlink bug.
26189
26190 2005-07-14  Bruno Haible  <bruno@clisp.org>
26191
26192         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
26193         Instead, test for *_unlocked function declarations directly.
26194
26195 2005-07-11  Simon Josefsson  <jas@extundo.com>
26196
26197         * modules/size_max: New file.
26198
26199         * modules/xsize: Depend on size_max module for size_max.m4.
26200
26201 2005-07-11  Simon Josefsson  <jas@extundo.com>
26202
26203         * lib/size_max.h: New file.
26204
26205 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
26206
26207         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
26208         copyright symbol and the year.
26209         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
26210         (version_etc_va): Use parameterized copyright notice.
26211         Reword to conform to the current GNU coding standards.
26212
26213 2005-07-11  Karl Berry  <karl@gnu.org>
26214
26215         * doc/gnulib.texi (Quoting): new node.
26216         (Initial import): more info, from Patrice.
26217
26218 2005-07-11  Bruno Haible  <bruno@clisp.org>
26219
26220         * gnulib-tool (func_usage): Document option --avoid.
26221         (Command line options): Handle --avoid.
26222         (func_acceptable): New function.
26223         (func_modules_transitive_closure): Use it.
26224
26225 2005-07-11  Bruno Haible  <bruno@clisp.org>
26226
26227         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
26228         Reported by Jim Meyering.
26229
26230 2005-07-10  Bruno Haible  <bruno@clisp.org>
26231
26232         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
26233         Needed when size_t is smaller than 'unsigned int'.
26234         Reported by Paul Eggert.
26235
26236 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
26237
26238         * modules/argp (Depends-on): Add unlocked-io
26239
26240 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
26241
26242         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
26243         block of defines.
26244
26245 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
26246
26247         * config/srclist.txt: Comment out regcomp.c, since we have a porting
26248         fix now.
26249
26250 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
26251         and Paul Eggert  <eggert@cs.ucla.edu>
26252
26253         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
26254         in wint_t, not wchar_t.  Remove now-unnecessary cast.
26255
26256 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
26257
26258         * modules/regex (Files): Add lib/regex_internal.c,
26259         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
26260         (Depends-on): Add extensions.
26261         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
26262
26263 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
26264
26265         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
26266         pathconf.
26267         * m4/same.m4 (gl_SAME): Likewise.
26268         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
26269
26270         * m4/regex.m4: Adjust to new libc regex implementation.
26271         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
26272         all the .c and .h parts of (the new) regex.
26273         Quote the m4 stuff better.
26274         Check for RE_ICASE bug of old gnulib.
26275         Check for REG_STARTEND of recent libc.
26276         Rename local variables from jm_* to gl_*.
26277         Quote operand of "test -f".
26278         Say "recent enough" version of libc, not "version 2".
26279         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
26280         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
26281         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
26282         Remove check for btowc, isascii.
26283         Require AM_LANGINFO_CODESET.
26284
26285 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
26286
26287         * lib/regex.c, regex.h: Sync from libc.
26288         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
26289         * lib/regexec.c:
26290         New files, synced from libc, except that regex_internal.h
26291         currently has a small porting fix.
26292
26293 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
26294
26295         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
26296         regex_internal.c, regexec.c.
26297         Add regex_internal.h too, but as a comment, since the libc version
26298         is currently broken in gnulib mode.
26299
26300 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
26301
26302         Support programs like Emacs that use gnulib but not gettext.
26303         * MODULES.html.sh (Internationalization functions): Add gettext-h.
26304         * modules/gettext-h: New file.
26305         * modules/gettext (Files): Remove lib/gettext.h.
26306         (Depends-on): Add gettext-h.
26307         (Makefile.am): Remove lib_SOURCES.
26308         * modules/argmatch, modules/c-stack, modules/closeout:
26309         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
26310         * modules/execute, modules/file-type, modules/getaddrinfo:
26311         * modules/getopt, modules/human, modules/javacomp:
26312         * modules/javaexec, modules/mkdir-p, modules/obstack:
26313         * modules/openat, modules/pagealign_alloc, modules/pipe:
26314         * modules/quotearg, modules/regex, modules/rpmatch:
26315         * modules/unicodeio, modules/userspec, modules/version-etc:
26316         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
26317         * modules/xsetenv:
26318         Depend on gettext-h, not gettext.
26319
26320 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
26321
26322         * gnulib-tool (func_import): Add support for 'public domain' license.
26323         * modules/alloca, modules/atexit, modules/memmove:
26324         Now public domain, not GPL.
26325         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
26326         * modules/realloc, modules/strerror, modules/strtod:
26327         Now LGPL, not GPL.
26328
26329 2005-07-05  Bruno Haible  <bruno@clisp.org>
26330
26331         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
26332         autoconf CVS. Needed for mingw.
26333
26334 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
26335
26336         Remove the dependency of the strftime module on the tzset module.
26337         * modules/strftime (Depends-on): Remove dependency on tzset.
26338
26339 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
26340
26341         Remove the dependency of the strftime module on the tzset module.
26342         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
26343         gl_FUNC_TZSET_CLOBBER.
26344
26345 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
26346
26347         Remove the dependency of the strftime module on the tzset module.
26348         * lib/strftime.c (my_strftime)
26349         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
26350         Copy the input structure, to work around some of the bug with
26351         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
26352         Solaris releases, you should also use the tzset module, but we won't
26353         require it as a dependency any more since we don't want LGPLed code
26354         to depend on GPLed code.
26355
26356 2005-07-02  Jim Meyering  <jim@meyering.net>
26357
26358         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
26359         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
26360         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
26361         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
26362
26363 2005-07-02  Jim Meyering  <jim@meyering.net>
26364
26365         * lib/backupfile.c (backup_args): Change a `0' to NULL.
26366
26367 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
26368
26369         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
26370         declares only 'struct timespec;' (!).
26371
26372 2005-07-01  Jim Meyering  <jim@meyering.net>
26373
26374         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
26375         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
26376         * lib/save-cwd.c, tempname.c:
26377         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
26378         and don't include <sys/file.h>).
26379
26380 2005-06-29  Jim Meyering  <jim@meyering.net>
26381
26382         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
26383         type name.  Use the variable name instead.
26384         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
26385         Likewise.
26386
26387 2005-06-28  Simon Josefsson  <jas@extundo.com>
26388
26389         * modules/check-version (Files): Add check-version.m4.
26390
26391 2005-06-28  Simon Josefsson  <jas@extundo.com>
26392
26393         * m4/check-version.m4: New file, suggested by Jim Meyering
26394         <jim@meyering.net>.
26395
26396 2005-06-28  Simon Josefsson  <jas@extundo.com>
26397
26398         * lib/check-version.h, lib/check-version.c: New files.
26399
26400 2005-06-28  Simon Josefsson  <jas@extundo.com>
26401
26402         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
26403         collision with global variable.  Better indentation.  Don't
26404         increment buffer pointer beyond buffer end.  Based on comments
26405         from Paul Eggert <eggert@cs.ucla.edu>.
26406
26407         * lib/base64.h: Indent.
26408
26409 2005-06-28  Simon Josefsson  <jas@extundo.com>
26410
26411         * doc/gnulib.texi (Library version handling): New section.
26412
26413 2005-06-28  Jim Meyering  <jim@meyering.net>
26414
26415         * check-module (find_included_lib_files): Hard-code another
26416         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
26417         but modules/fts-lgpl (correctly) does not list those files.
26418
26419         * modules/canonicalize (Files): Add lib/pathmax.h.
26420
26421 2005-06-25  Simon Josefsson  <jas@extundo.com>
26422
26423         * modules/check-version: New file.
26424
26425 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
26426
26427         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
26428         initializer of struct addrinfo, as an indication that we don't
26429         care how many members the structure has.
26430
26431 2005-06-24  Derek Price  <derek@ximbiot.com>
26432         and Bruno Haible  <bruno@clisp.org>
26433
26434         Remove stat module & update lstat.
26435         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
26436         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
26437         * m4/stat.m4: Remove this file.
26438
26439 2005-06-24  Derek Price  <derek@ximbiot.com>
26440         and Bruno Haible  <bruno@clisp.org>
26441
26442         Remove stat module & update lstat.
26443         * lib/stat.c: Remove this file...
26444         (slash_aware_lstat): ...moving this content and its support...
26445         * lib/lstat.c (rpl_lstat): ...into here.
26446         * lib/lstat.h: New file.
26447
26448 2005-06-24  Derek Price  <derek@ximbiot.com>
26449         and Bruno Haible  <bruno@clisp.org>
26450
26451         Remove stat module & update lstat.
26452         * config/srclist.txt (libc sources): Remove stat.
26453
26454 2005-06-24  Derek Price  <derek@ximbiot.com>
26455         and Bruno Haible  <bruno@clisp.org>
26456
26457         Remove stat module & update lstat.
26458         * MODULES.html.sh (stat): Remove.
26459         * MODULES.html: Regenerated.
26460         * modules/lstat (Description): Correct function name.
26461         (Files): Add "lstat.h".
26462         (Depends-on): Remove stat, add xalloc, stat-macros.
26463         * modules/stat: Remove this file.
26464         (Include): Add "lstat.h", remove <sys/stat.h>.
26465
26466 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
26467
26468         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
26469         (ranged_convert): Don't save conversion in a temporary struct.
26470         This causes a warning with GCC 4.0.0, and anyway in the typical
26471         case it's not worth the extra 100 bytes or so of code.
26472         (ranged_convert, __mktime_internal): When calling a function via a
26473         pointer P, use P () rather than (*P) (), as we now assume C89 or
26474         better.
26475
26476 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
26477
26478         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
26479         "who -r" failed to give output.  Problem reported by Tim Waugh.
26480
26481         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
26482         (xcalloc): Use it to avoid needless tests.
26483         Problem reported by Jim Meyering.
26484
26485 2005-06-20  Derek Price  <derek@ximbiot.com>
26486
26487         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
26488         unnecessary for Autoconfs > 2.59c.
26489
26490 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
26491
26492         * lib/argp.h (__option_is_short): Check upper limit of
26493         __key. Isprint() requires its argument to have the value
26494         of an unsigned char or EOF.
26495
26496 2005-06-16  Jim Meyering  <jim@meyering.net>
26497
26498         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
26499         when either N or S is zero.
26500
26501 2005-06-16  Derek Price  <derek@ximbiot.com>
26502
26503         * m4/bison.m4: Declare YACC & YFLAGS precious.
26504
26505 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
26506
26507         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
26508         multibyte string or pattern, fall back on unibyte matching.
26509         Problem reported by James Youngman.
26510
26511 2005-06-08  Bruno Haible  <bruno@clisp.org>
26512
26513         * modules/csharpcomp: New file.
26514         * MODULES.html.sh (C#): Add csharpcomp.
26515
26516 2005-06-08  Bruno Haible  <bruno@clisp.org>
26517
26518         * m4/csharpcomp.m4: New file, from GNU gettext.
26519
26520 2005-06-08  Bruno Haible  <bruno@clisp.org>
26521
26522         * lib/csharpcomp.h: New file, from GNU gettext.
26523         * lib/csharpcomp.c: New file, from GNU gettext.
26524         * lib/csharpcomp.sh.in: New file, from GNU gettext.
26525
26526 2005-06-08  Bruno Haible  <bruno@clisp.org>
26527
26528         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
26529         warning on mingw.
26530
26531 2005-06-07  Derek Price  <derek@ximbiot.com>
26532
26533         Sync from CVS.
26534         * lib/glob_.h: Indent nested #ifdef.
26535
26536 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
26537
26538         Sync from coreutils.
26539         Use "file name" when talking about file names, instead of "filename"
26540         or "path", as per the GNU coding standards.
26541         * lib/mkdir-p.c: Renamed from makepath.c.
26542         (make_dir_parents): Renamed from make_path.  All callers changed.
26543         * lib/mkdir-p.h: Likewise.  All includers changed.
26544         * lib/filenamecat.c: Renamed from path-concat.c.
26545         (file_name_concat): Renamed from path_concat.  All callers changed.
26546         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
26547         * lib/filenamecat.h: Likewise.  All includers changed.
26548         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
26549         in comments or local variable names.
26550         * lib/basename.c: Likewise.
26551         * lib/canonicalize.c, canonicalize.h: Likewise.
26552         * lib/dirname.c, dirname.h: Likewise.
26553         * lib/euidaccess.c: Likewise.
26554         * lib/exclude.c: Likewise
26555         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
26556         * lib/fsusage.c, fsuage.h: Likewise.
26557         * lib/fts.c, fts_.h: Likewise.
26558         * lib/getcwd.c: Likewise.
26559         * lib/getloadavg.c: Likewise.
26560         * lib/mkstemp.c: Likewise.
26561         * lib/mountlist.c, mountlist.h: Likewise.
26562         * lib/openat.c, openat.h: Likewise.
26563         * lib/readlink-stub.c: Likewise.
26564         * lib/readutmp.c, readutmp.h: Likewise.
26565         * lib/rename.c: Likewise.
26566         * lib/rmdir.c: Likewise.
26567         * lib/same.c: Likewise.
26568         * lib/savedir.c: Likewise.
26569         * lib/stripslash.c: Likewise.
26570         * lib/tempname.c: Likewise.
26571         * lib/xreadlink.c: Likewise.
26572         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
26573         All uses changed.
26574         * lib/exclude.h: Likewise.
26575
26576         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
26577         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
26578         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
26579         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
26580         * lib/pathmax.h: Include <limits.h> unconditionally, since other
26581         files have been getting away with it for years (MORE/BSD 4.3
26582         is extinct now).
26583         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
26584         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
26585
26586         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
26587         Define to 256, not 255, as per modern POSIX.
26588
26589 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
26590
26591         Sync from coreutils.
26592         Use "file name" when talking about file names, instead of "filename"
26593         or "path", as per the GNU coding standards.
26594         * MODULES.html.sh: mkdir-p renamed from makepath.
26595         filenamecat renamed from path-concat.
26596         * modules/filenamecat: Renamed from modules/path-concat.
26597         (Files): filenamecat.h and filenamecat.c renamed from
26598         path-concat.h and path-concat.c.
26599         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
26600         (Include): filenamecat.h, not path-concat.h.
26601         * modules/mkdir-p: Renamed from modules/makepath.
26602         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
26603         makepath.c.
26604         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
26605         (Include): mkdir-p.h, not makepath.h.
26606
26607 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
26608
26609         Sync from coreutils.
26610         * m4/mkdir-p.m4: Renamed from makepath.m4.
26611         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
26612         Rename files from makepath.c to mkdir-p.c, and from
26613         makepath.h to mkdir-p.h.
26614         * m4/filenamecat.m4: Renamed from path-concat.m4.
26615         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
26616         Rename files from path-concat.c to filenamecat.c,
26617         and from path-concat.h to filenamecat.h.
26618         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
26619         "file name" in local variables or comments.
26620         * m4/rename.m4: Likewise.
26621
26622 2005-06-01  Bruno Haible  <bruno@clisp.org>
26623
26624         * modules/csharpexec: New file.
26625         * MODULES.html.sh (C#): New section.
26626
26627 2005-06-01  Bruno Haible  <bruno@clisp.org>
26628
26629         * m4/csharp.m4: New file, from GNU gettext.
26630         * m4/csharpexec.m4: New file, from GNU gettext.
26631
26632 2005-06-01  Bruno Haible  <bruno@clisp.org>
26633
26634         * lib/csharpexec.h: New file, from GNU gettext.
26635         * lib/csharpexec.c: New file, from GNU gettext.
26636         * lib/csharpexec.sh.in: New file, from GNU gettext.
26637
26638 2005-05-31  Derek Price  <derek@ximbiot.com>
26639             Paul Eggert  <eggert@cs.ucla.edu>
26640
26641         Sync from cvs.
26642         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
26643
26644 2005-05-31  Derek Price  <derek@ximbiot.com>
26645             Paul Eggert  <eggert@cs.ucla.edu>
26646
26647         Sync from cvs.
26648         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
26649
26650 2005-05-29  Derek Price  <derek@ximbiot.com>
26651
26652         * config/srclist.txt (glob_.h, glob.c): Add these files.
26653
26654 2005-05-29  Derek Price  <derek@ximbiot.com>
26655
26656         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
26657         * modules/glob: New file.
26658         * modules/getlogin_r: Add link to POSIX spec in description.
26659
26660 2005-05-29  Derek Price  <derek@ximbiot.com>
26661             Paul Eggert  <eggert@cs.ucla.edu>
26662
26663         * m4/glob.m4: New file.
26664
26665 2005-05-29  Derek Price  <derek@ximbiot.com>
26666             Paul Eggert  <eggert@cs.ucla.edu>
26667
26668         * lib/glob_.h, lib/glob.c: New files.
26669
26670 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
26671
26672         * modules/fts (Files): Remove m4/inttypes-pri.m4.
26673         * modules/fts-lgpl (Depends-on): Remove gettext.
26674
26675 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
26676
26677         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
26678         and don't require gt_INTTYPES_PRI.
26679
26680 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
26681
26682         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
26683
26684         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
26685         the configuration hassle isn't worth it.
26686         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
26687         (LONGEST_MODIFIER, PRIuMAX): Remove.
26688
26689 2005-05-27  Bruno Haible  <bruno@clisp.org>
26690
26691         * lib/getlogin_r.h: Remove second include of <stddef.h>.
26692
26693 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
26694
26695         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
26696         _POSIX_PTHREAD_SEMANTICS for Solaris.
26697
26698 2005-05-25  Derek Price  <derek@ximbiot.com>
26699
26700         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
26701
26702 2005-05-25  Derek Price  <derek@ximbiot.com>
26703             Paul Eggert  <eggert@cs.ucla.edu>
26704
26705         * modules/getlogin_r, m4/getlogin_r.m4: New files.
26706         * lib/getlogin_r.c, getlogin_r.h: New files.
26707
26708 2005-05-25  Bruno Haible  <bruno@clisp.org>
26709             Derek Price  <derek@ximbiot.com>
26710
26711         * lib/getlogin_r.h: Simplify API documentation.
26712
26713 2005-05-23  Derek Price  <derek@ximbiot.com>
26714
26715         * modules/minmax (Files): Add m4/minmax.m4.
26716         (configure.ac): Add gl_MINMAX.
26717
26718 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
26719
26720         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
26721         so that unistd-safer.h (GPL'ed code) need not be included.
26722
26723 2005-05-22  Bruno Haible  <bruno@clisp.org>
26724
26725         * m4/minmax.m4: New file.
26726         Based on a patch by Derek Price <derek@ximbiot.com>.
26727
26728 2005-05-22  Bruno Haible  <bruno@clisp.org>
26729
26730         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
26731         (INT64_MIN): Fix definition.
26732         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
26733
26734         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
26735         NEED_SIGNED_INT_TYPES.
26736
26737         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
26738         HAVE_SYSTEM_INTTYPES.
26739
26740 2005-05-22  Bruno Haible  <bruno@clisp.org>
26741
26742         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
26743         Also include <sys/param.h> if it defines MIN, MAX.
26744         Based on a patch by Derek Price <derek@ximbiot.com>.
26745
26746 2005-05-21  Jim Meyering  <jim@meyering.net>
26747
26748         * modules/fts (Files): Add m4/inttypes-pri.m4.
26749         (Depends-on): Add lstat and remove gettext.  Alphabetize.
26750
26751 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
26752
26753         New fts module.
26754         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
26755         (setup_dir, free_dir): New functions.
26756         (enter_dir, leave_dir): Define trivial
26757         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
26758         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
26759         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
26760         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
26761         Move to fts-cycle.c.
26762         (fts_open): Use setup_dir.
26763         (fts_close): Use free_dir.
26764         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
26765         This adds a label and some gotos, but the alternatives were messier.
26766         Check for memory allocation failure when entering a dir.
26767         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
26768         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
26769         (FTS): New member fts_cycle, that is a union that contains the
26770         old active_dir_ht and cycle_state.  All uses changed to mention
26771         fts_cycle.ht and fts_cycle.state.
26772         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
26773         fts.c, with the following changes:
26774         (setup_dir, free_dir): New functions.
26775         (enter_dir): Now returns bool.  Return true if successful, false
26776         if memory exhausted.  All callers changed.
26777         Do not bother partly cleaning up on
26778         memory allocation failure; that is free_dir's job.
26779         However, free ad if hash_insert fails, to avoid memory leak.
26780         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
26781         fts->fts_options to see which union member to use.
26782
26783 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
26784
26785         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
26786         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
26787
26788 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
26789
26790         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
26791
26792 2005-05-20  Jim Meyering  <jim@meyering.net>
26793
26794         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
26795         Now a macro, to pacify GCC.
26796
26797 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
26798
26799         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
26800         of -1.
26801
26802 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
26803
26804         * lib/chown.c (rpl_chown): Return -1 on failure.
26805
26806 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
26807
26808         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
26809         Don't check for stddef.h.
26810         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
26811         don't use its results.
26812         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
26813         since we include them unconditionally.  Don't require
26814         AM_STDBOOL_H, since stdbool is a prerequisite.
26815         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
26816         since we assume C89 or better.
26817         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
26818         as we don't use their results.
26819         Don't check for fchdir, memmove, memset, strrchr, as we use
26820         them unconditionally.
26821         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
26822         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
26823
26824 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
26825
26826         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
26827         Include <stddef.h> unconditionally, since we assume C89 now.
26828         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
26829         * lib/fts.c: Include fts_.h first, to check interface.
26830         Do not include intprops.h; no longer needed.
26831         Include cycle-check.h and hash.h, since fts_.h no longer does.
26832         Remove unnecessary casts of closedir to void.
26833         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
26834         decide whether to decrement nlinks.
26835         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
26836         (FTS): Use struct hash_table * instead of Hash_table, so that
26837         we no longer need to include hash.h here.
26838
26839 2005-05-18  Jim Meyering  <jim@meyering.net>
26840
26841         * modules/dirfd (License): Change to LGPL.  Most of the code
26842         is already in the public domain.
26843
26844 2005-05-18  Jim Meyering  <jim@meyering.net>
26845
26846         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
26847         Reported by Yoann Vandoorselaere.
26848
26849 2005-05-17  Jim Meyering  <jim@meyering.net>
26850
26851         * m4/fts.m4: New file, from coreutils.
26852
26853 2005-05-17  Jim Meyering  <jim@meyering.net>
26854
26855         * lib/fts.c, lib/fts_.h: New files, from coreutils.
26856
26857 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
26858
26859         Sync from coreutils.
26860         * m4/unlinkdir.m4: New file.
26861
26862 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
26863
26864         Sync from coreutils.
26865         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
26866         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
26867         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
26868         White space changes only.
26869         * lib/makepath.c (make_path): Port to hosts where leading "//" is
26870         special.
26871         * lib/yesno.c: Include getline.h, not ctype.h.
26872         (yesno): Don't remove leading white space; POSIX doesn't allow it.
26873         Use getline to remove arbitrary restriction on response length.
26874
26875 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
26876
26877         * config/srclist-update: Spell out "Street" in FSF postal
26878         mail address; this is the style the FSF seems to prefer.
26879
26880         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
26881         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
26882         this updates FSF postal mail address.
26883
26884         Sync from coreutils.
26885         * modules/unlinkdir: New file.
26886         * modules/yesno (Depends-on): Add getline.
26887         * MODULES.html.sh (File system functions): Add unlinkdir.
26888
26889 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
26890
26891         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
26892         lib/strsep.h:
26893         Change the initial comment to refer to GPL, not LGPL.
26894         gnulib-tool will change it to LGPL as needed.
26895
26896         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
26897         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
26898         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
26899         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
26900         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
26901         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
26902         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
26903         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
26904         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
26905         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
26906         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
26907         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
26908         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
26909         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
26910         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
26911         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
26912         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
26913         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
26914         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
26915         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
26916         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
26917         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
26918         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
26919         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
26920         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
26921         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
26922         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
26923         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
26924         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
26925         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
26926         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
26927         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
26928         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
26929         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
26930         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
26931         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
26932         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
26933         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
26934         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
26935         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
26936         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
26937         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
26938         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
26939         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
26940         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
26941         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
26942         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
26943         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
26944         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
26945         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
26946         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
26947         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
26948         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
26949         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
26950         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
26951         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
26952         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
26953         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
26954         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
26955         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
26956         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
26957         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
26958         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
26959         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
26960         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
26961         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
26962         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
26963         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
26964         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
26965         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
26966         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
26967         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
26968         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
26969         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
26970         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
26971         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
26972         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
26973         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
26974         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
26975         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
26976         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
26977         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
26978         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
26979         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
26980         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
26981         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
26982         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
26983         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
26984         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
26985         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
26986         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
26987         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
26988         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
26989         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
26990         lib/yesno.c, lib/yesno.h:
26991         Update FSF postal mail address.
26992
26993 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
26994
26995         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
26996         tests/test-memmem.c, tests/test-stpncpy.c:
26997         Update FSF postal mail address.
26998
26999 2005-05-13  Bruno Haible  <bruno@clisp.org>
27000
27001         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
27002         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
27003         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
27004         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
27005         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
27006         Add support for 64-bit integers in the MSVC compiler.
27007
27008 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
27009
27010         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
27011
27012 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
27013
27014         * gnulib-tool (func_import): Sort and uniquify recommended includes.
27015
27016 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
27017
27018         * doc/getdate.texi (General date syntax): Don't say that date
27019         date --iso-8601=ns generates acceptable dates; it doesn't yet.
27020         Problem reported by Nic Ferrier.
27021
27022 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27023
27024         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
27025         specified in ai_socktype. Fix invalid ai_protocol
27026         check. ai_protocol is usually set to 0 or depending on
27027         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
27028         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
27029         ai_socktype / ai_protocol in the returned addrinfo structure.
27030
27031 2005-05-10  Simon Josefsson  <jas@extundo.com>
27032
27033         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
27034         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
27035
27036 2005-05-10  Karl Berry  <karl@gnu.org>
27037
27038         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
27039         (from http://www.gnu.org/licenses).
27040         * doc/COPYING.LIB: also rename to COPYING.LESSER.
27041         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
27042         fdl.texi suffices.
27043
27044 2005-05-10  Karl Berry  <karl@gnu.org>
27045
27046         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
27047         (COPYING.DOC): remove.
27048
27049         * config/srclist-update: new FSF address.
27050
27051 2005-05-10  Derek Price  <derek@ximbiot.com>
27052
27053         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
27054         possible.
27055
27056 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27057             Bruno Haible  <bruno@clisp.org>
27058
27059         * modules/inet_ntop: New file.
27060         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
27061         inet_ntop.
27062
27063 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27064             Bruno Haible  <bruno@clisp.org>
27065
27066         * m4/inet_ntop.m4: New file.
27067
27068 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27069             Bruno Haible  <bruno@clisp.org>
27070
27071         * lib/inet_ntop.h: New file.
27072         * lib/inet_ntop.c: New file, from glibc with modifications.
27073
27074 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
27075
27076         * modules/time_r (License): Change to LGPL.
27077         * modules/extensions (License): Change to LGPL.  Actually,
27078         the license is more permissive than that, but currently gnulib-tool
27079         doesn't know how to handle more-permissive licenses.
27080
27081         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
27082         Problem reported by Dave Love.
27083
27084 2005-05-08  Jim Meyering  <jim@meyering.net>
27085
27086         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
27087         blank.
27088
27089 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
27090
27091         * modules/argmatch (Depends-on): Add stdbool.
27092         * modules/backupfile (Depends-on): Likewise.
27093         * modules/chdir-long (Depends-on): Likewise.
27094         * modules/closeout (Depends-on): Likewise.
27095         * modules/cycle-check (Depends-on): Likewise.
27096         * modules/dirname (Depends-on): Likewise.
27097         * modules/fnmatch (Depends-on): Likewise.
27098         * modules/fsusage (Depends-on): Likewise.
27099         * modules/fwriteerror (Depends-on): Likewise.
27100         * modules/getcwd (Depends-on): Likewise.
27101         * modules/getloadavg (Depends-on): Likewise.
27102         * modules/hard-locale (Depends-on): Likewise.
27103         * modules/makepath (Depends-on): Likewise.
27104         * modules/mountlist (Depends-on): Likewise.
27105         * modules/nanosleep (Depends-on): Likewise.
27106         * modules/posixtm (Depends-on): Likewise.
27107         * modules/quotearg (Depends-on): Likewise.
27108         * modules/readtokens (Depends-on): Likewise.
27109         * modules/readtokens0 (Depends-on): Likewise.
27110         * modules/readutmp (Depends-on): Likewise.
27111         * modules/save-cwd (Depends-on): Likewise.
27112         * modules/strftime (Depends-on): Likewise.
27113         * modules/userspec (Depends-on): Likewise.
27114         * modules/utimecmp (Depends-on): Likewise.
27115         * modules/xgetcwd (Depends-on): Likewise.
27116         * modules/xnanosleep (Depends-on): Likewise.
27117         * modules/xstrtod (Depends-on): Likewise.
27118         * modules/yesno (Depends-on): Likewise.
27119
27120 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
27121
27122         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
27123         needless checks.
27124
27125 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
27126
27127         Merge from coreutils.  Among other things,
27128         add bulletproofing for cases where stdin, stdout, or stderr are closed.
27129         * lib/fd-safer.c: New file.
27130         * lib/fcntl-safer.h, open-safer.c: Remove.
27131         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
27132         * lib/dup-safer.c: Include unistd-safer.h first.
27133         Don't include errno.h.
27134         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
27135         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
27136         * lib/file-type.c: Rely on file-type.h change.
27137         * lib/getloadavg.c: Include unistd-safer.h.
27138         (getloadavg): Use safer open.
27139         * lib/getusershell.c: Include "stdio-safer.h".
27140         (getusershell): Use safer fopen.
27141         * lib/long-options.c (long_options): Use NULL rather than 0.
27142         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
27143         'free'.
27144         * lib/modechange.c: Likewise.
27145         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
27146         (MODE_DONE): New constant.
27147         (struct mode_change): Remove 'next' member.
27148         (make_node_op_equals): New function; like the old one of the
27149         same name, except it allocates an array.
27150         (mode_compile, mode_create_from_ref): Use it.
27151         (mode_compile): Allocate result as an array, not a linked list.
27152         Parse octal string ourself, so that we catch mistakes like "+0".
27153         (mode_adjust): Arg is an array, not a linked list.
27154         * lib/modechange.c: Include stat-macros.h, xalloc.h.
27155         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
27156         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
27157         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
27158         Remove.  This is now stat-macros.h's job.
27159         (talloc): Remove.  All callers replaced by xalloc, so that
27160         our invokers don't have to worry about reporting memory failures.
27161         (make_node_op_equals): Remove.
27162         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
27163         New constants.
27164         (struct mode_change): Moved here from modechange.h.
27165         (mode_append_entry): Remove.
27166         (mode_compile): Remove MASKED_OPS arg, since it encouraged
27167         apps to have incorrect behavior.  Use simpler algorithm for head
27168         and tail.  Don't futz with umask; that's now the job of mode_adjust.
27169         Detect more invalid usages rather than having somewhat-random behavior.
27170         Don't insert an "a=" action, as that leads to incorrect behavior.
27171         (mode_compile, mode_create_from_ref): Return NULL on error instead
27172         of an enum, since now there's only one way to have an error.  All
27173         callers changed.
27174         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
27175         at the correct time.  Simplify calculation of "+u" and its ilk.
27176         Don't mishandle "+X".
27177         (mode_free): Remove "register" and localize decls.
27178         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
27179         (struct mode_change): Move to modechange.c; callers don't
27180         need to see this stuff.
27181         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
27182         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
27183         (mode_change, mode_adjust): Reflect the new signatures noted above.
27184         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
27185         that might redefine system include files.
27186         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
27187         (my_usleep): Use NULL rather than (void *) 0.
27188         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
27189         Use siginterrupt to specify that system calls should be interrupted.
27190         (rpl_nanosleep): Move initialization of suspended closer to call of
27191         my_usleep.
27192         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
27193         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
27194         (desirable_utmp_entry): New function.
27195         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
27196         using x2nrealloc, to simplify logic.
27197         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
27198         size calculation.  Do not assume utmp file is a regular file.
27199         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
27200         (READ_UTMP_CHECK_PIDS): New constant.
27201         * lib/save-cwd.c: Include unistd-safer.h.
27202         (save_cwd): Use fd_safer.
27203         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
27204         [!_LIBC] Include "stat-macros.h" instead.
27205         * lib/unistd-safer.h (fd_safer): New decl.
27206
27207 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
27208
27209         * modules/getloadavg (Depends-on): Add unistd-safer.
27210         * modules/getusershell (Depends-on): Add stdio-safer.
27211         * modules/lstat (Depends-on): Remove xalloc.
27212         * modules/mkstemp (Depends-on): Add stat-macros.
27213         * modules/modechange (Depends-on): Remove xstrtol.
27214         Add stat-macros, xalloc.
27215         * modules/save-cwd (Depends-on): Add unistd-safer.
27216         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
27217         * modules/unistd-safer (Files): Add lib/fd-safer.c
27218         (Makefile.am): Remove lib_SOURCES.
27219
27220         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
27221         Remove fcntl-safer; unistd-safer supersedes it.
27222
27223 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
27224
27225         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
27226         AC_HEADER_STAT.
27227         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
27228         (gl_PREREQ_CHOWN): Remove.
27229         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
27230         it.  Don't require AC_HEADER_STAT.
27231         (gl_PREREQ_LSTAT): Remove.
27232         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
27233         Don't require AC_HEADER_STAT.
27234         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
27235         (gl_PREREQ_RMDIR): Remove.
27236         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
27237         mention stat-macros.h or AC_HEADER_STAT, since we'll make
27238         the stat-macros module a prerequisite.
27239         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
27240         * m4/filemode.m4 (gl_FILEMODE): Likewise.
27241         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
27242         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
27243         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
27244         variable names.
27245         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
27246         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
27247         variable prefixes.
27248         * m4/fcntl-safer.m4: Remove.
27249         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
27250         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
27251         Invoke gl_PREREQ_FD_SAFER.
27252         (gl_PREREQ_FD_SAFER): New macro.
27253         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
27254         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
27255         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
27256         Remove duplicate call to AC_LIBOBJ(readutmp).
27257         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
27258
27259         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
27260         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
27261
27262 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
27263
27264         * MODULES.html.sh (Misc): Add byteswap.
27265
27266 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
27267
27268         * modules/getcwd (Depends-on): Add extensions.
27269         * modules/openat (Depends-on): Likewise.
27270
27271 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
27272
27273         * modules/byteswap: New file.
27274
27275 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
27276
27277         * m4/byteswap.m4: New file.
27278
27279 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
27280
27281         * lib/byteswap_.h: New file.
27282
27283 2005-04-25  Karl Berry  <karl@gnu.org>
27284
27285         * m4/gettext.m4: Update from GNU gettext 0.14.4.
27286
27287 2005-04-25  Albert Chin  <china@thewrittenword.com>
27288
27289         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
27290         Toolkit C bug.
27291
27292 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
27293
27294         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
27295         (func_ln_if_changed) Remove forcibly for no error message
27296         in case file does not exist.
27297
27298 2005-04-19  Simon Josefsson  <jas@extundo.com>
27299
27300         * gnulib-tool (Options): Make --symlink mean --symbolic.
27301
27302 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
27303
27304         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
27305
27306 2005-04-16  Simon Josefsson  <jas@extundo.com>
27307
27308         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
27309
27310 2005-04-15  Simon Josefsson  <jas@extundo.com>
27311
27312         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
27313
27314 2005-04-15  Simon Josefsson  <jas@extundo.com>
27315
27316         * gnulib-tool: Rename --symlink to --symbolic.
27317
27318 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
27319
27320         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
27321         symbolic links to files instead of copying/moving.  Add --aux-dir,
27322         specifying directory relative --dir where auxiliary build tools
27323         are placed.
27324
27325 2005-04-14  Bruno Haible  <bruno@clisp.org>
27326
27327         * modules/allocsa (License): Change to LGPL.
27328         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
27329
27330 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
27331
27332         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
27333         that "UTC +1 second" continues to work.  Problem reported
27334         by Dmitry V. Levin.
27335         (relunit_snumber): New rule.
27336         (relunit): Use it.
27337
27338 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
27339
27340         * lib/getdate.y (universal_time_zone_table): New constant.
27341         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
27342         universal_time_zone_table.
27343         (lookup_zone): Prefer universal_time_zone_table to
27344         local_time_zone_table, so that "GMT" time stamps are allowed in
27345         London during the summer.  Problem reported by Ian Abbott.
27346
27347 2005-04-12  Jim Meyering  <jim@meyering.net>
27348
27349         * lib/human.c (humblock): Set *options even when returning due to
27350         xstrtoumax conversion failure.  Thanks to a used-uninitialized
27351         warning from gcc-4.
27352
27353 2005-04-09  Jim Meyering  <jim@meyering.net>
27354
27355         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
27356         -Wuninitialized: initialize tm0.tm_year.
27357
27358 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
27359
27360         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
27361         count, since there's no maximum.  All uses changed.
27362         Add member dsts_seen.
27363         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
27364         not being INT_MAX.
27365         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
27366         Use pc_rels_seen to decide whther a date is absolute.
27367
27368         * lib/getdate.y (number): Don't overwrite year.
27369         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
27370         check.
27371
27372 2005-04-02  Simon Josefsson  <jas@extundo.com>
27373
27374         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
27375         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
27376
27377 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
27378
27379         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
27380         where no absolute path name can be longer than PATH_MAX.
27381
27382 2005-03-27  Jim Meyering  <jim@meyering.net>
27383
27384         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
27385
27386 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
27387
27388         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
27389         "one's complement" -> "ones' complement" in comment, as per Knuth.
27390         "value of type" -> "type or expression" in comment.
27391         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
27392
27393 2005-03-26  Jim Meyering  <jim@meyering.net>
27394
27395         Comment nits.
27396         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
27397         Correct typos: s/or/of/.
27398
27399 2005-03-26  Jim Meyering  <jim@meyering.net>
27400
27401         * modules/check-include-files: Move to ../ and rename to...
27402         * check-module: ...this.
27403
27404 2005-03-25  Jim Meyering  <jim@meyering.net>
27405
27406         * modules/xvasprintf (Files): Add xalloc.h.
27407
27408 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
27409
27410         * modules/gettext (Files): config/config.rpath ->
27411         build-aux/config.rpath
27412         * modules/iconv (Files): Likewise.
27413         Problem reported by Oskar Liljeblad.
27414
27415 2005-03-23  Jim Meyering  <jim@meyering.net>
27416
27417         * modules/check-include-files: New script to check for
27418         missing dependencies, multiple includes, etc.
27419
27420         * modules/c-strtold (Depends-on): Add xalloc.
27421         * modules/c-strtod (Depends-on): Add xalloc.
27422         * modules/hash (Depends-on): Add xalloc.
27423         (Files): Remove lib/xalloc.h.
27424
27425         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
27426         * modules/userspec (Files): Add lib/inttostr.h.
27427
27428 2005-03-23  Jim Meyering  <jim@meyering.net>
27429
27430         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
27431
27432 2005-03-22  Jim Meyering  <jim@meyering.net>
27433
27434         * modules/stat-macros: New module.
27435         * modules/canonicalize, modules/euidaccess, modules/file-type,
27436         * modules/filemode, modules/lchown, modules/makepath,
27437         * modules/rmdir, modules/stat: Depend on new stat-macros module
27438         rather than listing lib/stat-macros.h manually.
27439         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
27440
27441 2005-03-22  Jim Meyering  <jim@meyering.net>
27442
27443         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
27444
27445 2005-03-22  Bruno Haible  <bruno@clisp.org>
27446
27447         * config/srclist.txt: Replace target directory 'config' with
27448         'build-aux'.
27449         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
27450         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
27451         ../build-aux/.
27452
27453 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
27454
27455         * modules/chdir-long (Depends-on): Add mempcpy.
27456
27457         * modules/acl, modules/backupfile, modules/c-strtod,
27458         modules/c-strtold, modules/canon-host, modules/canonicalize,
27459         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
27460         modules/exclude, modules/exitfail, modules/file-type,
27461         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
27462         modules/getdate, modules/getline, modules/getpagesize,
27463         modules/getpass, modules/getugroups, modules/group-member,
27464         modules/hard-locale, modules/hash, modules/human, modules/idcache,
27465         modules/inttostr, modules/long-options, modules/makepath,
27466         modules/md5, modules/memcasecmp, modules/memcoll,
27467         modules/modechange, modules/mountlist, modules/path-concat,
27468         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
27469         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
27470         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
27471         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
27472         modules/strftime, modules/strndup, modules/strverscmp,
27473         modules/timespec, modules/unlocked-io, modules/userspec,
27474         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
27475         modules/yesno:
27476         Remove lib_SOURCES line from Makefile.am section, as this is now
27477         done automatically by the corresponding Autoconf macro.
27478
27479 2005-03-21  Jim Meyering  <jim@meyering.net>
27480
27481         Changes imported from coreutils.
27482
27483         * lib/cycle-check.c: Don't include xalloc.h.
27484
27485         * lib/path-concat.c: Don't include assert.h.
27486         (path_concat): Remove assertion that would have triggered
27487         for ABASE starting with more than one slash.
27488         Reported by Andreas Schwab.
27489
27490         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
27491         properly when ABASE is an absolute file name.
27492         Correct the description of this function.
27493         Include <assert.h>.
27494         Add an assertion and a test driver.
27495         This fixes a bug introduced on 2004-07-02.
27496         Andreas Schwab reported the resulting failure of cp --parents:
27497         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
27498
27499 2005-03-21  Jim Meyering  <jim@meyering.net>
27500
27501         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
27502         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
27503
27504 2005-03-21  Jim Meyering  <jim@meyering.net>
27505         and  Paul Eggert  <eggert@cs.ucla.edu>
27506
27507         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
27508         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
27509         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
27510         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
27511         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
27512         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
27513         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
27514         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
27515         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
27516         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
27517         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
27518         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
27519         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
27520         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
27521         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
27522         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
27523         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
27524         for these modules.
27525
27526 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
27527
27528         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
27529         (which shouldn't happen), generate nothing instead of returning 0
27530         immediately, so that nstrftime (NULL, ...) doesn't return 0.
27531
27532 2005-03-16  Bruno Haible  <bruno@clisp.org>
27533
27534         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
27535         HAVE_LONGLONG_64BIT.
27536
27537 2005-03-16  Bruno Haible  <bruno@clisp.org>
27538
27539         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
27540         HAVE_LONGLONG_64BIT.
27541
27542 2005-03-16  Bruno Haible  <bruno@clisp.org>
27543
27544         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
27545         HAVE_LONGLONG_64BIT.
27546
27547 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
27548
27549         * lib/strftime.c (my_strftime): Prepend space to format so that we can
27550         reliably distinguish strftime failure from empty output on POSIX
27551         hosts.
27552
27553 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
27554
27555         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
27556         (iconv_string): Don't guess a size-zero buffer, as that might cause
27557         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
27558         result would be 'too large', where 'too large' is (heuristically)
27559         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
27560         overflow concerns.  This will prevent some unwanted malloc failures
27561         when the inputs are very large.
27562
27563 2005-03-15  Karl Berry  <karl@gnu.org>
27564
27565         * config/srclist.txt (config.rpath): from gettext.
27566         * config/config.rpath: update.
27567
27568 2005-03-15  Bruno Haible  <bruno@clisp.org>
27569
27570         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
27571         to 'negate'.
27572
27573         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
27574         variable.
27575
27576         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
27577         results.
27578
27579 2005-03-14  Simon Josefsson  <jas@extundo.com>
27580
27581         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
27582         <fx@gnu.org>.
27583
27584 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
27585
27586         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
27587         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
27588         intprops.h.
27589         * lib/strtol.c: Likewise.
27590
27591 2005-03-14  Jim Meyering  <jim@meyering.net>
27592
27593         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
27594         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
27595         to be nonzero so that we (and caller) can detect the difference
27596         between a valid zero-length expansion and an error return, even
27597         when the underlying strftime fails before writing anything into
27598         that location.
27599
27600 2005-03-14  Bruno Haible  <bruno@clisp.org>
27601
27602         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
27603         Update from GNU gettext 0.14.3.
27604
27605 2005-03-10  Jim Meyering  <jim@meyering.net>
27606
27607         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
27608
27609 2005-03-10  Jim Meyering  <jim@meyering.net>
27610
27611         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
27612         so that this module works on systems without fchdir.
27613
27614 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
27615
27616         Factor int-properties macros into a single file, except for
27617         glibc-related files.
27618         * lib/intprops.h: New file.
27619         * lib/getloadavg.c: Include it instead of limits.h.
27620         (INT_STRLEN_BOUND): Remove.
27621         * lib/human.c: Include intprops.h.
27622         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
27623         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
27624         302/1000.
27625         * lib/inttostr.h: Include intprops.h instead of limits.h.
27626         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
27627         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
27628         for consistency with intprops.h.
27629         (time_t_is_integer, twos_complement_arithmetic): Use them.
27630         * lib/sig2str.h: Include <signal.h>, intprops.h.
27631         (INT_STRLEN_BOUND): Remove.
27632         * lib/strftime.c (TYPE_SIGNED): Remove.
27633         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
27634         * lib/strtol.c: Adjust comments to match intprops.h.
27635         * lib/userspec.c: Include intprops.h.
27636         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
27637         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
27638         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
27639         instead of rolling our own expressions.
27640         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
27641
27642         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
27643         instead of int.
27644         (my_strftime): Do not mishandle years close to INT_MAX, by doing
27645         the right thing even if adding 1900 would overflow.  Similarly
27646         for tm_mon + 1 and tm_yday + 1.
27647         Make %Y always equivalent to %C%y, and similarly for %G and %g.
27648         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
27649         (DO_SIGNED_NUMBER): New macro.
27650         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
27651
27652 2005-03-07  Bruno Haible  <bruno@clisp.org>
27653
27654         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
27655
27656 2005-03-07  Bruno Haible  <bruno@clisp.org>
27657
27658         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
27659
27660 2005-03-04  Derek R. Price  <derek@ximbiot.com>
27661
27662         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
27663         (func_import): Only replace files via --import when they have actually
27664         changed.
27665
27666 2005-03-03  Derek R. Price  <derek@ximbiot.com>
27667
27668         * m4/mmap-anon.m4: New file.
27669         * m4/pagealign_alloc.m4: New file.
27670
27671 2005-03-03  Derek R. Price  <derek@ximbiot.com>
27672             Bruno Haible  <bruno@clisp.org>
27673
27674         * modules/pagealign_alloc: New file.
27675         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
27676
27677 2005-03-03  Derek R. Price  <derek@ximbiot.com>
27678             Bruno Haible  <bruno@clisp.org>
27679
27680         * lib/pagealign_alloc.h: New file.
27681         * lib/pagealign_alloc.c: New file.
27682
27683 2005-03-03  Bruno Haible  <bruno@clisp.org>
27684
27685         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
27686         Use an all-permissive copyright notice, recommended by RMS.
27687
27688 2005-03-02  Bruno Haible  <bruno@clisp.org>
27689
27690         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
27691         of AIX, the replacement has to be done only after <string.h> is
27692         included, therefore not in config.h. stpncpy.h does the replacement,
27693         and stpncpy.c uses it.
27694
27695 2005-03-02  Bruno Haible  <bruno@clisp.org>
27696
27697         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
27698         stpncpy.c uses it.
27699
27700 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
27701
27702         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
27703         The workaround isn't strictly needed for POSIX conformance, and
27704         it's too much of a pain to configure and maintain.  We'll ask
27705         people to fix their kernels instead.
27706         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
27707         (NANOSLEEP_BUG_WORKAROUND): Remove.
27708         (xnanosleep): Remove the workaround.
27709
27710 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
27711
27712         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
27713         Reported by Derek Price.
27714         (Include): Add "timespec.h".
27715
27716         * modules/xnanosleep (Depends-on): Remove gethrxtime.
27717
27718 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
27719
27720         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
27721         to detect nanosleep bug.
27722
27723 2005-03-01  Bruno Haible  <bruno@clisp.org>
27724
27725         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
27726
27727 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
27728
27729         * modules/gethrxtime: New file.
27730         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
27731         (Depends-on): Add gethrxtime.
27732         (configure.ac): Add gl_XNANOSLEEP.
27733         (Makefile.am): Remove lib_SOURCES line.
27734
27735 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
27736
27737         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
27738         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
27739
27740 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
27741
27742         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
27743         * lib/timespec.h (gettime): Return void, since it always
27744         succeeds now.  All uses changed.
27745         * lib/gettime.c (gettime) Likewise.
27746         [HAVE_NANOTIME]: Prefer nanotime.
27747         Assume gettimeofday succeeds, as POSIX requires.
27748         Assime time () succeeds, since other code already does.
27749         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
27750         (timespec_subtract): Remove.
27751         (NANOSLEEP_BUG_WORKAROUND): New constant.
27752         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
27753         things considerably.  Use it only on GNU/Linux hosts, since the
27754         workaround shouldn't be needed elsewhere.
27755
27756 2005-02-24  Bruno Haible  <bruno@clisp.org>
27757
27758         * modules/gettext (Files): Add m4/glibc2.m4.
27759
27760 2005-02-24  Bruno Haible  <bruno@clisp.org>
27761
27762         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
27763         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
27764         * m4/progtest.m4:
27765         Update from GNU gettext 0.14.2.
27766         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
27767
27768 2005-02-24  Bruno Haible  <bruno@clisp.org>
27769
27770         * lib/localcharset.c: Update from GNU gettext 0.14.2.
27771         * lib/config.charset: Update from GNU gettext 0.14.2.
27772
27773 2005-02-24  Bruno Haible  <bruno@clisp.org>
27774
27775         * lib/gettext.h: Update from GNU gettext 0.14.2.
27776
27777 2005-02-23  Simon Josefsson  <jas@extundo.com>
27778
27779         * m4/iconvme.m4: New file.
27780
27781 2005-02-23  Jim Meyering  <jim@meyering.net>
27782
27783         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
27784         change.
27785         Thanks to Bruno Haible for catching it.
27786
27787 2005-02-22  Simon Josefsson  <jas@extundo.com>
27788
27789         * modules/iconvme: New file.
27790
27791         * MODULES.html.sh: Add iconvme.
27792
27793 2005-02-22  Simon Josefsson  <jas@extundo.com>
27794
27795         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
27796
27797 2005-02-22  Simon Josefsson  <jas@extundo.com>
27798
27799         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
27800
27801 2005-02-22  Jim Meyering  <jim@meyering.net>
27802
27803         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
27804         s/ifndef/ifdef/.
27805
27806 2005-02-20  Neil Conway  <neilc@samurai.com>
27807
27808         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
27809         returned by OSX/Darwin if the specified buffer is not large
27810         enough for the hostname.
27811
27812 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
27813
27814         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
27815         pass it to _help, otherwise the latter coredumps trying to
27816         dereference state.root_argp.
27817
27818 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
27819
27820         * modules/chdir-long (Depends-on): Add memrchr.
27821         * modules/memrchr (Files): Add lib/memrchr.h.
27822         (Include): "memrchr.h".
27823
27824 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
27825
27826         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
27827
27828 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
27829
27830         * lib/memrchr.h: New file.
27831         * lib/chdir-long.c: Include it.
27832         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
27833         Don't bother including stddef.h.
27834
27835 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
27836
27837         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
27838         inclusion.
27839         Include <sys/types.h>, for dev_t.
27840         (ME_DUMMY, ME_REMOTE): Move from here....
27841         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
27842         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
27843         Dmitry V. Levin.
27844         Include mountlist.h first, to test the interface.
27845
27846 2005-01-29  Bruno Haible  <bruno@clisp.org>
27847
27848         * lib/progname.c (program_name): Initialize.
27849         Needed when linking statically on MacOS X.
27850
27851 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
27852
27853         Sync from coreutils.
27854         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
27855         (Depends-on): Add c-strtod.
27856         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
27857
27858 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
27859
27860         Sync from coreutils.
27861         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
27862
27863         Remove files that are specific to coreutils.
27864         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
27865
27866 2005-01-28  Bruno Haible  <bruno@clisp.org>
27867
27868         * modules/javacomp: New file.
27869         * MODULES.html.sh (Java): Add javacomp.
27870
27871 2005-01-28  Bruno Haible  <bruno@clisp.org>
27872
27873         * m4/javacomp.m4: New file, from GNU gettext.
27874
27875 2005-01-28  Bruno Haible  <bruno@clisp.org>
27876
27877         * lib/javacomp.sh.in: New file, from GNU gettext.
27878         * lib/javacomp.h: New file, from GNU gettext.
27879         * lib/javacomp.c: New file, from GNU gettext.
27880
27881 2005-01-26  Simon Josefsson  <jas@extundo.com>
27882
27883         * lib/gai_strerror.c: Use GPL in header.
27884
27885 2005-01-26  Bruno Haible  <bruno@clisp.org>
27886
27887         * modules/javaexec: New file.
27888         * MODULES.html.sh (Java): Add javaexec.
27889
27890 2005-01-26  Bruno Haible  <bruno@clisp.org>
27891
27892         * m4/javaexec.m4: New file, from GNU gettext.
27893
27894 2005-01-26  Bruno Haible  <bruno@clisp.org>
27895
27896         * lib/javaexec.sh.in: New file, from GNU gettext.
27897         * lib/javaexec.h: New file, from GNU gettext.
27898         * lib/javaexec.c: New file, from GNU gettext.
27899
27900 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
27901
27902         * modules/lchown (Depends-on): Remove lchown.h
27903
27904 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
27905
27906         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
27907         must be defined if the header file was not found, in order
27908         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
27909
27910 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
27911
27912         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
27913         initializers for struct pentry_state.
27914         (__argp_error): Check return value of __asprintf
27915         (__argp_failure): Translate error message
27916
27917         * lib/argp-parse.c: Removed braces around the expansion of N_()
27918
27919 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
27920
27921         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
27922         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
27923         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
27924         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
27925         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
27926         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
27927         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
27928         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
27929         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
27930         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
27931         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
27932         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
27933         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
27934         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
27935         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
27936         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
27937         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
27938         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
27939         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
27940         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
27941         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
27942         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
27943         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
27944         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
27945         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
27946         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
27947         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
27948         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
27949         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
27950         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
27951         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
27952         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
27953         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
27954         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
27955         xstrtol.m4, xstrtoumax.m4, yesno.m4:
27956         Use an all-permissive copyright notice, recommended by RMS.
27957
27958 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
27959
27960         * modules/chdir-long (Depends-on): Remove mempcpy.
27961
27962 2005-01-21  Jim Meyering  <jim@meyering.net>
27963
27964         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
27965         same value as for Solaris 9.
27966
27967         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
27968         component length.  This included changing the parameter to be
27969         of type `char *' rather than `char const *'.
27970         * lib/chdir-long.h (chdir_long): Update prototype.
27971
27972         * lib/openat.c (fdopendir, fstatat): New functions.
27973         * lib/openat.h: Include headers required for use of DIR and struct
27974         stat.
27975         [AT_SYMLINK_NOFOLLOW]: Define.
27976         (fdopendir, fstatat): Add prototypes.
27977
27978 2005-01-21  Bruno Haible  <bruno@clisp.org>
27979
27980         * modules/classpath: New file.
27981         * MODULES.html.sh (Java): Add classpath.
27982
27983 2005-01-21  Bruno Haible  <bruno@clisp.org>
27984
27985         * lib/classpath.h: New file, from GNU gettext.
27986         * lib/classpath.c: New file, from GNU gettext.
27987
27988 2005-01-20  Simon Josefsson  <jas@extundo.com>
27989
27990         * modules/version-etc-fsf: New file.
27991
27992 2005-01-20  Simon Josefsson  <jas@extundo.com>
27993
27994         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
27995         * lib/version-etc.c: Remove version_etc_copyright.
27996         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
27997         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
27998
27999 2005-01-20  Simon Josefsson  <jas@extundo.com>
28000
28001         * lib/base64.h (isbase64): Add.
28002
28003         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
28004         using a unsigned prototype, don't inline.
28005         (base64_decode): Use it.
28006
28007 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
28008
28009         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
28010         it.
28011
28012 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
28013
28014         * lib/save-cwd.c (save_cwd): Remove code to support the case
28015         where fchdir is missing or flaky.
28016
28017 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
28018
28019         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
28020
28021 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
28022
28023         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
28024         AC_LIBSOURCES now does this.
28025         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
28026         with new ullong_max module.
28027
28028 2005-01-19  Bruno Haible  <bruno@clisp.org>
28029
28030         * modules/sh-quote: New file.
28031         * MODULES.html.sh (Executing programs): Add sh-quote.
28032
28033 2005-01-19  Bruno Haible  <bruno@clisp.org>
28034
28035         * lib/sh-quote.h: New file, from GNU gettext.
28036         * lib/sh-quote.c: New file, from GNU gettext.
28037
28038 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
28039
28040         Merge from coreutils.
28041         * m4/ullong_max.m4: New file.
28042         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
28043         (gl_MACROS): Assume localeconv exists.
28044
28045 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
28046
28047         Merge changes from coreutils, as described below in several
28048         changelogs dated today.
28049
28050         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
28051         (O_DIRECTORY): Remove; not needed here, since "." must be
28052         a directory.  All uses removed.
28053         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
28054         universal on Suns, and we also need to test for IRIX.
28055         Revamp code to use 'if' rather than '#if'.
28056         Avoid unnecessary comparison of cwd->desc to 0.
28057
28058         * lib/utimens.c (futimens): Robustify the previous patch, by checking
28059         for known valid error numbers rather than observed invalid ones.
28060
28061 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
28062
28063         * modules/ullong_max: New file.
28064
28065         * modules/chdir-long, modules/openat: New files.
28066         * modules/save-cwd (Depends-on): Depend on chdir-long.
28067         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
28068
28069 2005-01-18  Jim Meyering  <jim@meyering.net>
28070
28071         Merge from coreutils.
28072         * m4/chdir-long.m4, m4/openat.m4: New files.
28073         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
28074         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
28075         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
28076         is sane and DOES follow symlinks.  Besides, testing 20 different
28077         systems found no broken chown implementations.
28078         Prompted by a change in rsync's copy of this macro.
28079         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
28080
28081         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
28082
28083         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
28084         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
28085         NULL-means-set-to-current-time semantics.
28086         Remove temporary file immediately, rather than waiting
28087         for configure's at-exit trap code to do it.
28088
28089 2005-01-18  Jim Meyering  <jim@meyering.net>
28090
28091         * lib/version-etc.c (version_etc_copyright): Update copyright date.
28092
28093         * lib/utimens.c (futimens): Account for the fact that futimes
28094         can also fail with errno == ENOSYS or errno == ENOENT.
28095         Patch from Dmitry V. Levin.
28096
28097         Change the name of the robust chdir function from chdir to chdir_long.
28098         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
28099         (restore_cwd): Use chdir_long, not chdir.
28100         * lib/chdir-long.c: Renamed from chdir.c.
28101         * lib/chdir-long.h: Renamed from chdir.h.
28102         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
28103         Hurd.
28104
28105 2005-01-18  Bruno Haible  <bruno@clisp.org>
28106
28107         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
28108         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
28109         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
28110         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
28111         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
28112         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
28113         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
28114         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
28115         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
28116         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
28117         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
28118         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
28119         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
28120         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
28121         Use an all-permissive copyright notice, recommended by RMS.
28122
28123 2005-01-18  Bob Proulx  <bob@proulx.com>
28124
28125         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
28126         simplify offsetof() macro construct to avoid compile failure with
28127         native HP-UX 11.0 ANSI C compiler.
28128
28129 2005-01-17  Bruno Haible  <bruno@clisp.org>
28130
28131         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
28132         redundant because stpncpy.m4 takes care of it.
28133
28134 2005-01-17  Bruno Haible  <bruno@clisp.org>
28135
28136         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
28137
28138 2005-01-17  Bruno Haible  <bruno@clisp.org>
28139
28140         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
28141         used.
28142
28143 2005-01-17  Bruno Haible  <bruno@clisp.org>
28144
28145         * lib/fwriteerror.h (fwriteerror): Change specification to include
28146         fclose.
28147         * lib/fwriteerror.c: Include <stdbool.h>.
28148         (fwriteerror): At the end, close the file stream. Record whether
28149         stdout was already closed.
28150
28151 2005-01-17  Bruno Haible  <bruno@clisp.org>
28152
28153         * lib/execute.c (environ): Declare if needed.
28154         * lib/pipe.c (environ): Likewise.
28155         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
28156
28157 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
28158
28159         * modules/argp: Depend on vsnprintf
28160
28161 2005-01-10  Jim Meyering  <jim@meyering.net>
28162
28163         * modules/closeout (Depends-on): Add atexit.
28164
28165 2005-01-06  Bruno Haible  <bruno@clisp.org>
28166
28167         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
28168
28169 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
28170
28171         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
28172         definitions to be after all include files, to avoid collisions.
28173         Problem reported by Bob Proulx.
28174
28175 2005-01-04  Jim Meyering  <jim@meyering.net>
28176
28177         Changes imported from coreutils.
28178         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
28179         as the mkstemp template, use a temporary directory and an
28180         8.3-friendly template to avoid trouble on systems like DJGPP.
28181         Reported by Juan M. Guerrero via Stepan Kasal.
28182         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
28183         close. Remove the temporary directory right away, rather than waiting
28184         for configure's at-exit trap code to do it.
28185         Suggestion from Stepan Kasal.
28186
28187 2005-01-01  Simon Josefsson  <jas@extundo.com>
28188
28189         * gnulib-tool: Print #include directives when --import'ing.
28190
28191 2004-12-28  Simon Josefsson  <jas@extundo.com>
28192
28193         * tests/test-base64.c: Include required header files.  Remove
28194         unused variables.
28195
28196 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
28197
28198         * modules/error (Depends-on): Remove gettext.
28199
28200 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
28201
28202         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
28203         not needed.  This removes a dependency on the gettext module.
28204         [defined _LIBC]: Do not include <libintl.h>; not needed.
28205
28206 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
28207
28208         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
28209         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
28210
28211 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
28212
28213         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
28214         HAVE_DECL_STRTOLD.
28215
28216 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
28217
28218         * modules/getdate (Depends-on): Remove alloca-opt.
28219
28220 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
28221
28222         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
28223
28224 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
28225
28226         * lib/argp-parse.c: Include <stddef.h>.
28227         (alignof, alignto): New macros.
28228         (parser_init): Don't assume that void * is aligned sufficiently
28229         for struct option.
28230
28231         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
28232         need to extend the stack.
28233         (YYINITDEPTH): New macro, so that the initial stack isn't overly
28234         large.
28235
28236 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
28237
28238         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
28239
28240 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
28241
28242         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
28243         (2004-10-24) change.  Apparently this was a false alarm.
28244
28245         * modules/getdate: Depend on alloca-opt, not alloca.
28246
28247 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
28248
28249         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
28250         Remove now-obsolete comment about AIX.
28251         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
28252         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
28253         (YYMAXDEPTH): New macro.
28254
28255 2004-12-18  Simon Josefsson  <jas@extundo.com>
28256
28257         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
28258
28259 2004-12-18  Bruno Haible  <bruno@clisp.org>
28260
28261         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
28262
28263 2004-12-18  Bruno Haible  <bruno@clisp.org>
28264
28265         * lib/fatal-signal.c (fatal_signals): Make non-const.
28266         (init_fatal_signals): New function.
28267         (uninstall_handlers, install_handlers): Ignore signals that were set to
28268         SIG_IGN.
28269         (at_fatal_signal): Call init_fatal_signals.
28270         (init_fatal_signal_set): Likewise. Ignore signals that were set to
28271         SIG_IGN.
28272         Reported by Paul Eggert.
28273
28274 2004-12-18  Bruno Haible  <bruno@clisp.org>
28275
28276         * doc/alloca.texi: New file.
28277         * doc/alloca-opt.texi: New file.
28278
28279 2004-12-17  Jim Meyering  <jim@meyering.net>
28280
28281         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
28282         Otherwise, install-sh could exit with improper exit status when
28283         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
28284
28285 2004-12-16  Simon Josefsson  <jas@extundo.com>
28286
28287         * tests/test-base64.c: Add license.
28288
28289 2004-12-15  Stepan Kasal  <address@hidden>
28290
28291         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
28292
28293 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
28294
28295         * modules/getcwd (Files): Add m4/d-ino.m4.
28296         Suggested by Mark D. Baushke.
28297
28298 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
28299
28300         * lib/getdate.y (textint): New member "negative".
28301         (time_zone_hhmm): New function.
28302         Expect 14 shift-reduce conflicts, not 13.
28303         (o_colon_minutes): New rule.
28304         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
28305         (yylex): Set the "negative" member of signed numbers.
28306
28307 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
28308
28309         * doc/getdate.texi (Time of day items, Time zone items):
28310         Describe new formats +00:00, UTC+00:00.
28311
28312 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
28313
28314         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
28315         spurious "-l"s.  Problem reported by Stepan Kasal.
28316
28317 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
28318
28319         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
28320         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
28321
28322 2004-12-04  Simon Josefsson  <jas@extundo.com>
28323
28324         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
28325         Vandoorselaere <yoann@prelude-ids.org>.
28326
28327 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
28328
28329         Changes imported from coreutils.
28330         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
28331         exist.
28332         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
28333
28334 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
28335
28336         Changes imported from coreutils.
28337         * lib/hard-locale.c: Assume <locale.h> exists.
28338         Include "strdup.h".
28339         (GLIBC_VERSION): New macro.
28340         (hard_locale): Assume setlocale exists.
28341         Rewrite to avoid #ifdef.
28342         Use strdup rather than malloc + strcpy.
28343         * lib/human.c: Assume <locale.h> exists.
28344         (human_readable): Assume localeconv exists.
28345
28346 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
28347
28348         * modules/hard-locale (Depends-on): Add strdup.
28349
28350 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
28351
28352         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
28353         convert T2, not T.  (Imported from libc.)
28354
28355 2004-11-30  Simon Josefsson  <jas@extundo.com>
28356
28357         * modules/restrict (License): Change to LGPL.
28358
28359 2004-11-30  Simon Josefsson  <jas@extundo.com>
28360
28361         * m4/restrict.m4: Add copyright and copying conditions.
28362
28363 2004-11-30  Simon Josefsson  <jas@extundo.com>
28364
28365         * m4/base64.m4: New file.
28366
28367 2004-11-30  Simon Josefsson  <jas@extundo.com>
28368
28369         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
28370         base64.
28371
28372         * tests/test-base64.c: New file.
28373
28374         * modules/base64: New file.
28375
28376 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
28377
28378         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
28379         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
28380
28381         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
28382
28383 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
28384
28385         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
28386         (__getcwd.c): Don't restore errno; glibc doesn't.
28387         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
28388         first, falling back to our code only if its results look suspicious.
28389         Ensure that the resulting buffer is only as large as necessary.
28390
28391         * lib/readutmp.c: Include readutmp.h first.
28392         Include <errno.h>, since readutmp.h no longer does that.
28393         * lib/readutmp.h: Don't include <errno.h>,
28394         <sys/param.h>, <time.h>; not needed to establish interface.
28395         (errno): Remove decl.
28396         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
28397         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
28398         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
28399
28400 2004-11-28  Simon Josefsson  <jas@extundo.com>
28401
28402         * lib/base64.h, base64.c: New file.
28403
28404 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
28405
28406         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
28407
28408 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
28409
28410         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
28411         (Depends-on): Remove pathmax, same.  Add mempcpy.
28412         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
28413         (Makefile.am): Append getcwd.h to lib_SOURCES.
28414         (Include): Add getcwd.h.
28415         (Maintainer): Change from Jim Meyering to "all, glibc",
28416         since getdate now uses intended-for-glibc code.
28417         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
28418         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
28419
28420 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
28421
28422         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
28423         HP's ANSI C compiler.
28424         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
28425         Declaring int functions causes warnings on some modern systems and
28426         shouldn't be needed to compile on ancient ones.
28427         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
28428         defined.
28429
28430         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
28431         with the following changes.
28432         (__set_errno): Parenthesize properly.
28433         Include <stdbool.h>.
28434         (MIN, MAX, MATCHING_INO): New macros.
28435         (__getcwd): Define with prototype, not K&R form.
28436         Use heuristics to allocate default buffer on stack if possible.
28437         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
28438         behavior, and to avoid the PATH_MAX limit when computing
28439         ../../../../...
28440         Use MATCHING_INO to compare inode number to file.
28441         Check for arithmetic overflow in size calculations.
28442         Fix bug in reallocation of dot array that caused getcwd to fail
28443         on directories nested deeper than 75.
28444         Be more careful about saving errno on error.
28445         Do not use realloc; use only free+malloc, as this is a bit
28446         more flexible and avoids a needless copy operation.
28447         Do not inspect st_dev and st_ino for symbolic links; POSIX
28448         doesn't specify the latter.
28449         Check for closedir errors.
28450         Avoid needless casts.
28451         Use "#ifdef weak_alias" around weak_alias, to be like other
28452         glibc code.
28453         The following changes to getcwd.c have effect only when used in
28454         gnulib; they have no effect inside glibc proper.
28455         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
28456         as alloca isn't used.
28457         (alloca, __alloca): Likewise.
28458         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
28459         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
28460         unconditionally, as gnulib assumes C89 or better.
28461         Do not include <sys/param.h>.
28462         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
28463         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
28464         better.
28465         (NULL) [!defined NULL]: Remove; we assume C89 or better.
28466         Include <dirent.h> in a way that is compatible with modern Autoconf.
28467         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
28468         New macros, if not already defined.
28469         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
28470         Use "_LIBC", not "defined _LIBC", for consistency.
28471         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
28472         a mempcpy module.
28473         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
28474         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
28475         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
28476         credit only to Jim Meyering and adjust the copyright dates.
28477         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
28478         <stdlib.h>, <unistd.h>, "pathmax.h".
28479         Instead, include "xgetcwd.h" (first) and "getcwd.h".
28480         (INITIAL_BUFFER_SIZE): Remove.
28481         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
28482
28483 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
28484
28485         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
28486         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
28487         Use the _ONCE methods, for efficiency.
28488         Check for fcntl.h.  In test program, include <errno.h>
28489         and <fcntl.h> if available.  Remove old K&R cruft from
28490         test program.  Check for common errors in GNU/Linux,
28491         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
28492         don't do AC_LIBOBJ, as that's getcwd.m4's job.
28493         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
28494         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
28495         name accordingly.
28496         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
28497         accommodate new getcwd.c.
28498         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
28499         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
28500         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
28501         that's all we need now.
28502
28503 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
28504
28505         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
28506         argp-parse.c depends on getopt internals, that means we should
28507         always use our getopt, to be on the safe side.
28508         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
28509         order not to spoil the result of an eventual previous invocation
28510         of gl_GETOPT_SUBSTITUTE.
28511
28512 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
28513
28514         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
28515         redefinition warnings. To avoid them, include the defines
28516         in `#if !defined __need_getopt ... #endif'. The only place
28517         where __getopt_argv_const is used is in definitions
28518         of getopt_long and getopt_long_only below, which are as well
28519         protected by `#ifndef __need_getopt'.
28520         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
28521         __need_getopt after including <stdio.h> and <unistd.h> These
28522         headers might have defined it.
28523
28524 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
28525
28526         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
28527
28528 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
28529
28530         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
28531         (futimens): New function, which uses futimes if available.
28532         (futimens, utimens): Support timespec==NULL, with same semantics
28533         as utime and utimens.
28534         * lib/utimens.h (futimens): New decl.
28535
28536 2004-11-23  Jim Meyering  <jim@meyering.net>
28537
28538         * lib/getopt_.h: Remove trailing blanks.
28539
28540 2004-11-23  Jim Meyering  <jim@meyering.net>
28541
28542         * lib/__fpending.c: Add comment.
28543
28544 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
28545
28546         * modules/canonicalize (Depends-on): Add xreadlink.
28547         Problem reported by James Youngman.
28548
28549 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
28550
28551         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
28552         New macros.
28553         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
28554         optopt): Use them instead of invoking ## directly; otherwise, the
28555         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
28556
28557 2004-11-19  Bruno Haible  <bruno@clisp.org>
28558
28559         * lib/strtok_r.c: Move comments from here...
28560         * lib/strtok_r.h: ... to here.
28561
28562 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
28563
28564         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
28565         implementations that mishandle size_t overflow.
28566
28567 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
28568
28569         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
28570         might fail.  Problem reported by Yoann Vandoorselaere.
28571         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
28572         implementations that mishandle size_t overflow.
28573
28574 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
28575
28576         * modules/canon-host (Depends-on): Add strdup.
28577
28578 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
28579
28580         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
28581
28582 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
28583
28584         * lib/canon-host.c: Include "strdup.h".
28585         (canon_host): Use getaddrinfo if available, so that IPv6 works.
28586         Use strdup instead of malloc/strcpy to duplicate strings.
28587
28588         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
28589         (human_space_before_unit): New constant.
28590         * lib/human.c (human_readable): Support it.
28591
28592         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
28593         (xgetcwd): Set errno correctly when failing.
28594         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
28595         the failure is actually due to a PATH_MAX problem.
28596
28597         Further getopt changes to make it more likely that glibc will
28598         buy the changes back.
28599         * lib/getopt.c (POSIXLY_CORRECT): New constant.
28600         (getopt): Use it, so to preserve glibc semantic
28601         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
28602         when compiling for libc.
28603         * lib/getopt_.h (__getopt_argv_const): Bring it back.
28604         (getopt_long, getopt_long_only): Use it.
28605
28606         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
28607         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
28608         (getopt): Argv is now char * const *, as per standard.
28609         (_getopt_internal_r, _getopt_internal): Argv is now char **,
28610         not char *__getopt_argv_const *.
28611         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
28612         _getopt_long_only_r): Likewise.
28613         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
28614         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
28615         _getopt_long_r, _getopt_long_only_r): Likewise.
28616         * lib/getopt_.h (__getopt_argv_const): Remove.
28617         (getopt): Argv is now char * const *, as per standard.
28618
28619         * lib/getdate.y (tORDINAL): New token.
28620         (day, relunit): Allow it for relative times.
28621         (relative_time_table): Use tORDINAL for ordinals.
28622
28623 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
28624
28625         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
28626         Document that "second" isn't allowed as an ordinal number.
28627
28628 2004-11-16  Jim Meyering  <jim@meyering.net>
28629
28630         * modules/closeout (Depends-on): Add fpending.
28631
28632 2004-11-15  Jim Meyering  <jim@meyering.net>
28633
28634         * lib/closeout.c: Include "__fpending.h" once again.
28635         Include <stdbool.h>.
28636         (close_stdout): Don't fail just because stdout was closed initially,
28637         since some programs don't write to stdout in the normal course of
28638         operation (other than --version and --help), and we don't want this
28639         function to make e.g. `touch file >&-' fail.
28640         But do fail if it was closed and someone has tried to write to it.
28641         E.g., `printf foo >&-' must fail.
28642
28643 2004-11-13  Jim Meyering  <jim@meyering.net>
28644
28645         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
28646
28647 2004-11-12  Simon Josefsson  <jas@extundo.com>
28648
28649         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
28650         small doc fix is still pending.
28651
28652 2004-11-11  Simon Josefsson  <jas@extundo.com>
28653
28654         * modules/strtok_r: New file.
28655
28656         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
28657         strtok_r.
28658
28659 2004-11-11  Simon Josefsson  <jas@extundo.com>
28660
28661         * m4/strtok_r.m4: New file.
28662
28663         * m4/getopt.m4: Replace opterr.
28664
28665 2004-11-11  Simon Josefsson  <jas@extundo.com>
28666
28667         * lib/strtok_r.h, strtok_r.c: New file.
28668
28669 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
28670
28671         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
28672         of replacing opterr, getopt, etc.  This should handle the
28673         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
28674
28675 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
28676
28677         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
28678         we can stop lying to compilers about the constness of argv when we
28679         are compiled outside glibc.
28680         (getopt, getopt_long, getopt_long_only): Use it.
28681         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
28682         _getopt_internal, getopt): Likewise.
28683         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
28684         _getopt_long_only_r): Likewise.
28685         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
28686         _getopt_long_r, _getopt_long_only_r): Likewise.
28687
28688         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
28689         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
28690         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
28691         the other external symbols.
28692         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
28693         declaration, since the above renaming now works around collisions.
28694
28695 2004-11-11  Jim Meyering  <jim@meyering.net>
28696
28697         * lib/linebreak.c: Remove trailing blanks.
28698         * lib/alloca_.h: Likewise.
28699         * lib/acosl.c: Likewise.
28700         * lib/euidaccess.c: Likewise.
28701         * lib/allocsa.h: Likewise.
28702
28703 2004-11-10  Simon Josefsson  <jas@extundo.com>
28704
28705         * m4/getaddrinfo.m4: New file.
28706
28707 2004-11-10  Simon Josefsson  <jas@extundo.com>
28708
28709         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
28710
28711 2004-11-10  Simon Josefsson  <jas@extundo.com>
28712
28713         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
28714         getaddrinfo.
28715
28716         * modules/getaddrinfo: New file.
28717
28718 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
28719
28720         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
28721
28722 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
28723
28724         * lib/mktime.c (SHR): New macro, which is a portable
28725         substitute for >> that should work even on Crays.
28726         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
28727         Problem reported by Mark D. Baushke in
28728         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
28729         * lib/getdate.y (SHR): Likewise.
28730         (tm_diff): Use it.
28731         * lib/strftime.c (SHR): Likewise.
28732         (tm_diff): Use it.
28733         * lib/quotearg.c (struct quoting_options): Use unsigned int for
28734         quote_these_too, so that right shifts are well defined.  All uses
28735         changed.
28736
28737 2004-11-10  Jim Meyering  <jim@meyering.net>
28738
28739         Ensure that no close failure goes unreported.
28740         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
28741         return early when it seems there's nothing to flush.
28742         Don't include __fpending.h.
28743
28744 2004-11-10  Jim Meyering  <jim@meyering.net>
28745
28746         * modules/closeout (Depends-on): Remove fpending.
28747
28748 2004-11-10  Jim Meyering  <jim@meyering.net>
28749
28750         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
28751
28752 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
28753
28754         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
28755         gl_FUNC_STRFTIME.
28756         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
28757         and AC_REQUIRE when possible, to avoid duplicate checks.
28758         Check for <wchar.h>.
28759
28760 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
28761
28762         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
28763
28764 2004-11-09  Bruno Haible  <bruno@clisp.org>
28765
28766         * m4/sockpfaf.m4: New file.
28767
28768 2004-11-05  Bruno Haible  <bruno@clisp.org>
28769
28770         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
28771         Reported by Mark D. Baushke <mdb@cvshome.org>.
28772
28773 2004-11-04  Bruno Haible  <bruno@clisp.org>
28774
28775         2004-09-11  Bruno Haible  <bruno@clisp.org>
28776                 * allocsa.valgrind: New file.
28777         2004-02-06  Bruno Haible  <bruno@clisp.org>
28778                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
28779                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
28780                 Reported by Christopher Seip <chris.seip@hp.com>.
28781
28782 2004-11-04  Bruno Haible  <bruno@clisp.org>
28783
28784         * modules/allocsa (Files): Add lib/allocsa.valgrind.
28785         (Makefile.am): Distribute it.
28786
28787 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
28788
28789         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
28790         with errno == ERANGE if the buffer is too small.
28791         Problem reported by Mark D. Baushke.
28792
28793 2004-11-03  Albert Chin  <china@thewrittenword.com>
28794             Paul Eggert  <eggert@cs.ucla.edu>
28795
28796         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
28797         equivalent, substitute $ac_type for equivalent type rather than
28798         blindly using uint32_t *always* which won't work if uint32_t is not
28799         available.  Define _UINT32_T to work around typedef of uint32_t if
28800         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
28801         2.5.1.
28802
28803 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
28804
28805         * m4/jm-macros.m4: Sync from coreutils.
28806         (gl_MACROS): Check for mbrlen, for pathchk.
28807         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
28808
28809 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
28810
28811         * lib/xreadlink.c (MAXSIZE): New macro.
28812         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
28813         size does not exceed MAXSIZE.  Avoid cast.
28814         As suggested by Mark D. Baushke in
28815         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
28816         if readlink fails with buffer size just under MAXSIZE, try again
28817         with MAXSIZE.
28818
28819 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
28820
28821         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
28822
28823 2004-11-02  Derek R. Price  <derek@ximbiot.com>
28824         and  Paul Eggert  <eggert@cs.ucla.edu>
28825
28826         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
28827         (get_date): Overparenthesize to avoid GCC warning.
28828
28829 2004-11-02  Bruno Haible  <bruno@clisp.org>
28830
28831         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
28832         returns void.
28833
28834 2004-11-02  Bruno Haible  <bruno@clisp.org>
28835
28836         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
28837         function returns void.
28838
28839 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
28840
28841         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
28842         fflush_unlocked, flockfile, funlockfile, funlockfile,
28843         fputs_unlocked, putc_unlocked.
28844
28845 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
28846
28847         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
28848         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
28849         already declared.
28850
28851 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
28852
28853         * modules/getdate (Files): Add doc/getdate.texi.
28854         (Depends-on): Add setenv, xalloc.
28855
28856 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
28857
28858         * lib/getdate.y: Add support for TZ="foo" within a date string.
28859         Fix some bugs near time_t boundaries.  Reject dates with
28860         out-of-range components, e.g., "Sept 31".
28861         Include <stdlib.h>, "setenv.h", "xalloc.h".
28862         (ISDIGIT_LOCALE): Remove; unused.
28863         Note that the TZ and time functions used here are not reentrant.
28864         (mktime_ok, get_tz): New functions.
28865         (TZBUFSIZE): New constant.
28866         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
28867         This requires that we sometimes generate our own TZ="XXX..." setting.
28868
28869 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
28870
28871         * doc/getdate.texi: New file, from coreutils with modifications for
28872         the new TZ parsing.
28873
28874 2004-10-27  Derek R. Price  <derek@ximbiot.com>
28875
28876         * lib/mktime.c (not_equal_tm): Remove redundant check.
28877
28878 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
28879
28880         * modules/regex (lib_SOURCES): Add regex.c.
28881         Reported by James Youngman in
28882         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
28883
28884 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
28885
28886         * lib/getdate.y: Use Bison 1.875 features, and some minor
28887         code cleanups.  This change does not affect semantics.
28888         Don't include <stdlib.h>; no longer needed.
28889         Don't include unlocked-io.h; only the "#if TEST" code uses
28890         stdio, and performance isn't crucial there.
28891         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
28892         Bison 1.875 features as described below.
28893         All uses of "PC." replaced by "pc->".
28894         (YYSTYPE): Add a forward declaration.
28895         (yylex, yyerror): Use full prototypes in forward decls.
28896         Use "%pure-parser" rather than obsolescent "%pure_parser".
28897         Use %parse-param and %lex-param instead of obsolescent
28898         YYPARSE_PARAM and YYLEX_PARAM.
28899         (meridian_table, month_and_day_table, time_units_table,
28900         relative_time_table, time_zone_table, military_table,
28901         lookup_zone, lookup_word, get_date):
28902         Use NULL instead of 0 where appropriate.
28903         (to_hour): Avoid abort (), to avoid a dependency on
28904         stdlib.h.
28905         (yyerror, yylex): Now accepts parser_control * arg.
28906         (main) [TEST]: Use '\0' rather than 0 for char.
28907
28908 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
28909
28910         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
28911
28912 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
28913
28914         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
28915         It's now the caller's responsibility to handle the case where
28916         !HAVE_GETPAGESIZE && !defined getpagesize.
28917
28918         * lib/mktime.c (leapyear): Arg is long int, not int.
28919
28920 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
28921
28922         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
28923
28924 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
28925
28926         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
28927         missing.  Problem reported by James Youngman.
28928
28929 2004-10-16  Simon Josefsson  <jas@extundo.com>
28930
28931         * gnulib-tool: Fix comments.  Fix parse problem.
28932         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
28933
28934 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
28935
28936         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
28937         implementation of getopt_long.  Problem reported by Alexander Taler in:
28938         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
28939
28940 2004-10-15  Bruno Haible  <bruno@clisp.org>
28941
28942         * gnulib-tool: Untabify. Initialize supplied_libname.
28943         (func_usage): More homogenous output.
28944         (func_modules_transitive_closure, func_modules_to_filelist,
28945         func_emit_lib_Makefile_am): New functions.
28946         (func_import): New function, extracted from big case statement. Use
28947         func_get_license, func_modules_transitive_closure,
28948         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
28949         opt_lgpl. Don't use test -a, as it's not portable.
28950         (func_create_testdir): Use func_modules_transitive_closure,
28951         func_modules_to_filelist, func_emit_lib_Makefile_am.
28952
28953 2004-10-15  Bruno Haible  <bruno@clisp.org>
28954
28955         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
28956
28957 2004-10-15  Bruno Haible  <bruno@clisp.org>
28958
28959         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
28960         the portions belonging to each module.
28961         Suggested by Derek Robert Price <derek@ximbiot.com>.
28962
28963 2004-10-12  Simon Josefsson  <jas@extundo.com>
28964
28965         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
28966         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
28967         to real functions.
28968
28969 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
28970
28971         * modules/vsnprintf: New file.
28972
28973 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
28974
28975         * m4/vsnprintf.m4: New file.
28976
28977 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
28978
28979         * lib/vsnprintf.h: New file.
28980         * lib/vsnprintf.c: New file.
28981
28982 2004-10-11  Bruno Haible  <bruno@clisp.org>
28983
28984         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
28985         vsnprintf.
28986
28987 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
28988
28989         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
28990
28991 2004-10-07  Bruno Haible  <bruno@clisp.org>
28992
28993         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
28994         fits into the provided buffer.
28995
28996 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
28997
28998         * lib/diacrit.c, diacrit.h: Add GPL notice.
28999
29000         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
29001         notice.
29002         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
29003         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
29004         This avoids a potential constant-folding bug.
29005
29006 2004-10-05  Bruno Haible  <bruno@clisp.org>
29007
29008         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
29009         for the declaration of strsep.
29010
29011 2004-10-05  Bruno Haible  <bruno@clisp.org>
29012
29013         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
29014
29015 2004-10-04  Simon Josefsson  <jas@extundo.com>
29016
29017         * modules/memmem: New file.
29018         * tests/test-memmem.c: New file.
29019         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
29020
29021 2004-10-04  Simon Josefsson  <jas@extundo.com>
29022
29023         * m4/memmem.m4: New file.
29024
29025 2004-10-04  Simon Josefsson  <jas@extundo.com>
29026
29027         * lib/memmem.h: New file.
29028         * lib/memmem.c: New file, taken from glibc.
29029
29030 2004-10-04  Simon Josefsson  <jas@extundo.com>
29031
29032         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
29033         '#ifdef USE_UNLOCKED_IO'.
29034
29035 2004-10-04  Simon Josefsson  <jas@extundo.com>
29036
29037         * config/srclist.txt: Add memmem from glibc.
29038
29039 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
29040
29041         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
29042
29043         * modules/argmatch, modules/argp, modules/closeout, modules/error,
29044         modules/exclude, modules/getdate, modules/getline,
29045         modules/getndelim2, modules/getpass, modules/getpass-gnu,
29046         modules/getusershell, modules/linebuffer, modules/md5,
29047         modules/mountlist, modules/posixtm, modules/readtokens,
29048         modules/readutmp, modules/regex, modules/sha1,
29049         modules/version-etc, modules/yesno:
29050         Remove dependency on unlocked-io.
29051
29052 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
29053
29054         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
29055
29056         * m4/unlocked-io.m4: Add copyright notice.
29057         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
29058
29059 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
29060
29061         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
29062         * lib/xmalloc.c (xmemdup): Likewise.
29063         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
29064         XFREE): Remove these long-obsolescent macros.
29065         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
29066         * lib/xstrdup.c: Remove.
29067
29068         * lib/regex.c (re_comp): Cast gettext return value to char *,
29069         Problem reported by Martin Neitzel via Mark D. Baushke.
29070
29071 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
29072
29073         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
29074         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
29075         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
29076         regex.c, sha1.c, version-etc.c, yesno.c:
29077         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
29078         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
29079         the includer's responsibility.
29080
29081         Sync from coreutils.
29082
29083         * lib/modechange.c (mode_compile): Don't decrement a pointer that
29084         points to the start of a string, as the C Standard says the
29085         resulting behavior is undefined.
29086
29087         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
29088         simple -> simple_backups, numbered_existing ->
29089         numbered_existing_backups, numbered -> numbered_backups
29090         to avoid shadowing problems.  All uses changed.
29091         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
29092         * lib/backupfile.c (check_extension, numbered_backup):
29093         Rename locals to avoid shadowing 'basename'.
29094         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
29095         once.
29096
29097         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
29098         * lib/.cvsignore: Add getopt.h.
29099
29100 2004-10-04  Bruno Haible  <bruno@clisp.org>
29101
29102         * modules/README: New file.
29103         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
29104         not a module.
29105
29106 2004-10-02  Jim Meyering  <jim@meyering.net>
29107
29108         * lib/dirfd.h, getpagesize.h: Add copyright notice.
29109
29110 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
29111
29112         * modules/strsep: New file.
29113
29114 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
29115
29116         * m4/strsep.m4: New file.
29117
29118 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
29119
29120         * lib/strsep.h: New file.
29121         * lib/strsep.c: New file.
29122
29123 2004-10-01  Simon Josefsson  <jas@extundo.com>
29124
29125         * lib/snprintf.c (snprintf): Handle size==0.
29126
29127 2004-10-01  Simon Josefsson  <jas@extundo.com>
29128             Bruno Haible  <bruno@clisp.org>
29129
29130         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
29131         (snprintf): Declare 'args'.
29132
29133 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
29134
29135         * lib/snprintf.c: Remove comments as to why each header is needed.
29136
29137 2004-10-01  Bruno Haible  <bruno@clisp.org>
29138
29139         * MODULES.html.sh: Add strsep.
29140
29141 2004-09-30  Simon Josefsson  <jas@extundo.com>
29142
29143         * modules/snprintf: New file.
29144
29145 2004-09-30  Simon Josefsson  <jas@extundo.com>
29146
29147         * m4/snprintf.m4: New file.
29148
29149 2004-09-30  Simon Josefsson  <jas@extundo.com>
29150
29151         * lib/snprintf.h, lib/snprintf.c: New files.
29152
29153 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
29154
29155         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
29156         (hol_entry_help): Never translate an empty string.
29157         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
29158         * lib/argp.h (OPTION_NO_TRANS): New option.
29159
29160 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
29161
29162         * modules/argp (Maintainer): Replace Simon Josefsson
29163         by Sergey Poznyakoff.
29164
29165 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
29166
29167         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
29168         changes merged back into glibc.
29169
29170 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
29171
29172         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
29173
29174 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
29175
29176         * lib/xvasprintf.c: Include xalloc.h.
29177         (xvasprintf): Use xalloc_die, not xmalloc_die.
29178
29179 2004-09-29  Bruno Haible  <bruno@clisp.org>
29180
29181         * modules/alloca-opt: New file, derived from modules/alloca.
29182         * modules/allocsa: Depend on alloca-opt instead of alloca.
29183         * modules/setenv: Likewise.
29184         * modules/vasnprintf: Likewise.
29185         * MODULES.html.sh: Add alloca-opt.
29186
29187 2004-09-28  Simon Josefsson  <jas@extundo.com>
29188
29189         * gnulib-tool: New parameter --lgpl, to asseert that modules are
29190         LGPL, and to replace license template from GPL to LGPL.
29191
29192 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
29193
29194         * modules/dummy: Change license to LGPL.
29195
29196 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
29197
29198         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
29199
29200 2004-09-24  Simon Josefsson  <jas@extundo.com>
29201
29202         * modules/minmax (License): Change from GPL to LGPL.
29203
29204 2004-09-23  Simon Josefsson  <jas@extundo.com>
29205
29206         * gnulib-tool (--import): Typo.
29207
29208 2004-09-23  Simon Josefsson  <jas@extundo.com>
29209
29210         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
29211
29212 2004-09-22  Bruno Haible  <bruno@clisp.org>
29213
29214         * modules/*: Add 'License' field.
29215         * gnulib-tool: Accept --extract-license option.
29216         (func_get_license): New function.
29217
29218 2004-09-21  Bruno Haible  <bruno@clisp.org>
29219
29220         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
29221         Reported by Simon Josefsson.
29222
29223 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
29224
29225         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
29226         gl_AC_TYPE_LONG_LONG.
29227
29228 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
29229
29230         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
29231
29232 2004-09-18  Simon Josefsson  <jas@extundo.com>
29233         and  Paul Eggert  <eggert@cs.ucla.edu>
29234
29235         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
29236         calls with autoreconf.  Define GL_LIB.
29237
29238 2004-09-14  Karl Berry  <karl@gnu.org>
29239
29240         * config/srclist.txt: unsync setenv.c, sigh.
29241
29242 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
29243
29244         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
29245         Problem reported by Bruno Haible in:
29246         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
29247
29248 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
29249
29250         * config/srclist.txt: Comment out argp-pvh.c.
29251
29252 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
29253
29254         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
29255         in case some system header has #define'd it.  Problem reported by
29256         Soeren D. Schulze in
29257         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
29258
29259 2004-09-09  Karl Berry  <karl@gnu.org>
29260
29261         * regex.[ch]: delete from the root.  These were supposed to be
29262                 synced with emacs cvs, but this has not happened for about
29263                 a year, and anyway nothing else uses emacs regex.[ch].
29264                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
29265                 lib/regex[.ch] is untouched.
29266
29267 2004-09-09  Bruno Haible  <bruno@clisp.org>
29268
29269         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
29270
29271 2004-09-09  Bruno Haible  <bruno@clisp.org>
29272
29273         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
29274         modifications.
29275         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
29276
29277 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
29278
29279         * modules/xvasprintf: New file.
29280         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
29281
29282 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
29283
29284         * lib/xvasprintf.h: New file.
29285         * lib/xvasprintf.c: New file.
29286         * lib/xasprintf.c: New file.
29287
29288 2004-09-08  Bruno Haible  <bruno@clisp.org>
29289
29290         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
29291
29292 2004-09-08  Bruno Haible  <bruno@clisp.org>
29293
29294         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
29295         length is > INT_MAX.
29296         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
29297         more.
29298
29299 2004-09-08  Bruno Haible  <bruno@clisp.org>
29300
29301         * lib/stdint_.h: New file, taken from GNU clisp.
29302
29303 2004-09-08  Bruno Haible  <bruno@clisp.org>
29304             Oskar Liljeblad  <oskar@osk.mine.nu>
29305
29306         * modules/stdint: New file.
29307         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
29308
29309 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
29310
29311         Import from coreutils.
29312         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
29313         strings on unbounded length.  alloca's performance benefits aren't
29314         that important here.
29315         (V_STRDUP): Remove.
29316         (parse_with_separator): New function, with most of the internals
29317         of the old parse_user_spec.  Allow user to omit both user and group,
29318         for compatibility with FreeBSD.
29319         Clone only the user name, not the entire spec.
29320         Do not set *uid, *gid unless entirely successful.
29321         Avoid memory leak in some failing cases.
29322         Fix regression for USER.GROUP reported by Dmitry V. Levin in
29323         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
29324         (parse_user_spec): Rewrite to use parse_with_separator.
29325
29326 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
29327
29328         * modules/userspec: Don't depend on alloca.
29329
29330 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
29331
29332         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
29333
29334 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
29335
29336         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
29337         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
29338         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
29339
29340 2004-08-16  Simon Josefsson  <jas@extundo.com>
29341
29342         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
29343         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
29344         Add --dry-run for --import.
29345         Let user provided command line parameters override configure.ac
29346         settings.
29347
29348 2004-08-12  Simon Josefsson  <jas@extundo.com>
29349
29350         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
29351         as discussed with Paul Eggert in threads rooted at
29352         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
29353         and
29354         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
29355         Before, the test was empty, and relied on ELIDE_CODE in source
29356         code.)
29357         (gl_PREREQ_GETOPT): New macro.
29358         (gl_GETOPT): Use them.
29359
29360 2004-08-12  Simon Josefsson  <jas@extundo.com>
29361
29362         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
29363         * lib/getopt_.h: Renamed from getopt.h.
29364
29365 2004-08-12  Simon Josefsson  <jas@extundo.com>
29366
29367         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
29368         Change default library name from libfoo to libgnu.
29369         Now, if you have a configure.ac that says:
29370                 gl_SOURCE_BASE(gl)
29371                 gl_M4_BASE(gl/m4)
29372                 gl_MODULES(error getopt etcetera)
29373                 gl_INIT
29374         you can import all you need by running:
29375                 ../gnulib/gnulib-tool --import
29376
29377         * modules/getopt (Files): Rename getopt.h to getopt_.h.
29378         (Makefile.am): Rewrite, use logic from argz.
29379         (Include): Use <getopt.h> instead of "getopt.h".
29380
29381 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
29382
29383         * modules/argp (Files): Add m4/unlocked-io.m4.
29384         (Depends-on): Add extensions.
29385
29386 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
29387
29388         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
29389         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
29390         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
29391         Check for program_invocation_name, program_invocation_short_name,
29392         flockfile, funlockfile, features.h, _getopt_long_only_r.
29393
29394 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
29395
29396         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
29397         its complicated substitute.
29398         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
29399         and program_invocation_name.
29400         (__argp_basename) [!_LIBC]: Remove; the only use was
29401         replaced by its body.
29402         (__argp_short_program_name): Change condition from
29403         !defined __argp_short_program_name to
29404         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
29405         to match argp-namefrob.h.
29406         (__argp_failure): Don't assume strerror_r returns char *.
29407         * lib/argp-parse.c (N_): Define unconditionally.
29408         (argp_default_options): Fill out initializers with 0 to avoid
29409         gcc warnings.
29410
29411 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
29412
29413         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
29414         getopt1.c.
29415
29416 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
29417
29418         Merge from coreutils.
29419
29420         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
29421
29422         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
29423         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
29424
29425 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
29426
29427         Merge from coreutils.
29428
29429         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
29430         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
29431         for Reliant Unix 5.43.
29432
29433         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
29434         (union fooround): Use uintmax_t, not long int.
29435         The rest is a merge from libc:
29436         [defined _LIBC]: Include <shlib-compat.h>.
29437         (_obstack) [defined _LIBC]: Remove after 2.3.4.
29438
29439         * lib/settime.c (settime): Recode to avoid warning with
29440         Sun Forte C 6U2.
29441
29442         * lib/strverscmp.c: Convert to UTF-8.
29443
29444 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
29445
29446         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
29447         m4/uintmax_t.m4.
29448
29449 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
29450
29451         * modules/xalloc-die: New file.
29452         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
29453
29454         * modules/md5 (Files): Add m4/uint32_t.m4.
29455         * modules/sha1: Renamed from modules/sha.
29456         (Files):
29457         Rename lib/sha.h to lib/sha1.h.
29458         Rename lib/sha.c to lib/sha1.c.
29459         Rename m4/sha.m4 to m4/sha1.m4.
29460         (lib_SOURCES): Likewise.
29461         (configure.ac): Rename gl_SHA to gl_SHA1.
29462         (Include): sha.h -> sha1.h.
29463
29464 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
29465
29466         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
29467         * m4/sha1.m4: Renamed from sha.m4.
29468         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
29469
29470 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
29471
29472         * lib/obstack.h (obstack_empty_p):
29473         Don't assume that chunk->contents is suitably aligned.
29474         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
29475         Likewise. Problem reported by Benno in
29476         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
29477
29478         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
29479         readable.  This could be improved further but it'd take some work.
29480
29481 2004-08-08  Simon Josefsson  <jas@extundo.com>
29482
29483         * modules/xgethostname (Depends-on): Remove exit and error (not
29484         used).
29485
29486         * modules/getpass-gnu: Add getpass.h.
29487         (Depends-on): Add stdbool.
29488         * modules/getpass: Add getpass.h.
29489
29490 2004-08-08  Simon Josefsson  <jas@extundo.com>
29491
29492         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
29493         Check getpass declaration.
29494
29495 2004-08-08  Simon Josefsson  <jas@extundo.com>
29496
29497         * lib/xgethostname.c: Don't include error.h (not used).
29498
29499         * lib/getpass.h: Add.
29500         * lib/getpass.c: Include getpass.h first.
29501
29502 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
29503
29504         * lib/xalloc-die.c: New file.
29505         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
29506         All uses removed.
29507         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
29508         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
29509         xalloc-die.c.
29510         (_, N_, xalloc_die): Move to xalloc-die.c.
29511         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
29512         so that we needn't mess with xalloc_msg_memory_exhausted.
29513
29514         * lib/sha1.h: Renamed from sha.h.
29515         (SHA1_H): Renamed from _SHA_H.
29516         (sha1_ctx): Renamed from sha_ctx.
29517         (sha1_init_ctx): Renamed from sha_init_ctx.
29518         (sha1_process_block): Renamed from sha_process_block.
29519         (sha1_process_bytes): Renamed from sha_process_bytes.
29520         (sha1_finish_ctx): Renamed from sha_finish_ctx.
29521         (sha1_read_ctx): Renamed from sha_read_ctx.
29522         (sha1_stream): Renamed from sha_stream.
29523         (sha1_buffer): Renamed from sha_buffer.
29524         * lib/sha1.c: Likewise; renamed from sha.c.
29525         Do not include <sys/types.h>.
29526         Include <stddef.h> rather than <stdlib.h>.
29527
29528 2004-08-08  Bruno Haible  <bruno@clisp.org>
29529
29530         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
29531         FILESYSTEM_PREFIX_LEN.
29532         * lib/progreloc.c: Likewise.
29533         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
29534
29535 2004-08-06  Simon Josefsson  <jas@extundo.com>
29536
29537         * modules/progname (Depends-on): Don't depend on stdbool.
29538
29539 2004-08-06  Simon Josefsson  <jas@extundo.com>
29540
29541         * modules/getsubopt: New file.
29542         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
29543         getsubopt.
29544
29545 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
29546
29547         More merge from coreutils.
29548
29549         * m4/utimens.m4, m4/utimecmp.m4: New files.
29550         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
29551         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
29552         prereq.m4, sha.m4: Import changes from coreutils.
29553
29554 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
29555
29556         More merge from coreutils.
29557         * modules/raise, modules/readtokens0, modules/utimens:
29558         * modules/utimecmp, module/xnanosleep: New files.
29559         * modules/strftime: Add lib/strftime.h.
29560         Change include from <time.h> to "strftime.h".
29561         * modules/yesno: Add lib/yesno.h.
29562         * modules/backupfile: Remove lib/addext.c.
29563         * modules/euidaccess: Add stat-macros.h.
29564         * modules/canonicalize, modules/euidaccess,
29565         modules/filemode, modules/lchown, modules/makepath,
29566         modules/rmdir, modules/stat: Likewise.
29567
29568 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
29569
29570         Merge from tar.
29571         * lib/argp-help.c (make_hol, hol_append): Don't assume that
29572         SIZE_MAX is a valid preprocessor constant.
29573         (__argp_basename): Change from "#ifndef _LIBC"
29574         to "#ifndef __argp_short_program_name", so that
29575         we don't compile these functions for tar.
29576
29577         More merges from coreutils.
29578         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
29579         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
29580         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
29581         * lib/addext.c: Remove; no longer needed.
29582         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
29583         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
29584         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
29585         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
29586         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
29587         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
29588         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
29589         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
29590         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
29591         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
29592         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
29593         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
29594         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
29595         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
29596         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
29597         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
29598         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
29599         Import changes from coreutils.
29600
29601 2004-08-05  Simon Josefsson  <jas@extundo.com>
29602
29603         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
29604
29605 2004-08-05  Simon Josefsson  <jas@extundo.com>
29606
29607         * m4/getsubopt.m4: New file.
29608
29609 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
29610
29611         Merge from coreutils.
29612
29613         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
29614         * m4/getcwd-path-max.m4: New files.
29615
29616         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
29617         FILESYSTEM_PREFIX_LEN ->
29618         FILE_SYSTEM_PREFIX_LEN.
29619         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
29620         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
29621         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
29622         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
29623
29624         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
29625         prerequisite modules now handle the DOS stuff.
29626         Don't check for unistd.h.
29627
29628 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
29629
29630         Merge from coreutils.
29631
29632         * lib/.gdb-history: Remove; this doesn't belong here.
29633
29634         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
29635         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
29636         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
29637         * lib/getcwd.c: New files.
29638
29639         * lib/dirname.h: Include <stdbool.h>.
29640         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
29641         for consistency with POSIX terminology.  All uses changed.
29642         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
29643         (strip_trailing_slashes): Use bool for booleans.
29644         * lib/stripslash.c (strip_trailing_slashes): Likewise.
29645
29646         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
29647         sometimes returns a positive errno value even when it succeeds.
29648         (print_errno_message) [!LIBC]: Fall back on strerror if
29649         __strerror_r fails.
29650
29651         * lib/path-concat.c (mempcpy): Don't define if a system header defines
29652         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
29653         (longest_relative_suffix): New function.
29654         (path_concat): Use it.  Assume first argument is not NULL.
29655         Port to DOS.  Omit redundant separators.
29656         Report an error instead of returning NULL.
29657         Use mempcpy instead of memcpy.
29658         (xpath_concat): Remove: not declared or used.
29659
29660         * lib/same.h: Include <stdbool.h>
29661         (same_name): Return bool, not int.
29662         * lib/same.c (same_name): Likewise.
29663         (errno): Don't declare; we assume C89 or better now.
29664
29665         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
29666         if not already defined.
29667
29668         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
29669         * lib/dup-safer.c (errno): Likewise.
29670
29671 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
29672
29673         Merge from coreutils.
29674         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
29675         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
29676         * modules/path-concat: Don't depend on strdup.
29677
29678 2004-08-03  Simon Josefsson  <jas@extundo.com>
29679
29680         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
29681         * lib/progname.h: Don't include stdbool.h.
29682
29683 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
29684
29685         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
29686         * MODULES.html.sh (func_all_modules): Remove fatal.
29687
29688 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
29689
29690         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
29691
29692 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
29693
29694         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
29695         working.
29696
29697 2004-08-02  Simon Josefsson  <jas@extundo.com>
29698
29699         * lib/getsubopt.h: New file, with comments from Bruno Haible.
29700         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
29701         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
29702
29703 2004-08-01  Simon Josefsson  <jas@extundo.com>
29704
29705         * lib/xgetdomainname.c: Include stdlib.h, for free().
29706
29707 2004-07-19  Bruno Haible  <bruno@clisp.org>
29708
29709         * MODULES.html.sh (func_all_modules): Add dummy.
29710
29711 2004-07-16  Simon Josefsson  <jas@extundo.com>
29712
29713         * modules/dummy: New file.
29714
29715 2004-07-16  Simon Josefsson  <jas@extundo.com>
29716
29717         * lib/dummy.c: New file.
29718
29719 2004-07-16  Bruno Haible  <bruno@clisp.org>
29720
29721         * lib/backupfile.h: Add extern "C" for C++.
29722         * lib/closeout.h: Likewise.
29723         * lib/copy-file.h: Likewise.
29724         * lib/findprog.h: Likewise.
29725         * lib/full-write.h: Likewise.
29726         * lib/pathname.h: Likewise.
29727         * lib/progname.h: Likewise.
29728         * lib/stpcpy.h: Likewise.
29729         * lib/stpncpy.h: Likewise.
29730         * lib/strcase.h: Likewise.
29731         * lib/strstr.h: Likewise.
29732         * lib/xalloc.h: Likewise.
29733
29734         * lib/mbswidth.h: Add extern "C" for C++.
29735         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
29736
29737 2004-07-13  Robert Millan  <robertmh@gnu.org>
29738
29739         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
29740
29741 2004-07-09  Simon Josefsson  <jas@extundo.com>
29742
29743         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
29744         failed without this.)
29745
29746 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
29747
29748         * modules/chown (Files): Add lib/fchown-stub.c, since
29749         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
29750
29751 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
29752
29753         * lib/fchown-stub.c: New file.
29754
29755 2004-06-24  Jim Meyering  <jim@meyering.net>
29756
29757         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
29758
29759 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
29760
29761         * modules/argz: Omit "#include".
29762
29763         * MODULES.html.sh (func_all_modules): Add calloc, to match
29764         2004-06-01 addition of calloc module.
29765
29766 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
29767
29768         * m4/argz.m4: New file, which is autoupdated from libtool.
29769
29770 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
29771
29772         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
29773         libtool.
29774
29775 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
29776
29777         * config/srclist-update: Don't insist on "USA." before the
29778         close-comment, as libtool omits the period and puts the */ on a
29779         separate line.
29780         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
29781         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
29782
29783 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
29784
29785         * modules/argz: New file.
29786         * MODULES.html.sh (func_all_modules): Add argz.
29787
29788 2004-06-12  Jim Meyering  <jim@meyering.net>
29789         and  Paul Eggert  <eggert@cs.ucla.edu>
29790
29791         * modules/hash (Files): Add lib/xalloc.h.
29792         * modules/pipe (Depends-on): Add wait-process.
29793         * modules/stat (Depends-on): Add xalloc.
29794         * modules/userspec (Files): Add lib/userspec.h.
29795         * modules/xstrto
29796
29797         Upgrade from gettext-0.13.
29798         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
29799         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
29800         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
29801
29802 2004-06-10  Jim Meyering  <jim@meyering.net>
29803
29804         * lib/calloc.c: New file.
29805
29806 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
29807
29808         * lib/getdate.y (yylex): Allow space between sign and number.
29809         Problem reported by Dan Jacobson.
29810
29811 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
29812
29813         Merge from coreutils CVS.
29814
29815         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
29816         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
29817         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
29818         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
29819         xstrtol.m4: Fix copyright date and/or serial number.
29820
29821         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
29822         See if we need an fchown replacement.
29823         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
29824         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
29825         and use the replacement function if we detect either defect.
29826
29827         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
29828         gl_UTIMECMP.
29829
29830 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
29831         and  Jim Meyering  <jim@meyering.net>
29832
29833         Merge from coreutils CVS.
29834
29835         * lib/stat-macros.h: New file, with contents from file-type.h
29836         and coreutils' system.h.
29837         * lib/file-type.c: Include "stat-macros.h".
29838         * lib/file-type.h (file_type): Move all macro definitions to new file,
29839         stat-macros.h.
29840
29841         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
29842         Wrap old code with this conditional.
29843         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
29844         function that does not dereference symlinks.
29845         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
29846
29847         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
29848         dependency problems.
29849         (xreadlink): Accept new arg SIZE, for efficiency.
29850         All decls and uses changed.
29851         * lib/xreadlink.h: Include <stddef.h>, for size_t.
29852
29853         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
29854         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
29855
29856         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
29857         sysexits.h.
29858
29859 2004-06-01  Jim Meyering  <jim@meyering.net>
29860
29861         * m4/calloc.m4: New file.
29862
29863 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
29864
29865         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
29866         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
29867         Also, fix a typo in a diagnostic.
29868
29869 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
29870
29871         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
29872         or AC_FUNC_REALLOC.
29873
29874 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
29875
29876         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
29877         macros to be defined.
29878         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
29879         the allocator returns NULL because the requested size is zero.
29880
29881 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
29882
29883         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
29884         var.  Add comment explaining why libc still defines it.  This
29885         merges the following patch from glibc:
29886         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
29887
29888 2004-05-20  Andreas Schwab  <schwab@suse.de>
29889
29890         * m4/free.m4: Replace free if it not known to work, not the other
29891         way round.
29892
29893 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
29894
29895         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
29896         present in glibc since revision 1.1 of this file.
29897         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
29898         obstack_alignment_mask, obstack_alloc, obstack_base,
29899         obstack_blank, obstack_blank_fast, obstack_chunk_size,
29900         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
29901         obstack_grow0, obstack_init, obstack_int_grow,
29902         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
29903         obstack_next_free, obstack_object_size, obstack_ptr_grow,
29904         obstack_ptr_grow_fast, obstack_room): Remove declarations of
29905         nonexistent functions.
29906
29907 2004-05-18  Karl Berry  <karl@gnu.org>
29908
29909         * config/srclist.txt: break link for vasnprintf.c.
29910
29911 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
29912
29913         Port obstack to the AS/400, where pointers are 16 bytes wide and
29914         you cannot cast an integer to a valid pointer.  This patch is
29915         currently waiting to be integrated into glibc; see
29916         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
29917
29918         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
29919         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
29920         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
29921         (struct obstack): temp member is now a union of a pointer and
29922         an integer, instead of an integer.  All integer uses changed.
29923         This does not affect the physical layout of struct obstack,
29924         except on hosts (like the AS/400) where the size or alignment of
29925         void * is greater than that of ptrdiff_t.
29926         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
29927         __STDC__)]: Store temporary in pointer member of union, not
29928         integer member.
29929         * lib/obstack.c: Include <stddef.h>, for offsetof.
29930         (struct fooalign): Remove; it doesn't need a name.
29931         (union fooround): Change double to long double, and add void *.
29932         (DEFAULT_ALIGNMENT): Use offsetof to compute.
29933         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
29934         not a macro.  Hence the values are always int; so remove all
29935         casts-to-int in uses.
29936
29937 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
29938
29939         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
29940         we can get this patch merged into glibc.
29941
29942 2004-05-17  Derek R. Price  <derek@ximbiot.com>
29943             Paul Eggert  <eggert@cs.ucla.edu>
29944
29945         * m4/argp: Depend on alloca.
29946
29947 2004-05-17  Derek R. Price  <derek@ximbiot.com>
29948             Paul Eggert  <eggert@cs.ucla.edu>
29949
29950         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
29951         freecoding.
29952
29953 2004-05-17  Bruno Haible  <bruno@clisp.org>
29954
29955         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
29956         precision that consists of a '.' followed by an empty digit string.
29957         Patch by Tor Lillqvist <tml@iki.fi>.
29958
29959 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
29960
29961         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
29962         for backward compatibility with older code.  We need our own
29963         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
29964         it under some other name, and our alloca.h will define it.
29965
29966 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
29967             Derek Price  <derek@ximbiot.com>
29968
29969         * lib/alloca.c: Include <alloca.h>, to get our interface.
29970         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
29971         include <alloca.h> first.  Use C89 prototype for alloca; this
29972         requires including <stddef.h> for size_t.  Use extern "C" if C++.
29973         Use #elif for simplicity, since we can assume C89 now.
29974         Don't try to source the system alloca.h since it will not be found
29975         and to prevent recursively including its replacement.
29976         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
29977         * lib/regex.c: Likewise.
29978
29979 2004-05-16  Derek Price  <derek@ximbiot.com>
29980             Paul Eggert  <eggert@cs.ucla.edu>
29981
29982         getline cleanup.  This changes the getndelim2 API: both order of
29983         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
29984         no delimiter).
29985
29986         * lib/getline.c: Don't include stddef.h or stdio.h, since our
29987         interface does that.
29988         (getline): Always use getdelim, so that we don't have two
29989         copies of this code.
29990         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
29991         if available.
29992         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
29993         (GETNDELIM2_MAXIMUM): New macro.
29994         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
29995         instead of the old practice of delim2==0.  All callers changed.
29996         Return -1 on overflow, instead of returning junk.
29997         Do not set *linesize unless allocation succeeds.
29998         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
29999         that we include sys/types.h.
30000         * lib/getnline.h: Likewise.
30001         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
30002         (getndelim2): Reorder arguments.
30003         * lib/getnline.c (getnline, getndelim):
30004         Don't discard the NMAX argument.
30005         (getnline): Invoke getndelim, to avoid code duplication.
30006         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
30007         of (size_t) -1 by callers of the getnline family.
30008
30009 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
30010
30011         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
30012         Check for gettimeofday.
30013         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
30014         Check for settimeofday, stime.
30015
30016 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
30017
30018         * lib/nanosleep.c (suspended): Change its type from int to
30019         sig_atomic_t volatile.
30020         (first_call): Make it private to rpl_nanosleep, and have it
30021         be zero initially as that's a bit faster.
30022         (my_usleep): Round up fractional times instead of truncating them,
30023         as this is the usual meaning for 'sleep'.
30024
30025         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
30026         doesn't work.
30027         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
30028         (ENOSYS): Define if not defined.
30029         (settime): Fall back on stime if it exists and settimeofday fails.
30030         But don't bother with fallbacks if a method fails with errno == EPERM.
30031
30032 2004-05-11  Jim Meyering  <jim@meyering.net>
30033
30034         Prior to this change, the save_cwd caller required read access to the
30035         current directory on most systems (ones with the fchdir function).
30036
30037         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
30038         fails, try write-only, and finally, resort to using xgetcwd.
30039
30040 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
30041
30042         * lib/obstack.c, obstack.h: Import changes from libc.
30043
30044 2004-04-28  Bruno Haible  <bruno@clisp.org>
30045
30046         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
30047         also implicitly appends .exe to executables.
30048         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
30049         accepts Windows pathnames.
30050         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
30051         Treat Cygwin like Windows, since it now accepts Windows pathnames.
30052         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
30053         Treat Cygwin like Windows, since it now accepts Windows pathnames.
30054         Reported by Derek Robert Price <derek@ximbiot.com>.
30055
30056 2004-04-21  Karl Berry  <karl@gnu.org>
30057
30058         * config/srclist.txt (localcharset.c): break sync.
30059
30060 2004-04-20  Paul Eggert  <eggert@twinsun.com>
30061
30062         * m4/host-os.m4: Add a copyright notice.
30063
30064 2004-04-20  Jim Meyering  <jim@meyering.net>
30065
30066         Change UTILS_ to gl_ in AC_DEFINE'd names.
30067         Change utils_- and jm_-prefixed variables, too.
30068         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
30069         UTILS_FUNC_MKDIR_TRAILING_SLASH.
30070         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
30071
30072         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
30073         Don't emit trailing blanks.
30074         Also rename jm_-prefixed variables to have gl_ prefix.
30075
30076         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
30077         Also rename jm_-prefixed variables to have gl_ prefix.
30078
30079         * m4/jm-macros.m4: Reflect the renamings.
30080         * m4/prereq.m4: Likewise.
30081
30082 2004-04-20  Jim Meyering  <jim@meyering.net>
30083
30084         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
30085         memory.
30086
30087 2004-04-20  Jim Meyering  <jim@meyering.net>
30088             Bruno Haible  <bruno@clisp.org>
30089
30090         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
30091         memory when realloc fails.
30092
30093 2004-04-19  Jim Meyering  <jim@meyering.net>
30094
30095         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
30096         now that readutmp.c may call `free (0)'.
30097
30098 2004-04-19  Bruno Haible  <bruno@clisp.org>
30099
30100         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
30101         * m4/inttypes_h.m4: Likewise.
30102         * m4/stdint_h.m4: Likewise.
30103         * m4/intmax_t.m4: Likewise.
30104         * m4/uintmax_t.m4: Likewise.
30105
30106 2004-04-18  Jim Meyering  <jim@meyering.net>
30107
30108         * m4/prereq.m4: Don't forbid jm_ prefix.
30109
30110         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
30111         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
30112         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
30113         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
30114         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
30115         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
30116         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
30117         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
30118         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
30119         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
30120         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
30121         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
30122         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
30123         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
30124         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
30125         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
30126         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
30127         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
30128         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
30129
30130 2004-04-18  Jim Meyering  <jim@meyering.net>
30131
30132         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
30133         failure, don't leak memory and do call END_UTMP_ENT.
30134
30135 2004-04-16  Jim Meyering  <jim@meyering.net>
30136
30137         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
30138         coreutils' stat program.
30139         (gl_PREREQ): Don't require jm_PREREQ_STAT.
30140
30141 2004-04-11  Paul Eggert  <eggert@twinsun.com>
30142
30143         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
30144         C89.
30145         (CHAR_BIT): Remove, since we assume C89.
30146         Include <stdint.h> if available, as per current Autoconf CVS advice.
30147
30148 2004-03-31  Jim Meyering  <jim@meyering.net>
30149
30150         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
30151         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
30152         * m4/xalloc.m4: Likewise.
30153
30154 2004-03-30  Paul Eggert  <eggert@twinsun.com>
30155
30156         Merge from coreutils.
30157
30158         * m4/inttostr.m4: New file.
30159         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
30160         Require AM_STDBOOL_H and gl_TIMESPEC instead.
30161         Require gl_CLOCK_TIME.
30162         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
30163
30164 2004-03-30  Paul Eggert  <eggert@twinsun.com>
30165
30166         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
30167         not bool, to be more consistent with Unix conventions.
30168         Suggested by Bruno Haible.
30169
30170         Merge from coreutils.
30171
30172         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
30173         * lib/umaxtostr.c: New files.
30174
30175         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
30176         the usual <time.h> dance.
30177         (get_date): Change signature to support fractional time stamps.
30178         All callers changed.
30179         * lib/getdate.y: Include "getdate.h" first, as we can now
30180         assume C89 and don't need to worry about 'const'.
30181         Similarly, include "unlocked-io.h" near start, not in middle.
30182         Include <limits.h>.
30183         (textint.value): Use long int rather than int.
30184         (textint.digits): Use size_t rather than int.
30185         (BILLION, LOG10_BILLION): New constants.
30186         (parser_control): New member rel_ns.  Members day_ordinal,
30187         time_zone, month, day, hour, minutes, rel_year, rel_month,
30188         rel_day, rel_hour, rel_minutes, rel_seconds
30189         are now long int, not int.  Member seconds is now struct timespec,
30190         not int.  New member timespec_seen.  Members dates_seen, days_seen,
30191         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
30192         not int.
30193         (%union.intval): Now long int, not int.
30194         New member timespec.
30195         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
30196         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
30197         (spec): Now is a timespec or an item list.
30198         (timespec, items): New nonterminals.
30199         (time, rel, relunit, number, get_date):
30200         Add support for fractional seconds.
30201         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
30202         (gmtime, localtime, mktime): Remove decls; not needed with C89.
30203         (to_hour): First arg is now long int, not int.
30204         (to_year): Returns long int, not int.
30205         Don't treat year -70 like 70.
30206         (tm_diff): Returns long int, not int.
30207         (lookup_word): Use bool instead of int when appropriate.
30208         (yylex): Use size_t for count, not int.
30209         Detect overflow when parsing large integer constants.
30210         Add support for fractions.
30211         (get_date): Make pointers 'const' if possible.
30212         Use more-portable code to detect integer overflow.
30213         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
30214         Don't use ctime; it's not reliable if the year has >4 digits.
30215
30216         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
30217         This is for compatibility with BSD.
30218
30219         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
30220         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
30221         From coreutils' system.h.
30222
30223         * lib/userspec.c: Don't include "posixver.h".
30224         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
30225         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
30226         compatible extension.  Simplify code by removing a boolean int
30227         that was always nonzero if a string was nonnull.
30228
30229 2004-03-30  Jim Meyering  <jim@meyering.net>
30230
30231         Merge from coreutils.
30232
30233         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
30234         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
30235         on some systems one must include <grp.h> before it.
30236         Reported by Christian Krackowizer.
30237
30238 2004-03-30  Jim Meyering  <jim@meyering.net>
30239
30240         Merge from coreutils.
30241
30242         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
30243
30244         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
30245         an empty input stream.
30246
30247         * lib/readtokens.c: Include <stdbool.h>.
30248         (readtoken): Use `size_t' rather than int/long.
30249         All callers adjusted.
30250         Use `bool' rather than `int' where appropriate.
30251         Use memset rather than an explicit loop.
30252         Use x2nrealloc rather than xrealloc.
30253         Allow the use of `\0' as a delimiter.
30254         (readtokens): Likewise.
30255         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
30256
30257 2004-03-30  Jim Meyering  <jim@meyering.net>
30258
30259         * m4/realloc.m4: Remove file, since now it does no more than
30260         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
30261         the `configure.ac' section of module/realloc.
30262         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
30263
30264 2004-03-30  Bruno Haible  <bruno@clisp.org>
30265
30266         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
30267         nonnull.
30268
30269 2004-03-29  Paul Eggert  <eggert@twinsun.com>
30270
30271         Merge changes to getloadavg.c from coreutils and Emacs.
30272
30273         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
30274         Define to an expression, not to the empty string.
30275         Include cloexec.h and xalloc.h.
30276         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
30277         Use set_cloexec_flag rather than rolling our own.
30278         * lib/cloexec.c, lib/cloexec.h: New files.
30279
30280 2004-03-29  Paul Eggert  <eggert@twinsun.com>
30281
30282         * m4/cloexec.m4: New file.
30283
30284 2004-03-18  Paul Eggert  <eggert@twinsun.com>
30285
30286         * lib/getopt.h: Sync with libc CVS.
30287
30288 2004-03-18  Paul Eggert  <eggert@twinsun.com>
30289             Bruno Haible  <bruno@clisp.org>
30290
30291         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
30292         mbswidth.
30293
30294 2004-03-18  Paul Eggert  <eggert@twinsun.com>
30295             Bruno Haible  <bruno@clisp.org>
30296
30297         * lib/mbswidth.h: Include <wchar.h> only if
30298         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
30299         <wchar.h>.
30300         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
30301
30302 2004-03-09  Paul Eggert  <eggert@twinsun.com>
30303
30304         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
30305         Sync with libc CVS.
30306         * lib/getopt_int.h: New file, also synced from libc.
30307
30308 2004-03-09  Paul Eggert  <eggert@twinsun.com>
30309
30310         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
30311         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
30312         Bring back getopt.c, getopt.h, getopt1.c.
30313
30314 2004-03-07  Paul Eggert  <eggert@twinsun.com>
30315
30316         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
30317         All uses changed.  Check for sa_sigaction member; this fixes
30318         a bug first reported by Jason Andrade in
30319         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
30320
30321 2004-03-07  Paul Eggert  <eggert@twinsun.com>
30322
30323         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
30324         '#if' expressions.  Unlike the code it replaces, it does not
30325         depend on (defined _SC_PAGESIZE).  However, it does depend on
30326         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
30327         first reported by Jason Andrade in
30328         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
30329
30330 2004-02-25  Simon Josefsson  <jas@extundo.com>
30331
30332         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
30333
30334 2004-02-25  Simon Josefsson  <jas@extundo.com>
30335
30336         * lib/strdup.h: New file.
30337         * lib/strdup.c: Include it.
30338         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
30339         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
30340
30341 2004-02-23  Karl Berry  <karl@gnu.org>
30342
30343         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
30344         (from fencepost.gnu.org:/gd/gnuorg).
30345
30346 2004-02-23  Karl Berry  <karl@gnu.org>
30347
30348         * config/srclistvars.sh (GNUORG) [karl]: redefine.
30349         * config/srclist.txt: add maintain/standards documents.
30350
30351 2004-02-18  Bruno Haible  <bruno@clisp.org>
30352
30353         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
30354         Reported by Derek Robert Price <derek@ximbiot.com>.
30355
30356 2004-02-16  Karl Berry  <karl@gnu.org>
30357
30358         * config/mkinstalldirs, install-sh: update from automake.
30359
30360 2004-02-06  Karl Berry  <karl@gnu.org>
30361
30362         * m4/po.m4: update from gettext 0.14.1.
30363
30364 2004-02-06  Karl Berry  <karl@gnu.org>
30365
30366         * lib/config.charset: update from gettext 0.14.1.
30367
30368 2004-02-05  Paul Eggert  <eggert@twinsun.com>
30369
30370         Add comments and code, prompted by suggestions from Bruno Haible
30371         for sh-quote.
30372         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
30373         describing the enum quoting_style values.
30374         * lib/quotearg.c (quotearg_alloc): New function.
30375         (quotearg_buffer_restyled): Treat lone { and } as special.
30376         Treat = as special.  Work around bug with older shells
30377         that "see" a '\' that is really the 2nd byte of a multibyte char.
30378         Quote empty string with shell_quoting_style.
30379
30380 2004-02-03  Bruno Haible  <bruno@clisp.org>
30381
30382         * m4/pipe.m4: New file, from GNU gettext.
30383
30384 2004-02-03  Bruno Haible  <bruno@clisp.org>
30385
30386         * lib/pipe.h: New file, from GNU gettext.
30387         * lib/pipe.c: New file, from GNU gettext.
30388
30389 2004-01-27  Bruno Haible  <bruno@clisp.org>
30390
30391         * m4/execute.m4: New file, from GNU gettext.
30392
30393 2004-01-27  Bruno Haible  <bruno@clisp.org>
30394
30395         * lib/execute.h: New file, from GNU gettext.
30396         * lib/execute.c: New file, from GNU gettext.
30397         * lib/w32spawn.h: New file, from GNU gettext.
30398
30399 2004-01-24  Paul Eggert  <eggert@twinsun.com>
30400
30401         Merge from diffutils.
30402
30403         * lib/file-type.c (file_type): Add typed memory objects.
30404         * lib/file-type.h (S_TYPEISTMO): New macro.
30405
30406         * lib/c-stack.h (c_stack_action): Remove argv argument.
30407         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
30408         (die): Don't calculate message unless segv_action returns.
30409         (get_stack_location, min_address_from_argv, max_address_from_argv,
30410         volatile stack_base, volatile_stack_size): Remove.
30411         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
30412         that every segmentation violation is a stack overflow.  (Ouch!)
30413         See Debian bug 136249 (still outstanding) for more info about why
30414         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
30415
30416 2004-01-24  Paul Eggert  <eggert@twinsun.com>
30417
30418         Exit-status fix from coreutils.
30419
30420         Use exit_failure consistently in place of EXIT_FAILURE,
30421         so that program exit statuses are consistent on failure.
30422
30423         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
30424         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
30425         * lib/argmatch.h: Comment fix to match the above.
30426         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
30427         Now a macro referring to exit_failure, instead of a separate
30428         variable.  Include "exitfail.h" to get it.
30429         * lib/xstrtol.h: Include "exitfail.h".
30430         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
30431
30432         * lib/long-options.c (parse_long_options): Use prototype
30433         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
30434         for clarity.
30435
30436 2004-01-21  Jim Meyering  <jim@meyering.net>
30437
30438         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
30439         so as not to conflict with a different-sized __mktime_internal
30440         function in GNU libc.
30441         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
30442         Problem building statically-linked `ls' reported by Michael Brunnbauer.
30443
30444 2004-01-20  Karl Berry  <karl@gnu.org>
30445
30446         * config/config.guess: update from config.
30447
30448         * config/srclistvars.sh: GNUWWWLICENSES for karl.
30449
30450 2004-01-20  Bruno Haible  <bruno@clisp.org>
30451
30452         Safer stack allocation.
30453         * lib/setenv.c: Include allocsa.h.
30454         (alloca): Remove fallback definition.
30455         (freea): Remove macro.
30456         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
30457         instead of freea.
30458
30459 2004-01-20  Bruno Haible  <bruno@clisp.org>
30460
30461         * m4/eealloc.m4: New file, from GNU gettext.
30462
30463 2004-01-20  Bruno Haible  <bruno@clisp.org>
30464
30465         * m4/allocsa.m4: New file, from GNU gettext.
30466
30467 2004-01-20  Bruno Haible  <bruno@clisp.org>
30468
30469         * lib/xallocsa.h: New file, from GNU gettext.
30470         * lib/xallocsa.c: New file, from GNU gettext.
30471
30472 2004-01-20  Bruno Haible  <bruno@clisp.org>
30473
30474         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
30475
30476 2004-01-20  Bruno Haible  <bruno@clisp.org>
30477
30478         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
30479         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
30480         specially.
30481
30482 2004-01-20  Bruno Haible  <bruno@clisp.org>
30483
30484         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
30485         patch.
30486
30487 2004-01-20  Bruno Haible  <bruno@clisp.org>
30488
30489         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
30490
30491 2004-01-20  Bruno Haible  <bruno@clisp.org>
30492
30493         * lib/eealloc.h: New file.
30494
30495 2004-01-20  Bruno Haible  <bruno@clisp.org>
30496
30497         * lib/binary-io.h: Avoid warnings on Cygwin.
30498
30499 2004-01-20  Bruno Haible  <bruno@clisp.org>
30500
30501         * lib/allocsa.h: New file, from GNU gettext.
30502         * lib/allocsa.c: New file, from GNU gettext.
30503
30504 2004-01-18  Karl Berry  <karl@gnu.org>
30505
30506         * doc/gpl.texi, doc/lgpl.texi: new files.
30507
30508 2004-01-18  Karl Berry  <karl@gnu.org>
30509
30510         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
30511         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
30512
30513 2004-01-15  Paul Eggert  <eggert@twinsun.com>
30514
30515         Merge from coreutils.
30516
30517         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
30518         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
30519         (gl_DEFAULT_POSIX2_VERSION): Move
30520         the documentation from 'configure' into 'config.hin',
30521         so that 'configure --help' isn't burdened by it and
30522         we don't have to worry about its formatting there.
30523         Reword the documentation so that it's more succinct
30524         and can be run together into a single paragraph.
30525         * m4/same.m4 (gl_SAME): Check for pathconf.
30526
30527 2004-01-15  Paul Eggert  <eggert@twinsun.com>
30528
30529         Merge from coreutils.
30530
30531         * lib/posixver.c: Include posixver.h.
30532
30533         * lib/same.c: Include <stdbool.h>, <limits.h>.
30534         (_POSIX_NAME_MAX): Define if not defined.
30535         (MIN): New macro.
30536         (same_name): If file names are silently truncated, report
30537         that the file names are the same if they are the same after
30538         the silent truncation.
30539
30540         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
30541         conversion function.
30542         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
30543         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
30544         longer needed.
30545
30546 2004-01-15  Jim Meyering  <jim@meyering.net>
30547
30548         Merge from coreutils.
30549
30550         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
30551         if no library is required.
30552         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
30553         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
30554         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
30555         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
30556         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
30557         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
30558         value, $ac_cv_search_crypt, if it's "none required".
30559         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
30560         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
30561         not gl_FUNC_GETLOADAVG.
30562         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
30563         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
30564
30565 2004-01-15  Jim Meyering  <jim@meyering.net>
30566
30567         Merge from coreutils.
30568
30569         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
30570         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
30571         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
30572
30573         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
30574         optional configure-time default.
30575
30576         * lib/version-etc.c (version_etc_copyright): Update copyright date.
30577
30578         * lib/xreadlink.c (xreadlink): Correct outdated comment.
30579
30580 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
30581
30582         Merge from coreutils.
30583
30584         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
30585         value, $ac_cv_search_nanosleep, if it's "none required".
30586
30587 2004-01-14  Paul Eggert  <eggert@twinsun.com>
30588
30589         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
30590         with like-named macro in fnmatch.c.
30591         (EXT): Use an internal constant instead.
30592
30593         Merge fnmatch patches from glibc.
30594         * lib/fnmatch.c (mbsinit): Remove define.
30595         Add libc_hidden_ver (__fnmatch, fnmatch).
30596         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
30597         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
30598
30599 2004-01-14  Karl Berry  <karl@gnu.org>
30600
30601         * config/install-sh: update from automake.
30602
30603 2004-01-13  Karl Berry  <karl@gnu.org>
30604
30605         * config/install-sh: update from automake.
30606
30607 2004-01-09  Karl Berry  <karl@gnu.org>
30608
30609         * config/install-sh: update from automake.
30610
30611 2004-01-05  Karl Berry  <karl@gnu.org>
30612
30613         * config/config.{sub,guess}: update from config.
30614
30615 2003-12-31  Karl Berry  <karl@gnu.org>
30616
30617         * config/depcomp: update from automake.
30618
30619 2003-12-14  Karl Berry  <karl@gnu.org>
30620
30621         * lib/config.charset: update from gettext-runtime.
30622
30623 2003-12-03  Paul Eggert  <eggert@twinsun.com>
30624
30625         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
30626         Bug reported by Alfred M. Szmidt.
30627
30628 2003-12-03  Bruno Haible  <bruno@clisp.org>
30629
30630         * m4/gettext.m4: Upgrade from gettext-0.13.
30631         * m4/po.m4: Upgrade from gettext-0.13.
30632         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
30633         * m4/intmax.m4: New file, from gettext-0.13.
30634         * m4/printf-posix.m4: New file, from gettext-0.13.
30635
30636 2003-11-29  Karl Berry  <karl@gnu.org>
30637
30638         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
30639
30640 2003-11-25  Paul Eggert  <eggert@twinsun.com>
30641             Bruno Haible  <bruno@clisp.org>
30642
30643         * lib/printf-parse.h: Don't include sys/types.h.
30644         (ARG_NONE): New macro.
30645         (char_directive): Change type of *arg_index fields to size_t.
30646         * lib/printf-parse.c: Don't include sys/types.h.
30647         (SSIZE_MAX): Remove macro.
30648         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
30649         Remove unnecessary overflow check.
30650         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
30651         fields.
30652
30653 2003-11-25  Bruno Haible  <bruno@clisp.org>
30654
30655         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
30656
30657 2003-11-25  Bruno Haible  <bruno@clisp.org>
30658
30659         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
30660         gt_TYPE_SSIZE_T.
30661
30662 2003-11-24  Paul Eggert  <eggert@twinsun.com>
30663
30664         * modules/alloca: Remove dependency on xalloc.
30665
30666 2003-11-24  Paul Eggert  <eggert@twinsun.com>
30667
30668         * lib/alloca.c: Remove dependency on xalloc module.
30669         (xalloc_die): Remove.
30670         (memory_full) [!defined emacs]: New macro.
30671         [!defined emacs]: Don't include xalloc.h.
30672         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
30673         address arithmetic overflows.  Change datatypes a bit to avoid
30674         unnecessary casts.
30675
30676 2003-11-22  Jim Meyering  <jim@meyering.net>
30677
30678         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
30679         s/size/size_t/.
30680
30681 2003-11-21  Karl Berry  <karl@gnu.org>
30682
30683         * config/config.{sub,guess}: update from config.
30684
30685 2003-11-18  Karl Berry  <karl@gnu.org>
30686
30687         * config/config.{sub,guess}: update from config.
30688
30689         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
30690
30691 2003-11-17  Paul Eggert  <eggert@twinsun.com>
30692
30693         * README: Mention that S+T cannot overflow if S is the size of
30694         an existing object and T is sufficiently small.
30695
30696 2003-11-17  Jim Meyering  <jim@meyering.net>
30697
30698         On systems without utime and without a utimes function capable of
30699         dealing with a NULL struct utimbuf* argument, this utime replacement
30700         could -- in unusual circumstances -- leak a file descriptor.
30701         * lib/utime.c: Include <unistd.h> and <errno.h>.
30702         (utime_null): Be sure to close `fd' and to preserve errno.
30703         Reported by Geoff Collyer via Arnold Robbins.
30704
30705 2003-11-17  Bruno Haible  <bruno@clisp.org>
30706
30707         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
30708         (Depends-on): Add xsize.
30709
30710 2003-11-17  Bruno Haible  <bruno@clisp.org>
30711
30712         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
30713
30714 2003-11-17  Bruno Haible  <bruno@clisp.org>
30715
30716         * lib/vasnprintf.c (alloca): Remove fallback definition.
30717         (freea): Remove definition.
30718         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
30719         Reported by Paul Eggert.
30720
30721 2003-11-16  Paul Eggert  <eggert@twinsun.com>
30722             Bruno Haible  <bruno@clisp.org>
30723
30724         Protect against address arithmetic overflow.
30725         * lib/printf-args.h: Include stddef.h.
30726         (arguments): Change type of field 'count' to size_t.
30727         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
30728         'unsigned int' where appropriate.
30729         * lib/printf-parse.h: Include sys/types.h.
30730         (char_directive): Change type of *arg_index fields to ssize_t.
30731         (char_directives): Change type of fields 'count', max_*_length to
30732         size_t.
30733         * lib/printf-parse.c: Include sys/types.h and xsize.h.
30734         (SSIZE_MAX): Define fallback value.
30735         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
30736         instead of 'int' where appropriate. Check a_allocated, d_allocated
30737         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
30738         * lib/vasnprintf.c: Include xsize.h.
30739         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
30740         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
30741         overflow. Avoid wraparound when converting a width or precision from
30742         decimal to binary.
30743
30744 2003-11-16  Bruno Haible  <bruno@clisp.org>
30745
30746         Update from GNU gettext.
30747         * lib/printf-parse.c: Generalize to it can be compiled for wide
30748         strings.
30749         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
30750         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
30751         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
30752         SNPRINTF): New macros.
30753         Don't include <alloca.h> if the file is used inside libintl.
30754         (local_wcslen): New function, for Solaris 2.5.1.
30755         (VASNPRINTF): Use it instead of wcslen.
30756
30757 2003-11-16  Bruno Haible  <bruno@clisp.org>
30758
30759         * lib/xsize.h (xmax): New function.
30760         (xsum, xsum3, xsum4): Declare as "pure" functions.
30761
30762 2003-11-12  Paul Eggert  <eggert@twinsun.com>
30763
30764         * modules/xalloc (Files): Undo latest change, since xalloc.h
30765         no longer needs SIZE_MAX or PTRDIFF_MAX.
30766
30767 2003-11-12  Paul Eggert  <eggert@twinsun.com>
30768
30769         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
30770         gl_PTRDIFF_MAX.
30771
30772 2003-11-12  Paul Eggert  <eggert@twinsun.com>
30773
30774         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
30775         "return", to pacify some unknown compiler.  Problem reported
30776         by Joerg Schilling.
30777
30778 2003-11-12  Paul Eggert  <eggert@twinsun.com>
30779
30780         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
30781         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
30782         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
30783         heuristic is just as accurate as far as we know, and it removes a
30784         dependency on size_max.m4 and ptrdiff_max.m4.
30785
30786 2003-11-11  Bruno Haible  <bruno@clisp.org>
30787
30788         * modules/xsize (Files): Add m4/size_max.m4.
30789         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
30790
30791 2003-11-11  Bruno Haible  <bruno@clisp.org>
30792
30793         * m4/size_max.m4: New file.
30794         * m4/ptrdiff_max.m4: New file.
30795         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
30796         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
30797         (gl_XALLOC): Invoke it.
30798
30799 2003-11-11  Bruno Haible  <bruno@clisp.org>
30800
30801         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
30802         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
30803         defined.
30804
30805 2003-11-10  Paul Eggert  <eggert@twinsun.com>
30806
30807         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
30808         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
30809         rejected some allocations of exactly SIZE_MAX - 2 bytes.
30810         From Bruno Haible.
30811         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
30812         not (size_t) -1, since it's defined here.
30813
30814 2003-11-09  Karl Berry  <karl@gnu.org>
30815
30816         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
30817
30818 2003-11-06  Paul Eggert  <eggert@twinsun.com>
30819
30820         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
30821         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
30822         Reject sizes of exactly SIZE_MAX bytes.
30823         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
30824         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
30825
30826 2003-11-05  Bruno Haible  <bruno@clisp.org>
30827
30828         * lib/xsize.h: Include limits.h, to avoid a possible collision with
30829         SIZE_MAX defined in <limits.h> on Solaris.
30830
30831 2003-11-04  Jim Meyering  <jim@meyering.net>
30832
30833         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
30834         variable names, rather than @VAR@.
30835         * modules/poll: Likewise.
30836
30837 2003-11-04  Bruno Haible  <bruno@clisp.org>
30838
30839         * modules/xsize: New file.
30840         * modules/linebreak: Depend on xsize.
30841         * MODULES.html.sh (func_all_modules): Add xsize.
30842
30843 2003-11-04  Bruno Haible  <bruno@clisp.org>
30844
30845         * m4/xsize.m4: New file.
30846
30847 2003-11-04  Bruno Haible  <bruno@clisp.org>
30848
30849         * lib/xsize.h: New file.
30850         * lib/linebreak.c: Include xsize.h.
30851         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
30852         argument for overflow.
30853         Suggested by Paul Eggert.
30854
30855 2003-11-03  Karl Berry  <karl@gnu.org>
30856
30857         * config/config.{guess,sub}: update from config.
30858
30859 2003-11-03  Jim Meyering  <jim@meyering.net>
30860
30861         * modules/userspec (lib_SOURCES): Add userspec.h.
30862         (Include): Add "userspec.h".
30863         Improve description.
30864
30865 2003-11-03  Jim Meyering  <jim@meyering.net>
30866
30867         * lib/userspec.c: Include "userspec.h".
30868         * lib/userspec.h: New file.
30869
30870 2003-11-03  Bruno Haible  <bruno@clisp.org>
30871
30872         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
30873
30874 2003-11-03  Bruno Haible  <bruno@clisp.org>
30875
30876         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
30877         available, to avoid (extremely rare) race condition.
30878         Suggested by Paul Eggert.
30879
30880 2003-11-02  Karl Berry  <karl@gnu.org>
30881
30882         * config/srclist.txt (vasprintf.c): sync broken, sigh.
30883
30884 2003-10-31  Paul Eggert  <eggert@twinsun.com>
30885
30886         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
30887         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
30888         (read_filesystem_list): Set and use me_type_malloced.
30889         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
30890         whatever the type happens to be), for brevity and consistency.
30891         Check for size calculation overflow on Alphas running OSF/1.
30892
30893 2003-10-31  Jim Meyering  <jim@meyering.net>
30894
30895         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
30896
30897         * lib/linebuffer.c: Include <string.h> for declaration of memset.
30898
30899 2003-10-30  Paul Eggert  <eggert@twinsun.com>
30900             Bruno Haible  <bruno@clisp.org>
30901
30902         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
30903         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
30904
30905 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
30906
30907         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
30908         netbsd*-gnu*.  Suggested by Robert Millan.
30909
30910 2003-10-29  Paul Eggert  <eggert@twinsun.com>
30911
30912         * modules/group-member: Depend on stdbool.
30913
30914 2003-10-29  Paul Eggert  <eggert@twinsun.com>
30915
30916         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
30917
30918 2003-10-29  Paul Eggert  <eggert@twinsun.com>
30919
30920         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
30921         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
30922         after the 'gnu' in these cases.  This fixes some bugs in the
30923         previous change, and is based on suggestions by Robert Millan.
30924
30925 2003-10-29  Paul Eggert  <eggert@twinsun.com>
30926
30927         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
30928         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
30929         no longer needed.
30930         * lib/quotearg.c (quotearg_n_options): Use it.
30931         * lib/group-member.c: Include <stdbool.h>.
30932         (free_group_info): Arg is now const *; don't free arg.
30933         (get_group_info): Now returns bool and accepts struct group_info *,
30934         rather than returning a malloc'ed struct group_info *.
30935         All uses changed.  Check for overflow in internal size calculation.
30936
30937         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
30938         rather than xmalloc/xrealloc.
30939         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
30940         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
30941         conformance bug: the old code used a pointer after freeing the
30942         storage that it addressed.
30943         * lib/hash.c (hash_initialize): Simplify the code by using
30944         xalloc_oversized rather than doing it by hand.
30945         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
30946         the buffer preserved.  Use free and xmalloc instead.
30947         * lib/quotearg.c (quotearg_n_options): Likewise.
30948         Use a simpler test for size overflow.  Don't use xalloc_oversized
30949         because unsigned int might be wider than size_t (!); this suggests
30950         that we should switch from unsigned int to size_t for slot numbers.
30951
30952 2003-10-28  Paul Eggert  <eggert@twinsun.com>
30953
30954         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
30955         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
30956         NetBSD kernels.  Requested by Richard Stallman.
30957
30958 2003-10-27  Paul Eggert  <eggert@twinsun.com>
30959
30960         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
30961         to allocate the returned structure.  Do not allocate a subarray,
30962         as x2nrealloc will do that.
30963         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
30964         instead of xnrealloc.
30965         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
30966
30967 2003-10-27  Bruno Haible  <bruno@clisp.org>
30968
30969         * lib/stdbool_.h: Better support for BeOS.
30970
30971 2003-10-26  Paul Eggert  <eggert@twinsun.com>
30972
30973         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
30974         now uses inline.
30975
30976 2003-10-26  Paul Eggert  <eggert@twinsun.com>
30977
30978         * lib/xalloc.h (xalloc_oversized): New static inline function, for
30979         callers that want to do their own size-overflow checking.  Include
30980         <stdbool.h>, since xalloc_oversized returns bool.
30981         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
30982         to use xalloc_oversized.
30983
30984         Add two functions x2realloc, x2nrealloc, for programs that grow
30985         arrays dynamically by doubling their sizes.
30986         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
30987         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
30988         New functions.
30989
30990         Port to C99 semantics for 'inline' of external functions.
30991         Bug reported by Bruno Haible.
30992         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
30993         with the old contents of xnmalloc.
30994         (xnmalloc, xmalloc): Use it.
30995         (xnrealloc_inline): New static inline function,
30996         with the old contents of xnrealloc.
30997         (xnrealloc, xrealloc): Use it.
30998
30999         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
31000         that.
31001
31002 2003-10-26  Karl Berry  <karl@gnu.org>
31003
31004         * config/srclist.txt (COPYING.DOC): no longer available from
31005         /gd/gnuorg; don't know where the ultimate source is.
31006
31007 2003-10-25  Paul Eggert  <eggert@twinsun.com>
31008
31009         Fix several address-calculation bugs in the hash modules,
31010         plus some minor code cleanup.
31011
31012         * lib/hash.h: Include <stdbool.h>, for bool.
31013         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
31014         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
31015         hash_get_n_entries, hash_get_max_bucket_length,
31016         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
31017         hash_rehash): Use size_t rather than unsigned.
31018         * lib/hash.c (struct hash_table, hash_get_n_buckets,
31019         hash_get_n_buckets_used, hash_get_n_entries,
31020         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
31021         hash_get_entries, hash_do_for_each, hash_string, is_prime,
31022         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
31023         Likewise.
31024         (SIZE_MAX): Define if not defined.
31025         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
31026         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
31027         hash_print):
31028         Use const * when possible.
31029         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
31030         (check_tuning): Fix bug: if tuning parameters were very close to
31031         0 or 1, rounding errors could have caused subscript violations.
31032         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
31033         (hash_initialize): Add 'fail:' label
31034         to free table and return NULL, and use it to simplify code.
31035         Use calloc rather than clearing the storage ourself.
31036         (hash_initialize, hash_rehash): Check for arithmetic overflow in
31037         buffer size calculations.
31038         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
31039         Include <stddef.h>, for size_t.
31040         * lib/hash-pjw.c (hash_pjw): Likewise.
31041         Switch to method described by Bruno Haible.
31042         Include <limits.h>, for CHAR_BIT.
31043         (SIZE_BITS): New macro.
31044
31045 2003-10-23  Paul Eggert  <eggert@twinsun.com>
31046
31047         * m4/getline.m4 (AM_FUNC_GETLINE):
31048         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
31049         hosts.  Problem reported by Derek Robert Price in
31050         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
31051         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
31052         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
31053
31054 2003-10-21  Paul Eggert  <eggert@twinsun.com>
31055
31056         * lib/getndelim2.c (getndelim2): When size calculation overflows,
31057         ceiling the allocation at NMAX bytes rather than silently
31058         discarding input bytes before NMAX is reached.  This makes
31059         a difference only if NMAX exceeds SIZE_MAX / 2.
31060
31061         * lib/obstack.c: Merge from glibc.
31062         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
31063         Add libc_hidden_def (_obstack_newchunk).
31064         (_obstack_free) [! defined _LIBC]: Remove.
31065         [defined _LIBC]: Make a strong alias from obstack_free, rather than
31066         a clone of the function body.
31067         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
31068         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
31069
31070         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
31071         glibc.
31072         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
31073         arg to memcpy.
31074
31075         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
31076         (obstack_ptr_grow_fast, obstack_int_grow_fast):
31077         Don't use lvalue casts, as GCC plans to remove support for them
31078         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
31079         was also present in the non-GCC version, indicating that this
31080         code had always been buggy and had never been widely used.
31081         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
31082         Use the fast variant of each macro, rather than copying the
31083         definiens of the fast variant; that way, we'll be more likely to
31084         catch future bugs in the fast variants.
31085
31086 2003-10-20  Bruno Haible  <bruno@clisp.org>
31087
31088         * modules/wait-process: New file.
31089         * MODULES.html.sh (func_all_modules): Add wait-process.
31090
31091 2003-10-20  Bruno Haible  <bruno@clisp.org>
31092
31093         * m4/wait-process.m4: New file.
31094
31095 2003-10-20  Bruno Haible  <bruno@clisp.org>
31096
31097         * lib/wait-process.h: New file, from GNU gettext.
31098         * lib/wait-process.c: New file, from GNU gettext.
31099
31100 2003-10-19  Jim Meyering  <jim@meyering.net>
31101
31102         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
31103         HPUX 10.20.
31104
31105 2003-10-18  Karl Berry  <karl@gnu.org>
31106
31107         * config/config.guess: update from config.
31108
31109 2003-10-16  Paul Eggert  <eggert@twinsun.com>
31110
31111         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
31112         (getgroups): First arg is int, not size_t.
31113         Don't let 'free' mangle errno.
31114
31115 2003-10-16  Paul Eggert  <eggert@twinsun.com>
31116
31117         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
31118
31119 2003-10-16  Karl Berry  <karl@gnu.org>
31120
31121         * config/config.{guess,sub}: update from config.
31122
31123 2003-10-16  Jim Meyering  <jim@meyering.net>
31124
31125         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
31126         memcpy.
31127
31128 2003-10-15  Paul Eggert  <eggert@twinsun.com>
31129
31130         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
31131         (SIZE_MAX): Remove.
31132         (new_exclude, add_exclude_file): Initial size no longer needs to
31133         be a power of 2.
31134         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
31135         our own address arithmetic overflow checking.
31136
31137         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
31138         (fnmatch): Do not alloca more than 2000 wide characters;
31139         instead, use malloc for large buffers.
31140         Check for address arithmetic overflow, and return -1
31141         with errno set to ENOMEM in that case.
31142         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
31143         (NEW_PATTERN): Do not alloca more than 8000 bytes;
31144         instead, return -1.  Check for address arithmetic overflow.
31145
31146 2003-10-14  Paul Eggert  <eggert@twinsun.com>
31147
31148         Handle invalid suffixes and overflow independently, so that
31149         callers can treat them independently as needed.  Fix some bugs in
31150         suffix handling, e.g., "100k@" was not diagnosed as an invalid
31151         suffix for a human-readable blocksize.  The major caller-visible
31152         change is the addition of a new
31153         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
31154         that both overflow and suffix chars were found.
31155
31156         * lib/human.c (humblock): Don't check separately for invalid suffix
31157         char; that is xstrtoumax's job (now that its bug is fixed).
31158         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
31159         INTMAX_MAX]: New macros.
31160         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
31161         TYPE_MAXIMUM): New macros.
31162         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
31163         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
31164         if overflow occurs, as it's what __strtol does and it's more useful
31165         in practice.
31166         (__xstrtol): If __strtol reports some error other than ERANGE,
31167         reflect it to the caller as LONGINT_INVALID.  If it reports
31168         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
31169         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
31170         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
31171         value.
31172         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
31173         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
31174         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
31175         [defined UINTMAX_MAX]: New macros.
31176
31177 2003-10-14  Bruno Haible  <bruno@clisp.org>
31178
31179         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
31180
31181 2003-10-14  Bruno Haible  <bruno@clisp.org>
31182
31183         * m4/sig_atomic_t: New file, from GNU gettext.
31184         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
31185
31186 2003-10-14  Bruno Haible  <bruno@clisp.org>
31187
31188         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
31189         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
31190         Also use volatile where needed.
31191
31192 2003-10-12  Paul Eggert  <eggert@twinsun.com>
31193
31194         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
31195         Change maintainer from Bruno Haible to 'all'.
31196
31197 2003-10-12  Paul Eggert  <eggert@twinsun.com>
31198
31199         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
31200
31201 2003-10-12  Paul Eggert  <eggert@twinsun.com>
31202
31203         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
31204         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
31205         and define in terms of the other primitives.
31206         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
31207         (SIZE_MAX): Define if not already defined.
31208         (array_size_overflow): New function.
31209         (xalloc_die): Abort instead of exiting if 'error' returns.
31210         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
31211         (xmalloc, xrealloc): Use them.
31212         (xcalloc): Check for address arithmetic overflow.
31213         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
31214         a bit faster than strcpy.
31215
31216 2003-10-10  Simon Josefsson  <jas@extundo.com>
31217
31218         * modules/argp (Depends-on): Add restrict and strcase.
31219
31220 2003-10-10  Simon Josefsson  <jas@extundo.com>
31221
31222         * m4/argp.m4: Add AC_C_INLINE.
31223
31224 2003-10-08  Paul Eggert  <eggert@twinsun.com>
31225
31226         Merge getpass from libc, plus a few fixes.
31227
31228         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
31229         Include <stdbool.h>.
31230         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
31231         __fsetlocking to empty.
31232         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
31233         do include <bits/libc-lock.h>.
31234         Do not include <fcntl.h>; not needed.
31235         [_LIBC]: Include <wchar.h>.
31236         (NOTCANCEL_MODE): New macro.
31237         (flockfile, funlockfile) [_LIBC]: New macros.
31238         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
31239         [!_LIBC]: New macros.
31240         (call_fclose): New function.
31241         (getpass): Use it.  Save tty stream separately; this simplifies the
31242         code and makes it more reliable if stdin happens to equal stdout.
31243         Invoke __fsetlocking on tty.
31244         Handle thread cancellation if needed.
31245         Namespace cleanup (use __tcgetattr, __getline).
31246         Use bool for Booleans.
31247         [USE_IN_LIBIO]: Handle wide streams.
31248         [!_LIBC]: Unconditionally do the fseek, since we don't know what
31249         stream might go where.
31250
31251         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
31252         doesn't have to include <stdio.h> before us.
31253         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
31254         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
31255         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
31256         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
31257         if not declared, so that we can use getpass.c code from libc without
31258         rewriting it.
31259         (flockfile, ftrylockfile, funlockfile): New macros.
31260
31261 2003-10-08  Paul Eggert  <eggert@twinsun.com>
31262
31263         * modules/getpass: Depend on stdbool.
31264
31265 2003-10-08  Paul Eggert  <eggert@twinsun.com>
31266
31267         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
31268
31269 2003-10-07  Karl Berry  <karl@gnu.org>
31270
31271         * config/config.{guess,sub}: update from config.
31272
31273 2003-10-06  Jim Meyering  <jim@meyering.net>
31274             Bruno Haible  <bruno@clisp.org>
31275
31276         This lets translators provide better translations for the
31277         "Written by ..." part of --version output.
31278         * lib/version-etc.h: Include stdarg.h.
31279         (version_etc_copyright): Declare as readonly.
31280         (version_etc): Make this function variadic with a NULL-terminated list
31281         of author name strings.
31282         (version_etc_va): New declaration.
31283         * lib/version-etc.c: Include stdarg.h, stdlib.h.
31284         (version_etc_copyright): Declare as readonly.
31285         (version_etc_va): New function. Provide a different translatable string
31286         for each possible number of authors < 10. Abbreviate when there are 10
31287         authors or more.
31288         (version_etc): Make this function variadic. Call version_etc_va.
31289         Suggestion from Gary V. Vaughan.
31290
31291         * lib/long-options.h (parse_long_options): Change prototype: the
31292         authors string is moved to the end and becomes variadic.
31293         * lib/long-options.c: Include stdarg.h.
31294         (parse_long_options): Make this function variadic, too.
31295         Call version_etc_va, not version_etc.
31296
31297 2003-10-06  Bruno Haible  <bruno@clisp.org>
31298
31299         * modules/version-etc-2: Remove file.
31300         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
31301
31302 2003-10-06  Bruno Haible  <bruno@clisp.org>
31303
31304         * modules/fatal-signal: New file.
31305         * MODULES.html.sh (func_all_modules): Add fatal-signal.
31306
31307 2003-10-06  Bruno Haible  <bruno@clisp.org>
31308
31309         * m4/fatal-signal.m4: New file.
31310         * m4/signalblocking.m4: New file, from GNU gettext.
31311
31312 2003-10-06  Bruno Haible  <bruno@clisp.org>
31313
31314         * lib/version-etc-2.h: Remove file.
31315         * lib/version-etc-2.c: Remove file.
31316
31317 2003-10-06  Bruno Haible  <bruno@clisp.org>
31318
31319         * lib/fatal-signal.h: New file, from GNU gettext.
31320         * lib/fatal-signal.c: New file, from GNU gettext.
31321
31322 2003-10-05  Paul Eggert  <eggert@twinsun.com>
31323
31324         * README: Rework advice for preventing empty .o files.
31325         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
31326         not <sys/types.h>.
31327
31328 2003-10-04  Karl Berry  <karl@gnu.org>
31329
31330         * lib/argp*: update from libc.
31331
31332 2003-10-04  Karl Berry  <karl@gnu.org>
31333
31334         * config/config.{guess,sub}: update from config.
31335
31336 2003-10-02  Bruno Haible  <bruno@clisp.org>
31337
31338         * modules/lchown (Include): Add lchown.h.
31339         * modules/time_r (Include): Use "..." syntax.
31340         * modules/xgetdomainname (Include): Add xgetdomainname.h.
31341
31342 2003-10-01  Simon Josefsson  <jas@extundo.com>
31343
31344         * MODULES.html.sh (func_all_modules): Move gethostname from section
31345         'based on' to section 'lacking' POSIX:2001.
31346
31347 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
31348
31349         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
31350         to output mode on the same stream.
31351
31352 2003-09-29  Paul Eggert  <eggert@twinsun.com>
31353
31354         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
31355         Fix arg typo in previous patch.
31356
31357 2003-09-28  Jim Meyering  <jim@meyering.net>
31358
31359         * lib/error.c: Correct cpp indentation.
31360
31361 2003-09-27  Paul Eggert  <eggert@twinsun.com>
31362
31363         * modules/free: New file.
31364
31365 2003-09-27  Paul Eggert  <eggert@twinsun.com>
31366
31367         * m4/free.m4: New file.
31368
31369 2003-09-27  Paul Eggert  <eggert@twinsun.com>
31370
31371         * lib/minmax.h (MIN, MAX)
31372         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
31373         Omit the special code that used __typeof__, since we worry that
31374         it could be more trouble than it's worth.  See:
31375         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
31376         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
31377
31378         * lib/free.c: New file.
31379
31380 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
31381
31382         Trivial fixes to Makefile.am parts of module listings.
31383         * modules/strstr: Append strstr.h to lib_SOURCES.
31384         * modules/strcase: Likewise, for strcase.h.
31385
31386 2003-09-27  Karl Berry  <karl@gnu.org>
31387
31388         * config/mkinstalldirs: update from automake.
31389
31390 2003-09-26  Paul Eggert  <eggert@twinsun.com>
31391
31392         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
31393         (error_tail): Do not loop, reallocating temporary buffer, since
31394         the output cannot contain more wide characters than the input
31395         contains bytes, the size must be big enough already.  This avoids
31396         one potential size overflow calculation.  Check for size overflow
31397         when calculating temporary buffer size.  Free temporary buffer
31398         when done, if it was allocated with malloc; this plugs a memory
31399         leak.  Remove casts from void * to pointers, that are no longer
31400         needed now that we're assuming C89 or better.
31401
31402         Merge error changes from glibc.
31403
31404         * lib/error.c, error.h: Update copyright notice header to match glibc.
31405         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
31406         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
31407         Disable cancellation while printing error.
31408         * lib/error.h: Prepend __ to parameter names.
31409
31410 2003-09-26  Jim Meyering  <jim@meyering.net>
31411
31412         * lib/error.c (error_tail): Move some declarations
31413         into inner scope where the local variables are used.
31414
31415 2003-09-26  Bruno Haible  <bruno@clisp.org>
31416
31417         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
31418         stpncpy().
31419         Don't define stpncpy through config.h; it's now done through stpncpy.h.
31420
31421 2003-09-26  Bruno Haible  <bruno@clisp.org>
31422
31423         * lib/stpncpy.h (gnu_stpncpy): New declaration.
31424         (stpncpy): Define as alias for gnu_stpncpy.
31425         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
31426
31427 2003-09-25  Simon Josefsson  <jas@extundo.com>
31428
31429         * lib/xgetdomainname.h: New file.
31430         * lib/xgetdomainname.c: New file.
31431
31432 2003-09-25  Simon Josefsson  <jas@extundo.com>
31433             Bruno Haible  <bruno@clisp.org>
31434
31435         * modules/getdomainname: New file.
31436         * modules/xgetdomainname: New file.
31437         * MODULES.html.sh (func_all_modules): Add getdomainname,
31438         xgetdomainname.
31439
31440 2003-09-25  Simon Josefsson  <jas@extundo.com>
31441             Bruno Haible  <bruno@clisp.org>
31442
31443         * m4/getdomainname.m4: New file.
31444
31445 2003-09-25  Simon Josefsson  <jas@extundo.com>
31446             Bruno Haible  <bruno@clisp.org>
31447
31448         * lib/getdomainname.h: New file.
31449         * lib/getdomainname.c: New file.
31450
31451 2003-09-25  Karl Berry  <karl@gnu.org>
31452
31453         * lib/argp-fmtstream.c, argp-help.c: update from libc.
31454
31455 2003-09-25  Karl Berry  <karl@gnu.org>
31456
31457         * config/install-sh: update from automake.
31458
31459 2003-09-25  Bruno Haible  <bruno@clisp.org>
31460
31461         * modules/version-etc-2: New file, from modules/version-etc with
31462         modifications.
31463         * MODULES.html.sh (func_all_modules): Add version-etc-2.
31464
31465 2003-09-25  Bruno Haible  <bruno@clisp.org>
31466
31467         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
31468         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
31469
31470 2003-09-24  Simon Josefsson  <jas@extundo.com>
31471
31472         * modules/xgethostname: Add xgethostname.h.
31473
31474 2003-09-24  Paul Eggert  <eggert@twinsun.com>
31475
31476         * lib/linebuffer.c (freebuffer): Don't free the argument, just
31477         the buffer associated with the argument.  Bug reported by
31478         Simon Josefsson.
31479
31480 2003-09-24  Paul Eggert  <eggert@twinsun.com>
31481
31482         * README: Document assumptions that 'int' is at least 32 bits
31483         wide, that integer arithmetic is 2's complement without overflow,
31484         that there are no holes in integer values, that adding sizes of
31485         two nonoverlapping objects can't overflow, and that all-bits-zero
31486         yields scalar zero.  Fix spelling and capitalization typos.
31487
31488 2003-09-19  Karl Berry  <karl@gnu.org>
31489
31490         * lib/argp.h: update from libc.
31491
31492 2003-09-17  Paul Eggert  <eggert@twinsun.com>
31493
31494         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
31495         to avoid spurious warnings like "AC_RUN_IFELSE was called before
31496         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
31497
31498 2003-09-17  Paul Eggert  <eggert@twinsun.com>
31499
31500         * gnulib-tool: Use "test -h", not "test -L", for portability
31501         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
31502         (tags_regexp): Remove, since \| doesn't conform to POSIX.
31503         (sed_extract_prog): Issue s commands one-by-one, rather than
31504         using \| in one s command.
31505
31506 2003-09-16  Paul Eggert  <eggert@twinsun.com>
31507
31508         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
31509         input error, instead of returning NULL the next time we are called
31510         (and therefore losing track of errno).
31511
31512 2003-09-16  Bruno Haible  <bruno@clisp.org>
31513
31514         * gnulib-tool (func_create_testdir): Warn about duplicated
31515         dependencies.
31516
31517 2003-09-15  Paul Eggert  <eggert@twinsun.com>
31518
31519         * modules/argmatch, modules/fatal, modules/obstack,
31520         modules/xalloc, modules/xgethostname: Sort dependencies by
31521         importance, not alphabetically.
31522
31523 2003-09-15  Paul Eggert  <eggert@twinsun.com>
31524
31525         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
31526         fails, so that the caller gets the proper errno.
31527
31528         * lib/readutmp.c (read_utmp): Likewise.
31529         Check for fstat error.  Close stream and free storage
31530         when failing.
31531
31532 2003-09-14  Karl Berry  <karl@gnu.org>
31533
31534         * config/srclist.txt (strdup.c): disable for c89 changes.
31535
31536 2003-09-14  Jim Meyering  <jim@meyering.net>
31537
31538         * lib/getloadavg.c: Correct cpp indentation.
31539         * lib/strdup.c: Likewise.
31540         * lib/vasnprintf.c: Likewise.
31541
31542 2003-09-14  Bruno Haible  <bruno@clisp.org>
31543
31544         * modules/fwriteerror: New file.
31545         * MODULES.html.sh (func_all_modules): Add fwriteerror.
31546
31547 2003-09-14  Bruno Haible  <bruno@clisp.org>
31548
31549         * lib/fwriteerror.h: New file.
31550         * lib/fwriteerror.c: New file.
31551
31552 2003-09-12  Paul Eggert  <eggert@twinsun.com>
31553
31554         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
31555         modules/xgethostname, modules/xalloc: Depend on exit.
31556
31557 2003-09-12  Paul Eggert  <eggert@twinsun.com>
31558
31559         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
31560
31561         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
31562         and AC_MINIX, too, so that their extensions are available.
31563
31564         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
31565         This macro has been superseded by gl_BACKUPFILE.
31566
31567         More patches to assume C89 or better.
31568
31569         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
31570
31571         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
31572         unconditionally.
31573         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
31574         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
31575         Include <string.h>, <stdlib.h> unconditionally.
31576         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
31577         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
31578         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
31579         headers or for string.h.
31580         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
31581         or strtoul.
31582
31583         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
31584         headers.
31585         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
31586         * m4/userspec.m4 (gl_USERSPEC): Likewise.
31587         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
31588         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
31589         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
31590         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
31591         memcpy, memset.
31592         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
31593         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
31594         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
31595         strtol.
31596         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
31597         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
31598         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
31599         strtoul.
31600
31601 2003-09-12  Paul Eggert  <eggert@twinsun.com>
31602
31603         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
31604         * lib/obstack.c [!defined _LIBC]: Likewise.
31605         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
31606         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
31607         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
31608
31609         More changes to assume C89 or better.
31610
31611         * lib/error.c (error_tail): Assume vprintf.
31612
31613         * lib/argmatch.c (getenv): Remove decl.
31614         * lib/progreloc.c (get_full_program_name): Define via prototype.
31615         * lib/setenv.c (clearenv): Likewise.
31616         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
31617         needed.
31618         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
31619         (malloc, memcpy): Remove decls.
31620         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
31621         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
31622         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
31623         (memcpy): Remove macro.
31624         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
31625         (__P): Remove.  All uses removed.
31626         (PTR): Remove.  All uses changed to void *.
31627         (CHAR_BIT, NULL): Remove.
31628         (spaces, zeros, memset_space, memset_zero)
31629         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
31630         Remove.
31631         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
31632         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
31633         Define with prototype.
31634         Remove now-unnecessary prototype decl.
31635         (extra_args_spec): Assume ANSI C.  All uses changed.
31636         (extra_args_spec_iso): Remove.
31637         (my_strftime, emacs_strftimeu): Define via prototype.
31638         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
31639         unconditionally.
31640         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
31641         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
31642         (strtoul, strtol): Remove decls.
31643         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
31644         LONG_MAX): Remove.
31645         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
31646         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
31647         (LOCALE_PARAM_PROTO): New macro.
31648         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
31649         (INTERNAL (strtol), strtol): Define with a prototype.
31650         (PARAMS): Remove.  All uses removed.
31651         * lib/tempname.c: Include <string.h> unconditionally.
31652         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
31653         * lib/xgethostname.c (main): Define with a prototype.
31654         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
31655         Include <stdlib.h> unconditionally.
31656         (calloc, malloc, realloc, free): Remove decls.
31657         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
31658         Include <stdlib.h> unconditionally.  Sort include file names.
31659         (strtod): Remove.
31660         (xstrtod): Define with a prototype.
31661         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
31662         (strtol, strtoul): Remove decls.
31663
31664 2003-09-11  Paul Eggert  <eggert@twinsun.com>
31665
31666         More patches to assume C89 or better.
31667         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
31668         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
31669         string.h, memchr, STDC_HEADERS.
31670
31671 2003-09-11  Paul Eggert  <eggert@twinsun.com>
31672
31673         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
31674         Include <stdlib.h>, <string.h> unconditionally.
31675         Remove now-unnecessary cast to char *.
31676         * lib/strnlen.c: Include <string.h> unconditionally.
31677         * lib/yesno.c (yesno): Define with a prototype.
31678
31679 2003-09-11  Bruno Haible  <bruno@clisp.org>
31680
31681         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
31682
31683 2003-09-10  Jim Meyering  <jim@meyering.net>
31684
31685         * lib/error.c: Correct indentation of cpp directives.
31686
31687 2003-09-10  Bruno Haible  <bruno@clisp.org>
31688
31689         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
31690         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
31691         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
31692         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
31693         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
31694         <stdlib.h> and <string.h> checks.
31695         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
31696         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
31697
31698 2003-09-10  Bruno Haible  <bruno@clisp.org>
31699
31700         * lib/strcspn.c: Include <string.h> unconditionally.
31701         * lib/strpbrk.c: Include <string.h> unconditionally.
31702         * lib/strstr.c: Include <string.h> unconditionally.
31703         * lib/unicodeio.c: Include <string.h> unconditionally.
31704         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
31705         * lib/unsetenv.c: Likewise.
31706         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
31707         * lib/yesno.c: Include <stdlib.h> unconditionally.
31708         (rpmatch): Add prototype.
31709
31710 2003-09-09  Paul Eggert  <eggert@twinsun.com>
31711
31712         More patches to assume C89 or better.
31713         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
31714         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
31715         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
31716         or for string.h.
31717         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
31718         stdlib.h.
31719         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
31720         C headers.
31721         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
31722         string.h.
31723         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
31724         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
31725         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
31726         or for string.h.
31727         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
31728         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
31729         C headers.
31730         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
31731         memcpy.
31732         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
31733         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
31734         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
31735         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
31736         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
31737         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
31738         string.h, free.
31739         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
31740         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
31741         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
31742         C headers, or for string.h.
31743         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
31744         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
31745         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
31746         headers, memory.h, stdlib.h, string.h, strings.h.
31747         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
31748         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
31749         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
31750         strchr.
31751         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
31752         headers, memory.h, string.h.
31753         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
31754         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
31755         free.
31756         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
31757         headers.
31758         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
31759         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
31760         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
31761         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
31762         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
31763
31764 2003-09-09  Paul Eggert  <eggert@twinsun.com>
31765
31766         More K&R removal.
31767
31768         * lib/acosl.c (main): Use a prototype.
31769         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
31770         tanl.c: Likewise.
31771
31772         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
31773
31774         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
31775         (getopt, etopt_long, getopt_long_only, _getopt_internal)
31776         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
31777         with a prototype.
31778         * lib/getopt.c (const): Remove macro.
31779         Include <string.h> unconditionally.
31780         (my_index): Remove; all uses changed to strchr.
31781         (strlen): Remove decl.
31782         (exchange): Remove forward decl; no longer needed.
31783         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
31784         Define with prototype.
31785         * lib/getopt1.c (const): Remove macro.
31786         (getopt_long, getopt_long_only, main): Define with prototype.
31787
31788         * lib/getugroups.c: Include <string.h> unconditionally.
31789
31790         * lib/getusershell.c: Include <stdlib.h> unconditionally.
31791         (getusershell, setusershell, endusershell, readname, main):
31792         Define with prototypes.
31793
31794         * lib/group-member.c: Include group-member.h first.
31795         Include <stdlib.h> unconditionally.
31796
31797         * lib/hard-locale.c: Include hard-locale.h first.
31798         Include <stdlib.h>, <string.h> unconditionally.
31799
31800         * lib/hash.c (free, malloc): Remove decls.
31801         Include <stdlib.h> unconditionally.
31802
31803         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
31804         (getenv): Do not declare.
31805
31806         * lib/idcache.c: Include <string.h> unconditionally.
31807
31808         * lib/long-options.c: Include long-options.h first, to test interface.
31809         Include <stdlib.h> unconditionally.
31810
31811         * lib/makepath.c: Include makepath.h first, to test interface.
31812         Include <stdlib.h> and <string.h> unconditionally.
31813
31814         * lib/linebuffer.c: Include <stdlib.h>.
31815         (free): Remove decl.
31816
31817         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
31818         stddef.h. rpl_malloc returns void *, not char *.
31819         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
31820         prototype.
31821
31822         * lib/md5.h: Include <limits.h> unconditionally.
31823         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
31824         (__P): Remove; all uses removed.
31825         * lib/md5.c: Include "md5.h" first.
31826         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
31827         md5_buffer, md5_process_bytes, md5_process_block):
31828         Define with prototypes.
31829         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
31830         * lib/sha.c: Include "sha.h" first.
31831         Include <stdlib.h>, <string.h> unconditionally.
31832
31833         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
31834         * lib/memcmp.c (__ptr_t): Likewise.
31835         * lib/memrchr.c (__ptr_t): Likewise.
31836         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
31837         Include <string.h> unconditionally.
31838         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
31839         * lib/memchr.c: Include <stdlib.h> unconditionally.
31840         * lib/memchr.c (LONG_MAX): Remove.
31841         * lib/memrchr.c (LONG_MAX): Likewise.
31842         * lib/memchr.c (__memchr): Define via a prototype.
31843         * lib/memrchr.c (__memrchr): Likewise.
31844         * lib/memcmp.c (__P): Remove, and remove all uses.
31845         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
31846         Remove forward decls; no longer needed.
31847         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
31848         Use types required by C89 in prototype.
31849
31850         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
31851         * lib/savedir.c: Likewise.
31852         * lib/mkdir.c (free): Remove decl.
31853         * lib/rmdir.c (rmdir): Define with a prototype.
31854         * lib/savedir.c: Include savedir.h first, to test interface.
31855
31856         * lib/mktime.c (STDC_HEADERS): Remove.
31857         Include <stdlib.h>, <string.h> unconditionally.
31858
31859         * lib/modechange.c: Include <stdlib.h> unconditionally.
31860         (malloc): Remove decl.
31861
31862         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
31863         (free): Remove decl.
31864
31865         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
31866         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
31867         (This type really should be intptr_t, but that's a C99ism.)
31868         (_obstack_memcpy): Remove: all uses changed to memcpy.
31869         Include <string.h> unconditionally.
31870         (struct obstack): Assume __STDC__ for types of members
31871         chunkfun, freefun, extra_arg.
31872         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
31873         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
31874         obstack_begin, obstack_specify_allocation,
31875         obstack_specify_allocation_with_arg, obstack_chunkfun,
31876         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
31877         Remove unprototyped decls and the macros that use them.
31878         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
31879         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
31880         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
31881         (defined __STDC__ && __STDC__)]:
31882         Remove nonprototyped code.
31883         Include <stdlib.h> unconditionally.
31884         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
31885         _obstack_allocated_p, _obstack_free, obstack_free,
31886         _obstack_memory_used, print_and_abort):
31887         Define using prototypes.
31888         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
31889         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
31890         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
31891         obstack_next_free, obstack_object_size, obstack_room) [0]:
31892         Remove unused, unprototyped code.
31893
31894         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
31895
31896         * lib/physmem.c (physmem_total, physmem_available, main): Define
31897         with prototypes.
31898
31899         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
31900         (main): Define with a prototype.
31901
31902         * lib/posixver.c (getenv): Remove decl.
31903
31904         * lib/putenv.c (malloc): Returns void *, not char *.
31905         Include <string.h> unconditionally.
31906         (strchr, memcpy, NULL): Do not define.
31907
31908         * lib/readtokens.c: Include readtokens.h first, to test interface.
31909         Include <stdlib.h>, <string.h> unconditionally.
31910         (init_tokenbuffer): Define with a prototype.
31911
31912         * lib/regex.c (PARAMS): Remove.  All uses removed.
31913         All uses of _RE_ARGS removed, too.
31914         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
31915         unconditionally.
31916         (bzero): Assume memset exists.
31917         (memcmp, memcpy, NULL): Remove.
31918         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
31919         char, or assignments to local vars of type signed char.
31920         (init_syntax_once, PREFIX(extract_number_and_incr),
31921         PREFIX(print_partial_compiled_pattern),
31922         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
31923         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
31924         PREFIX(regex_grow_registers), PREFIX(regex_compile),
31925         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
31926         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
31927         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
31928         wcs_compile_range, byte_compile_range, truncate_wchar,
31929         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
31930         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
31931         count_mbs_length, wcs_re_match_2_internal,
31932         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
31933         PREFIX(alt_match_null_string_p),
31934         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
31935         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
31936         regfree, PREFIX(extract_number)): Define with prototype.  Remove
31937         now-unnecessary declaration, if any.
31938         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
31939         regcomp, regexec):
31940         Remove now-unnecessary casts among pointer types.
31941         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
31942
31943         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
31944         (free): Remove decl.
31945
31946         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
31947
31948         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
31949         (free): Remove decl.
31950
31951         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
31952         * lib/xgetcwd.c: Likewise.
31953
31954         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
31955         (free): Remove decl.
31956
31957         * lib/strchrnul.c (strchrnul): Define with a prototype.
31958         Fix bug: c_in was not converted to char before searching.
31959
31960         The following changes are not K&R related:
31961
31962         * lib/group-member.h: Include <sys/types.h>, so that this file is
31963         self-contained.
31964         * lib/makepath.h: Likewise.
31965
31966         * lib/getusershell.c (readname, default_index, line_size, readname):
31967         Use size_t, not int, for sizes.
31968         (readname): If the size overflows, report an error instead of
31969         looping forever.
31970
31971 2003-09-09  Paul Eggert  <eggert@twinsun.com>
31972
31973         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
31974         libc.
31975
31976 2003-09-09  Paul Eggert  <eggert@twinsun.com>
31977
31978         * README: New section: portability guidelines.
31979
31980 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
31981
31982         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
31983         C89 spec.
31984
31985 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
31986
31987         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
31988
31989 2003-09-08  Paul Eggert  <eggert@twinsun.com>
31990
31991         Assume C89 or better; remove K&R cruft.
31992         A few of these changes were first proposed by Derek Robert Price
31993         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
31994
31995         * lib/addext.c: Include <string.h> unconditionally.
31996         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
31997         Don't declare getenv or malloc.
31998
31999         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
32000         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
32001         (NULL): Remove.
32002         (find_stack_direction, alloca): Use prototypes.
32003
32004         * lib/atexit.c (atexit): Define using a prototype.
32005
32006         * lib/basename.c, dirname.c, stripslash.c:
32007         Include <string.h> unconditionally.
32008
32009         * lib/bcopy.c: Include <stddef.h>.
32010         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
32011
32012         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
32013
32014         * lib/error.h (error, error_at_line, error_print_progname)
32015         [! (defined (__STDC__) && __STDC__)]: Remove decls.
32016         * lib/error.c: Include error.h first, to check interface.
32017         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
32018         (VA_START): Remove; all uses changeed to va_start.
32019         (exit, strerror): Remove decls.
32020         (error_print_progname): Prototype uncondionally.
32021         Don't include <errno.h>; no longer needed.
32022         (private_strerror): Remove.
32023         (error_tail): Always define.
32024         (error, error_at_line): Assume C89 or better; always use prototypes.
32025         * lib/fatal.c: Include "fatal.h" first, to test interface.
32026         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
32027         (VA_START): Remove; all uses changed to va_start.
32028         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
32029         this case.
32030         (exit): Remove decl.
32031         (fatal): Prototype unconditionally.  Assume va_start works.
32032         Abort at end, to pacify gcc.
32033
32034         * lib/euidaccess.c (main): Define with a prototype.
32035
32036         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
32037
32038         * lib/exitfail.c: Include <stdlib.h> unconditionally.
32039
32040         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
32041         prototypes.
32042         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
32043         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
32044         (getenv): Remove decl.
32045         (fnmatch): Define using a prototype.
32046         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
32047         (FCT): Define using a prototype.
32048
32049         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
32050
32051         * lib/gethostname.c: Include <stddef.h>.
32052         (gethostname): Define with prototype.  Length is size_t, not int.
32053
32054 2003-09-08  Paul Eggert  <eggert@twinsun.com>
32055
32056         Assume C89 or better; remove K&R cruft.
32057         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
32058         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
32059         string.h, getenv, malloc.
32060         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
32061         headers.
32062         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
32063         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
32064         do not check for strerror.
32065         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
32066         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
32067         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
32068         do not check for doprnt or vprintf.
32069         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
32070         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
32071
32072 2003-09-08  Paul Eggert  <eggert@twinsun.com>
32073
32074         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
32075         getversion.c should have been removed then, but was accidentally
32076         preserved.
32077
32078         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
32079         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
32080
32081 2003-09-08  Karl Berry  <karl@gnu.org>
32082
32083         * config/config.sub, config.guess, srclistvars.sh: update from savannah
32084                 config, forget about prep.
32085
32086         * config/depcomp, missing: update from automake.
32087
32088 2003-09-07  Paul Eggert  <eggert@twinsun.com>
32089
32090         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
32091         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
32092
32093 2003-09-07  Paul Eggert  <eggert@twinsun.com>
32094
32095         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
32096         copy_tm_result.  Bug reported by Simon Josefsson in
32097         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
32098
32099 2003-09-06  Paul Eggert  <eggert@twinsun.com>
32100
32101         * m4/time_r.m4: New file.
32102         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
32103         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
32104         is. Check for timegm declaration.
32105         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
32106         Do not check for gmtime_r.
32107         Replace mktime if __mktime_internal does not exist and if mktime
32108         hasn't been replaced already.
32109
32110 2003-09-06  Paul Eggert  <eggert@twinsun.com>
32111
32112         * lib/time_r.c, lib/time_r.h: New files.
32113
32114         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
32115         __localtime_r.
32116         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
32117         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
32118
32119         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
32120         __gmtime_r.
32121         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
32122         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
32123         Include <time_r.h>.
32124
32125         * lib/timegm.c: Switch to glibc implementation, with the following
32126         changes:
32127         [defined HAVE_CONFIG_H]: Include <config.h>.
32128         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
32129         (__mktime_internal) [!defined _LIBC]: New decl.
32130         (__gmtime_r) [!defined _LIBC]: New macro and function.
32131         (timegm): Use a prototype, since gnulib assumes C89.
32132         Do not bother declaring tmp to be const, as it's not really usefu.
32133         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
32134         (timegm): Declare only if HAVE_DECL_TIMEGM.
32135
32136 2003-09-06  Paul Eggert  <eggert@twinsun.com>
32137
32138         * MODULES.html.sh (func_all_modules): Add time_r.
32139         * modules/time_r: New file.
32140         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
32141         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
32142
32143 2003-09-03  Paul Eggert  <eggert@twinsun.com>
32144
32145         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
32146         Bug reported by Lute Kamstra in
32147         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
32148
32149         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
32150         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
32151         course with correspondingly smaller numbers for tomorrow and
32152         yesterday.  From Tadayoshi Funaba.  Originally installed into
32153         sh-utils on 1999-08-07, but the patch got lost (I guess during the
32154         coreutils merge?).
32155
32156 2003-08-31  Simon Josefsson  <jas@extundo.com>
32157
32158         * modules/timegm: New file.
32159         * MODULES.html.sh (func_all_modules): Add timegm.
32160
32161 2003-08-31  Simon Josefsson  <jas@extundo.com>
32162
32163         * m4/timegm.m4: New file.
32164
32165 2003-08-31  Simon Josefsson  <jas@extundo.com>
32166
32167         * lib/timegm.h: New file.
32168         * lib/timegm.c: New file.  Based on
32169         wget-1.8.2/src/http.c:mktime_from_utc.
32170
32171 2003-08-31  Karl Berry  <karl@gnu.org>
32172
32173         * lib/argp.h: update from libc.
32174
32175 2003-08-28  Bruno Haible  <bruno@clisp.org>
32176
32177         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
32178         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
32179         followed by '#define fnmatch fnmatch_posix' gives an error.
32180
32181 2003-08-28  Bruno Haible  <bruno@clisp.org>
32182
32183         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
32184         warning on QNX, which defines O_BINARY to 000000.
32185
32186 2003-08-27  Jim Meyering  <jim@meyering.net>
32187
32188         * m4/mkstemp.m4: Require that the system mkstemp be able to create
32189         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
32190         would fail after 32.  Reported by Danny Levinson.  Details here:
32191         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
32192
32193 2003-08-24  Bruno Haible  <bruno@clisp.org>
32194
32195         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
32196         MSVC7 <stdio.h> is included later.
32197
32198 2003-08-22  Simon Josefsson  <jas@extundo.com>
32199
32200         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
32201
32202 2003-08-20  Karl Berry  <karl@gnu.org>
32203
32204         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
32205
32206 2003-08-20  Bruno Haible  <bruno@clisp.org>
32207
32208         * modules/progname: New file.
32209         * MODULES.html.sh (func_all_modules): Add progname.
32210
32211 2003-08-20  Bruno Haible  <bruno@clisp.org>
32212
32213         * lib/progname.h: New file, from GNU gettext.
32214         * lib/progname.c: New file, from GNU gettext.
32215         * lib/progreloc.c: New file, from GNU gettext.
32216
32217 2003-08-19  Jim Meyering  <jim@meyering.net>
32218
32219         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
32220         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
32221
32222 2003-08-19  Bruno Haible  <bruno@clisp.org>
32223
32224         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
32225         more.
32226
32227 2003-08-19  Bruno Haible  <bruno@clisp.org>
32228
32229         * lib/xstrdup.c: Assume <string.h> exists.
32230
32231 2003-08-18  Paul Eggert  <eggert@twinsun.com>
32232
32233         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
32234         in makefile rules.
32235
32236 2003-08-18  Jim Meyering  <jim@meyering.net>
32237
32238         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
32239         * m4/lib-ld.m4: Likewise.
32240
32241 2003-08-18  Jim Meyering  <jim@meyering.net>
32242
32243         * lib/setenv.h: Indent nested cpp directive.
32244         * lib/vasnprintf.c: Remove trailing blanks.
32245
32246 2003-08-17  Simon Josefsson  <jas@extundo.com>
32247
32248         * modules/xstrndup: New file.
32249         * MODULES.html.sh (func_all_modules): Add xstrndup.
32250
32251 2003-08-17  Simon Josefsson  <jas@extundo.com>
32252
32253         * modules/argp: Fix autoconf macro name. Add more dependencies.
32254
32255 2003-08-17  Simon Josefsson  <jas@extundo.com>
32256
32257         * m4/xstrndup.m4: New file.
32258
32259 2003-08-17  Simon Josefsson  <jas@extundo.com>
32260
32261         * m4/argp.m4: New file.
32262
32263 2003-08-17  Simon Josefsson  <jas@extundo.com>
32264             Bruno Haible  <bruno@clisp.org>
32265
32266         * lib/xstrndup.h: New file.
32267         * lib/xstrndup.c: New file.
32268
32269 2003-08-17  Bruno Haible  <bruno@clisp.org>
32270
32271         * modules/strndup (Files, Include): Add lib/strndup.h.
32272
32273 2003-08-17  Bruno Haible  <bruno@clisp.org>
32274
32275         * modules/euidaccess (Files): Add lib/euidaccess.h.
32276
32277 2003-08-17  Bruno Haible  <bruno@clisp.org>
32278
32279         * lib/strndup.h: New file.
32280
32281 2003-08-17  Bruno Haible  <bruno@clisp.org>
32282
32283         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
32284         like AC_GNU_SOURCE.
32285         * modules/extensions (configure.ac): Comment out the invocation of
32286         gl_USE_SYSTEM_EXTENSIONS.
32287
32288 2003-08-16  Paul Eggert  <eggert@twinsun.com>
32289
32290         Merges from coreutils, etc.
32291         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
32292         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
32293         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
32294         fixing a typo.
32295         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
32296         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
32297
32298 2003-08-16  Paul Eggert  <eggert@twinsun.com>
32299
32300         Document merge from coreutils.
32301         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
32302         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
32303         * modules/utime: Add m4/utimes-null.m4.
32304
32305 2003-08-16  Paul Eggert  <eggert@twinsun.com>
32306
32307         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
32308         space, undoing this 2003-08-12 change:
32309         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
32310
32311 2003-08-16  Paul Eggert  <eggert@twinsun.com>
32312
32313         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
32314         strtoul.c from libc, undoing this 2003-08-12 change:
32315         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
32316
32317 2003-08-16  Jim Meyering  <jim@meyering.net>
32318
32319         Merges from coreutils.
32320         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
32321         prefix.  Adjust cache variables similarly.  Create 500 rather than
32322         just 300 files, to exercise bug on Darwin6.5, too.
32323         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
32324         $missing_dir.
32325         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
32326         AM_SYS_POSIX_TERMIOS.
32327         Reported by mkc@mathdogs.com.
32328         Also change use of $am_cv_sys_posix_termios
32329         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
32330         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
32331         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
32332         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
32333         in /proc/mounts until it finds one with matching device number.  This
32334         is unnecessary when the FILE argument *is* a mount point.  No stat call
32335         is necessary in that case.  So, disable the statvfs-testing code on
32336         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
32337         as RedHat bug# 84846.
32338         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
32339         to 1MB, so as not to render systems with no stack size limit (e.g.,
32340         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
32341         Include <unistd.h>.  On some systems,
32342         it is required for the definition of _SC_PAGESIZE.
32343
32344 2003-08-16  Jim Meyering  <jim@meyering.net>
32345
32346         Merge from coreutils.
32347         * lib/xstrtoimax.c: #else #if -> #elif.
32348         * lib/xstrtoumax.c: Likewise.
32349
32350 2003-08-16  Jim Meyering  <jim@meyering.net>
32351
32352         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
32353         * m4/utimes.m4: Removed.
32354         * m4/utimes-null.m4: Renamed from utimes.m4.
32355
32356         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
32357         to 1MB, so as not to render systems with no stack size limit (e.g.,
32358         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
32359         Include <unistd.h>.  On some systems,
32360         it is required for the definition of _SC_PAGESIZE.
32361
32362 2003-08-16  Jim Meyering  <jim@meyering.net>
32363         and Paul Eggert  <eggert@cs.ucla.edu>
32364
32365         Merges from coreutils, etc.
32366
32367         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
32368         using the latest version from cvs.  This avoids problems with #line
32369         directives using a vendor (Sun) compiler.
32370         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
32371         Don't set GETGROUPS_LIB here; now it's
32372         done via getgroups.m4's wrapper function.
32373         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
32374         rather than just in sh-util/configure.in, so that the
32375         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
32376         same.
32377         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
32378         AC_FUNC_GETLOADAVG where to find getloadavg.c.
32379         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
32380         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
32381         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
32382         Remove code that is now done by the newly-required macros.
32383         Append $(EXEEXT) to DF_PROG.
32384         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
32385         Do not invoke or require the following here,
32386         since prereq.m4 or some gnulib .m4 now does this for us:
32387         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
32388         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
32389         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
32390         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
32391         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
32392         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
32393         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
32394         AC_FUNC_OBSTACK.
32395         Do not replace the following functions, as this is now the job
32396         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
32397         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
32398         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
32399         atexit getpass, strdup, getpagesize.
32400         Replace 'raise'.
32401         Do not check for the following functions, as this is now the job
32402         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
32403         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
32404         setregid.
32405         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
32406         Check for sys/sysctl.h.
32407         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
32408         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
32409         of checking for ssize_t ourselves.
32410
32411         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
32412         Require every macro that gnulib/modules/* suggests for us.
32413         (jm_PREREQ_ADDEXT): New macro.
32414         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
32415         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
32416
32417         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
32418         (gl_PHYSMEM): Use it.
32419         Also check for `table' function.
32420         Check for new headers and functions.
32421         Add check for sys/sysmp.h.
32422         With suggestions from Kaveh Ghazi.
32423         Ignore headers that are present but cannot be compiled.  This
32424         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
32425         C 5.4.
32426
32427 2003-08-15  Paul Eggert  <eggert@twinsun.com>
32428
32429         Document merge from coreutils.
32430         * modules/userspec: Depend on posixver.
32431         * modules/strftime: Depend on tzset.
32432
32433 2003-08-15  Paul Eggert  <eggert@twinsun.com>
32434
32435         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
32436         rather than tab, after '#' in shell-script copyright notices.
32437         Suggested by Bruno Haible.
32438
32439 2003-08-15  Paul Eggert  <eggert@twinsun.com>
32440
32441         * config/srclist-update: Use three spaces, rather than tab, after '#'
32442         in shell-script copyright notices.  Suggested by Bruno Haible.
32443         Remove unnecessary parenthesization in regular expression.
32444
32445 2003-08-15  Jim Meyering  <jim@meyering.net>
32446
32447         Merge from coreutils.
32448         * lib/xgethostname.c: Include <stdlib.h>.
32449         (xghostname): Don't exit for anything other than memory-related
32450         failure; just return NULL.
32451         * lib/userspec.c: Include "posixver.h".
32452         (parse_user_spec): Accept `.' as a separator only
32453         in pre-POSIX-200112 mode.
32454         * lib/strtoimax.c: Use #elif rather than #else #if.
32455         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
32456         Remove function, now that we can rely on a working tzset function.
32457         [!_LIBC]: Ensure that the required autoconf test has been run.
32458         [!defined _NL_CURRENT && HAVE_STRFTIME]:
32459         Use underlying_strftime for %r.
32460         * lib/sha.c: Merge in some clean-up and optimization changes from
32461         glibc.
32462         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
32463         Ensure that it is a multiple of 64.
32464         Rearrange loop exit tests so as to avoid performing an
32465         additional fread after encountering an error or EOF.
32466         * lib/realloc.c: Update copyright date.
32467
32468 2003-08-15  Jim Meyering  <jim@meyering.net>
32469         and Paul Eggert  <eggert@twinsun.com>
32470
32471         Merge from coreutils.
32472         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
32473         member but strut utmpx does not.  Needed for AIX 4.3.3.
32474         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
32475
32476 2003-08-15  Jim Meyering  <jim@meyering.net>
32477         and Paul Eggert  <eggert@cs.ucla.edu>
32478
32479         Merges from coreutils, etc.
32480         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
32481         Require gl_FUNC_TZSET_CLOBBER.
32482         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
32483         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
32484         members.
32485
32486 2003-08-14  Paul Eggert  <eggert@twinsun.com>
32487
32488         Help the merge from coreutils.
32489         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
32490         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
32491         * m4/tzset.m4: Use it too.
32492
32493 2003-08-14  Paul Eggert  <eggert@twinsun.com>
32494
32495         * modules/tzset: New file.
32496
32497 2003-08-14  Jim Meyering  <jim@meyering.net>
32498
32499         Merges from coreutils.
32500         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
32501         variable names, rather than @FNMATCH_H@.
32502         * modules/alloca: Likewise for $(ALLOCA_H).
32503
32504         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
32505         the three copies of the literal target, `fnmatch.h'.
32506         * modules/alloca (alloca.h): Likewise.
32507
32508 2003-08-14  Jim Meyering  <jim@meyering.net>
32509
32510         Merge from coreutils.
32511         * m4/tzset.m4: New file.
32512         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
32513         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
32514         otherwise, AIX 5.1 systems would end up using the latter.
32515         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
32516         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
32517         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
32518         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
32519
32520 2003-08-14  Jim Meyering  <jim@meyering.net>
32521
32522         Merge from coreutils.
32523         * lib/obstack.h: Whitespace changes.
32524         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
32525         and xcalloc return values.
32526         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
32527         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
32528         hang on OSF/1 5.1 for DIR on both local and remote file systems.
32529         Reported by (and fix confirmed by) Nelson H. F. Beebe.
32530         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
32531         error from mntctl.
32532         Use mntctl's return value to drive the entry-processing loop, since
32533         we can't rely on the value of the vmt_length member in the last
32534         entry.  On some systems doing so could result in exhausting
32535         virtual memory.  Based in part on a patch from Mike Jetzer.
32536
32537 2003-08-14  Jim Meyering  <jim@meyering.net>
32538         and Paul Eggert  <eggert@twinsun.com>
32539
32540         Merges from coreutils, plus other fixes.
32541         * lib/physmem.c: Merge in portability changes from gcc/libiberty
32542         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
32543         for credits and details.  Thanks to Kaveh Ghazi for helping
32544         to keep these files in sync.
32545         (ARRAY_SIZE): Define it.
32546         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
32547         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
32548         (memcasecmp): Don't assume size_t fits in unsigned int.
32549         Remove casts and duplicate code.
32550         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
32551         (memcpy): Remove definition.
32552         Merge in some clean-up and optimization changes from glibc.
32553         [BLOCKSIZE]: Move definition to top of file.
32554         Ensure that it is a multiple of 64.
32555         Rearrange loop exit tests so as to avoid performing an
32556         additional fread after encountering an error or EOF.
32557         * lib/md5.h (md5_uintptr): Define.
32558         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
32559         return to the initial working directory.  Preserve errno
32560         for caller.
32561         * lib/idcache.c: Include "xalloc.h".
32562         (xmalloc, xrealloc): Remove decls.
32563         (getuser): Remove casts no longer required in C89.
32564         * lib/human.c: Include stdio.h, for sprintf.
32565         * lib/group-member.c: Include "xalloc.h".
32566         (xmalloc, xrealloc): Remove decls.
32567         (get_group_info): Remove casts no longer required in C89.
32568         * lib/getusershell.c (readname): Remove casts no longer required in
32569         C89.
32570         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
32571         * lib/getline.c: Whitespace fix, from coreutils.
32572
32573 2003-08-13  Paul Eggert  <eggert@twinsun.com>
32574
32575         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
32576         Check for isascii.
32577
32578         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
32579         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
32580         Undo previous (whitespace-only) change.
32581
32582 2003-08-13  Paul Eggert  <eggert@twinsun.com>
32583
32584         * lib/exclude.c: Include <ctype.h>
32585         (IN_CTYPE_DOMAIN): New macro.
32586         (is_space): New fn.
32587         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
32588         and empty lines.
32589
32590         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
32591         Undo previous (whitespace-only) change.
32592
32593 2003-08-13  Paul Eggert  <eggert@twinsun.com>
32594
32595         * config/srclist-update: Change update back to the old behavior,
32596         leaving whitespace alone.  Use one 'sed' command rather than a
32597         pipeline.
32598         (fixlicense): Now a variable, not a function.
32599         (remove_trailing_blanks): Remove.
32600         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
32601         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
32602         Undo previous (whitespace-only) change.
32603
32604 2003-08-12  Paul Eggert  <eggert@twinsun.com>
32605
32606         Merge from coreutils.
32607         * modules/euidaccess: Add lib_SOURCES, include for new
32608         file euidaccess.h
32609
32610 2003-08-12  Paul Eggert  <eggert@twinsun.com>
32611
32612         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
32613         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
32614         Normalize leading white space and remove trailing white space.
32615
32616         Merge from coreutils
32617         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
32618
32619         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
32620         0.12.1.  These files are now being upgraded automatically by
32621         ../config/srclist-update.
32622
32623 2003-08-12  Paul Eggert  <eggert@twinsun.com>
32624
32625         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
32626         Normalize leading white space and remove trailing white space.
32627         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
32628         notice, as per ../config/srclist-update.
32629
32630         Merge from coreutils.
32631         * lib/euidaccess.h: New file.
32632         * lib/euidaccess.c: Include it.
32633         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
32634         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
32635         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
32636
32637 2003-08-12  Paul Eggert  <eggert@twinsun.com>
32638
32639         * config/srclist-update: Add copyright notice.
32640         (remove_id_lines, remove_trailing_blanks): New constants.
32641         (fixfile): Use them to normalize spacing a bit in copied files.
32642         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
32643         Normalize leading white space and remove trailing white space.
32644
32645         * config/texinfo.tex: Sync with texinfo.
32646
32647         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
32648         strtoul.c from libc, to merge coreutils whitespace changes.
32649
32650         * config/srclist.txt: Get the following m4 files from gettext:
32651         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
32652         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
32653         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
32654         wint_t.m4.
32655
32656 2003-08-12  Karl Berry  <karl@gnu.org>
32657
32658         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
32659         been made.
32660
32661 2003-08-11  Paul Eggert  <eggert@twinsun.com>
32662
32663         * modules/gnu-source, m4/gnu-source.m4:
32664         Remove; we're assuming Autoconf 2.54 or later now.
32665         Suggested by Bruno Haible.
32666         * MODULES.html.sh (func_all_modules): Remove gnu-source.
32667
32668 2003-08-11  Bruno Haible  <bruno@clisp.org>
32669
32670         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
32671
32672 2003-08-11  Bruno Haible  <bruno@clisp.org>
32673
32674         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
32675         (vasnprintf): Use it instead of wcslen.
32676
32677 2003-08-11  Bruno Haible  <bruno@clisp.org>
32678
32679         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
32680         value to ensure that _Bool promotes to int. Use #define for _Bool when
32681         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
32682
32683 2003-08-10  Karl Berry  <karl@gnu.org>
32684
32685         * lib/regex.h: update from libc (whitespace fix).
32686
32687 2003-08-09  Paul Eggert  <eggert@twinsun.com>
32688
32689         Merge some files from coreutils.  These changes were
32690         originally made by Jim Meyering.
32691         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
32692         many older Unixes require this.
32693         * lib/alloca.c (alloca): Remove cast to argument of free;
32694         no longer needed in C89.
32695         * lib/alloca_.h, regex.h: Fix white space to match
32696         what GNU indent does.
32697
32698 2003-08-09  Paul Eggert  <eggert@twinsun.com>
32699
32700         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
32701         apparently Emacs's Unicode mode got confused before my 2003-08-05
32702         checkin.
32703
32704 2003-08-08  Paul Eggert  <eggert@twinsun.com>
32705
32706         * m4/extensions.m4: New file.
32707         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
32708         Require gl_USE_SYSTEM_EXTENSIONS.
32709         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
32710         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
32711
32712 2003-08-08  Paul Eggert  <eggert@twinsun.com>
32713
32714         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
32715         * modules/extensions, modules/gnu-source: New files.
32716         * modules/timespec, modules/unlocked-io: Depend on extensions.
32717
32718 2003-08-07  Paul Eggert  <eggert@twinsun.com>
32719
32720         * modules/restrict: New file.
32721         * MODULES.html.sh (func_all_modules): Add restrict.
32722         * modules/regex: Depend on restrict.
32723
32724 2003-08-07  Paul Eggert  <eggert@twinsun.com>
32725
32726         * m4/restrict.m4: New file.
32727         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
32728
32729 2003-08-07  Bruno Haible  <bruno@clisp.org>
32730
32731         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
32732         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
32733
32734 2003-08-07  Bruno Haible  <bruno@clisp.org>
32735
32736         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
32737         makes the module 'getndelim2' compatible with the module 'getline'.
32738
32739 2003-08-05  Paul Eggert  <eggert@twinsun.com>
32740
32741         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
32742         byte with "\201" to avoid glitches when editing that source file
32743         with multi-gnome-terminal.
32744
32745 2003-08-05  Paul Eggert  <eggert@twinsun.com>
32746
32747         * lib/bumpalloc.h: Remove.
32748
32749 2003-08-05  Paul Eggert  <eggert@twinsun.com>
32750
32751         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
32752         * modules/bumpalloc: Remove.
32753
32754 2003-08-04  Paul Eggert  <eggert@twinsun.com>
32755
32756         * lib/getloadavg.c: Change copyright notice and spacing to conform to
32757         GNU coding style.
32758
32759         Merge from coreutils.
32760         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
32761         1. From glibc.
32762         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
32763         from Karl Berry, implemented by Jim Meyering.
32764         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
32765         from Dmitry V. Levin.
32766         Remove anachronistic cast of xrealloc.
32767         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
32768         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
32769         type. Otherwise, it wouldn't compile with at least /bin/cc on
32770         ymp-cray-unicos9.0.2.X.
32771         Combine two mostly-identical uses of alloca into one.
32772         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
32773
32774 2003-08-04  Dave Love  <d.love@dl.ac.uk>
32775
32776         [From Emacs.]
32777
32778         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
32779         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
32780         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
32781         obsolete NLIST_NAME_UNION.
32782         [__GNU__]: Undef BSD and FSCALE.
32783         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
32784
32785 2003-08-03  Paul Eggert  <eggert@twinsun.com>
32786
32787         * lib/stdbool_.h (_Bool): Make it signed char, instead of
32788         an enum type, so that it's guaranteed to promote to int.  See:
32789         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
32790
32791 2003-08-03  Karl Berry  <karl@gnu.org>
32792
32793         * config/depcomp: update from automake.
32794
32795 2003-07-31  Paul Eggert  <eggert@twinsun.com>
32796
32797         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
32798         (strerror): Don't assume that a printable int fits in 14 bytes.
32799
32800 2003-07-31  Bruno Haible  <bruno@clisp.org>
32801
32802         * modules/getpass-gnu: New file.
32803         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
32804
32805 2003-07-31  Bruno Haible  <bruno@clisp.org>
32806
32807         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
32808
32809 2003-07-24  Karl Berry  <karl@gnu.org>
32810
32811         * config/missing: update from automake.
32812
32813 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
32814             Bruno Haible  <bruno@clisp.org>
32815
32816         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
32817         * lib/getline.c (getline, getdelim): Likewise.
32818         Remove _GNU_SOURCE define; now it's defined in config.h through
32819         m4/getline.m4.
32820
32821 2003-07-23  Karl Berry  <karl@gnu.org>
32822
32823         * config/config.sub: update from prep.
32824
32825 2003-07-22  Paul Eggert  <eggert@twinsun.com>
32826
32827         * modules/xalloc (Depends-on): Add exitfail.
32828         * modules/xmemcoll: Likewise.
32829
32830 2003-07-22  Paul Eggert  <eggert@twinsun.com>
32831
32832         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
32833         over-parenthesization in macros.
32834
32835         Sync with coreutils.
32836
32837         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
32838         required by C99.
32839
32840         Use `exit_failure' for xalloc and xmemcoll instead of their own
32841         private exit-failure variables.
32842         * lib/xalloc.h (xalloc_exit_failure): Remove.
32843         * lib/xmalloc.c: Likewise.  Include exitfail.h.
32844         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
32845         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
32846         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
32847         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
32848
32849 2003-07-20  Jim Meyering  <jim@meyering.net>
32850
32851         * modules/closeout (Depends-on): Add exitfail.
32852         Suggestion from Bruno Haible.
32853
32854 2003-07-19  Karl Berry  <karl@gnu.org>
32855
32856         * config/config.sub: update from prep.
32857
32858 2003-07-18  Paul Eggert  <eggert@twinsun.com>
32859
32860         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
32861         Remove.
32862         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
32863         to test that it can stand by itself.  Include "exitfail.h".
32864         Clients should set exit_failure instead.
32865         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
32866
32867 2003-07-18  Bruno Haible  <bruno@clisp.org>
32868
32869         * modules/getndelim2: New file.
32870         * modules/getline: Share files with module getndelim2.
32871         * modules/getnline: Depend on getndelim2 instead of sharing files with
32872         it. Add getnline.c to lib_SOURCES.
32873         * MODULES.html.sh (func_all_modules): Add getndelim2.
32874
32875 2003-07-18  Bruno Haible  <bruno@clisp.org>
32876
32877         * m4/getndelim2.m4: New file.
32878         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
32879         invoke gl_PREREQ_GETNDELIM2.
32880         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
32881         gl_PREREQ_GETNDELIM2.
32882         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
32883         gl_GETNDELIM2.
32884
32885 2003-07-18  Bruno Haible  <bruno@clisp.org>
32886
32887         * lib/getndelim2.h: New file.
32888         * lib/getndelim2.c: Make into a module of its own. Include config.h,
32889         getndelim2.h.
32890         (getndelim2): Make non-static. Change return type to ssize_t.
32891         * lib/getline.h: Change argument names.
32892         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
32893         * lib/getnline.c: Include getndelim2.h.
32894
32895 2003-07-18  Andreas Schwab  <schwab@suse.de>
32896
32897         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
32898
32899 2003-07-17  Karl Berry  <karl@gnu.org>
32900
32901         * config/config.sub: update from prep.
32902
32903 2003-07-17  Bruno Haible  <bruno@clisp.org>
32904
32905         * modules/getnline: New file.
32906         * modules/getline: Add lib/getndelim2.c to source file list.
32907         * MODULES.html.sh (func_all_modules): Add getnline.
32908
32909 2003-07-17  Bruno Haible  <bruno@clisp.org>
32910
32911         * m4/getnline.m4: New file.
32912
32913 2003-07-17  Bruno Haible  <bruno@clisp.org>
32914
32915         * m4/Makefile.am.in: Remove file.
32916         * m4/Makefile.am: Remove file.
32917         * m4/Makefile.in: Remove file.
32918
32919 2003-07-17  Bruno Haible  <bruno@clisp.org>
32920
32921         * lib/getnline.h: New file.
32922         * lib/getnline.c: New file.
32923         * lib/getndelim2.c: New file, extracted from getline.c.
32924         (getndelim2): Renamed from getdelim2, with added nmax argument.
32925         * lib/getline.c: Include getndelim2.c.
32926         (getdelim2): Moved out to getndelim2.c.
32927         (getline, getdelim): Update.
32928
32929 2003-07-17  Bruno Haible  <bruno@clisp.org>
32930
32931         * lib/Makefile.am: Remove file.
32932         * lib/Makefile.in: Remove file.
32933
32934 2003-07-17  Bruno Haible  <bruno@clisp.org>
32935
32936         * configure.in: Remove file.
32937         * Makefile.in: Remove file.
32938
32939 2003-07-17  Bruno Haible  <bruno@clisp.org>
32940
32941         * MODULES.html.sh: Put the </BODY> right before </HTML>.
32942
32943 2003-07-16  Karl Berry  <karl@gnu.org>
32944
32945         * config/srclist-update: was running fixlicense twice, which caused
32946                 texinfo.tex to be nullified for some reason.  Simplify,
32947                 $gplsrc is no longer needed as far as I can see?
32948
32949 2003-07-16  Jim Meyering  <jim@meyering.net>
32950
32951         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
32952
32953 2003-07-15  Paul Eggert  <eggert@twinsun.com>
32954
32955         * config/srclist.txt: Get the following files from gettext-runtime/intl
32956         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
32957         ref-del.sin.  From Bruno Haible.
32958         * config/srclist-update (fixfile): Change grep pattern again, since the
32959         previous fix didn't work (there was another trailing $).  Use
32960         '[$]' to escape the $s.
32961
32962 2003-07-15  Karl Berry  <karl@gnu.org>
32963
32964         * lib/vasnprintf.c: update from gettext.
32965
32966 2003-07-15  Karl Berry  <karl@gnu.org>
32967
32968         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
32969         gets expanded when surrounded by '$'.
32970
32971 2003-07-15  Jim Meyering  <jim@meyering.net>
32972
32973         * modules/save-cwd: Don't depend on error.  From Derek Price.
32974
32975 2003-07-15  Jim Meyering  <jim@meyering.net>
32976
32977         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
32978
32979 2003-07-14  Simon Josefsson  <jas@extundo.com>
32980
32981         * modules/mempcpy: New file.
32982         * MODULES.html.sh (func_all_modules): Add mempcpy.
32983
32984 2003-07-14  Simon Josefsson  <jas@extundo.com>
32985
32986         * m4/mempcpy.m4: New file.
32987
32988 2003-07-14  Simon Josefsson  <jas@extundo.com>
32989
32990         * lib/mempcpy.h: New file.
32991         * lib/mempcpy.c: New file.
32992
32993 2003-07-14  Paul Eggert  <eggert@twinsun.com>
32994
32995         * modules/getdate, modules/posixtm: Depend on mktime.
32996
32997 2003-07-14  Paul Eggert  <eggert@twinsun.com>
32998
32999         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
33000         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
33001         unicodeio.c, unicodeio.h, unlocked-io.h:
33002         Switch from LGPL to GPL.
33003
33004 2003-07-14  Paul Eggert  <eggert@twinsun.com>
33005
33006         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
33007         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
33008         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
33009         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
33010         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
33011         updated automatically by ../config/srclist-update.  This changes
33012         their license from LPGL to GPL.
33013
33014 2003-07-14  Paul Eggert  <eggert@twinsun.com>
33015
33016         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
33017         assumed to refer to the root of the most recent stable gettext version.
33018         * config/srclistvars.sh: Add defaults for eggert.
33019         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
33020         Match "This program" as well as "The program".  This is needed
33021         for gettext.
33022
33023 2003-07-14  Jim Meyering  <jim@meyering.net>
33024
33025         Don't emit diagnostics.  Let callers do that.
33026         * lib/save-cwd.c: Don't include "error.h".
33027         (save_cwd): Don't call error.  Ensure that errno is valid
33028         when returning nonzero.
33029
33030         * lib/save-cwd.h (restore_cwd): Update prototype.
33031         * lib/save-cwd.c (restore_cwd): Remove two parameters.
33032         Simplify.  Don't call error upon failure.  Let callers do that.
33033         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
33034         when auditing is enabled.  But don't bother updating the #if.
33035
33036 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
33037
33038         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
33039         it breaks C++ compilation.
33040         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
33041
33042 2003-07-10  Simon Josefsson  <jas@extundo.com>
33043
33044         * modules/strchrnul (Makefile.am): Add strchrnul.h.
33045
33046 2003-07-10  Jim Meyering  <jim@meyering.net>
33047
33048         * m4/clock_time.m4: Remove trailing blank.
33049         * m4/intmax_t.m4: Likewise.
33050
33051 2003-07-10  Jim Meyering  <jim@meyering.net>
33052
33053         * lib/vasnprintf.c: Remove trailing blanks.
33054         Make cpp indentation consistent.
33055
33056 2003-07-09  Paul Eggert  <eggert@twinsun.com>
33057
33058         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
33059         posixver.c, strftime.c, strnlen.c, strverscmp.c:
33060         Switch from LGPL to GPL.
33061
33062 2003-07-09  Paul Eggert  <eggert@twinsun.com>
33063
33064         * config/srclist.txt: Sort sublists.  Add
33065         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
33066         that differ from gnulib for one reason or another; we'd like this list
33067         to be smaller but for now let's document what we have.
33068
33069 2003-07-08  Paul Eggert  <eggert@twinsun.com>
33070
33071         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
33072         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
33073         and sweeter "eval x=$x".
33074         * config/srclist.txt: Get lib/argp* from glibc.
33075
33076 2003-07-07  Paul Eggert  <eggert@twinsun.com>
33077
33078         * lib/mktime.c: Fix some boundary cases and remove need for floating
33079         point.
33080
33081         Issue a compile-time diagnostic if time_t is floating point, or if
33082         two's complement arithmetic is not in effect, or if arithmetic
33083         right shift does not propagate the sign.  These assumptions were
33084         all in the original code but they weren't checked.
33085
33086         (TIME_T_MIDPOINT, verify): New macros.
33087         (__isleap): Remove; it has integer overflow problems.
33088         (leapyear): New function, without those problems.
33089         (ydhms_tm_diff): Remove; splitting into two parts.
33090         (ydhms_diff): New function, containing the arithmetic part of
33091         the old ydhms_tm_diff function.  Issue a compile-time
33092         diagnostic if we are not using C99 integer division.
33093         Avoid casts when possible.
33094         (guess_time_tm): New function, containing the checking part of
33095         the old ydhms_tm_diff function.  Return the new value, rather than
33096         the difference between it and the old.  Accept a new argument T
33097         so that *T specifies the old value.  Check for overflow in the result.
33098
33099         (__mktime_internal): Use a time_t offset, not a long int offset.
33100         This undoes the 2003-06-04 change, which is no longer needed now
33101         that we have better overflow checking.
33102         (localtime_offset): Likewise.
33103
33104         (__mktime_internal): Avoid harmful overflow on hosts where time_t
33105         and long are 64-bit but int is only 32-bit.
33106         (ydhms_diff): Use long int to store year1 and yday1.
33107         Issue a compile-time diagnostic if long int is not wide enough.
33108
33109         (__mktime_internal): Use long int to store adjusted year and yday.
33110         Use plain C rather than preprocessor commands, if that doesn't
33111         affect efficiency.
33112         Check for overflow (and try to repair) after each probe
33113         rather than checking only at the very end.  This avoids some bugs
33114         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
33115         does not equal GMT offset at maximum time).
33116         Use integer to check for overflow rather than floating point; this
33117         is more portable to non-IEEE hosts, and is a tad faster.
33118         When we detect that we are oscillating between two values,
33119         don't check whether tm_isdst has the requested value, since
33120         we already know the answer.  When tm_isdst has the wrong value,
33121         use a different heuristic to find the right one, based on the
33122         extreme values actually observed in practice in tz2003a,
33123         rather than the (overly optimistic) "previous 3 calendar quarters".
33124
33125         (not_equal_tm, print_tm, check_result): Use "const T" rather than
33126         "T const" to accommodate glibc style.
33127         (check_result): Use less-confusing report format.  "long" -> "long int.
33128         (main): Likewise.
33129         Don't loop if the iteration overflows time_t.
33130         Allow a negative step in the iteration.
33131
33132 2003-07-06  Karl Berry  <karl@gnu.org>
33133
33134         * config/depcomp: update from automake.
33135         * config/config.sub: update from prep.
33136
33137 2003-07-03  Karl Berry  <karl@gnu.org>
33138
33139         * config/config.guess: update from prep.
33140
33141 2003-07-01  Paul Eggert  <eggert@twinsun.com>
33142
33143         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
33144         xreadlink.c now includes it unconditionally.
33145
33146 2003-07-01  Paul Eggert  <eggert@twinsun.com>
33147
33148         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
33149         having it depend on HAVE_SYS_TYPES_H.
33150
33151 2003-07-01  Bruno Haible  <bruno@clisp.org>
33152
33153         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
33154         <sys/types.h> should be sufficient.
33155         Reported by Paul Eggert.
33156
33157 2003-06-26  Karl Berry  <karl@gnu.org>
33158
33159         * config/depcomp: update from automake.
33160
33161 2003-06-26  Bruno Haible  <bruno@clisp.org>
33162
33163         * modules/human: Depend on module stdbool.
33164
33165 2003-06-25  Bruno Haible  <bruno@clisp.org>
33166
33167         * modules/readlink: New file.
33168         * modules/xreadlink: Depend on it.
33169         * MODULES.html.sh (func_all_modules): Add readlink.
33170
33171 2003-06-25  Bruno Haible  <bruno@clisp.org>
33172
33173         * m4/readlink.m4: New file.
33174
33175 2003-06-25  Bruno Haible  <bruno@clisp.org>
33176
33177         * lib/readlink.c: New file.
33178
33179 2003-06-22  Karl Berry  <karl@gnu.org>
33180
33181         * config/srclist.txt: update mkinstalldirs from automake.
33182         * config/mkinstalldirs: update.
33183
33184 2003-06-22  Bruno Haible  <bruno@clisp.org>
33185
33186         Portability to mingw32.
33187         * m4/ssize_t.m4: New file, from GNU gettext.
33188         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
33189         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
33190
33191 2003-06-22  Bruno Haible  <bruno@clisp.org>
33192
33193         * modules/safe-read: Add m4/ssize_t.m4.
33194         * modules/xreadlink: Add m4/ssize_t.m4.
33195
33196 2003-06-20  Bruno Haible  <bruno@clisp.org>
33197
33198         Assume C89, so PARAMS isn't needed.
33199         * lib/unicodeio.h (PARAMS): Remove.
33200         * lib/unicodeio.c: Don't use PARAMS.
33201
33202 2003-06-18  Karl Berry  <karl@gnu.org>
33203
33204         * config/config.{guess,sub}: update from prep.
33205
33206 2003-06-18  Jim Meyering  <jim@meyering.net>
33207
33208         Merge changes from coreutils.
33209         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
33210         Remove explicit declarations of xmalloc and realloc.
33211         Include xalloc.h.
33212         (read_utmp): Remove anachronistic cast of xmalloc.
33213
33214 2003-06-17  Paul Eggert  <eggert@twinsun.com>
33215
33216         Assume C89, so PARAMS isn't needed.
33217         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
33218         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
33219         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
33220         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
33221         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
33222         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
33223         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
33224         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
33225         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
33226         lib/xstrtod.h, lib/xstrtol.h: Likewise.
33227         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
33228         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
33229         no longer needed. Anyway, config.h should always be included before any
33230         other file.
33231
33232 2003-06-11  Simon Josefsson  <jas@extundo.com>
33233
33234         * modules/sysexits: New file.
33235         * MODULES.html.sh (func_all_modules): Add sysexits.
33236
33237 2003-06-11  Simon Josefsson  <jas@extundo.com>
33238
33239         * lib/sysexit_.h: New file.
33240
33241 2003-06-11  Derek Price  <derek@ximbiot.com>
33242
33243         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
33244         necessary.
33245
33246 2003-06-11  Bruno Haible  <bruno@clisp.org>
33247
33248         * m4/sysexits.m4: New file.
33249
33250 2003-06-10  Simon Josefsson  <jas@extundo.com>
33251
33252         * lib/argp.h: New file, from glibc.
33253         * lib/argp-ba.c: New file, from glibc.
33254         * lib/argp-eexst.c: New file, from glibc.
33255         * lib/argp-fmtstream.c: New file, from glibc.
33256         * lib/argp-fmtstream.h: New file, from glibc.
33257         * lib/argp-fs-xinl.c: New file, from glibc.
33258         * lib/argp-help.c: New file, from glibc.
33259         * lib/argp-namefrob.h: New file, from glibc.
33260         * lib/argp-parse.c: New file, from glibc.
33261         * lib/argp-pv.c: New file, from glibc.
33262         * lib/argp-pvh.c: New file, from glibc.
33263         * lib/argp-xinl.c: New file, from glibc.
33264
33265 2003-06-10  Simon Josefsson  <jas@extundo.com>
33266
33267         * modules/strchrnul: New file.
33268
33269 2003-06-10  Simon Josefsson  <jas@extundo.com>
33270
33271         * modules/argp: New file.
33272
33273 2003-06-10  Simon Josefsson  <jas@extundo.com>
33274
33275         * m4/strchrnul.m4: New file.
33276
33277 2003-06-10  Simon Josefsson  <jas@extundo.com>
33278
33279         * lib/strchrnul.h: New file.
33280         * lib/strchrnul.c: New file.
33281
33282 2003-06-10  Bruno Haible  <bruno@clisp.org>
33283
33284         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
33285
33286 2003-06-07  Karl Berry  <karl@gnu.org>
33287
33288         * config/config.{guess,sub}: update from prep.
33289
33290 2003-06-07  Jim Meyering  <jim@meyering.net>
33291
33292         * modules/strtod: Use $(...) notation, not @...@ for
33293         AC_REPLACE'd variables.
33294         * modules/localcharset: Likewise.
33295
33296 2003-06-07  Jim Meyering  <jim@meyering.net>
33297
33298         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
33299         in place of my name in the copyright comment.
33300         Remove definition and uses of __P.
33301
33302         From coreutils.
33303         * lib/stat.c: Don't declare xmalloc explicitly.
33304         Instead, include "xalloc.h".
33305         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
33306         xrealloc, and xcalloc return values.
33307         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
33308         Improve comment.
33309         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
33310
33311 2003-06-07  Bruno Haible  <bruno@clisp.org>
33312
33313         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
33314         avoid AC_CONFIG_LINKS.
33315         * modules/fnmatch (Makefile.am): Use explicit creation rule for
33316         fnmatch.h, to avoid AC_CONFIG_LINKS.
33317         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
33318
33319 2003-06-07  Bruno Haible  <bruno@clisp.org>
33320
33321         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
33322         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
33323         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
33324         directory.
33325         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
33326         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
33327         directory.
33328
33329 2003-06-06  Jim Meyering  <jim@meyering.net>
33330
33331         Merge from coreutils.
33332         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
33333         Consolidate declarations and initializations of *_base* locals.
33334
33335         Merge from coreutils.
33336         This avoids a core dump on systems without GNU putenv,
33337         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
33338         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
33339         (unsetenv): New static function, from GNU libc.
33340         (rpl_putenv): Use it.
33341
33342         * lib/modechange.c: Remove trailing blanks.
33343
33344         Merge from coreutils.
33345         * lib/fsusage.c: Remove declaration of statfs.
33346         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
33347
33348         * lib/posixtm.c: Include <stdbool.h> unconditionally.
33349
33350 2003-06-06  Jim Meyering  <jim@meyering.net>
33351
33352         * lib/stdbool_.h: Renamed from stdbool.h.in.
33353
33354 2003-06-06  Jim Meyering  <jim@meyering.net>
33355             Bruno Haible  <bruno@clisp.org>
33356
33357         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
33358         Adjust Makefile.am snippet not to redirect directly to target.
33359         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
33360
33361 2003-06-05  Paul Eggert  <eggert@twinsun.com>
33362
33363         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
33364         mismatch, look in future quarters as well as past.  This fixes a
33365         bug when processing fall-backwards gaps immediately after a long
33366         period of daylight-saving time.
33367
33368         * lib/mktime.c: Assume freestanding C89 or better.
33369         (HAVE_LIMITS_H): Remove.  Assume it's 1.
33370         (__P): Remove; not used.
33371         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
33372         (mktime, not_equal_tm, print_tm, check_result,
33373         main): Use prototypes.  Use const * where appropriate.
33374         (main): Fix typo in testing code that uncovered by above changes.
33375         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
33376
33377 2003-06-04  Paul Eggert  <eggert@twinsun.com>
33378
33379         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
33380         locale.h, localeconv.  This merges changes from coreutils.
33381
33382         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
33383         It can be removed after the next Autoconf is released.
33384         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
33385         needed.
33386
33387 2003-06-04  Paul Eggert  <eggert@twinsun.com>
33388
33389         * lib/mktime.c: Fix Debian bug 177940
33390         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
33391         (localtime_offset): Now long int, not time_t, because we want it
33392         to be guaranteed to be signed.  All uses changed.
33393         (__mktime_internal): If overflow would occur when adding offset,
33394         don't add it.
33395
33396         Merge 'human' changes from coreutils.  Rewrite to support
33397         locale-specific notations like thousands separators.
33398         * lib/human.c: Simplify authorship notice.
33399         Include human.h immediately after config.h.
33400         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
33401         <limits.h>: Do not include, since human.h does.
33402         (SIZE_MAX, UINTMAX_MAX): New macros.
33403         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
33404         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
33405         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
33406         (power_letter): Renamed from suffixes.
33407         (generate_suffix_backwards): Remove.
33408         (adjust_value): Now takes int style (because of human.h changes)
33409         and long double value (for greater precision on some platforms).
33410         (group_number): New function.
33411         (human_readable): Use it.  Use integer options, not enum.
33412         Put the options before the sizes in the arg list.
33413         Support all the new options.
33414         The old human_readable function has been removed;
33415         use inttostr.h instead.
33416         (human_readable, default_block_size, humblock):
33417         Use uintmax_t, not int, for block sizes.
33418         (human_readable_inexact, block_size_types): Remove.
33419         (block_size_opts): New constant.
33420         (human_options): Renamed from human_block_size, with new signature
33421         that allows block sizes up to UINTMAX_MAX.  All callers changed.
33422         * lib/human.h: Add copyright and authorship notice.
33423         Include <limits.h> and <stdbool.h> unconditionally.
33424         (PARAMS): Remove.  All uses removed.
33425         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
33426         (enum human_inexact_style): Remove tag; now a nameless enum.
33427         (human_floor, human_ceiling, human_round_to_even): Now have
33428         values 2, 0, 1 rather than -1, 1, 0.
33429         (human_group_digits, human_suppress_point_zero, human_autoscale,
33430         human_base_1024, human_SI, human_B): New constants.
33431         (human_readable_inexact, human_block_size): Remove.
33432         (human_readable): Size args are now uintmax_t, not int.
33433         (human_options): New decl.
33434
33435         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
33436         unnecessary now that we assume C89 or better.  This change
33437         imported from coreutils.
33438
33439         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
33440         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
33441         in the 2003-05-30 sync from glibc.
33442
33443         .h files should stand alone, but we shouldn't include <sys/types.h>
33444         if we can get away with just <stddef.h>.
33445
33446         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
33447         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
33448         rather than <sys/types.h>, as we merely need size_t.
33449         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
33450         to get size_t.
33451         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
33452         Include <stdio.h>, to get FILE.
33453         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
33454         memcasecmp.h has included <stddef.h> and all we need is size_t.
33455         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
33456         our interface, instead of including <sys/types.h>
33457
33458 2003-06-04  Paul Eggert  <eggert@twinsun.com>
33459
33460         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
33461         now, as glibc mktime is buggy on non-glibc systems.
33462
33463 2003-06-03  Karl Berry  <karl@gnu.org>
33464
33465         * config/config.sub: update from prep.
33466
33467 2003-06-02  Paul Eggert  <eggert@twinsun.com>
33468
33469         [from coreutils]
33470         Fix some minor time-related bugs with POSIX time arguments.
33471         Some valid time stamps were being rejected (notably -1, and
33472         time stamps before 1900 on 64-bit hosts).  And some invalid
33473         time stamps were being accepted, e.g. September 31.
33474
33475         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
33476         that we can return (time_t) -1 successfully.
33477         * lib/posixtm.c: Likewise.
33478         [HAVE_STDBOOL_H]: Include <stdbool.h>.
33479         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
33480         (t): Remove static var.
33481         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
33482         of static var.  All uses changed.
33483         (year): Do not reject years before 1900; they can occur with
33484         64-bit time_t.
33485         (posix_time_parse): Do not check for out-of-range components;
33486         that is now the caller's responsibility, since our checks were
33487         only approximations.
33488         (posixtime): Use mktime to check for out-of-range components,
33489         since it knows them exactly.
33490         If mktime returns (time_t) -1, check whether an error actually occurred
33491         by invoking localtime on -1.
33492         (main) [TEST_POSIXTIME]: Check for input data errors, and report
33493         posixtime failures better.
33494         Improve the test data (in comments only).
33495
33496 2003-06-02  Karl Berry  <karl@gnu.org>
33497
33498         * config/mkinstalldirs (version): new variable.
33499         (--version): new option.
33500         (usage): improve message.
33501
33502 2003-05-30  Karl Berry  <karl@gnu.org>
33503
33504         * lib/mktime.c: update from libc.
33505
33506 2003-05-30  Bruno Haible  <bruno@clisp.org>
33507
33508         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
33509         * config/config.rpath: Upgrade to gettext-0.12.1.
33510
33511 2003-05-30  Bruno Haible  <bruno@clisp.org>
33512
33513         * m4/gettext.m4: Upgrade to gettext-0.12.1.
33514         * m4/nls.m4: New file, from gettext-0.12.1.
33515         * m4/po.m4: New file, from gettext-0.12.1.
33516         * m4/progtest.m4: Upgrade to gettext-0.12.1.
33517
33518 2003-05-30  Bruno Haible  <bruno@clisp.org>
33519
33520         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
33521         * lib/localcharset.h: Likewise.
33522         * lib/localcharset.c: Likewise.
33523
33524 2003-05-29  Karl Berry  <karl@gnu.org>
33525
33526         * config/config.rpath: update from gettext.
33527
33528 2003-05-28  Paul Eggert  <eggert@twinsun.com>
33529
33530         Assume the headers required for C89 freestanding compilers.
33531         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
33532         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
33533         * m4/human.m4 (gl_HUMAN): Likewise.
33534         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
33535         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
33536         * m4/userspec.m4 (gl_USERSPEC): Likewise.
33537         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
33538         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
33539         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
33540
33541 2003-05-28  Paul Eggert  <eggert@twinsun.com>
33542
33543         Assume the headers required for C89 freestanding compilers.
33544         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
33545         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
33546         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
33547         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
33548         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
33549         define, since <limits.h> is guaranteed to do that.
33550         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
33551         * lib/exclude.c: Include <stdbool.h> unconditionally.
33552         * lib/tempname.c: Include <stddef.h> unconditionally.
33553         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
33554         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
33555         <stddef.h> does that.
33556         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
33557         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
33558         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
33559         needed.
33560         * lib/xstrtol.c: Likewise.
33561         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
33562         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
33563
33564         * lib/addext.c (addext): Use assignment rather than cast, to avoid
33565         warnings on some platforms.
33566
33567         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
33568         arbitrarily.
33569
33570 2003-05-26  Jim Meyering  <jim@meyering.net>
33571
33572         Merge in a change from coreutils:
33573         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
33574         that is guaranteed to be `no'.  Use `no_such_member' to indicate
33575         that condition, rather than `-1' which is slightly misleading.
33576         Change the name of the cache variable to have the gl_ prefix.
33577         Prompted by a patch from Richard Dawe for DJGPP.
33578
33579 2003-05-24  Karl Berry  <karl@gnu.org>
33580
33581         * config/config.guess: update from prep.
33582
33583 2003-05-22  Karl Berry  <karl@gnu.org>
33584
33585         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
33586
33587 2003-05-20  Karl Berry  <karl@gnu.org>
33588
33589         * config/config.guess: update from prep.
33590
33591 2003-05-18  Karl Berry  <karl@gnu.org>
33592
33593         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
33594         might actually be set by the user.
33595
33596         * config/depcomp, install-sh, mdate-sh: update from automake.
33597
33598 2003-05-17  Bruno Haible  <bruno@clisp.org>
33599
33600         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
33601         invalid expansion for AC_EGREP_CPP.
33602         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
33603         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
33604         Suggested by Akim Demaille <akim@epita.fr> in
33605         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
33606
33607 2003-05-12  Jim Meyering  <jim@meyering.net>
33608
33609         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
33610         the space-padded-by-default conversion specifiers, %e, %k, %l.
33611
33612 2003-05-12  Bruno Haible  <bruno@clisp.org>
33613
33614         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
33615         the string is longer than 4 KB.
33616
33617 2003-05-11  Karl Berry  <karl@gnu.org>
33618
33619         * config/config.{guess,sub}: update from prep.
33620
33621 2003-05-09  Bruno Haible  <bruno@clisp.org>
33622
33623         * modules/error: Add m4/strerror_r.m4 to file list.
33624
33625 2003-05-03  Bruno Haible  <bruno@clisp.org>
33626
33627         Upgrade to Unicode-4.0.
33628         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
33629         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
33630         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
33631         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
33632         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
33633         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
33634         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
33635         Change width of U+E0100..U+E01EF from 1 to 0.
33636
33637 2003-04-25  Jim Meyering  <jim@meyering.net>
33638
33639         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
33640         of type size_t, not int.
33641
33642 2003-04-25  Bruno Haible  <bruno@clisp.org>
33643
33644         * lib/copy-file.c: Include <stddef.h>, for size_t.
33645
33646 2003-04-21  Paul Eggert  <eggert@twinsun.com>
33647
33648         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
33649         code which expansion is under static control.  Patch imported from
33650         Akim Demaille's patch to Bison; see
33651         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
33652
33653 2003-04-14  Bruno Haible  <bruno@clisp.org>
33654
33655         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
33656
33657 2003-04-11  Jim Meyering  <jim@meyering.net>
33658
33659         Merge changes from Coreutils.
33660
33661         2003-03-22  Jim Meyering  <jim@meyering.net>
33662
33663         * lib/strftime.c (widen): Cast alloca return value to proper type.
33664
33665         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
33666
33667         From GNU libc.
33668         * lib/strftime.c (my_strftime): Handle very large width
33669         specifications for numeric values correctly.  Improve checks for
33670         overflow.
33671
33672         2003-01-19  Jim Meyering  <jim@meyering.net>
33673
33674         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
33675         definitions.
33676         (nl_get_alt_digit) [! defined my_strftime]: Define.
33677         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
33678         _nl_get_alt_digit and _nl_get_walt_digit.
33679
33680         * lib/strftime.c (my_strftime): Merge in locale-related changes from
33681         libc. These changes have no effect outside of _LIBC.
33682
33683 2003-04-10  Bruno Haible  <bruno@clisp.org>
33684
33685         * modules/findprog: New file.
33686         * MODULES.html.sh (func_all_modules): Add it.
33687
33688 2003-04-10  Bruno Haible  <bruno@clisp.org>
33689
33690         * m4/findprog.m4: New file.
33691         * m4/eaccess.m4: New file.
33692
33693 2003-04-10  Bruno Haible  <bruno@clisp.org>
33694
33695         * lib/findprog.h: New file, from GNU gettext.
33696         * lib/findprog.c: New file, from GNU gettext.
33697
33698 2003-04-05  Jim Meyering  <jim@meyering.net>
33699
33700         Merge changes from Coreutils.
33701
33702         * lib/exclude.h (PARAMS): Remove definition and uses.
33703         * lib/exclude.c: Remove uses of `PARAMS'.
33704
33705         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
33706         Add test-cases for DOS filenames. Declare program_name.
33707         (main): Set up program_name.  Patch by Rich Dawe.
33708
33709         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
33710         error from mntctl.
33711         Use mntctl's return value to drive the entry-processing loop, since
33712         we can't rely on the value of the vmt_length member in the last
33713         entry.  On some systems doing so could result in exhausting
33714         virtual memory.  Based in part on a patch from Mike Jetzer.
33715
33716 2003-04-04  Bruno Haible  <bruno@clisp.org>
33717
33718         * modules/linebreak: New file.
33719         * MODULES.html.sh (func_all_modules): Add it.
33720
33721 2003-04-04  Bruno Haible  <bruno@clisp.org>
33722
33723         * m4/linebreak.m4: New file.
33724
33725 2003-04-04  Bruno Haible  <bruno@clisp.org>
33726
33727         * lib/linebreak.h: New file, from GNU gettext.
33728         * lib/linebreak.c: New file, from GNU gettext with slight
33729         modifications.
33730         * lib/lbrkprop.h: New file, from GNU gettext.
33731
33732 2003-04-03  Bruno Haible  <bruno@clisp.org>
33733
33734         * modules/utf8-ucs4: New file.
33735         * modules/utf16-ucs4: New file.
33736         * modules/ucs4-utf8: New file.
33737         * modules/ucs4-utf16: New file.
33738         * MODULES.html.sh (func_all_modules): Add them.
33739
33740 2003-04-03  Bruno Haible  <bruno@clisp.org>
33741
33742         * m4/utf-ucs4.m4: New file.
33743         * m4/ucs4-utf.m4: New file.
33744
33745 2003-04-03  Bruno Haible  <bruno@clisp.org>
33746
33747         * lib/utf8-ucs4.h: New file, from GNU gettext.
33748         * lib/utf16-ucs4.h: New file, from GNU gettext.
33749         * lib/ucs4-utf8.h: New file, from GNU gettext.
33750         * lib/ucs4-utf16.h: New file, from GNU gettext.
33751
33752 2003-04-02  Bruno Haible  <bruno@clisp.org>
33753
33754         * modules/binary-io: New file.
33755         * MODULES.html.sh (func_all_modules): Add it.
33756
33757 2003-04-02  Bruno Haible  <bruno@clisp.org>
33758
33759         * lib/binary-io.h: New file, from GNU gettext.
33760
33761 2003-04-01  Bruno Haible  <bruno@clisp.org>
33762
33763         * modules/pathname: New file.
33764         * MODULES.html.sh (func_all_modules): Add it.
33765
33766 2003-04-01  Bruno Haible  <bruno@clisp.org>
33767
33768         * lib/pathname.h: New file, from GNU gettext.
33769         * lib/concatpath.c: New file, from GNU gettext.
33770
33771 2003-03-30  Bruno Haible  <bruno@clisp.org>
33772
33773         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
33774
33775 2003-03-30  Bruno Haible  <bruno@clisp.org>
33776
33777         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
33778         function chown() doesn't exist.
33779
33780 2003-03-28  Bruno Haible  <bruno@clisp.org>
33781
33782         * modules/copy-file: New file.
33783         * MODULES.html.sh (func_all_modules): Add it.
33784
33785 2003-03-28  Bruno Haible  <bruno@clisp.org>
33786
33787         * m4/copy-file.m4: New file.
33788
33789 2003-03-28  Bruno Haible  <bruno@clisp.org>
33790
33791         * lib/copy-file.h: New file, from GNU gettext.
33792         * lib/copy-file.c: New file, from GNU gettext.
33793
33794 2003-03-18  Jim Meyering  <jim@meyering.net>
33795
33796         * lib/quote.c (quote_n): Fix typo in comment.
33797
33798 2003-03-18  Bruno Haible  <bruno@clisp.org>
33799
33800         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
33801         checking.
33802         * m4/onceonly_2_57.m4: Likewise.
33803
33804 2003-03-17  Bruno Haible  <bruno@clisp.org>
33805
33806         * m4/onceonly.m4: Require autoconf 2.54 or newer.
33807         (m4_quote): Remove macro.
33808         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
33809
33810 2003-03-14  Jim Meyering  <jim@meyering.net>
33811
33812         Merge changes from Coreutils.
33813         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
33814         to be const, in order to avoid warnings.
33815         (obstack_room): Likewise.
33816         (obstack_empty_p): Likewise.
33817
33818 2003-03-14  Bruno Haible  <bruno@clisp.org>
33819
33820         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
33821         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
33822
33823 2003-03-13  Paul Eggert  <eggert@twinsun.com>
33824
33825         Merge changes from Bison.
33826         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
33827         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
33828         when compiling Bison 1.875's `bitset bset = obstack_alloc
33829         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
33830         * lib/hash.c: Include <stdbool.h> unconditionally.
33831
33832 2003-03-13  Paul Eggert  <eggert@twinsun.com>
33833
33834         * m4/onceonly.m4 (m4_quote): New macro.
33835         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
33836         Quote AC_FOREACH variable-expansions properly.
33837
33838 2003-03-13  Paul Eggert  <eggert@twinsun.com>
33839
33840         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
33841
33842 2003-03-09  Paul Eggert  <eggert@twinsun.com>
33843
33844         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
33845         Reported by Bruce Becker; see:
33846         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
33847
33848 2003-03-03  Paul Eggert  <eggert@twinsun.com>
33849             Bruno Haible  <bruno@clisp.org>
33850
33851         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
33852         Reported by John Hughes, see
33853         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
33854
33855 2003-02-20  Bruno Haible  <bruno@clisp.org>
33856
33857         * MODULES.html.sh (func_all_modules): Add poll.
33858
33859 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
33860
33861         * modules/poll: New file.
33862
33863 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
33864
33865         * lib/poll_.h: New file.
33866         * lib/poll.c: New file.
33867
33868 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
33869
33870         * m4/poll.m4: New file.
33871
33872 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
33873
33874         * modules/mathl: New file.
33875
33876 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
33877
33878         * lib/mathl.h: New file.
33879         * lib/acosl.c: New file.
33880         * lib/asinl.c: New file.
33881         * lib/atanl.c: New file.
33882         * lib/ceill.c: New file.
33883         * lib/cosl.c: New file.
33884         * lib/expl.c: New file.
33885         * lib/floorl.c: New file.
33886         * lib/frexpl.c: New file.
33887         * lib/ldexpl.c: New file.
33888         * lib/logl.c: New file.
33889         * lib/sincosl.c: New file.
33890         * lib/sinl.c: New file.
33891         * lib/sqrtl.c: New file.
33892         * lib/tanl.c: New file.
33893         * lib/trigl.c: New file.
33894         * lib/trigl.h: New file.
33895
33896 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
33897
33898         * m4/mathl.m4: New file.
33899
33900 2003-02-18  Bruno Haible  <bruno@clisp.org>
33901
33902         * MODULES.html.sh (func_all_modules): Add mathl.
33903
33904 2003-02-17  Bruno Haible  <bruno@clisp.org>
33905
33906         * modules/mkdtemp: New module.
33907         * MODULES.html.sh (func_all_modules): Add it.
33908
33909 2003-02-17  Bruno Haible  <bruno@clisp.org>
33910
33911         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
33912
33913 2003-02-17  Bruno Haible  <bruno@clisp.org>
33914
33915         * lib/mkdtemp.h: New file, from GNU gettext.
33916         * lib/mkdtemp.c: New file, from GNU gettext.
33917
33918 2003-02-02  Jim Meyering  <jim@meyering.net>
33919
33920         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
33921         e.g. glibc-2.2.93.
33922
33923 2003-01-31  Bruno Haible  <bruno@clisp.org>
33924
33925         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
33926         'rpl_rename'.
33927         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
33928         'rpl_strnlen'.
33929         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
33930         'rpl_strtod'.
33931         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
33932         'rpl_utime'.
33933
33934 2003-01-31  Bruno Haible  <bruno@clisp.org>
33935
33936         * lib/rename.c: #undef rename before defining rpl_rename.
33937         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
33938
33939 2003-01-30  Bruno Haible  <bruno@clisp.org>
33940
33941         * modules/vasnprintf, modules/vasprintf: New modules.
33942         * MODULES.html.sh (func_all_modules): Add them.
33943
33944 2003-01-30  Bruno Haible  <bruno@clisp.org>
33945
33946         * m4/signed.m4: New file, from GNU gettext.
33947         * m4/longdouble.m4: New file, from GNU gettext.
33948         * m4/wchar_t.m4: New file, from GNU gettext.
33949         * m4/wint_t.m4: New file, from GNU gettext.
33950         * m4/vasnprintf.m4: New file.
33951         * m4/vasprintf.m4: New file.
33952
33953 2003-01-30  Bruno Haible  <bruno@clisp.org>
33954
33955         * lib/printf-args.h: New file, from GNU gettext.
33956         * lib/printf-args.c: New file, from GNU gettext.
33957         * lib/printf-parse.h: New file, from GNU gettext.
33958         * lib/printf-parse.c: New file, from GNU gettext.
33959         * lib/vasnprintf.h: New file, from GNU gettext.
33960         * lib/vasnprintf.c: New file, from GNU gettext.
33961         * lib/asnprintf.c: New file, from GNU gettext.
33962         * lib/vasprintf.h: New file, from GNU gettext with modifications.
33963         * lib/vasprintf.c: New file, from GNU gettext.
33964         * lib/asprintf.c: New file, from GNU gettext.
33965
33966 2003-01-29  Bruno Haible  <bruno@clisp.org>
33967
33968         * modules/stpncpy: New module.
33969         * MODULES.html.sh (func_all_modules): Add it.
33970
33971 2003-01-29  Bruno Haible  <bruno@clisp.org>
33972
33973         * m4/stpncpy.m4: New file.
33974
33975 2003-01-29  Bruno Haible  <bruno@clisp.org>
33976
33977         * lib/stpncpy.h: New file, from GNU gettext with modifications.
33978         * lib/stpncpy.c: New file, from GNU gettext with modifications.
33979
33980 2003-01-28  Bruno Haible  <bruno@clisp.org>
33981
33982         * modules/c-ctype: New module.
33983         * MODULES.html.sh (func_all_modules): Add it.
33984
33985 2003-01-28  Bruno Haible  <bruno@clisp.org>
33986
33987         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
33988         Paul Eggert.
33989         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
33990         Paul Eggert.
33991
33992 2003-01-27  Bruno Haible  <bruno@clisp.org>
33993
33994         * modules/xsetenv: New module.
33995         * MODULES.html.sh (func_all_modules): Add it.
33996
33997 2003-01-27  Bruno Haible  <bruno@clisp.org>
33998
33999         * lib/xsetenv.h: New file, from GNU gettext.
34000         * lib/xsetenv.c: New file, from GNU gettext.
34001
34002 2003-01-23  Jim Meyering  <jim@meyering.net>
34003
34004         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
34005         from working on systems without dirfd (at least Irix and OSF1/Tru64).
34006
34007 2003-01-23  Bruno Haible  <bruno@clisp.org>
34008
34009         * modules/minmax: New module.
34010         * MODULES.html.sh (func_all_modules): Add it.
34011
34012 2003-01-23  Bruno Haible  <bruno@clisp.org>
34013
34014         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
34015         Eggert.
34016
34017 2003-01-22  Bruno Haible  <bruno@clisp.org>
34018
34019         * modules/exit: New module.
34020         * MODULES.html.sh (func_all_modules): Add it.
34021
34022 2003-01-22  Bruno Haible  <bruno@clisp.org>
34023
34024         * lib/exit.h: New file, from GNU gettext.
34025
34026 2003-01-19  Bruno Haible  <bruno@clisp.org>
34027
34028         * gnulib-tool: Recognize option --extract-maintainer.
34029         (func_get_maintainer): New function.
34030         * modules/*: Add Maintainer entry.
34031
34032 2003-01-16  Jim Meyering  <jim@meyering.net>
34033
34034         * m4/regex.m4: The `regex' struct is both input and output.
34035         Initialize it before each use.  Patch by Tim Waugh.
34036
34037 2003-01-16  Bruno Haible  <bruno@clisp.org>
34038
34039         * MODULES.html.sh: Add a table of contents. Add the module name as
34040         leftmost column. Add hyperlinks.
34041
34042 2003-01-15  Bruno Haible  <bruno@clisp.org>
34043
34044         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
34045
34046 2003-01-15  Bruno Haible  <bruno@clisp.org>
34047
34048         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
34049         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
34050         suffix.
34051
34052 2003-01-15  Bruno Haible  <bruno@clisp.org>
34053
34054         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
34055
34056 2003-01-15  Bruno Haible  <bruno@clisp.org>
34057
34058         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
34059         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
34060
34061 2003-01-14  Jim Meyering  <jim@meyering.net>
34062
34063         * lib/same.c (same_name): Tweak a comment.
34064
34065 2003-01-14  Bruno Haible  <bruno@clisp.org>
34066
34067         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
34068         when a string comparison is sufficient.
34069
34070 2003-01-14  Bruno Haible  <bruno@clisp.org>
34071
34072         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
34073         'unsigned int'.
34074
34075 2003-01-14  Bruno Haible  <bruno@clisp.org>
34076
34077         * lib/hash-pjw.c: Add comment about low quality of this function.
34078
34079 2003-01-13  Bruno Haible  <bruno@clisp.org>
34080
34081         * modules/stpcpy: Distribute lib/stpcpy.h.
34082         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
34083
34084 2003-01-13  Bruno Haible  <bruno@clisp.org>
34085
34086         * modules/*: Add a description.
34087         * modules/strpbrk: Fix Makefile.am snippet.
34088         * modules/strtoimax: Fix dependencies.
34089         * modules/strtoumax: Likewise.
34090
34091 2003-01-13  Bruno Haible  <bruno@clisp.org>
34092
34093         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
34094         * modules/alloca (Makefile.am): All object files depend on alloca.h.
34095         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
34096
34097 2003-01-13  Bruno Haible  <bruno@clisp.org>
34098
34099         * gnulib-tool (func_create_testdir): Store config/* files in the main
34100         directory.
34101         * config.rpath: Move to ...
34102         * config/config.rpath: ... here.
34103         * modules/gettext: Contains config/config.rpath, not config.rpath.
34104         * modules/iconv: Likewise.
34105
34106 2003-01-12  Paul Eggert  <eggert@twinsun.com>
34107
34108         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
34109         to avoid collisions with libcurses and libreadline.
34110
34111         * m4/getstr.m4: Remove.
34112         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
34113
34114 2003-01-12  Paul Eggert  <eggert@twinsun.com>
34115
34116         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
34117         to avoid collisions with libcurses and libreadline.
34118
34119         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
34120         * lib/getstr.h, getstr.c: Remove.
34121         * lib/getline.c: Include "getline.h", to check interface.
34122         Move body of old getstr.c here: this defines MIN_CHUNK and
34123         declares getdelim2, which is renamed from getstr.
34124         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
34125
34126         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
34127         All uses changed.
34128         * lib/linebuffer.h: Likewise.
34129         (readline): Remove backward-compatibility macro.
34130
34131 2003-01-12  Paul Eggert  <eggert@twinsun.com>
34132
34133         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
34134         to avoid collisions with libcurses and libreadline.
34135         * getstr: Remove.
34136         * MODULES.html.sh: Remove getstr.
34137         * modules/getline: Depend on unlocked-io, not getstr.
34138
34139 2003-01-12  Jim Meyering  <jim@meyering.net>
34140
34141         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
34142
34143 2003-01-10  Bruno Haible  <bruno@clisp.org>
34144
34145         * modules/alloca: Change Makefile.am requirements. Simplify Include
34146         requirements. Add lib/alloca_.h to file list.
34147
34148 2003-01-10  Bruno Haible  <bruno@clisp.org>
34149
34150         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
34151
34152 2003-01-10  Bruno Haible  <bruno@clisp.org>
34153
34154         * lib/alloca_.h: New file.
34155         * lib/getdate.y: Unconditionally include alloca.h.
34156         * lib/makepath.c: Likewise.
34157         * lib/setenv.c: Likewise.
34158         * lib/userspec.c: Likewise.
34159
34160 2003-01-09  Karl Berry  <karl@gnu.org>
34161
34162         * MODULES.html.sh: include `dirname $0` in PATH, to find
34163         gnulib-tool.
34164
34165 2003-01-09  Bruno Haible  <bruno@clisp.org>
34166
34167         * modules/stdbool: Change configure.ac, Makefile.am requirements.
34168         Simplify Include requirements. Add lib/stdbool.h.in to file list.
34169
34170 2003-01-09  Bruno Haible  <bruno@clisp.org>
34171
34172         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
34173
34174 2003-01-09  Bruno Haible  <bruno@clisp.org>
34175
34176         * lib/stdbool.h.in: New file.
34177
34178 2003-01-09  Bruno Haible  <bruno@clisp.org>
34179
34180         * gnulib-tool (func_all_modules): Ignore files ending in ~.
34181         * MODULES.html.sh: Likewise.
34182
34183 2003-01-08  Jim Meyering  <jim@meyering.net>
34184
34185         * lib/full-write.c: Undefine and define-away `const' after inclusion
34186         of errno.h, not before.  Suggestion from Bruno Haible.
34187
34188 2003-01-08  Bruno Haible  <bruno@clisp.org>
34189
34190         * modules/full-read: Depend on full-write.
34191
34192 2003-01-08  Bruno Haible  <bruno@clisp.org>
34193
34194         * lib/safe-read.c: Include specification header first, to ensure its
34195         selfcontainedness.
34196         * lib/full-write.c: Likewise.
34197
34198 2003-01-07  Jim Meyering  <jim@meyering.net>
34199
34200         * lib/full-write.c: Rework so that it may serve to define full_read,
34201         too.
34202         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
34203
34204 2003-01-07  Bruno Haible  <bruno@clisp.org>
34205
34206         * lib/strtoimax.c: Include <stdint.h> as an alternative to
34207         <inttypes.h>.
34208         * lib/xstrtol.h: Likewise.
34209         * lib/xstrtoimax.c: Likewise.
34210         * lib/xstrtoumax.c: Likewise.
34211         * lib/human.h: Likewise.
34212
34213         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
34214         on systems that have <inttypes.h> but not <stdint.h>.
34215
34216 2003-01-07  Bruno Haible  <bruno@clisp.org>
34217
34218         * MODULES.html.sh: Add copyright notice.
34219         (missed_files): Omit CVS directory entries.
34220         (func_module): Make it work with sed-3.02.
34221         * MODULES.txt: Remove file.
34222
34223 2003-01-06  Jim Meyering  <jim@meyering.net>
34224
34225         * lib/version-etc.c: Update year in translatable copyright string.
34226
34227 2003-01-03  Karl Berry  <karl@gnu.org>
34228
34229         * config/config.{guess,sub}: update from prep.
34230
34231 2003-01-02  Karl Berry  <karl@gnu.org>
34232
34233         * doc/COPYING.DOC: belatedly updated to 1.2.
34234
34235 2003-01-01  Karl Berry  <karl@gnu.org>
34236
34237         * gnulib-tool (func_verify_module): report module name $module in
34238         error message, not $1.
34239         * gnulib-tool (create-testdir): don't complain if destdir couldn't
34240         be created, only if it doesn't exist.
34241         * gnulib-tool (last_checkin_date): don't expand the $Date here.
34242
34243 2002-12-31  Paul Eggert  <eggert@twinsun.com>
34244
34245         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
34246
34247 2002-12-31  Paul Eggert  <eggert@twinsun.com>
34248
34249         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
34250         memcmp if strcoll doesn't work.
34251
34252 2002-12-31  Bruno Haible  <bruno@clisp.org>
34253
34254         * lib/utime.c (utime_null): No need to call ftruncate if the file was
34255         nonempty.
34256
34257 2002-12-31  Bruno Haible  <bruno@clisp.org>
34258
34259         * lib/memcoll.c (STRCOLL): New macro.
34260         (memcoll): Use it.
34261
34262 2002-12-31  Bruno Haible  <bruno@clisp.org>
34263
34264         * lib/localcharset.h: New file.
34265         * lib/localcharset.c: Include it.
34266         * lib/unicodeio.c: Likewise.
34267
34268 2002-12-31  Bruno Haible  <bruno@clisp.org>
34269
34270         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
34271         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
34272
34273 2002-12-31  Bruno Haible  <bruno@clisp.org>
34274
34275         * lib/getline.h: Include <stddef.h>, for size_t.
34276
34277         * lib/unicodeio.h: Include <stddef.h>, for size_t.
34278         * lib/unicodeio.c: Don't include <stddef.h>.
34279
34280 2002-12-31  Bruno Haible  <bruno@clisp.org>
34281
34282         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
34283         HAVE_TM_ZONE.
34284
34285 2002-12-24  Karl Berry  <karl@gnu.org>
34286
34287         * config/config.guess: update from prep.
34288
34289 2002-12-24  Bruno Haible  <bruno@clisp.org>
34290
34291         General infrasructure.
34292         * m4/README: Rewritten.
34293         * m4/onceonly.m4: New file.
34294         * m4/onceonly_2_57.m4: New file.
34295
34296         Module atexit.
34297         * m4/atexit.m4: New file.
34298
34299         Module strtod.
34300         * m4/strtod.m4: New file.
34301
34302         Module strtol.
34303         * m4/strtol.m4: New file.
34304
34305         Module strtoul.
34306         * m4/strtoul.m4: New file.
34307
34308         Module memchr.
34309         * m4/memchr.m4: New file.
34310
34311         Module memcmp.
34312         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
34313         (jm_FUNC_MEMCMP): Invoke it.
34314
34315         Module memcpy.
34316         * m4/memcpy.m4: New file.
34317
34318         Module memmove.
34319         * m4/memmove.m4: New file.
34320
34321         Module memset.
34322         * m4/memset.m4: New file.
34323
34324         Module strcspn.
34325         * m4/strcspn.m4: New file.
34326
34327         Module strpbrk.
34328         * m4/strpbrk.m4: New file.
34329
34330         Module strstr.
34331         * m4/strstr.m4: New file.
34332
34333         Module strerror.
34334         * m4/strerror.m4: New file.
34335
34336         Module mktime.
34337         * m4/mktime.m4: Renamed from jm-mktime.m4.
34338         (gl_PREREQ_MKTIME): New macro.
34339         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
34340
34341         Module malloc.
34342         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
34343         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
34344         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
34345
34346         Module realloc.
34347         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
34348         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
34349         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
34350
34351         Module strftime.
34352         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
34353         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
34354         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
34355         gl_TM_GMTOFF.
34356         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
34357
34358         Module xalloc.
34359         * m4/xalloc.m4: New file.
34360
34361         Module alloca.
34362         * m4/alloca.m4: New file.
34363
34364         Module putenv.
34365         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
34366         (jm_FUNC_PUTENV): Invoke it.
34367
34368         Module setenv.
34369         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
34370         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
34371         when invoked twice.
34372         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
34373         gt_FUNC_SETENV.
34374
34375         Module memrchr.
34376         * m4/memrchr.m4: New file.
34377
34378         Module stpcpy.
34379         * m4/stpcpy.m4: New file.
34380
34381         Module strcase.
34382         * m4/strcase.m4: New file.
34383
34384         Module strdup.
34385         * m4/strdup.m4: New file.
34386
34387         Module strnlen.
34388         * m4/strnlen.m4: New file.
34389
34390         Module strndup.
34391         * m4/strndup.m4: New file.
34392
34393         Module xstrtod.
34394         * m4/xstrtod.m4: New file.
34395
34396         Module xstrtol.
34397         * m4/xstrtol.m4: New file.
34398
34399         Module getdate.
34400         * m4/getdate.m4: New file.
34401
34402         Module unlocked-io.
34403         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
34404         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
34405         * m4/jm-glibc-io.m4n: Remove file.
34406
34407         Module long-options.
34408         * m4/long-options.m4: New file.
34409
34410         Module md5.
34411         * m4/md5.m4: New file.
34412
34413         Module sha.
34414         * m4/sha.m4: New file.
34415
34416         Module getstr.
34417         * m4/getstr.m4: New file.
34418
34419         Module getline.
34420         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
34421         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
34422         <sys/types.h>, for size_t. Use the function name gnu_getline, not
34423         simply getline. Infoke gl_PREREQ_GETLINE.
34424
34425         Module obstack.
34426         * m4/obstack.m4: New file.
34427
34428         Module hash.
34429         * m4/hash.m4: New file.
34430
34431         Module readtokens.
34432         * m4/readtokens.m4: New file.
34433
34434         Module strverscmp.
34435         * m4/strverscmp.m4: New file.
34436
34437         Module stdbool.
34438         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
34439         OSF/1.
34440
34441         Module strtoll.
34442         * m4/strtoll.m4: New file.
34443
34444         Module strtoull.
34445         * m4/strtoull.m4: New file.
34446
34447         Module strtoimax.
34448         * m4/strtoimax.m4: New file.
34449
34450         Module strtoumax.
34451         * m4/strtoumax.m4: New file.
34452
34453         Module xstrtoimax.
34454         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
34455         jm_AC_PREREQ_XSTRTOIMAX.
34456         Moved the strtol prerequisites to strtol.m4.
34457         Moved the strtoll prerequisites to strtoll.m4.
34458         Moved the strtoimax prerequisites to strtoimax.m4.
34459
34460         Module xstrtoumax.
34461         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
34462         jm_AC_PREREQ_XSTRTOUMAX.
34463         Moved the strtoul prerequisites to strtoul.m4.
34464         Moved the strtoull prerequisites to strtoull.m4.
34465         Moved the strtoumax prerequisites to strtoumax.m4.
34466
34467         Module chown.
34468         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
34469         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
34470
34471         Module dup2.
34472         * m4/dup2.m4: New file.
34473
34474         Module ftruncate.
34475         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
34476         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
34477
34478         Module getgroups.
34479         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
34480         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
34481
34482         Module gettimeofday.
34483         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
34484         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
34485         gl_PREREQ_GETTIMEOFDAY.
34486
34487         Module mkdir.
34488         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
34489         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
34490
34491         Module mkstemp.
34492         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
34493         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
34494         jm_AC_TYPE_UINTMAX_T.
34495         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
34496
34497         Module stat.
34498         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
34499         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
34500
34501         Module lstat.
34502         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
34503         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
34504
34505         Module timespec.
34506         * m4/timespec.m4 (gl_TIMESPEC): New macro.
34507         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
34508         * m4/st_mtim.m4: Indentation.
34509
34510         Module nanosleep.
34511         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
34512         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
34513         gl_PREREQ_NANOSLEEP.
34514
34515         Module regex.
34516         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
34517         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
34518         (gl_REGEX): New macro.
34519
34520         Module rename.
34521         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
34522         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
34523
34524         Module rmdir.
34525         * m4/rmdir.m4: New file.
34526
34527         Module utime.
34528         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
34529         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
34530         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
34531
34532         Module dirname.
34533         * m4/dirname.m4: New file.
34534
34535         Module getopt.
34536         * m4/getopt.m4: New file.
34537
34538         Module unistd-safer.
34539         * m4/unistd-safer.m4: New file.
34540
34541         Module fnmatch.
34542         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
34543         declaration.
34544         (gl_PREREQ_FNMATCH_EXTRA): New macro.
34545         (gl_FUNC_FNMATCH_POSIX): New macro.
34546         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
34547         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
34548         simply fnmatch.
34549
34550         Module exclude.
34551         * m4/exclude.m4: New file.
34552
34553         Module human.
34554         * m4/human.m4: New file.
34555
34556         Module acl.
34557         * m4/acl.m4: Nop.
34558
34559         Module backupfile.
34560         * m4/backupfile.m4: New file.
34561         * m4/d-ino.m4: Indentation.
34562
34563         Module fsusage.
34564         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
34565         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
34566         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
34567
34568         Module dirfd.
34569         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
34570         requirements.
34571
34572         Module euidaccess.
34573         * m4/euidaccess.m4: New file.
34574
34575         Module file-type.
34576         * m4/file-type.m4: New file.
34577
34578         Module fileblocks.
34579         * m4/fileblocks.m4: New file.
34580
34581         Module filemode.
34582         * m4/filemode.m4: New file.
34583
34584         Module isdir.
34585         * m4/isdir.m4: New file.
34586
34587         Module lchown.
34588         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
34589         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
34590
34591         Module makepath.
34592         * m4/makepath.m4: New file.
34593
34594         Module modechange.
34595         * m4/modechange.m4: New file.
34596
34597         Module mountlist.
34598         * m4/mountlist.m4: New file.
34599         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
34600         Indentation.
34601
34602         Module path-concat.
34603         * m4/path-concat.m4: New file.
34604
34605         Module pathmax.
34606         * m4/pathmax.m4: New file.
34607
34608         Module same.
34609         * m4/same.m4: New file.
34610
34611         Module save-cwd.
34612         * m4/save-cwd.m4: New file.
34613
34614         Module savedir.
34615         * m4/savedir.m4: New file.
34616
34617         Module xgetcwd.
34618         * m4/xgetcwd.m4: New file.
34619         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
34620
34621         Module xreadlink.
34622         * m4/xreadlink.m4: New file.
34623
34624         Module safe-read.
34625         * m4/safe-read.m4: New file.
34626
34627         Module safe-write.
34628         * m4/safe-write.m4: New file.
34629
34630         Module closeout.
34631         * m4/closeout.m4: New file.
34632
34633         Module stdio-safer.
34634         * m4/stdio-safer.m4: New file.
34635
34636         Module getpass.
34637         * m4/getpass.m4: New file.
34638
34639         Module getugroups.
34640         * m4/getugroups.m4: New file.
34641
34642         Module group-member.
34643         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
34644         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
34645
34646         Module idcache.
34647         * m4/idcache.m4: New file.
34648
34649         Module userspec.
34650         * m4/userspec.m4: New file.
34651
34652         Module gettime.
34653         * m4/clock_time.m4: New file.
34654         * m4/gettime.m4: New file.
34655
34656         Module settime.
34657         * m4/settime.m4: New file.
34658
34659         Module posixtm.
34660         * m4/posixtm.m4: New file.
34661
34662         Module gethostname.
34663         * m4/gethostname.m4: New file.
34664
34665         Module canon-host.
34666         * m4/canon-host.m4: New file.
34667
34668         Module gettext.
34669         * m4/codeset.m4: New file, from gettext-0.11.5.
34670         * m4/gettext.m4: New file, from gettext-0.11.5.
34671         * m4/glibc21.m4: New file, from gettext-0.11.5.
34672         * m4/iconv.m4: New file, from gettext-0.11.5.
34673         * m4/intdiv0.m4: New file, from gettext-0.11.5.
34674         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
34675         * m4/inttypes.m4: New file, from gettext-0.11.5.
34676         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
34677         * m4/isc-posix.m4: New file, from gettext-0.11.5.
34678         * m4/lcmessage.m4: New file, from gettext-0.11.5.
34679         * m4/lib-ld.m4: New file, from gettext-0.11.5.
34680         * m4/lib-link.m4: New file, from gettext-0.11.5.
34681         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
34682         * m4/progtest.m4: New file, from gettext-0.11.5.
34683         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
34684         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
34685         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
34686
34687         Module localcharset.
34688         * m4/localcharset.m4: New file.
34689
34690         Module hard-locale.
34691         * m4/hard-locale.m4: New file.
34692
34693         Module mbswidth.
34694         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
34695         onceonly macros.
34696         * m4/mbrtowc.m4: Add comment.
34697
34698         Module memcasecmp.
34699         * m4/memcasecmp.m4: New file.
34700
34701         Module memcoll.
34702         * m4/memcoll.m4: New file.
34703
34704         Module unicodeio.
34705         * m4/unicodeio.m4: New file.
34706
34707         Module rpmatch.
34708         * m4/rpmatch.m4: New file.
34709
34710         Module yesno.
34711         * m4/yesno.m4: New file.
34712
34713         Module exitfail.
34714         * m4/exitfail.m4: New file.
34715
34716         Module c-stack.
34717         * m4/c-stack.m4 (gl_C_STACK): New macro.
34718         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
34719
34720         Module error.
34721         * m4/error.m4 (gl_ERROR): New macro.
34722         (jm_PREREQ_ERROR): Use onceonly macros.
34723
34724         Module fatal.
34725         * m4/fatal.m4: New file.
34726
34727         Module getloadavg.
34728         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
34729         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
34730
34731         Module getpagesize.
34732         * m4/getpagesize.m4: New file.
34733
34734         Module getusershell.
34735         * m4/getusershell.m4: New file.
34736
34737         Module physmem.
34738         * m4/physmem.m4: New file.
34739
34740         Module posixver.
34741         * m4/posixver.m4: New file.
34742
34743         Module quotearg.
34744         * m4/quotearg.m4: New file.
34745
34746         Module quote.
34747         * m4/quote.m4: New file.
34748
34749         Module readutmp.
34750         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
34751
34752         Module sig2str.
34753         * m4/sig2str.m4: New file.
34754
34755         Other.
34756         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
34757         ulonglong.m4.
34758         * m4/intmax_t.m4: New file.
34759         * m4/d-type.m4: Indentation.
34760         * m4/jm-macros.m4: Update.
34761         * m4/prereq.m4 (jm_PREREQ): Update.
34762         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
34763         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
34764         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
34765         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
34766         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
34767         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
34768         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
34769         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
34770         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
34771         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
34772         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
34773         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
34774         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
34775         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
34776         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
34777         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
34778         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
34779         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
34780         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
34781
34782 2002-12-24  Bruno Haible  <bruno@clisp.org>
34783
34784         * MODULES.txt: Update according to m4/ changes.
34785
34786         Module gettext.
34787         * config.rpath: New file, from gettext-0.11.5.
34788
34789         * modules/*: New module descriptions.
34790         * gnulib-tool: New file.
34791         * MODULES.html.sh: New file.
34792
34793 2002-12-21  Karl Berry  <karl@gnu.org>
34794
34795         * doc/fdl.texi: update to version 1.2.
34796
34797 2002-12-19  Karl Berry  <karl@gnu.org>
34798
34799         * config/config.guess: update from prep.
34800
34801 2002-12-18  Bruno Haible  <bruno@clisp.org>
34802
34803         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
34804         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
34805
34806 2002-12-17  Bruno Haible  <bruno@clisp.org>
34807
34808         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
34809         stdlib.h, string.h.
34810
34811 2002-12-17  Bruno Haible  <bruno@clisp.org>
34812
34813         * lib/canon-host.c (strdup): Remove unused declaration.
34814
34815         * lib/fsusage.c: Include full_read.h.
34816         (get_fs_usage): Use full_read instead of safe_read.
34817
34818         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
34819
34820 2002-12-12  Karl Berry  <karl@gnu.org>
34821
34822         * config/config.guess: update from prep.
34823
34824 2002-12-11  Bruno Haible  <bruno@clisp.org>
34825
34826         * m4/setenv.m4: New file, from gettext-0.11.5.
34827
34828 2002-12-11  Bruno Haible  <bruno@clisp.org>
34829
34830         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
34831         not unsetenv().
34832         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
34833         modifications:
34834
34835         2002-12-11  Bruno Haible  <bruno@clisp.org>
34836
34837                 * setenv.c (alloca): Fall back to malloc.
34838                 (freea): New macro.
34839                 (setenv): Use freea() to free memory allocated with alloca().
34840
34841         2002-11-13  Bruno Haible  <bruno@clisp.org>
34842
34843                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
34844                 function declarations.
34845                 * unsetenv.c (unsetenv): Likewise.
34846
34847         2002-03-04  Bruno Haible  <bruno@clisp.org>
34848
34849                 Portability to AIX 4.3.3.
34850                 * unsetenv.c: New file, extracted from setenv.c.
34851                 * setenv.c: Move the unsetenv() function to unsetenv.c.
34852
34853         2001-12-20  Bruno Haible  <bruno@clisp.org>
34854
34855                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
34856                 use malloc instead. For SunOS 4.
34857
34858         2001-12-11  Bruno Haible  <bruno@clisp.org>
34859
34860                 * setenv.c: Declare alloca.
34861                 (compar_fn_t): New typedef.
34862                 (KNOWN_VALUE, STORE_VALUE): Use it.
34863
34864         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
34865         setenv.h.
34866
34867 2002-12-10  Paul Eggert  <eggert@twinsun.com>
34868
34869         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
34870         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
34871         Choose values that are less likely to collide with system fnmatch
34872         options.
34873         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
34874         defined (e.g., a pure POSIX system).
34875         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
34876         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
34877
34878 2002-12-06  Paul Eggert  <eggert@twinsun.com>
34879
34880         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
34881         a pain in practice to deal with generated m4 files.  This change
34882         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
34883
34884         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
34885         and jm-glibc-io.m4, as they are no longer a special case.
34886         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
34887         kludge and the auto-generation stuff.  Check only whether the
34888         functions are declared, not whether they exist, since older hosts
34889         that don't declare the functions can't use the optimization anyway.
34890
34891 2002-12-06  Jim Meyering  <jim@meyering.net>
34892
34893         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
34894
34895         Merge in changes from libc's misc/error.c, in preparation
34896         for the merge of gnulib's changes back into libc.
34897
34898         * lib/error.c (_): Define only if not already defined.
34899         Move definition to follow all #include directives.
34900         Include unlocked-io.h only if !_LIBC.
34901         [_LIBC]: Include <libio/libioP.h>.
34902         [USE_IN_LIBIO]: Include <libio/iolibio.h>
34903         (fflush): Tweak definition to use INTUSE.
34904         (putc): Define.
34905
34906 2002-12-05  Paul Eggert  <eggert@twinsun.com>
34907
34908         * lib/alloca.c [defined emacs]: Include "lisp.h".
34909         (xalloc_die) [defined emacs]: New macro.
34910         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
34911         [! defined emacs]: Include <xalloc.h>.
34912         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
34913         (pointer): Typedef to POINTER_TYPE *.
34914         (malloc): Remove decl; we now always use xmalloc.
34915         (alloca): Use old-style definition, since Emacs needs this.
34916         Check for arithmetic overflow when computing combined size.
34917
34918 2002-12-04  Paul Eggert  <eggert@twinsun.com>
34919
34920         Do not generate unlocked-io.h automatically, since it's easier to
34921         maintain it by hand.
34922
34923         * lib/unlocked-io.h: New file, from GNU diffutils,
34924         but with proper copyright notice and attribution.
34925         * lib/gen-uio: Remove.
34926         * lib/Makefile.am: Add copyright notice.
34927         (libfetish_a_SOURCES): Add unlocked-io.h.
34928         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
34929         (DISTCLEANFILES, io_functions): Remove macros.
34930         (EXTRA_DIST): Remove gen_uio.
34931         (unlocked-io.h): Remove rule.
34932
34933 2002-12-04  Jim Meyering  <jim@meyering.net>
34934
34935         Reflect the fact that stat.c and lstat.c are no longer generated.
34936         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
34937         (DISTCLEANFILES): Likewise.
34938         (EXTRA_DIST): Likewise.
34939         (all_local): Don't depend on stat.c or lstat.c.
34940         (stat.c, lstat.c): Remove rules.
34941         (EXTRA_DIST): Remove xstat.in.
34942
34943         * lib/xstat.in: Remove file.  Contents moved into stat.c.
34944         * lib/stat.c: New file.  Contents mostly from xstat.in.
34945         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
34946         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
34947
34948         * lib/safe-read.c: Rework so that it may serve to define safe_write,
34949         too.
34950         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
34951
34952 2002-12-03  Jim Meyering  <jim@meyering.net>
34953
34954         * lib/safe-read.c, safe-write.c: Change variable names and comments,
34955         but not semantics, to minimize the differences between these two files.
34956         (safe_read): Change comment to mention SAFE_READ_ERROR.
34957
34958         * lib/safe-read.c (IS_EINTR): Define.
34959         (safe_read): Use IS_EINTR in place of in-function cpp directives.
34960
34961 2002-12-02  Jim Meyering  <jim@meyering.net>
34962
34963         * lib/safe-read.c (EINTR): Define.
34964         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
34965         (INT_MAX): Provide fallback.
34966         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
34967
34968         * lib/safe-read.h (SAFE_READ_ERROR): Define.
34969
34970 2002-12-02  Bruno Haible  <bruno@clisp.org>
34971
34972         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
34973         Define, taken from safe-read.c.
34974         (INT_MAX): Provide fallback.
34975         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
34976         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
34977
34978         * lib/safe-read.c (EINTR): Remove definition.
34979         (safe_read): Don't use EINTR if it is absent.
34980
34981 2002-12-01  Jim Meyering  <jim@meyering.net>
34982
34983         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
34984         zero.
34985         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
34986
34987 2002-11-27  Paul Eggert  <eggert@twinsun.com>
34988
34989         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
34990         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
34991         with `if (! (value < limit)) abort ();', for readability.
34992
34993 2002-11-26  Karl Berry  <karl@gnu.org>
34994
34995         * lib/strdup.c: copy from libc again, with jim's ok.
34996         * lib/.cppi-disable: re-add strdup.c
34997
34998 2002-11-25  Karl Berry  <karl@gnu.org>
34999
35000         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
35001         instead of "strtol.c".
35002
35003 2002-11-25  Karl Berry  <karl@gnu.org>
35004
35005         * config/install-sh: update from automake for variable quoting, $0 in
35006         error msgs, etc.
35007
35008         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
35009         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
35010         entry.
35011
35012 2002-11-25  Jim Meyering  <jim@meyering.net>
35013
35014         * lib/mktime.c: Sync from libc, now that it has the latest fix.
35015
35016 2002-11-24  Karl Berry  <karl@gnu.org>
35017
35018         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
35019         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
35020
35021 2002-11-24  Jim Meyering  <jim@meyering.net>
35022
35023         Update from coreutils:
35024
35025         * lib/mktime.c: Merge in changes from libc.
35026
35027         Avoid a link-time failure on some Linux systems.
35028         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
35029         (otherwise).
35030         (__mon_yday): Declare with the STATIC attribute.
35031         (__mktime_internal): Likewise.
35032         Based on a report from Greg Schafer.
35033
35034 2002-11-23  Jim Meyering  <jim@meyering.net>
35035
35036         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
35037         Use `unsigned', not `int', as type of index.
35038
35039         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
35040
35041         * lib/fsusage.c: Remove unneeded parentheses around operands of
35042         `defined'.
35043
35044 2002-11-22  Paul Eggert  <eggert@twinsun.com>
35045
35046         * lib/quotearg.h: Allow multiple inclusion by surrounding with
35047         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
35048         so that we can be included first.
35049         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
35050         * lib/quotearg.c: Include quotearg.h immediately after config.h.
35051         No need to include stddef.h or sys/types.h any more.
35052         Surround local include files with "", not "<>".
35053         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
35054         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
35055         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
35056         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
35057         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
35058         (ISPRINT): Remove; no longer needed now that we assume C89.
35059
35060         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
35061         Preserve errno.
35062
35063         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
35064         quotearg_char): Use SIZE_MAX rather than
35065         (size_t) -1 when we are talking about "infinity".
35066
35067         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
35068
35069 2002-11-22  Paul Eggert  <eggert@twinsun.com>
35070
35071         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
35072         hint that one should use `if (! x) abort ();' rather than `assert
35073         (x);', and anyway it's one less thing to worry about configuring.
35074         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
35075         hash_rehash, hash_insert): Use abort rather than assert.
35076
35077 2002-11-22  Bruno Haible  <bruno@clisp.org>
35078
35079         * lib/safe-read.h: Assume C89. Add comments.
35080         (safe_read): Change return type to size_t.
35081         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
35082         byte counts > SSIZE_MAX correctly.
35083         * lib/safe-write.h: New file.
35084         * lib/safe-write.c: New file.
35085         * lib/full-read.h: New file.
35086         * lib/full-read.c: New file.
35087         * lib/full-write.h: Assume C89. Add comments.
35088         * lib/full-write.c: Include safe-write.h.
35089         (full_write): Rewritten to use safe_write.
35090         Suggested by Jim Meyering and Paul Eggert.
35091
35092 2002-11-21  Jim Meyering  <jim@meyering.net>
35093
35094         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
35095
35096         Merge in changes from the coreutils.
35097
35098         2002-09-25  Paul Eggert  <eggert@twinsun.com>
35099         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
35100         <stdint.h>.
35101         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
35102         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
35103         int.  Work more efficiently if X is the same width as uintmax_t.
35104         Do not compare X to -1, to avoid bogus compiler warning.
35105         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
35106         Don't assume that f_frsize and f_bsize are the same type.
35107
35108         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
35109         warning on FreeBSD.
35110
35111         * lib/makepath.c (make_path): Restore umask *before* creating the final
35112         component.
35113         (make_path): Minor reformatting.
35114
35115         * lib/xmalloc.c: Adjust to work with new autoconf macros,
35116         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
35117         HAVE_MALLOC/HAVE_REALLOC.
35118
35119         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
35120         dummy ones.  At least on GNU/Linux systems, `auto' means something
35121         else.
35122         From Michael Stone.
35123
35124 2002-11-21  Bruno Haible  <bruno@clisp.org>
35125
35126         Remove case insensitive option matching.
35127         * lib/argmatch.h (argcasematch): Remove declaration.
35128         (ARGCASEMATCH): Remove macro.
35129         (__xargmatch_internal): Remove case_sensitive argument.
35130         (XARGMATCH): Update.
35131         (XARGCASEMATCH): Remove macro.
35132         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
35133         case_sensitive argument.
35134         (argcasematch): Remove function.
35135         (__xargmatch_internal): Remove case_sensitive argument.
35136         (main): Use XARGMATCH instead of XARGCASEMATCH.
35137
35138         * lib/xmalloc.c: Change compile-time error message. Add comment about
35139         required autoconf version.
35140
35141 2002-11-20  Paul Eggert  <eggert@twinsun.com>
35142
35143         Merge argmatch cleanups from Bison.  Assume C89.
35144
35145         * lib/argmatch.c: Include config.h here, not in argmatch.h.
35146         Include stdlib.h, for EXIT_FAILURE.
35147         Always include <string.h>, since we assume C89.
35148         (EXIT_FAILURE): Remove pre-C89 bug workaround.
35149         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
35150         Include <stddef.h> instead, since it's all we need for size_t.
35151         (PARAMS): Remove.  All uses removed.
35152         (ARRAY_CARDINALITY): Do not bother to #undef.
35153         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
35154         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
35155         Remove unnecessary parentheses.
35156         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
35157         Insert necessary parentheses.
35158         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
35159         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
35160
35161 2002-11-19  Bruno Haible  <bruno@clisp.org>
35162
35163         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
35164         * lib/mbswidth.h: Include <stddef.h>, for size_t.
35165
35166         * lib/mbswidth.h (PARAMS): Remove macro.
35167         (mbswidth, mbsnwidth): Use ANSI C function declarations.
35168         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
35169
35170         * lib/gcd.h (PARAMS): Remove macro.
35171         (gcd): Use ANSI C function declarations.
35172         * lib/gcd.c (gcd): Likewise.
35173
35174 2002-11-15  Bruno Haible  <bruno@clisp.org>
35175
35176         * lib/strcspn.c: Include <stddef.h>.
35177         (strcspn): Use ANSI C function declaration. Change return type to
35178         size_t. Use NULL.
35179         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
35180         (strpbrk): Use NULL.
35181         * lib/strpbrk.h (PARAMS): Remove macro.
35182         (strpbrk): Use ANSI C function declaration.
35183         * lib/strstr.c: Don't include <sys/types.h>.
35184         * lib/strstr.h (PARAMS): Remove macro.
35185         (strstr): Use ANSI C function declarations.
35186
35187 2002-11-14  Karl Berry  <karl@gnu.org>
35188
35189         * config/mkinstalldirs: `do' on separate line, instead of
35190         `for var; do'.
35191
35192 2002-11-06  Bruno Haible  <bruno@clisp.org>
35193
35194         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
35195         * lib/gcd.c (gcd): Likewise.
35196
35197 2002-11-05  Bruno Haible  <bruno@clisp.org>
35198
35199         * lib/gcd.h: New file, from gettext-0.11.5.
35200         * lib/gcd.c: New file, from gettext-0.11.5.
35201
35202 2002-11-05  Bruno Haible  <bruno@clisp.org>
35203
35204         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
35205         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
35206         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
35207         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
35208
35209         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
35210         <libintl.h>.
35211         * lib/makepath.c: Include gettext.h instead of <locale.h> and
35212         <libintl.h>.
35213
35214         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
35215         * lib/human.c: Include gettext.h instead of <libintl.h>.
35216         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
35217         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
35218         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
35219         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
35220         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
35221         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
35222         (textdomain): Remove definition.
35223         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
35224
35225         * lib/long-options.c: Remove include of <libintl.h> and definition of
35226         _.
35227         * lib/same.c: Remove include of <libintl.h> and definition of _.
35228
35229 2002-11-04  Owen Taylor  <otaylor@redhat.com>
35230
35231         * lib/config.charset: A few additions for Solaris.
35232
35233 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
35234
35235         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
35236         * lib/localcharset.c (locale_charset): Declare as extern "C".
35237
35238 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
35239
35240         * lib/config.charset: msdos in uk_UA uses CP1125.
35241
35242 2002-11-04  Bruno Haible  <bruno@clisp.org>
35243
35244         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
35245         * lib/strcase.h: New file, from GNU gettext-0.11.5.
35246         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
35247         * lib/strstr.h: New file, from GNU gettext-0.11.5.
35248         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
35249
35250 2002-11-04  Bruno Haible  <bruno@clisp.org>
35251
35252         * lib/localcharset.c (locale_charset): Don't return an empty string.
35253
35254 2002-11-04  Bruno Haible  <bruno@clisp.org>
35255
35256         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
35257         aliases.
35258
35259 2002-11-04  Bruno Haible  <bruno@clisp.org>
35260
35261         * lib/config.charset: Update for newest glibc. Add canonical names
35262         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
35263
35264 2002-11-04  Bruno Haible  <bruno@clisp.org>
35265
35266         * lib/config.charset: Add support for NetBSD.
35267
35268 2002-11-04  Bruno Haible  <bruno@clisp.org>
35269
35270         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
35271
35272 2002-11-01  Bruno Haible  <bruno@clisp.org>
35273
35274         * configure.in: Add AC_CONFIG_AUX_DIR call.
35275         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
35276         test/Makefile.
35277         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
35278
35279 2002-09-28  Karl Berry  <karl@gnu.org>
35280
35281         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
35282         installed automake until the next release, since changes have been
35283         made.
35284
35285 2002-09-25  Karl Berry  <karl@gnu.org>
35286
35287         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
35288         * lib/getopt*: copy from libc/posix.
35289         * lib/gettext.h: copy from gettext.
35290         * lib/.cppi-disable: add strdup.c, gettext.h.
35291
35292 2002-09-25  Karl Berry  <karl@gnu.org>
35293
35294         * config/srclist.txt: enable gettext.h check.
35295         * config/config.{guess,sub}: update from prep.
35296         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
35297                 from automake 1.6.3.
35298         See srclist*.
35299
35300 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
35301
35302         * regex.c (PATFETCH): Remove the translating fetch.
35303         (PATFETCH_RAW): Rename to PATFETCH.
35304         (set_image_of_range): New fun.
35305         (SET_RANGE_TABLE_WORK_AREA): Use it.
35306         (regex_compile): Don't translate the pattern chars so eagerly.
35307         Only do it when inserting an `exactn' bytecode or when handling
35308         a char-range.
35309         (mutually_exclusive_p): Avoid empty statement.
35310
35311 2002-07-06  Jim Meyering  <meyering@lucent.com>
35312
35313         * m4/README: Don't mention Makefile.am.in.
35314         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
35315
35316 2002-07-01  Jim Meyering  <meyering@lucent.com>
35317
35318         * lib/c-stack.c: Include sys/time.h.
35319         From Volker Borchert.
35320
35321 2002-06-26  Paul Eggert  <eggert@twinsun.com>
35322
35323         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
35324
35325 2002-06-26  Paul Eggert  <eggert@twinsun.com>
35326
35327         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
35328         New macro.  Use it uniformly instead of
35329         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
35330         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
35331         reported by Vin Shelton.
35332
35333 2002-06-22  Paul Eggert  <eggert@twinsun.com>
35334
35335         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
35336         Do not assume SA_SIGINFO behavior.
35337         Bug reported by Jim Meyering on NetBSD 1.5.2.
35338
35339 2002-06-22  Jim Meyering  <meyering@lucent.com>
35340
35341         * m4/c-stack.m4: New file, from diffutils-2.8.2.
35342         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
35343
35344         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
35345         now that configure.ac uses AC_GNU_SOURCE.
35346         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
35347         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
35348
35349         Update to latest tools.  Suggestions from Paul Eggert.
35350         * m4/stdbool.m4: New file, from diffutils-2.8.2.
35351         * m4/gnu-source.m4: Update from diffutils-2.8.2.
35352         * m4/fnmatch.m4: Likewise.
35353         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
35354         to AC_HEADER_STDBOOL
35355
35356 2002-06-22  Jim Meyering  <meyering@lucent.com>
35357
35358         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
35359         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
35360
35361 2002-06-22  Jim Meyering  <meyering@lucent.com>
35362
35363         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
35364
35365         * lib/exitfail.c, exitfail.h: Likewise.
35366         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
35367
35368         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
35369         of fnmatch.h.
35370         (EXTRA_DIST): Add fnmatch_loop.c.
35371         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
35372
35373         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
35374         * lib/fnmatch.c: Update from diffutils-2.8.2.
35375         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
35376         * lib/fnmatch.h: Remove file.
35377
35378 2002-06-21  Jim Meyering  <meyering@lucent.com>
35379
35380         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
35381         * m4/mbrtowc.m4: Likewise.
35382
35383         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
35384         * m4/mbswidth.m4: Reflect name change:
35385         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
35386         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
35387
35388         * m4/lib-link.m4: Update from gettext-0.11.2.
35389         * m4/gettext.m4: Likewise.
35390
35391         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
35392         From Alfred M. Szmidt.
35393
35394 2002-06-18  Paul Eggert  <eggert@twinsun.com>
35395
35396         * lib/file-type.h: Report an error if neither S_ISREG nor
35397         S_IFREG is defined, instead of using a test specific to glibc
35398         2.2.  This should be safe, since POSIX requires S_ISREG and
35399         Unix Version 7 had S_IFREG.  We don't need to check for
35400         <sys/types.h> since we don't use any symbols that it defines.
35401
35402 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
35403
35404         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
35405         $@-t, so that each temporary file name is unique and valid in the first
35406         8 characters, for operation under DOS.
35407
35408 2002-06-15  Paul Eggert  <eggert@twinsun.com>
35409
35410         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
35411
35412 2002-06-15  Jim Meyering  <meyering@lucent.com>
35413
35414         Work even with DJGPP 2.03, which lacks support for symlinks.
35415         From Richard Dawe.
35416         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
35417         is defined.
35418         * lib/lchown.c (S_ISLNK): Likewise.
35419
35420 2002-06-15  Jim Meyering  <meyering@lucent.com>
35421
35422         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
35423         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
35424         have been included before this file.
35425
35426 2002-06-14  Jim Meyering  <meyering@lucent.com>
35427
35428         * lib/file-type.h: Use the version from diffutils-2.8.2.
35429         * lib/file-type.c: Likewise.
35430
35431 2002-06-07  Jim Meyering  <meyering@lucent.com>
35432
35433         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
35434         They're needed at least for NetBSD 1.5.2.
35435         ($statxfs_includes): Include those same headers.
35436         ($statxfs_includes): Include sys/vfs.h if available.
35437         ($statxfs_includes): Likewise for sys/statvfs.h.
35438         Check for the following members in both structs statfs and statvfs:
35439         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
35440
35441 2002-06-01  Jim Meyering  <meyering@lucent.com>
35442
35443         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
35444         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
35445
35446 2002-05-28  Jim Meyering  <meyering@lucent.com>
35447
35448         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
35449         Reported by Volker Borchert.
35450
35451 2002-05-27  Jim Meyering  <meyering@lucent.com>
35452
35453         Fix a problem seen only on nonconforming systems whereby ls.c's
35454         use of localtime, and then of gettimeofday would cause trouble:
35455         the localtime call used to initialize rpl_gettimeofday's save
35456         mechanism would clobber ls's current local time information so
35457         that in any long listing the first file would always be listed
35458         with date 1970-01-01.  Analysis by Volker Borchert.
35459
35460         * lib/gettimeofday.c (localtime): Undefine.
35461         (rpl_localtime): New function.
35462
35463 2002-05-27  Jim Meyering  <meyering@lucent.com>
35464
35465         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
35466         localtime.
35467
35468         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
35469         use the replacement function; it wouldn't resolve at link time.
35470         Reported by Volker Borchert.
35471
35472 2002-05-22  Jim Meyering  <meyering@lucent.com>
35473
35474         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
35475         file-type.h.
35476         * lib/file-type.h: New file.
35477         * lib/file-type.c (file_type): New file/function.  Extracted from
35478         diffutils.
35479
35480 2002-04-30  Jim Meyering  <meyering@lucent.com>
35481
35482         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
35483
35484 2002-04-29  Paul Eggert  <eggert@twinsun.com>
35485
35486         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
35487
35488 2002-04-29  Paul Eggert  <eggert@twinsun.com>
35489
35490         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
35491         Do not check for alloca.h (no longer used) or stdbool.h (was never
35492         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
35493
35494 2002-04-29  Paul Eggert  <eggert@twinsun.com>
35495
35496         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
35497
35498 2002-04-29  Jim Meyering  <meyering@lucent.com>
35499
35500         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
35501         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
35502         Use AC_FUNC_STRNLEN here instead.
35503
35504         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
35505         With autoconf-2.53a, it's part of AC_PROG_CC.
35506
35507 2002-04-28  Paul Eggert  <eggert@twinsun.com>
35508
35509         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
35510         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
35511
35512 2002-04-28  Paul Eggert  <eggert@twinsun.com>
35513
35514         * lib/sig2str.h, lib/sig2str.c: New files.
35515         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
35516
35517 2002-04-28  Paul Eggert  <eggert@twinsun.com>
35518
35519         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
35520         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
35521         of 127, since 64 is the largest conceivable number for ancient
35522         nonstandard hosts.
35523         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
35524
35525 2002-04-28  Jim Meyering  <meyering@lucent.com>
35526
35527         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
35528
35529 2002-04-24  Jim Meyering  <meyering@lucent.com>
35530
35531         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
35532         (jm_PREREQ): Use it.
35533
35534         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
35535         mach/mach.h fcntl.h.
35536         Check for this function: setlocale.
35537
35538 2002-04-24  Jim Meyering  <meyering@lucent.com>
35539
35540         * lib/gettext.h: New file, from Gettext.
35541         * lib/Makefile.am (INCLUDES): Remove -I../intl.
35542         (libfetish_a_SOURCES): Add gettext.h.
35543
35544 2002-04-16  Jim Meyering  <meyering@lucent.com>
35545
35546         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
35547         ut_pid, ut_id, ut_exit.
35548
35549 2002-04-16  Jim Meyering  <meyering@lucent.com>
35550
35551         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
35552         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
35553         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
35554
35555 2002-04-12  Jim Meyering  <meyering@lucent.com>
35556
35557         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
35558         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
35559         existence of the getmntinfo function.  Needed for Darwin 5.3.
35560
35561         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
35562         This is necessary at least on Darwin 5.3.
35563
35564         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
35565         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
35566         strnlen.o in the library, and that makes some versions of ranlib
35567         object.
35568
35569 2002-04-12  Jim Meyering  <meyering@lucent.com>
35570
35571         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
35572
35573 2002-04-09  Jim Meyering  <meyering@lucent.com>
35574
35575         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
35576         to be more precise.  Rather than saying we're checking whether the
35577         function `works', say what we're testing.
35578         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
35579         Reported by Bruno Haible.
35580
35581 2002-03-10  Jim Meyering  <meyering@lucent.com>
35582
35583         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
35584         Suggestion from Santiago Vila.
35585
35586 2002-03-08  Jim Meyering  <meyering@lucent.com>
35587
35588         * lib/rename.c: Mention that this wrapper is needed also on
35589         mips-dec-ultrix4.4 systems.
35590
35591 2002-03-02  Jim Meyering  <meyering@lucent.com>
35592
35593         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
35594         not HAVE_CLOCK_SETTIME.
35595
35596 2002-02-27  Paul Eggert  <eggert@twinsun.com>
35597
35598         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
35599         Check for clock_settime.
35600
35601 2002-02-27  Paul Eggert  <eggert@twinsun.com>
35602
35603         * lib/nanosleep.h: Rename to....
35604         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
35605
35606         * lib/gettime.c: New file.
35607         * lib/settime.c: New file.
35608         * lib/stime.c: Remove.
35609
35610         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
35611         timespec.h.  Remove nanosleep.h.
35612
35613 2002-02-25  Paul Eggert  <eggert@twinsun.com>
35614
35615         * m4/acl.m4: New file.
35616         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
35617         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
35618
35619 2002-02-25  Paul Eggert  <eggert@twinsun.com>
35620
35621         * lib/acl.c, lib/acl.h: New files.
35622         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
35623
35624 2002-02-24  Jim Meyering  <meyering@lucent.com>
35625
35626         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
35627         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
35628         cause trouble.  Reported by Nelson Beebe.
35629
35630 2002-02-23  Paul Eggert  <eggert@twinsun.com>
35631
35632         * lib/path-concat.c (xpath_concat): Reorder code to pacify
35633         compilers that don't know that xalloc_die never returns.
35634
35635 2002-02-20  Jim Meyering  <meyering@lucent.com>
35636
35637         * lib/getdate.c: Regenerate using bison-1.33.
35638
35639 2002-02-17  Jim Meyering  <meyering@lucent.com>
35640
35641         * config/config.guess (main): Don't use `head -1'; it's no longer
35642         portable. Use `sed 1q' instead.
35643
35644 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
35645
35646         * m4/codeset.m4: Upgrade to gettext-0.11.
35647         * m4/gettext.m4: Upgrade to gettext-0.11.
35648         * m4/glibc21.m4: Upgrade to gettext-0.11.
35649         * m4/iconv.m4: Upgrade to gettext-0.11.
35650         * m4/isc-posix.m4: Upgrade to gettext-0.11.
35651         * m4/lcmessage.m4: Upgrade to gettext-0.11.
35652         * m4/lib-ld.m4: New file, from gettext-0.11.
35653         * m4/lib-link.m4: New file, from gettext-0.11.
35654         * m4/lib-prefix.m4: New file, from gettext-0.11.
35655         * m4/progtest.m4: Upgrade to gettext-0.11.
35656
35657 2002-02-15  Paul Eggert  <eggert@twinsun.com>
35658
35659         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
35660         (jm_PREREQ): Use it.
35661
35662 2002-02-15  Paul Eggert  <eggert@twinsun.com>
35663
35664         * lib/posixver.c, lib/posixver.h: New files.
35665         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
35666
35667 2002-02-02  Paul Eggert  <eggert@twinsun.com>
35668             Bruno Haible  <bruno@clisp.org>
35669
35670         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
35671         (fwrite_success_callback): New declaration.
35672         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
35673         print_unicode_char. Call failure callback instead of error.
35674         (fwrite_success_callback): New function.
35675         (exit_failure_callback): New function.
35676         (fallback_failure_callback): New function.
35677         (print_unicode_char): Call unicode_to_mb.
35678
35679 2002-01-26  Jim Meyering  <meyering@lucent.com>
35680
35681         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
35682         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
35683
35684 2002-01-26  Jim Meyering  <meyering@lucent.com>
35685
35686         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
35687
35688 2002-01-22  Paul Eggert  <eggert@twinsun.com>
35689
35690         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
35691
35692 2002-01-22  Jim Meyering  <meyering@lucent.com>
35693
35694         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
35695         Otherwise, some versions of automake would omit the rule that makes
35696         Makefile from Makefile.in.
35697
35698 2002-01-21  Paul Eggert  <eggert@twinsun.com>
35699
35700         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
35701         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
35702         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
35703         (memcoll): Set errno to zero if there is no error.
35704
35705         * lib/quotearg.c (quotearg_buffer_restyled):
35706         Fix bug with quoting buffers containing NUL when backslashing escapes.
35707         This bug was exposed by the other changes in this patch.
35708         (quotearg_n_options): New arg ARGSIZE.
35709         All callers changed.
35710         (quoting_options_from_style): New function.
35711         (quotearg_n_style): Use it.
35712         (quotearg_n_style_mem): New function.
35713
35714         * lib/quotearg.h (quotearg_n_style_mem): New function.
35715
35716 2002-01-19  Jim Meyering  <meyering@lucent.com>
35717
35718         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
35719         Remove useless quotes: DF_PROG="df".
35720         * m4/strnlen.m4: New file.
35721
35722 2002-01-16  Paul Eggert  <eggert@twinsun.com>
35723
35724         * lib/backupfile.c (ISDIGIT): Comment fix.
35725         * lib/getdate.y (ISDIGIT): Likewise.
35726         * lib/posixtm.c (ISDIGIT, year): Likewise.
35727         * lib/strverscmp.c (ISDIGIT): Likewise.
35728         * lib/userspec.c (ISDIGIT): Likewise.
35729
35730 2002-01-16  Jim Meyering  <meyering@lucent.com>
35731
35732         * lib/getdate.y: Add three semicolons, each just before a closing
35733         brace. Bison (as of version 1.31) no longer papers over that mistake.
35734
35735 2002-01-05  Jim Meyering  <meyering@lucent.com>
35736
35737         * lib/version-etc.c (version_etc_copyright): Update copyright year.
35738
35739 2001-12-19  Paul Eggert  <eggert@twinsun.com>
35740
35741         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
35742         not silently exit merely because the output buffer happens to
35743         have nothing pending.
35744
35745 2001-12-18  Paul Eggert  <eggert@twinsun.com>
35746
35747         See the big note in ../ChangeLog.
35748         * lib/human.c (suffixes): Prefer K to k for 1024.
35749         (generate_suffix_backwards): New function.
35750         (human_readable_inexact): Use it.
35751         * lib/xstrtol.c (__xstrtol): If there is no number but there
35752         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
35753         Accept 'K' as well as 'k'.
35754
35755 2001-12-15  Jim Meyering  <meyering@lucent.com>
35756
35757         * lib/regex.h (__restrict_arr): Update from libc.
35758
35759         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
35760         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
35761         (STREQ): Define.
35762
35763 2001-12-14  Jim Meyering  <meyering@lucent.com>
35764
35765         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
35766         Suggestion from Bruno Haible.
35767
35768 2001-12-10  Jim Meyering  <meyering@lucent.com>
35769
35770         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
35771         xrealloc, Instead, include "xalloc.h".
35772         (initbuffer): Don't cast xmalloc return value to char*.
35773         (readline): Reword comment.
35774         Don't cast xrealloc return value to char*
35775         Return NULL, not 0.
35776
35777 2001-12-09  Jim Meyering  <meyering@lucent.com>
35778
35779         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
35780         about `signed and unsigned type in conditional expression'.
35781         * lib/posixtm.c (posix_time_parse): Likewise.
35782
35783         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
35784
35785         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
35786         to avoid a pedantic warning.
35787
35788         * lib/getstr.c: Don't include assert.h.
35789         (getstr): Remove warning-evoking assertions.
35790         Return -1 if offset parameter is out of bounds.
35791         Change the type of a local from int to size_t.
35792
35793         * lib/strftime.c (my_strftime_localtime_r): Include this function
35794         definition in the `#if ! HAVE_TM_GMTOFF' block.
35795
35796         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
35797         Include xalloc.h instead.
35798
35799 2001-12-02  Jim Meyering  <meyering@lucent.com>
35800
35801         * lib/tempname.c: Don't declare getenv, thus reverting the change of
35802         2001-11-18.  It's no longer necessary, now that stdlib.h is always
35803         included.
35804
35805         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
35806         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
35807
35808 2001-11-30  Akim Demaille  <akim@epita.fr>
35809
35810         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
35811         before being defined.
35812
35813 2001-11-27  Paul Eggert  <eggert@twinsun.com>
35814
35815         * lib/quotearg.h (quotearg_n, quotearg_n_style):
35816         First arg is int, not unsigned.
35817         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
35818         (SIZE_MAX, UINT_MAX): New macros.
35819         (quotearg_n_options): Abort if N is negative.
35820         Avoid overflow check on hosts where size_t is 64 bits and int
35821         is 32 bits, as overflow is impossible there.
35822         Fix off-by-one typo that caused unnecessary reallocation.
35823
35824 2001-11-27  Jim Meyering  <meyering@lucent.com>
35825
35826         * lib/tempname.c: Merge with version from libc.
35827         * lib/regex.c: Likewise.
35828
35829         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
35830         systems for which STDC_HEADERS is 0, it was not included, resulting in
35831         a warning about an integer-to-pointer conversion problem with getenv.
35832         Reported by Volker Borchert.
35833
35834 2001-11-26  Jim Meyering  <meyering@lucent.com>
35835
35836         * lib/gtod.h: Remove file.
35837         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
35838         * lib/gettimeofday.c: Don't include gtod.h.
35839         (GTOD_init): Remove function.
35840         (rpl_gettimeofday): Do its job here instead, rather than aborting.
35841         Suggestion from Volker Borchert.
35842
35843 2001-11-23  Jim Meyering  <meyering@lucent.com>
35844
35845         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
35846         it.
35847         * lib/hash.c (struct hash_table): Define it here instead.
35848
35849 2001-11-22  Jim Meyering  <meyering@lucent.com>
35850
35851         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
35852
35853 2001-11-20  Jim Meyering  <meyering@lucent.com>
35854
35855         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
35856         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
35857
35858 2001-11-19  Jim Meyering  <meyering@lucent.com>
35859
35860         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
35861         directory.  Use "conftestXXXXXX" as the template.
35862         Suggestion from Paul Eggert.
35863
35864         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
35865         immediately, so the test doesn't mistakenly hit the max-open-files
35866         limit.
35867
35868 2001-11-18  Paul Eggert  <eggert@twinsun.com>
35869
35870         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
35871         (TEMPORARIES): New macro.
35872         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
35873         removes an artificial limitation (e.g. HP-UX 10.20, where
35874         TMP_MAX is 17576).
35875
35876 2001-11-18  Jim Meyering  <meyering@lucent.com>
35877
35878         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
35879
35880 2001-11-18  Jim Meyering  <meyering@lucent.com>
35881
35882         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
35883         on SunOS 4.
35884
35885         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
35886         files will be created before anything else.
35887
35888 2001-11-17  Paul Eggert  <eggert@twinsun.com>
35889
35890         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
35891         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
35892
35893 2001-11-17  Jim Meyering  <meyering@lucent.com>
35894
35895         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
35896         Prompted by a report from Bob Proulx.
35897
35898         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
35899         Instead, require UTILS_FUNC_MKSTEMP.
35900
35901 2001-11-17  Jim Meyering  <meyering@lucent.com>
35902
35903         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
35904         Now, that's done as part of AC_FUNC_STRTOD.
35905
35906 2001-11-17  Jim Meyering  <meyering@lucent.com>
35907
35908         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
35909         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
35910         rather than group writable.  Patch by Juan F. Codagnone.
35911
35912         * lib/readtokens.c: Remove explicit declarations of xmalloc and
35913         xrealloc, Instead, include "xalloc.h".
35914
35915         * lib/mountlist.c: Include unlocked-io.h after all system headers.
35916         Remove explicit declarations of xmalloc, xrealloc,
35917         and xstrdup.  Instead, include "xalloc.h".
35918
35919         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
35920         unlocked-io.h.
35921         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
35922         Likewise.
35923         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
35924
35925         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
35926         Reported by Padraig Brady.
35927
35928         * lib/mkstemp.c: #undef mkstemp.
35929         Include config.h.
35930         (rpl_mkstemp): Rename from mkstemp.
35931         Protoize.
35932
35933 2001-11-16  Jim Meyering  <meyering@lucent.com>
35934
35935         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
35936         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
35937         determine the amount of total physical memory, use pstat_getstatic.
35938         HPUX-11 doesn't define _SC_PHYS_PAGES.
35939         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
35940         If sysconf couldn't be used to determine the amount of available
35941         physical memory, use both pstat_getstatic and pstat_getdynamic.
35942         Based on a patch from Bob Proulx.
35943
35944 2001-11-10  Jim Meyering  <meyering@lucent.com>
35945
35946         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
35947         (jm_PREREQ): Use it.
35948
35949 2001-11-09  Jim Meyering  <meyering@lucent.com>
35950
35951         * m4/jm-macros.m4: Require autoconf-2.52f.
35952         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
35953         Use these AC_-prefixed names, not the AM_-prefixed ones.
35954
35955         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
35956
35957 2001-11-05  Jim Meyering  <meyering@lucent.com>
35958
35959         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
35960
35961 2001-11-04  Jim Meyering  <meyering@lucent.com>
35962
35963         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
35964         $DEFS.
35965
35966 2001-11-03  Jim Meyering  <meyering@lucent.com>
35967
35968         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
35969         of AC_DEFUN.
35970
35971         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
35972         know the name of the variable in the macro definition.
35973
35974 2001-11-03  Jim Meyering  <meyering@lucent.com>
35975
35976         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
35977         in argmatch_to_argument call.
35978
35979         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
35980         argument.
35981
35982         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
35983         e.g., a fault due to an attempt to free a NULL pointer.
35984
35985 2001-11-01  Jim Meyering  <meyering@lucent.com>
35986
35987         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
35988         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
35989
35990 2001-11-01  Jim Meyering  <meyering@lucent.com>
35991
35992         * lib/dirfd.c, lib/dirfd.h: New files.
35993         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
35994
35995         * lib/hash.c (hash_print) [TESTING]: Clean up.
35996
35997 2001-10-22  Paul Eggert  <eggert@twinsun.com>
35998
35999         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
36000         to avoid a warning if -Wall.
36001
36002 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
36003
36004         * README: New file
36005         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
36006         (per RMS's instructions, this is now the canonical source)
36007         * lgpl/, gpl/: New directories.
36008
36009 2001-10-21  Paul Eggert  <eggert@twinsun.com>
36010
36011         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
36012
36013 2001-10-21  Jim Meyering  <meyering@lucent.com>
36014
36015         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
36016         this code would end up calling gettext even in packages built
36017         with --disable-nls.
36018         * lib/getopt.c (_): Likewise.
36019         * lib/regex.c (_): Likewise.
36020
36021 2001-10-20  Paul Eggert  <eggert@twinsun.com>
36022
36023         * m4/error.m4 (jm_PREREQ_ERROR):
36024         Do not invoke AC_CHECK_FUNCS with strerror_r, as
36025         AC_FUNC_STRERROR_R does that.
36026         Check for strerror declaration.
36027
36028         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
36029         are supposed to have them these days.
36030         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
36031         Merge changes from latest Autoconf CVS.
36032         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
36033         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
36034         POSIX decided to standardize on the int flavor of strerror_r.
36035
36036 2001-10-20  Paul Eggert  <eggert@twinsun.com>
36037
36038         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
36039         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
36040         Use strerror_r that is only a macro, even if it is not a function.
36041         (strerror): Check for HAVE_DECL_STRERROR before declaring.
36042         (private_strerror): Use prototypes, not old-style function definition.
36043         (print_errno_message): New function.
36044         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
36045         char*-flavored one.
36046         (error_tail, error, error_at_line): Use it.
36047
36048 2001-10-11  Jim Meyering  <meyering@lucent.com>
36049
36050         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
36051         and quote_n (1, ... to avoid clobbering a buffer.
36052
36053 2001-10-05  Jim Meyering  <meyering@lucent.com>
36054
36055         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
36056         hash-pjw.h.
36057         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
36058         * lib/hash-pjw.h: New file.
36059
36060 2001-09-30  Jim Meyering  <meyering@lucent.com>
36061
36062         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
36063         `struct fsstat' has the `f_fstypename' member.
36064         Use that to define FS_TYPE, which is now used to make
36065         the getfsstat link test tighter.
36066
36067 2001-09-30  Jim Meyering  <meyering@lucent.com>
36068
36069         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
36070         Include <sys/ucred.h>, for Apple Darwin.
36071         Include sys/mount.h and sys/fs_types.h only if available.
36072         (FS_TYPE): Define.
36073         (read_filesystem_list): Use FS_TYPE.
36074
36075 2001-09-29  Paul Eggert  <eggert@twinsun.com>
36076
36077         * lib/exclude.c (excluded_filename): 0 -> false, since it's
36078         a boolean context.
36079
36080 2001-09-29  Jim Meyering  <meyering@lucent.com>
36081
36082         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
36083         [one-argument getmntent function]): Include stdio.h before mntent.h.
36084         SunOS 4.1.x needs it for the declaration of `FILE'.
36085         Patch by Volker Borchert.
36086
36087         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
36088         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
36089         sys/fs_types.h, and make the link-test for getfsstat guard #include
36090         directives with appropriate #if HAVE_*_H tests so that we can
36091         detect getfsstat on Apple Darwin1.3.7 systems.
36092         Reported by Nelson Beebe.
36093         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
36094
36095 2001-09-28  Paul Eggert  <eggert@twinsun.com>
36096
36097         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
36098         #defines strtoimax.  Also treat the other strto* functions
36099         like strtoimax.
36100
36101         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
36102         Check for strtoul and strtoumax,
36103         as those declarations are made even in the signed case.
36104         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
36105         Likewise, for strtol and strtoimax.
36106
36107 2001-09-28  Paul Eggert  <eggert@twinsun.com>
36108
36109         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
36110         #defines strtoimax.  Also treat the other strto* functions
36111         like strtoimax.
36112
36113         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
36114         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
36115         (strtoimax, strtoumax): Do not declare if already defined as a macro.
36116
36117 2001-09-26  Jim Meyering  <meyering@lucent.com>
36118
36119         Most macros in unlocked-io.h had the wrong number of arguments.
36120         * lib/gen-uio: New script.
36121         (USE_UNLOCKED_IO): Define to 1 if not already defined.
36122         * lib/unlocked-io.hin: Remove file.
36123         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
36124         rather than trying to embed it here.
36125         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
36126         Reported by Padraig Brady.
36127
36128 2001-09-25  Volker Borchert  <bt@teknon.de>
36129
36130         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
36131         `result'.
36132
36133 2001-09-24  Jim Meyering  <meyering@lucent.com>
36134
36135         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
36136
36137 2001-09-23  Jim Meyering  <meyering@lucent.com>
36138
36139         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
36140         instead of the mere test for existence of mntent.h.  The latter
36141         would get a false-positive on AIX 3.4 systems.
36142         In the outer getmntent if-block, don't die if neither of the getmntent
36143         tests succeeds.  Instead, just fall through and continue with the
36144         remaining tests.
36145
36146 2001-09-23  Jim Meyering  <meyering@lucent.com>
36147
36148         * lib/mountlist.c: Remove useless parentheses in #if directives.
36149         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
36150         the deprecated MOUNTED symbol is no longer defined in mntent.h.
36151
36152 2001-09-22  Jim Meyering  <meyering@lucent.com>
36153
36154         * m4/gettext.m4: New file.  From gettext.
36155         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
36156         * m4/progtest.m4: Likewise
36157         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
36158         * m4/glibc21.m4: Likewise.
36159
36160         * m4/libintl.m4: Remove.  No longer used.
36161
36162 2001-09-22  Jim Meyering  <meyering@lucent.com>
36163
36164         * lib/localcharset.c: Update from latest gettext.
36165         * lib/config.charset: Likewise.
36166
36167 2001-09-20  Jim Meyering  <meyering@lucent.com>
36168
36169         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
36170         strtoimax.
36171         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
36172         strtoumax.
36173
36174 2001-09-20  Jim Meyering  <meyering@lucent.com>
36175
36176         * lib/xstrtol.c (strtoimax): Guard declaration with
36177         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
36178         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
36179         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
36180         (strtoumax): Likewise, for completeness (it wasn't necessary).
36181
36182 2001-09-17  Paul Eggert  <eggert@twinsun.com>
36183
36184         * lib/strtoimax.c (HAVE_LONG_LONG):
36185         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
36186         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
36187         to work around bug in IBM C compiler.
36188
36189 2001-09-17  Jim Meyering  <meyering@lucent.com>
36190
36191         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
36192         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
36193         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
36194         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
36195         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
36196         whenever the right hand side need not be expanded by the shell.
36197
36198 2001-09-16  Paul Eggert  <eggert@twinsun.com>
36199
36200         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
36201         library.  It's not correct, as some older glibcs are buggy.
36202         fnmatch wasn't fixed until glibc 2.2.
36203
36204         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
36205         special shell magic here.
36206
36207 2001-09-16  Jim Meyering  <meyering@lucent.com>
36208
36209         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
36210         * m4/jm-macros.m4: Require it.
36211
36212 2001-09-16  Jim Meyering  <meyering@lucent.com>
36213
36214         * lib/mkdir.c: New file.
36215
36216 2001-09-15  Jim Meyering  <meyering@lucent.com>
36217
36218         * m4/jm-macros.m4: Check for help2man.
36219
36220 2001-09-11  Jim Meyering  <meyering@lucent.com>
36221
36222         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
36223         The body, by Paul Eggert, was moved here from configure.in.
36224         * m4/jm-macros.m4: Require UTILS_HOST_OS.
36225
36226 2001-09-04  Paul Eggert  <eggert@twinsun.com>
36227
36228         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
36229         (jm_PREREQ): Use it.
36230
36231 2001-09-04  Paul Eggert  <eggert@twinsun.com>
36232
36233         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
36234         Use ssize_t, not int, to store result of readlink.
36235         Check for ssize_t overflow as well as size_t overflow,
36236         as POSIX says the result of readlink is implementation-defined
36237         when ssize_t overflows.
36238         Remove unnecessary cast to char*.
36239         Use free+malloc instead of realloc, as the storage doesn't need
36240         to be preserved and it's clearer and can be more efficient that way.
36241         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
36242         * lib/xreadlink.h (xreadlink): Update prototype.
36243
36244 2001-09-04  Paul Eggert  <eggert@twinsun.com>
36245
36246         * lib/xgetcwd.c: Revert some of the previous change; intead,
36247         fix the HAVE_GETCWD_NULL code to behave more like the
36248         !HAVE_GETCWD_NULL code used to.
36249
36250         Include "xalloc.h".
36251         (xgetcwd): Do not return NULL when memory is exhausted; instead,
36252         invoke xalloc_die.
36253
36254 2001-09-03  Paul Eggert  <eggert@twinsun.com>
36255
36256         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
36257         sys/param.h, as pathmax.h includes them.
36258
36259 2001-09-03  Paul Eggert  <eggert@twinsun.com>
36260
36261         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
36262         (jm_PREREQ_XGETCWD): New macro.
36263
36264         * m4/getcwd.m4: New file.
36265
36266 2001-09-03  Paul Eggert  <eggert@twinsun.com>
36267
36268         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
36269         like the HAVE_GETCWD_NULL code.
36270         Include pathmax.h if not HAVE_GETCWD.
36271         Do not include xalloc.h.
36272         (INITIAL_BUFFER_SIZE): New symbol.
36273         Do not use xmalloc / xrealloc, since the caller is responsible for
36274         handling errors.  Preserve errno around `free' during failure.
36275         Do not overrun buffer when using getwd.
36276
36277 2001-09-03  Paul Eggert  <eggert@twinsun.com>
36278
36279         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
36280         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
36281         getcwd (NULL, 0).
36282
36283 2001-09-03  Paul Eggert  <eggert@twinsun.com>
36284
36285         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
36286         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
36287         spotted by Jim Meyering.
36288
36289 2001-09-03  Jim Meyering  <meyering@lucent.com>
36290
36291         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
36292         failure.
36293
36294 2001-09-02  Jim Meyering  <meyering@lucent.com>
36295
36296         * lib/error.c: Update from GNU libc.
36297
36298 2001-09-01  Jim Meyering  <meyering@lucent.com>
36299
36300         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
36301         Used by df.
36302
36303 2001-09-01  Jim Meyering  <meyering@lucent.com>
36304
36305         * lib/xreadlink.c: New file.
36306         * lib/xreadlink.h: New file.
36307         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
36308         xreadlink.h.
36309
36310         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
36311         doesn't conflict with sparc Solaris 7's definition in
36312         /usr/include/sys/int_types.h.
36313
36314         * lib/exclude.c: Use `""', not `<>' to #include non-system header
36315         files.
36316         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
36317         and strncasecmp as r-values.  Unixware didn't have declarations.
36318
36319 2001-08-31  Paul Eggert  <eggert@twinsun.com>
36320
36321         * lib/xstrtol.h: Add copyright notice.
36322         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
36323         LONGINT_INVALID_SUFFIX_CHAR.
36324
36325 2001-08-31  Paul Eggert  <eggert@twinsun.com>
36326
36327         * lib/xstrtol.c (strtoimax): New decl.
36328
36329 2001-08-31  Paul Eggert  <eggert@twinsun.com>
36330
36331         * lib/xgetcwd.c: Don't include pathmax.h.
36332         Include stdlib.h and unistd.h if available.
36333         Include xalloc.h.
36334         (xmalloc, xstrdup, free): Remove decls.
36335         (xgetcwd): Don't assume sizes fit in unsigned.
36336         Check for overflow when computing sizes.
36337         Simplify reallocation code.
36338
36339 2001-08-31  Paul Eggert  <eggert@twinsun.com>
36340
36341         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
36342         a directory's st_size can have an arbitrary value, so the old
36343         usage could waste an arbitrary amount of memory.  All uses
36344         changed.
36345         * lib/savedir.h: Update prototype.
36346
36347 2001-08-31  Paul Eggert  <eggert@twinsun.com>
36348
36349         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
36350
36351         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
36352         old strtoimax.c.
36353
36354         Also, make the following further changes to make this file's
36355         configuration more similar to that of strtol.c:
36356         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
36357         (strtoumax, uintmax_t, strtoull, strtol): Remove.
36358         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
36359         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
36360         changed to signed values.
36361
36362         And make the following changes as well:
36363         Fix copyright notice, as 1999 was missing.
36364         (verify): New macro.
36365         (strtoimax): Check sizes at compile-time, not run-time.
36366         Prefer strtol to strtoll if both work.
36367         (main): Remove; it was not that useful and was a pain to maintain.
36368
36369         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
36370
36371 2001-08-31  Jim Meyering  <meyering@lucent.com>
36372
36373         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
36374         Use an initial, malloc'd, buffer of length 128 rather than
36375         a statically allocated one of length 1024.
36376
36377 2001-08-30  Paul Eggert  <eggert@twinsun.com>
36378
36379         Simplify code, partly by assuming autoconf 2.52 semantics.
36380
36381         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
36382
36383         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
36384         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
36385         All uses removed.
36386         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
36387         Move AC_REQUIRE to next-to-top level, to avoid confusion.
36388         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
36389         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
36390         jm_AC_HEADER_INTTYPES_H.
36391         * m4/jm-macros.m4 (jm_MACROS): Likewise.
36392
36393         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
36394
36395         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
36396         Quote first arg of AC_DEFUN.
36397         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
36398         since they are needed to parse the include file even if we need
36399         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
36400         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
36401         but with opposite signedness.
36402
36403 2001-08-30  Paul Eggert  <eggert@twinsun.com>
36404
36405         Merge 'exclude' changes from tar 1.13.22.
36406         This fixes one or two unlikely storage allocation overflow bugs,
36407         but doesn't change user-visible behavior otherwise.
36408
36409 2001-08-30  Paul Eggert  <eggert@twinsun.com>
36410
36411         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
36412         (jm_PREREQ_EXCLUDE): New macro.
36413
36414 2001-08-30  Paul Eggert  <eggert@twinsun.com>
36415
36416         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
36417         tm to be declared.
36418
36419 2001-08-30  Paul Eggert  <eggert@twinsun.com>
36420
36421         * lib/hash.c: Remove '2001' from copyright notice.
36422
36423 2001-08-30  Paul Eggert  <eggert@twinsun.com>
36424
36425         * lib/full-write.h: New file.
36426         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
36427         * lib/full-write.c: Correct credits, as cccp.c no longer
36428         exists and anyway it was so heavily changed from the old cccp
36429         code as to be unrecognizable.  Include full-write.h.
36430         (full_write) Return size_t, with short writes meaning failure.
36431         All callers changed.  This fixes a bug with large buffers
36432         on 64-bit hosts.
36433         * lib/utime.c: Include full-write.h.
36434
36435 2001-08-30  Paul Eggert  <eggert@twinsun.com>
36436
36437         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
36438         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
36439         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
36440         Include if available.
36441         (<xalloc.h>): Include
36442         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
36443         (verify): New macro.  Use it to verify that EXCLUDE macros do not
36444         collide with FNM macros.
36445         (struct patopts): New struct.
36446         (struct exclude): Use it, as exclude patterns now come with options.
36447         (new_exclude): Support above changes.
36448         (new_exclude, add_exclude_file):
36449         Initial size must now be a power of two to simplify overflow checking.
36450         (free_exclude, fnmatch_no_wildcards): New function.
36451         (excluded_filename): No longer requires options arg, as the options
36452         are determined by add_exclude.  Now returns bool, not int.
36453         (excluded_filename, add_exclude):
36454         Add support for the fancy new exclusion options.
36455         (add_exclude, add_exclude_file): Now takes int options arg.
36456         Check for arithmetic overflow when computing sizes.
36457         (add_exclude_file): xrealloc might modify errno, so don't
36458         realloc until after errno might be used.
36459
36460         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
36461         New macros.
36462         (free_exclude): New decl.
36463         (add_exclude, add_exclude_file): Now takes int options arg.
36464         (excluded_filename): No longer requires options arg, as the options
36465         are determined by add_exclude.  Now returns bool, not int.
36466
36467 2001-08-30  Paul Eggert  <eggert@twinsun.com>
36468
36469         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
36470
36471 2001-08-27  Jim Meyering  <meyering@lucent.com>
36472
36473         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
36474
36475         * lib/version-etc.c (N_): Remove definition.
36476         Revert most of last change.
36477         Instead, simply don't mark the `Copyright...' string for translation.
36478         Based on advice from Paul Eggert.
36479
36480         * lib/strtoxmax.c: Tweak comment.
36481
36482 2001-08-26  Jim Meyering  <meyering@lucent.com>
36483
36484         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
36485
36486         * m4/xstrtoimax.m4: New file.
36487         * m4/xstrtoumax.m4: Add comments explaining why we
36488         AC_REPLACE_FUNCS(strtol).
36489
36490 2001-08-26  Jim Meyering  <meyering@lucent.com>
36491
36492         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
36493         of copyright with `%s' so translators don't get an untranslated
36494         message in 2002.
36495         (COPYRIGHT_YEAR): Define.
36496         (version_etc): Use fprintf rather than fputs.
36497         Suggestion from Ulrich Drepper.
36498
36499         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
36500
36501         * lib/strtoll.c: New file, from GNU libc.
36502         * lib/xstrtoimax.c: New file.
36503
36504         * lib/xstrtol.h: Add xstrtoimax.
36505         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
36506         * lib/strtoimax.c: New file.  Likewise, but first define
36507         STRTOUXMAX_SIGNED.
36508
36509         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
36510         ...
36511         * lib/strtoxmax.c: ... then renamed to this.
36512
36513 2001-08-18  Paul Eggert  <eggert@twinsun.com>
36514
36515         * m4/inttypes.m4: Add AC_PREREQ(2.13).
36516         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
36517         (jm_AC_TYPE_INTMAX_T): New macro.
36518         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
36519
36520         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
36521
36522         * m4/longlong.m4: Renamed from ulonglong.m4.
36523         * m4/inttypes.m4: Renamed from inttypes_h.m4.
36524         * m4/uintmax_t.m4: Removed.
36525
36526 2001-08-13  Paul Eggert  <eggert@twinsun.com>
36527
36528         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
36529         Port to Solaris 8, where 'sed' requires a space after the 'r'
36530         command, and where sh dislikes "$/".  Clean up the spacing a bit.
36531         Redirect output to $tmp just once.
36532
36533 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
36534
36535         * lib/addext.c (<errno.h>): Include.
36536         (errno): Declare if not defined.
36537         (addext): Work correctly when pathconf returns -1 and leaves
36538         errno alone because there is no limit.  Also, work even if
36539         pathconf returns a value greater than SIZE_MAX.
36540
36541 2001-08-12  Jim Meyering  <meyering@lucent.com>
36542
36543         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
36544         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
36545         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
36546         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
36547         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
36548         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
36549         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
36550         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
36551         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
36552         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
36553         utime.m4, utimes.m4, xstrtoumax.m4:
36554         Quote the first argument in each use of AC_DEFUN.
36555
36556 2001-08-12  Jim Meyering  <meyering@lucent.com>
36557
36558         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
36559         Simply `return getcwd (NULL, 0);'.
36560         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
36561         Use 1300 as initial value for length, not PATH_MAX.
36562
36563         * lib/pathmax.h: Clean up cpp syntax.
36564
36565 2001-08-12  Jim Meyering  <meyering@lucent.com>
36566
36567         * lib/gettimeofday.c: New file.
36568         * lib/gtod.h: New file.
36569         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
36570
36571 2001-08-05  Jim Meyering  <meyering@lucent.com>
36572
36573         * m4/jm-macros.m4: Require autoconf-2.52.
36574
36575 2001-08-04  Jim Meyering  <meyering@lucent.com>
36576
36577         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
36578         stmt, to get in sync with glibc.
36579
36580 2001-08-03  Paul Eggert  <eggert@twinsun.com>
36581
36582         The following changes are from gettext 0.10.39 as maintained by
36583         Bruno Haible.
36584
36585         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
36586         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
36587         with inverted sense.  All uses changed.
36588
36589         * lib/mbswidth.c: Don't include <limits.h>.
36590         Include <stdlib.h> and <string.h> unconditionally.
36591         (iswcntrl, mbsinit, ISCNTRL): New macros.
36592         (mbsnwidth): Use K&R style function declarations.
36593         Don't bother checking for MB_LEN_MAX == 1, since the compiler
36594         can optimize it when MB_CUR_MAX == 1.
36595         The width of control characters is zero, not 1.
36596
36597 2001-08-03  Paul Eggert  <eggert@twinsun.com>
36598
36599         The following changes are from gettext 0.10.39 as maintained by
36600         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
36601
36602         * m4/codeset.m4: Upgrade to serial AM1.
36603         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
36604         all uses changed.  Quote first arg of AC_DEFUN.
36605         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
36606
36607         * m4/iconv.m4: Upgrade to serial AM2.
36608         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
36609         Add --with-libconv-prefix.
36610         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
36611         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
36612         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
36613         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
36614         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
36615
36616         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
36617         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
36618         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
36619         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
36620         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
36621         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
36622         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
36623         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
36624         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
36625
36626         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
36627         string.h any more.
36628
36629         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
36630         not the default value.
36631
36632         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
36633         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
36634         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
36635         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
36636         Also check for iswcntrl, used for wcwidth fallback.
36637         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
36638         to Autoconf 2.13.
36639
36640 2001-08-03  Jim Meyering  <meyering@lucent.com>
36641
36642         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
36643         as it was in the original.  Reported by Paul Eggert.
36644
36645 2001-07-16  Jim Meyering  <meyering@lucent.com>
36646
36647         * m4/gettimeofday.m4: New file.
36648         Prompted by a report from Bernhard Baehr.
36649
36650 2001-07-15  Jim Meyering  <meyering@lucent.com>
36651
36652         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
36653         stuff. Now it's in ../Makefile.cfg.
36654
36655 2001-07-15  Jim Meyering  <meyering@lucent.com>
36656
36657         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
36658         (BUILT_SOURCES): Add unlocked-io.h.
36659         (io_functions): Define.
36660         (unlocked-io.h): New rule.
36661         (DISTCLEANFILES): Add unlocked-io.h.
36662         (all-local): Depend on unlocked-io.h, to ensure it is created.
36663
36664         * lib/unlocked-io.hin: New file
36665
36666         * lib/regex.c: Update from glibc.
36667
36668 2001-07-05  Jim Meyering  <meyering@lucent.com>
36669
36670         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
36671         recommendation.
36672         (libfetish_a_SOURCES): Put all .h files here instead.
36673         Remove a thus-exposed (better checks in automake) duplicate and
36674         two unnecessary .h files.
36675
36676 2001-07-04  Jim Meyering  <meyering@lucent.com>
36677
36678         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
36679         that generates jm-glibc-io.m4 so that it doesn't trigger any make
36680         distcheck failure.
36681
36682 2001-07-02  Jim Meyering  <meyering@lucent.com>
36683
36684         The following changes were prompted by suggestions from Bruno Haible.
36685
36686         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
36687         is now generated.
36688         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
36689         definition of EXTRA_DIST.
36690         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
36691         ensure that the generated file is created/updated whenever the list
36692         of $(unlocked_functions) is changed.
36693         (jm-glibc-io.m4): New rule.
36694         (unlocked-io.h): New rule -- currently unused.
36695
36696 2001-06-24  Jim Meyering  <meyering@lucent.com>
36697
36698         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
36699         unmatched right bracket, rather than kludging it with an extra,
36700         falsely-matching quote in a comment.  Patch by Akim Demaille.
36701
36702 2001-06-11  Jim Meyering  <meyering@lucent.com>
36703
36704         * lib/regex.c: Update from GNU libc.
36705
36706 2001-05-27  Jim Meyering  <meyering@lucent.com>
36707
36708         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
36709         Check for ut_type in struct utmp.
36710
36711 2001-05-27  Jim Meyering  <meyering@lucent.com>
36712
36713         * lib/readutmp.h (UT_TYPE): Define.
36714
36715 2001-05-24  Jim Meyering  <meyering@lucent.com>
36716
36717         * lib/argmatch.c: Include "quote.h".
36718         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
36719         quote function.  Reported by Göran Uddeborg.
36720
36721 2001-05-22  Jim Meyering  <meyering@lucent.com>
36722
36723         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
36724         now that we use the package-supplied version unconditionally.
36725         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
36726
36727 2001-05-21  Jim Meyering  <meyering@lucent.com>
36728
36729         * m4/regex.m4: Change a couple backticks to single quotes to avoid
36730         shell syntax errors.
36731
36732 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
36733
36734         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
36735
36736 2001-05-20  Paul Eggert  <eggert@twinsun.com>
36737
36738         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
36739         Don't bother to check library strftime, since
36740         we'll be using our own my_strftime function anyway.
36741         Define my_strftime instead of strftime.
36742
36743 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
36744
36745         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
36746         which is not yet declared.
36747
36748 2001-05-15  Jim Meyering  <meyering@lucent.com>
36749
36750         * m4/regex.m4: Use proper quoting so brackets appear in the test
36751         program.
36752         Reported by, and with help from, Bruno Haible.
36753
36754 2001-05-13  Jim Meyering  <meyering@lucent.com>
36755
36756         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
36757         undefined.
36758
36759 2001-05-11  Paul Eggert  <eggert@twinsun.com>
36760
36761         dirname code cleanup.  base_name now behaves more compatibly
36762         with POSIX basename when given file names that have trailing
36763         slashes, and similarly for dir_name.  Add new primitives
36764         base_len and dir_len.  Put the directory-name-related decls
36765         into dirname.h.
36766
36767         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
36768         * lib/backupfile.c (base_name): Likewise.
36769         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
36770         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
36771         * lib/makepath.c (strip_trailing_slashes): Likewise.
36772         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
36773         ISSLASH): Likewise.
36774         * lib/rename.c (strip_trailing_slashes): Likewise.
36775         * lib/same.c (base_name): Likewise.
36776         * lib/stripslash.c (ISSLASH): Likewise.
36777
36778         * lib/addext.c: Include <dirname.h> after size_t is defined.
36779         * lib/backupfile.c: Likewise.
36780
36781         * lib/addext.c (addext): Use base_len to trim redundant
36782         trailing slashes instead of doing it ourselves.
36783         But do not trim the last slash if it is not redundant.
36784
36785         * lib/backupfile.c (find_backup_file_name,
36786         max_backup_version): Use base_len instead of rolling it ourselves.
36787         Handle the case of "" and (on DOS) "C:" correctly.
36788
36789         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
36790         needed. Include <string.h>, <dirname.h>.
36791         (base_name): Allow file names ending in slashes, other than names
36792         that are all slashes.  In this case, return the basename followed
36793         by the slashes.  This is more general, and can be used in places
36794         where the original base_name purposely had an assertion failure.
36795         (base_len): New function.
36796
36797         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
36798         Do not include <assert.h>; no longer needed.
36799         Include xalloc.h.
36800         (memrchr): Remove decl.
36801         (dir_name_r): Remove.
36802         (dir_len): Renamed from dirlen.  All callers changed.
36803         Rewrite in terms of base_name, for simplicity and consistency.
36804         (dir_name): Never return NULL.  All callers changed.
36805         Do not include <stdlib.h> in test program; no longer needed.
36806         return 0; is fine for test program.
36807
36808         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
36809         New macros.
36810         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
36811
36812         * lib/path-concat.c (path_concat): Use base_len to compute
36813         base length, not strlen; this means we cannot rely on memcpy
36814         to null-terminate.
36815
36816         * lib/same.c (STREQ): Remove.
36817         (same_name): Handle the case where the basename ends in trailing '/'.
36818
36819         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
36820         a slash was stripped.  Do not strip the last slash after a
36821         file system prefix.
36822
36823 2001-05-11  Paul Eggert  <eggert@twinsun.com>
36824
36825         * lib/Makefile.am (libfetish_a_SOURCES):
36826         Add strftime.c, since we now compile it on all hosts.
36827
36828         * lib/strftime.c (my_strftime):
36829         Define to nstrftime if emacs, but only if my_strftime is not defined.
36830         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
36831         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
36832         Add one more extra argument: a nanoseconds value.
36833         All uses changed.
36834         (ns): New macro.
36835         (my_strftime function): Add %N format.
36836         (emacs_strftimeu): Renamed from emacs_strftime,
36837         with extra ut argument.
36838
36839 2001-05-09  Paul Eggert  <eggert@twinsun.com>
36840
36841         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
36842
36843 2001-04-21  Jim Meyering  <meyering@lucent.com>
36844
36845         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
36846         doesn't interfere.
36847
36848 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
36849
36850         * m4/ftruncate.m4: Check for chsize.
36851         Link with ftruncate.o unconditionally if ftruncate is missing.
36852         This was required when cross-compiling to i586-mingw32msvc.
36853
36854 2001-04-08  Jim Meyering  <meyering@lucent.com>
36855
36856         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
36857         recomputed; that's necessary when the offset spans a DST transition.
36858         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
36859
36860 2001-04-02  Jim Meyering  <meyering@lucent.com>
36861
36862         * lib/regex.h, regex.c: Update from GNU libc.
36863
36864 2001-03-24  Jim Meyering  <meyering@lucent.com>
36865
36866         * m4/jm-macros.m4: Require autoconf-2.49d.
36867
36868 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
36869
36870         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
36871
36872 2001-03-19  Paul Eggert  <eggert@twinsun.com>
36873
36874         * lib/version-etc.c (version_etc_copyright): Update to 2001.
36875
36876 2001-03-17  Jim Meyering  <meyering@lucent.com>
36877
36878         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
36879         now that the version in autoconf is equivalent.
36880         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
36881
36882         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
36883         Suggestion from Akim Demaille.
36884
36885         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
36886         (jm_PREREQ_TEMPNAME): New function.
36887
36888 2001-03-16  Paul Eggert  <eggert@twinsun.com>
36889
36890         * lib/tempname.c (uint64_t): Define to uintmax_t if
36891         not defined, and if UINT64_MAX is not defined.
36892         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
36893         Reported by John David Anglin.
36894
36895 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
36896
36897         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
36898         resolve alias if codeset is empty.
36899         * lib/config.charset (BeOS): Use wildcard syntax.
36900
36901 2001-03-13  Jim Meyering  <meyering@lucent.com>
36902
36903         * lib/path-concat.c (path_concat)
36904         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
36905         concatenating e.g., `C:' and `foo'.
36906         From Bruno Haible.
36907
36908 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
36909
36910         * lib/localcharset.c (locale_charset): Don't use
36911         setlocale(LC_CTYPE,NULL). Don't return NULL.
36912         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
36913
36914 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
36915
36916         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
36917         support for DOS/DJGPP.
36918
36919 2001-03-01  Paul Eggert  <eggert@twinsun.com>
36920
36921         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
36922         lacks mkstemp.  Compile our own tempname.c if we compile our own
36923         mkstemp.c, as mkstemp relies on tempname.
36924
36925 2001-03-01  Jim Meyering  <meyering@lucent.com>
36926
36927         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
36928         AH_VERBATIM really does output its argument verbatim.
36929
36930 2001-02-28  Paul Eggert  <eggert@twinsun.com>
36931
36932         * lib/Makefile.am (libfetish_a_SOURCES):
36933         Add dup-safer.c, fopen-safer.c.
36934         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
36935
36936         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
36937         * lib/unistd-safer.h: New files.
36938
36939 2001-02-25  Paul Eggert  <eggert@twinsun.com>
36940
36941         The mkstemp replacement is taken from glibc 2.2.2, with some
36942         portability fixes for use outside glibc, as follows:
36943
36944         * lib/tempname.c (struct_stat64): New macro.
36945         (direxists, __gen_tempname): Use it.
36946         This avoids a portability problem with Solaris 8.
36947
36948         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
36949         (<stddef.h>, <stdint.h>, <string.h>):
36950         Include only if STDC_HEADERS || _LIBC.
36951         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
36952         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
36953         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
36954         (__set_errno): Define this macro if <errno.h> doesn't.
36955         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
36956         Define these macros if <stdio.h> doesn't.
36957         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
36958         Define these macros if <sys/stat.h>
36959         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
36960         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
36961         __xstat64): Define if not _LIBC.
36962         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
36963         (__gen_tempname): Invoke gettimeofday only if
36964         HAVE_GETTIMEOFDAY || _LIBC;
36965         otherwise, fall back on plain "time".
36966         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
36967
36968         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
36969
36970         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
36971
36972 2001-02-18  Paul Eggert  <eggert@twinsun.com>
36973
36974         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
36975
36976 2001-02-17  Paul Eggert  <eggert@twinsun.com>
36977
36978         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
36979         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
36980         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
36981         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
36982
36983 2001-02-17  Paul Eggert  <eggert@twinsun.com>
36984
36985         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
36986         Remove workaround macros for hosts that have mbrtowc but not
36987         mbstate_t, as we now insist on proper declarations for both
36988         before using mbrtowc.
36989
36990 2001-02-17  Jim Meyering  <meyering@lucent.com>
36991
36992         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
36993         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
36994         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
36995         UnixWare 7.1.1.
36996
36997         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
36998         rather than AC_CACHE_VAL.
36999
37000 2001-02-17  Jim Meyering  <meyering@lucent.com>
37001
37002         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
37003         around included file name.
37004
37005         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
37006
37007         * lib/strftime.c: Update from GNU libc (the only changes were to
37008         comments).
37009
37010 2001-02-17  Jim Meyering  <meyering@lucent.com>
37011
37012         * lib/regex.c: Update from libc.
37013
37014 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
37015
37016         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
37017         clash.
37018
37019 2001-02-16  Paul Eggert  <eggert@twinsun.com>
37020
37021         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
37022         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
37023         Reported by Mark Hounschell via Paul Eggert.
37024
37025 2001-02-07  Jim Meyering  <meyering@lucent.com>
37026
37027         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
37028
37029 2001-02-05  Jim Meyering  <meyering@lucent.com>
37030
37031         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
37032         it includes the patch required for `large file' support with at least
37033         HP-UX's 10.20 /bin/cc.
37034
37035 2001-02-03  Jim Meyering  <meyering@lucent.com>
37036
37037         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
37038         AS_IF, now that it works once again (mysteriously).
37039         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
37040
37041 2001-01-30  Jim Meyering  <meyering@lucent.com>
37042
37043         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
37044         * m4/chown.m4: Rename conftestchown to conftest.chown.
37045         * m4/rename.m4: s/conftestdir/conftest.d1/ and
37046         s/conftestdir2/conftest.d2/.
37047         * m4/utimes.m4: s/conftestdata/conftest.data/
37048         Inspired by Pavel Roskin's change in autoconf.
37049
37050 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
37051
37052         * lib/config.charset: Update for FreeBSD 4.2.
37053
37054 2001-01-27  Jim Meyering  <meyering@lucent.com>
37055
37056         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
37057         a use of AS_IF.
37058         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
37059
37060 2001-01-26  Jim Meyering  <meyering@lucent.com>
37061
37062         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
37063         quotearg.c includes it.
37064
37065 2001-01-26  Jim Meyering  <meyering@lucent.com>
37066
37067         * lib/quotearg.c: Include stddef.h.
37068         * lib/quote.c: Include stddef.h.
37069         Reported by Axel Kittenberger.
37070
37071         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
37072         line in double quotes so that it evokes a better diagnostic.
37073         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
37074         Reported by Axel Kittenberger.
37075
37076 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
37077
37078         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
37079         as if it was a `charset'.
37080
37081 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
37082
37083         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
37084         has const.
37085
37086 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
37087
37088         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
37089         to avoid a warning.  Add back 'const' to inptr.
37090
37091 2001-01-20  Jim Meyering  <meyering@lucent.com>
37092
37093         Be sure that headers are checked before used in code compiled
37094         for the type checks.
37095         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
37096         In place of that, invoke jm_CHECK_ALL_TYPES.
37097         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
37098         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
37099         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
37100         The check for ssize_t was mistakenly run before the test for unistd.h.
37101
37102         The configure-time check for stdbool.h was missing.
37103         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
37104         (jm_PREREQ_HASH): New function.
37105
37106 2001-01-17  Jim Meyering  <meyering@lucent.com>
37107
37108         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
37109         for autoconf-2.49c.
37110         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
37111
37112 2001-01-16  Jim Meyering  <meyering@lucent.com>
37113
37114         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
37115         From Bruno Haible.
37116
37117 2001-01-14  Jim Meyering  <meyering@lucent.com>
37118
37119         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
37120         foo and bar.  Create conftestdir/ in the script, not in the C code.
37121         Remove directories in the script, not in the C code.
37122         Remove conftestdir{,2} before trying to create the directory.
37123         Make the entire configure script fail if the mkdir fails.
37124
37125 2001-01-14  Jim Meyering  <meyering@lucent.com>
37126
37127         * lib/rename.c: New file.  From Volker Borchert.
37128         Include stdlib.h, string.h or strings.h, and xalloc.h.
37129         Use strip_trailing_slashes rather than open-coding it.
37130
37131 2001-01-03  Paul Eggert  <eggert@twinsun.com>
37132
37133         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
37134
37135 2001-01-03  Jim Meyering  <meyering@lucent.com>
37136
37137         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
37138         of local `inptr' to avoid warning with some system declarations of
37139         iconv.
37140
37141 2001-01-02  Volker Borchert  <bt@teknon.de>
37142
37143         * m4/rename.m4: New file.
37144         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
37145
37146 2001-01-01  Jim Meyering  <meyering@lucent.com>
37147
37148         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
37149         even on systems with utmpx.h.  It's necessary for the declaration of
37150         utmp's ut_user member.  Reported by Andreas Jaeger.
37151
37152         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
37153         available. They are required for the declarations of getgrgid and
37154         getpwuid resp.
37155         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
37156         Reported by Andreas Jaeger.
37157
37158 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
37159
37160         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
37161         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
37162         so `make install' also works in VPATH builds.
37163
37164 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
37165
37166         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
37167         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
37168         can be used in subdirectories.
37169
37170 2000-12-29  Paul Eggert  <eggert@twinsun.com>
37171
37172         * lib/modechange.c: Do not assume that mode_t uses the
37173         traditional octal encoding.  E.g. "chmod 1 FOO" should set
37174         the other-execute bit of FOO even if S_IXOTH != 1.
37175
37176         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
37177         WOTH, XOTH, ALLM): New macros.
37178         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
37179          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
37180         Use them.
37181         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
37182         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
37183         (mode_compile):
37184         No need to use uintmax_t; unsigned long is long enough.
37185         Don't bother to get suffix since we don't use it.
37186
37187 2000-12-26  Jim Meyering  <meyering@lucent.com>
37188
37189         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
37190         better with autoheader.
37191
37192 2000-12-24  Jim Meyering  <meyering@lucent.com>
37193
37194         * lib/hash.c (is_prime): Return explicit boolean values.
37195         (hash_get_first): Return NULL to appease Irix5.6's 89.
37196         Reported by Nelson Beebe.
37197
37198 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
37199
37200         * lib/localcharset.c (locale_charset): Add support for Win32.
37201
37202 2000-12-18  Paul Eggert  <eggert@twinsun.com>
37203
37204         * lib/physmem.h, lib/physmem.c: New files.
37205
37206         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
37207         (noinst_HEADERS): Add physmem.h.
37208
37209         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
37210         't' for compatibility with Solaris 8 sort.
37211
37212 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
37213
37214         * lib/config.charset: Add support for BeOS.
37215
37216 2000-12-17  Jim Meyering  <meyering@lucent.com>
37217
37218         * m4/dos.m4 (jm_AC_DOS): New file and macro.
37219         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
37220
37221 2000-12-16  Jim Meyering  <meyering@lucent.com>
37222
37223         This bug had a serious impact on chown: `chown N:M FILE' (for integer
37224         N and M) would have treated it like `chown N:N FILE'.
37225
37226         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
37227
37228 2000-12-16  Jim Meyering  <meyering@lucent.com>
37229
37230         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
37231         SHELLS_FILE to a file name that's useful on djgpp systems.
37232         Include stdlib.h.
37233         (ADDITIONAL_DEFAULT_SHELLS): Define.
37234         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
37235         Based mostly on a patch from Prashant TR.
37236
37237 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
37238
37239         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
37240         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
37241         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
37242
37243 2000-12-08  Andreas Schwab  <schwab@suse.de>
37244
37245         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
37246         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
37247
37248 2000-12-07  Jim Meyering  <meyering@lucent.com>
37249
37250         * lib/stripslash.c (ISSLASH): Define.
37251         (strip_trailing_slashes): Use ISSLASH rather than comparing against
37252         `/'.
37253         From Prashant TR.
37254
37255         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
37256         (dir_name_r): Declare this function as static.
37257         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
37258         manifest itself on a name containing a mix of slashes and
37259         backslashes.
37260         Make this function work with names starting with a DOS-style
37261         drive letter and colon prefix.
37262         (dir_name): Append `.' if necessary.
37263         Based mostly on patches from Prashant TR and Eli Zaretskii.
37264
37265         * lib/dirname.h (dir_name_r): Remove prototype.
37266
37267 2000-12-06  Paul Eggert  <eggert@twinsun.com>
37268
37269         * m4/off_t-format.m4: Remove this file.
37270         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
37271
37272 2000-12-06  Jim Meyering  <meyering@lucent.com>
37273
37274         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
37275         replacement strtoull, we may well need the replacement strtoul, too.
37276         Check for declarations of strtoul and strtoull.
37277         Check for strtol.  Mainly as a cue to cause automake to include
37278         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
37279         Check for limits.h -- strtol.c needs it.
37280
37281 2000-12-05  Jim Meyering  <meyering@lucent.com>
37282
37283         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
37284
37285 2000-12-04  Jim Meyering  <meyering@lucent.com>
37286
37287         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
37288         Also include memory.h, stdlib.h, unistd.h if appropriate.
37289         Reported by Andreas Jaeger (conflicting declaration of malloc).
37290
37291 2000-12-02  Jim Meyering  <meyering@lucent.com>
37292
37293         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
37294         * m4/jm-macros.m4 (jm_MACROS): require it.
37295
37296 2000-12-02  Jim Meyering  <meyering@lucent.com>
37297
37298         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
37299
37300 2000-12-01  Paul Eggert  <eggert@twinsun.com>
37301
37302         * lib/memrchr.c: Include <config.h> before any system include file.
37303
37304 2000-11-30  Jim Meyering  <meyering@lucent.com>
37305
37306         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
37307
37308 2000-11-30  Jim Meyering  <meyering@lucent.com>
37309
37310         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
37311
37312 2000-11-29  Paul Eggert  <eggert@twinsun.com>
37313
37314         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
37315
37316 2000-11-26  Jim Meyering  <meyering@lucent.com>
37317
37318         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
37319
37320 2000-11-22  Paul Eggert  <eggert@twinsun.com>
37321
37322         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
37323         size of (size_t) -1; it's not portable.
37324
37325 2000-11-17  Jim Meyering  <meyering@lucent.com>
37326
37327         * lib/strstr.c: Update from GNU libc.
37328
37329 2000-11-17  Akim Demaille  <akim@epita.fr>
37330
37331         * lib/obstack.h: Formatting changes.
37332         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
37333         prevent type checking.
37334         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
37335         cast the value to (void *): assigning a `foo *' to a `void *'
37336         variable is valid.
37337         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
37338
37339 2000-11-16  Jim Meyering  <meyering@lucent.com>
37340
37341         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
37342
37343 2000-11-11  Jim Meyering  <meyering@lucent.com>
37344
37345         * lib/error.c: Add a couple #includes, merging from GNU libc version.
37346
37347 2000-11-10  Jim Meyering  <meyering@lucent.com>
37348
37349         * lib/obstack.h: Update from GNU libc.
37350         * lib/obstack.c: Likewise.
37351
37352 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
37353
37354         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
37355
37356 2000-11-06  Paul Eggert  <eggert@twinsun.com>
37357
37358         * lib/getusershell.c (setusershell): Use rewind rather than
37359         fseek/fseeko, to avoid configuration hassles with fseeko.
37360         Don't bother opening SHELLS_FILE if shellstream is NULL;
37361         it's not necessary.
37362
37363 2000-11-05  Jim Meyering  <meyering@lucent.com>
37364
37365         * lib/makepath.h (make_dir): Declare.
37366         * lib/makepath.c (make_dir): Remove `static' attribute.
37367         Tweak a comment.
37368
37369 2000-11-04  Jim Meyering  <meyering@lucent.com>
37370
37371         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
37372
37373 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
37374
37375         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
37376         last one in a bucket, advance to the next bucket.
37377
37378 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
37379
37380         * lib/fnmatch.c: Do not comment out all the code if we are using
37381         the GNU C library, because in some cases we are replacing buggy
37382         code in the GNU C library itself.
37383
37384 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
37385
37386         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
37387         (regex_compile): Catch bogus \(\1\).
37388
37389 2000-10-30  Paul Eggert  <eggert@twinsun.com>
37390
37391         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
37392         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
37393         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
37394
37395 2000-10-30  Paul Eggert  <eggert@twinsun.com>
37396
37397         * lib/error.h, getline.h, modechange.h:
37398         Remove "2000" from Copyright line, as the file hasn't been
37399         changed this year other than in the copyright notice.
37400
37401         * lib/xalloc.h: Add "2000" to Copyright line, as this file
37402         was changed this year.
37403
37404 2000-10-29  Jim Meyering  <meyering@lucent.com>
37405
37406         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
37407         renaming.
37408         * m4/ls-mntd-fs.m4: Likewise
37409
37410 2000-10-29  Jim Meyering  <meyering@lucent.com>
37411
37412         * lib/xstat.in: Fix grammar in comment.
37413
37414 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
37415
37416         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
37417         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
37418         doesn't define __restrict_arr.
37419
37420 2000-10-28  Jim Meyering  <meyering@lucent.com>
37421
37422         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
37423         (jm_PREREQ_MEMCHR): New function.
37424
37425 2000-10-28  Jim Meyering  <meyering@lucent.com>
37426
37427         * lib/memchr.c: Update from libc.
37428         Adjust for portability:
37429         [HAVE_STDLIB_H]: Include stdlib.h.
37430         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
37431         Undef __memchr, too.
37432         [!weak_alias]: Define __memchr to memchr.
37433
37434         * lib/regex.c: Update from libc.
37435         * lib/regex.h: Likewise.
37436         * lib/getopt1.c: Likewise.
37437         * lib/memcmp.c: Likewise.
37438
37439         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
37440         Avoid using fseek, when possible -- it's broken by design.
37441         Patch by Ulrich Drepper.
37442
37443 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
37444
37445         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
37446         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
37447         Giving in to popular pressure to shut up the compiler with casts.
37448
37449 2000-10-26  Jim Meyering  <meyering@lucent.com>
37450
37451         * lib/strftime.c: Update from libc.
37452
37453 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
37454
37455         * regex.c: More `unsigned char' -> `re_char' changes.
37456         Also change several `int' into `re_wchar_t'.
37457         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
37458         (PUSH_FAILURE_POINTER): Don't cast any more.
37459         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
37460         We want GCC to complain, since this piece of code makes
37461         re_match non-reentrant, which *should* be fixed.
37462         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
37463         (EXTEND_BUFFER): Use RETALLOC.
37464         (SET_LIST_BIT): Don't cast.
37465         (re_wchar_t): New type.
37466         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
37467         that those two functions will always properly return.
37468         (IMMEDIATE_QUIT_CHECK): Cast to void.
37469         (analyse_first): Use recursion rather than an explicit stack.
37470         (re_compile_fastmap): Can't fail anymore.
37471         (re_search_2): Don't check re_compile_fastmap for failure.
37472         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
37473         Now also sets the new value (passed in a new argument).
37474         (re_match_2_internal): Use it.
37475         Also, use a new var `reg' of type size_t when looping through regs
37476         rather than reuse the inappropriate `mcnt'.
37477
37478 2000-10-25  Jim Meyering  <meyering@lucent.com>
37479
37480         * lib/obstack.c: Update from libc.
37481
37482 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
37483
37484         * regex.c (regex_compile): Change the way of handling a range from
37485         a char less than 256 to a char not less than 256.
37486
37487 2000-10-24  Andrew Innes  <andrewi@gnu.org>
37488
37489         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
37490         NT-Emacs only.
37491         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
37492         so that re_search functions only quit when callers expect them to.
37493
37494 2000-10-23  Jim Meyering  <meyering@lucent.com>
37495
37496         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
37497         wrong.  That set_locale call must not have any side effects.
37498         From Paul Eggert.
37499
37500 2000-10-22  Jim Meyering  <meyering@lucent.com>
37501
37502         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
37503         [CYCLIC]: Remove now-unused definition.
37504
37505         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
37506         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
37507         Suggestion from Ulrich Drepper.
37508
37509 2000-10-21  Jim Meyering  <meyering@lucent.com>
37510
37511         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
37512         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
37513         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
37514
37515 2000-10-21  Jim Meyering  <meyering@lucent.com>
37516
37517         * lib/dirname.c (memrchr): Declare if necessary.
37518         (dir_name): Remove the restriction that there be no
37519         trailing slashes.  Now, this code skips past them, effectively
37520         ignoring them.
37521         [TEST_DIRNAME] (main): New unit tests.
37522
37523         * lib/memrchr.c: New file from GNU libc.
37524         Undef __memrchr, too.
37525         [!weak_alias]: Define __memrchr to memrchr.
37526         Guard weak_alias use with `#ifdef weak_alias'.
37527
37528 2000-10-21  Jim Meyering  <meyering@lucent.com>
37529
37530         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
37531         (dir_name): Use dir_name_r.
37532         * lib/dirname.h (dir_name_r): Declare it.
37533
37534 2000-10-17  Jim Meyering  <meyering@lucent.com>
37535
37536         * lib/quote.h (PARAMS): Define and use.
37537         Reported by Akim Demaille.
37538
37539         * lib/getopt.c: Update from libc.
37540
37541 2000-10-16  Jim Meyering  <meyering@lucent.com>
37542
37543         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
37544         setlocale.
37545         From Jan Fedak.
37546
37547 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
37548
37549         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
37550
37551 2000-09-25  Jim Meyering  <meyering@lucent.com>
37552
37553         * lib/md5.h (rol): Define (from GnuPG).
37554
37555         * lib/sha.c: Give credit (GnuPG) where due.
37556         (M): Use rol rather than open-coding it.
37557         Add a FIXME comment.
37558
37559 2000-09-21  Jim Meyering  <meyering@lucent.com>
37560
37561         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
37562         Reported by Michael Stone.
37563
37564 2000-09-20  Jim Meyering  <meyering@lucent.com>
37565
37566         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
37567         (noinst_HEADERS): Add sha.h.
37568         Based on code from Scott G. Miller and from GnuPG.
37569
37570 2000-09-18  Jim Meyering  <meyering@lucent.com>
37571
37572         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
37573         LIBS. Otherwise, everyone ends up linking with -lelf for some
37574         configurations.
37575         Reported by Mike Stone.
37576
37577 2000-09-15  Jim Meyering  <meyering@lucent.com>
37578
37579         * lib/regex.c: Update from libc.
37580
37581 2000-09-10  Jim Meyering  <meyering@lucent.com>
37582
37583         * lib/getopt.c (_getopt_internal): Update from glibc.
37584
37585 2000-09-09  Jim Meyering  <meyering@lucent.com>
37586
37587         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
37588         think it should be used as a general replacement for isascii.
37589         * lib/fnmatch.c: Likewise.
37590         * lib/mbswidth.c: Likewise
37591         * lib/regex.c: Likewise.
37592
37593         Don't use atoi.
37594         * lib/userspec.c: Include sys/param.h and limits.h.
37595         Include xstrtol.h.
37596         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
37597         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
37598         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
37599         UID, GID.  Check range.
37600
37601 2000-09-06  Jim Meyering  <meyering@lucent.com>
37602
37603         * lib/getopt.c (_getopt_internal): Update from glibc.
37604
37605 2000-08-30  Jim Meyering  <meyering@lucent.com>
37606
37607         * lib/strftime.c: Merge in changes from GNU libc.
37608
37609 2000-08-26  Jim Meyering  <meyering@lucent.com>
37610
37611         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
37612         * m4/fpending.m4: New file.
37613
37614 2000-08-26  Jim Meyering  <meyering@lucent.com>
37615
37616         * lib/closeout.c: Include "__fpending.h".
37617         (close_stdout_status): Return right away if there's nothing to flush.
37618
37619         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
37620         * lib/__fpending.c: New file.
37621         * lib/__fpending.h: New file.
37622
37623 2000-08-20  Jim Meyering  <meyering@lucent.com>
37624
37625         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
37626         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
37627         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
37628
37629 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
37630
37631         Improve fileutils installation on systems where running
37632         programs (like install) can't be unlinked.
37633         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
37634         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
37635
37636 2000-08-07  Paul Eggert  <eggert@twinsun.com>
37637
37638         Standardize on "memory exhausted" instead of "Memory exhausted"
37639         or "virtual memory exhausted".
37640         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
37641         "virtual memory exhausted".
37642         * lib/same.c (same_name): Invoke xalloc_die instead of printing
37643         our own message.
37644         * lib/userspec.c (parse_user_spec): Likewise.
37645         * lib/bumpalloc.h: comment fix
37646         * lib/same.c, userspec.c: Include xalloc.h.
37647
37648         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
37649         not char *const and pointing to a constant array.
37650         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
37651         (xrealloc): Comment fix.
37652
37653         * lib/userspec.c (parse_user_spec):
37654         Don't translate a message until just before returning,
37655         to avoid unnecessary translation.
37656
37657 2000-08-07  Jim Meyering  <meyering@lucent.com>
37658
37659         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
37660         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
37661         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
37662         getgroups.c, gethostname.c, getopt.h, group-member.c,
37663         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
37664         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
37665         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
37666         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
37667         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
37668         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
37669         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
37670         yesno.c: Back out Copyright date changes for each file with no change
37671         this year.  This eases coordination with other programs using the same
37672         source code modules.  From Paul Eggert.
37673
37674 2000-08-06  Paul Eggert  <eggert@twinsun.com>
37675
37676         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
37677         not char, for compatibility with glibc 2.1.3 strftime.c.
37678
37679 2000-08-03  Greg McGary  <greg@mcgary.org>
37680
37681         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
37682         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
37683         (EXTEND_BUFFER): Use them.
37684
37685 2000-08-01  Jim Meyering  <meyering@lucent.com>
37686
37687         * lib/dirname.c (ISSLASH): Define.
37688         (BACKSLASH_IS_PATH_SEPARATOR): Define.
37689         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
37690         both `\' and `/' may be use as path separators.
37691         Based on a patch from Prashant TR.
37692
37693 2000-07-31  Paul Eggert  <eggert@twinsun.com>
37694
37695         * lib/quotearg.c (quotearg_n_options): Don't make the initial
37696         slot vector a constant, since it might get modified.
37697
37698 2000-07-31  Jim Meyering  <meyering@lucent.com>
37699
37700         * lib/xmalloc.c: Use `virtual memory exhausted', not
37701         `Memory exhausted'.
37702         * lib/obstack.c (print_and_abort): Likewise.
37703
37704 2000-07-30  Paul Eggert  <eggert@twinsun.com>
37705
37706         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
37707         buffer, so that the caller can always quote one small
37708         component of a "memory exhausted" message in slot 0.
37709         From a suggestion by Jim Meyering.
37710
37711 2000-07-30  Jim Meyering  <meyering@lucent.com>
37712
37713         * lib/makepath.c (make_path): Quote the other instance, too.
37714
37715         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
37716         (STATIC_BUF_SIZE): Define.
37717         (quotearg_n_options): Use only statically allocated storage when
37718         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
37719         than STATIC_BUF_SIZE.
37720
37721 2000-07-29  Jim Meyering  <meyering@lucent.com>
37722
37723         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
37724         * lib/dirname.c (dir_name): Likewise.
37725
37726         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
37727         `/'.
37728
37729         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
37730         (dir_name): Assert that there are no trailing slashes.
37731
37732 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
37733
37734         * lib/mbswidth.h (mbswidth): Add a flags argument.
37735         (mbswidth): New declaration.
37736         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
37737         * lib/mbswidth.c (mbswidth): Add a flags argument.
37738         (mbsnwidth): New function.
37739
37740 2000-07-24  Jim Meyering  <meyering@lucent.com>
37741
37742         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
37743
37744 2000-07-23  Paul Eggert  <eggert@twinsun.com>
37745
37746         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
37747
37748 2000-07-23  Paul Eggert  <eggert@twinsun.com>
37749
37750         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
37751         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
37752         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
37753         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
37754         invoke multibyte primitives.
37755
37756 2000-07-23  Paul Eggert  <eggert@twinsun.com>
37757
37758         * lib/quotearg.c:
37759         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
37760         so that mbstate_t is always defined.
37761
37762         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
37763         be 1 in at least one GCC installation, and this configuration
37764         error is likely to be common.  Ignoring MB_LEN_MAX hurts
37765         performance on hosts that have mbrtowc but have only unibyte
37766         locales, but I assume these hosts are rare.
37767
37768 2000-07-23  Paul Eggert  <eggert@twinsun.com>
37769
37770         * lib/mbswidth.c (_XOPEN_SOURCE):
37771         Don't define; this causes problems on Solaris 7.
37772         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
37773
37774 2000-07-23  Jim Meyering  <meyering@lucent.com>
37775
37776         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
37777         too: getgrgid, getpwuid, getuid.
37778
37779 2000-07-23  Jim Meyering  <meyering@lucent.com>
37780
37781         * lib/basename.c (base_name): Add an assertion.
37782
37783 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
37784
37785         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
37786         shadow its mbsinit function.
37787
37788 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
37789
37790         * lib/mbswidth.h: New file.
37791         * lib/mbswidth.c: New file.
37792         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
37793         (noinst_HEADERS): Add mbswidth.h.
37794
37795 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
37796
37797         * lib/config.charset: Add support for FreeBSD. Improve support for
37798         HP-UX and IRIX 6.
37799
37800 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
37801
37802         * m4/mbswidth.m4: New file.
37803         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
37804
37805 2000-07-15  Jim Meyering  <meyering@lucent.com>
37806
37807         * lib/makepath.c: Include quote.h.
37808         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
37809         corresponding argument in a `quote (...)' call.
37810         Give better diagnostics.
37811
37812         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
37813         (noinst_HEADERS): Add quote.h.
37814
37815         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
37816         from tar's src/misc.c.
37817         * lib/quote.h: New file.  Prototypes for same.
37818
37819 2000-07-14  Paul Eggert  <eggert@twinsun.com>
37820
37821         From a suggestion by Bruno Haible.
37822         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
37823         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
37824         to decide whether to define the BeOS workaround macro;
37825         this adjusts to the change to AC_MBSTATE_T.
37826
37827 2000-07-14  Jim Meyering  <meyering@lucent.com>
37828
37829         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
37830         jm_AC_TYPE_UINTMAX_T.
37831
37832 2000-07-13  Paul Eggert  <eggert@twinsun.com>
37833
37834         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
37835
37836         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
37837         quotearg_buffer_restyled): Add support for
37838         clocale_quoting_style.  Undo previous change to
37839         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
37840         and "{RIGHT QUOTATION MARK}" msgids.
37841
37842 2000-07-10  Paul Eggert  <eggert@twinsun.com>
37843
37844         From a suggestion by Bruno Haible.
37845         * m4/mbstate_t.m4 (AC_MBSTATE_T):
37846         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
37847         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
37848         and mbstate_t, to a single-part test that simply defines mbstate_t.
37849         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
37850         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
37851
37852 2000-07-10  Jim Meyering  <meyering@lucent.com>
37853
37854         * m4/strerror_r.m4: Mirror the correction made in autoconf.
37855
37856         * m4/gnu-source.m4: Output to confdefs.h directly.
37857         Suggestion from Akim Demaille.
37858
37859 2000-07-09  Paul Eggert  <eggert@twinsun.com>
37860
37861         The old behavior of quoting `like this' doesn't look good with
37862         newer, ISO-style fonts.  See:
37863         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
37864
37865         Instead, quote "like this" by default.  Let the translator
37866         tailor the locale-specific quoting behavior by providing
37867         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
37868
37869         * lib/quotearg.c (N_): New macro.
37870         (gettext_default): New function.
37871         (quotearg_buffer_restyled): Use
37872         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
37873         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
37874
37875 2000-07-09  Jim Meyering  <meyering@lucent.com>
37876
37877         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
37878         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
37879
37880         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
37881         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
37882
37883 2000-07-09  Jim Meyering  <meyering@lucent.com>
37884
37885         * lib/Most files: Update copyright dates to include 2000.
37886
37887 2000-07-08  Jim Meyering  <meyering@lucent.com>
37888
37889         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
37890         if not defined.
37891         (xgethostname): Remove now-unnecessary #ifdef.
37892         Move declaration of `err' into loop where it's used.
37893
37894 2000-07-05  Paul Eggert  <eggert@twinsun.com>
37895         and Bruno Haible  <haible@clisp.cons.org>
37896
37897         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
37898         only if the test for an object-type mbstate_t fails.  This
37899         prevents us from mistakenly reporting that mbstate_t is a
37900         system object type after we "#define mbstate_t int" to work
37901         around its lack.
37902
37903 2000-07-05  Paul Eggert  <eggert@twinsun.com>
37904         and Bruno Haible  <haible@clisp.cons.org>
37905
37906         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
37907
37908 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
37909
37910         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
37911         to strerror_r.
37912         Include <ctype.h> for use of isalpha.
37913
37914 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
37915
37916         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
37917         by allocating a larger buffer. Test the gethostname return value for
37918         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
37919         returns an error and ENAMETOOLONG isn't defined.
37920
37921 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
37922
37923         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
37924         dimension.
37925
37926 2000-07-04  Jim Meyering  <meyering@lucent.com>
37927
37928         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
37929         of the deprecated AC_CHECKING.
37930
37931 2000-07-04  Jim Meyering  <meyering@lucent.com>
37932
37933         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
37934         Reported by Bruno Haible.
37935
37936 2000-07-04  Jim Meyering  <meyering@lucent.com>
37937
37938         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
37939         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
37940         lacks mbrtowc.
37941
37942 2000-07-03  Paul Eggert  <eggert@twinsun.com>
37943
37944         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
37945         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
37946
37947 2000-07-03  Paul Eggert  <eggert@twinsun.com>
37948         and Bruno Haible  <haible@clisp.cons.org>
37949
37950         * lib/quotearg.c (mbrtowc):
37951         Assign to *pwc, and return 1 only if result is nonzero.
37952         (iswprint): Use ISPRINT when substituting our own mbrtowc.
37953
37954 2000-07-03  Jim Meyering  <meyering@lucent.com>
37955
37956         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
37957
37958 2000-07-03  Jim Meyering  <meyering@lucent.com>
37959
37960         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
37961         This is necessary to get a definition of e.g., UTMP_FILE on
37962         HP-UX 10.20.
37963         From Bob Proulx.
37964
37965 2000-07-02  Jim Meyering  <meyering@lucent.com>
37966
37967         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
37968
37969         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
37970         AC_LIBOBJ(function_name).
37971         * m4/chown.m4: Likewise.
37972         * m4/fnmatch.m4: Likewise.
37973         * m4/ftruncate.m4: Likewise.
37974         * m4/getgroups.m4: Likewise.
37975         * m4/getline.m4: Likewise.
37976         * m4/group-member.m4: Likewise.
37977         * m4/jm-macros.m4: Likewise.
37978         * m4/lstat.m4: Likewise.
37979         * m4/malloc.m4: Likewise.
37980         * m4/memcmp.m4: Likewise.
37981         * m4/nanosleep.m4: Likewise.
37982         * m4/putenv.m4: Likewise.
37983         * m4/realloc.m4: Likewise.
37984         * m4/regex.m4: Likewise.
37985         * m4/stat.m4: Likewise.
37986         * m4/strftime.m4: Likewise.
37987
37988 2000-07-02  Jim Meyering  <meyering@lucent.com>
37989
37990         * lib/quotearg.c (mbstate_t): Don't define here.
37991
37992 2000-07-02  Jim Meyering  <meyering@lucent.com>
37993
37994         * lib/nanosleep.c (SIGCONT): Define if not already defined.
37995
37996 2000-07-01  Jim Meyering  <meyering@lucent.com>
37997
37998         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
37999
38000 2000-07-01  Jim Meyering  <meyering@lucent.com>
38001
38002         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
38003         problem.
38004
38005 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
38006
38007         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
38008         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
38009
38010 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
38011
38012         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
38013         per change in ../m4/ls-mntd-fs.m4.
38014         (read_filesystem_list): Ignore symbolic links.
38015
38016 2000-06-29  Jim Meyering  <meyering@lucent.com>
38017
38018         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
38019         for declaration of strcmp.
38020
38021         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
38022
38023         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
38024         Avoid warning by casting result to `char *' to remove `const'.
38025
38026 2000-06-28  Jim Meyering  <meyering@lucent.com>
38027
38028         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
38029         included by quotearg.c, for which we perform this test.  From
38030         Bruno Haible.
38031
38032 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
38033
38034         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
38035         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
38036         <utmpx.h> exists, put readutmp.o into LIBOBJS.
38037
38038 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
38039
38040         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
38041
38042 2000-06-26  Paul Eggert  <eggert@twinsun.com>
38043
38044         savedir now sets errno on failure and invokes xmalloc to get memory.
38045         Fix a couple of other minor bugs while we're at it.
38046
38047         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
38048         (NAMLEN): Remove macro.
38049         (malloc, realloc): Remove decls.
38050         (stpcpy): Likewise.
38051         ("xalloc.h"): Include.
38052         (NAME_SIZE_DEFAULT): New macro.
38053         (savedir): Use xmalloc / xrealloc to allocate memory.
38054         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
38055         Skip "" directory entries.
38056         Use strlen to calculate directory entry length, since the old method
38057         is rarely used these days and isn't worth supporting.
38058         Don't use a pointer after freeing it.
38059         Check for integer overflow when calculating allocation size.
38060         Use memcpy to copy entries, instead of stpcpy.
38061         Set errno properly when returning NULL.
38062         Check for readdir error.
38063
38064 2000-06-26  Jim Meyering  <meyering@lucent.com>
38065
38066         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
38067
38068 2000-06-25  Jim Meyering  <meyering@lucent.com>
38069
38070         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
38071         Linux header bug when _XOPEN_SOURCE is defined to 500.
38072
38073 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
38074
38075         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
38076         deficiency.
38077
38078 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
38079
38080         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
38081         Include xalloc.h.
38082         Don't include <stdlib.h>.  Don't declare malloc, realloc.
38083
38084 2000-06-24  Jim Meyering  <meyering@lucent.com>
38085
38086         * m4/strerror_r.m4: Revive this file -- to try out an experimental
38087         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
38088         for which strerror does return char*, but which lacks a conveniently
38089         accessible declaration of the function.  If the compile-test says
38090         strerror_r doesn't work, then resort to a `run'-test that works on
38091         BeOS and segfaults on DEC Unix.
38092
38093 2000-06-24  Jim Meyering  <meyering@lucent.com>
38094
38095         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
38096
38097 2000-06-23  Paul Eggert  <eggert@twinsun.com>
38098
38099         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
38100         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
38101
38102 2000-06-23  Paul Eggert  <eggert@twinsun.com>
38103
38104         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
38105         (mbrtowc, mbstate_t): Define substitutes if
38106         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
38107         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
38108         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
38109
38110 2000-06-23  Jim Meyering  <meyering@lucent.com>
38111
38112         * m4/afs.m4: Add missing AC_MSG_RESULT.
38113         Reported by Bruno Haible.
38114
38115         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
38116         Suggestion from Bruno Haible.
38117
38118 2000-06-23  Jim Meyering  <meyering@lucent.com>
38119
38120         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
38121
38122 2000-06-21  Jim Meyering  <meyering@lucent.com>
38123
38124         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
38125
38126 2000-06-21  Jim Meyering  <meyering@lucent.com>
38127
38128         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
38129         (noinst_HEADERS): Add getstr.h.
38130
38131         * lib/getline.c (getstr): Move into a separate file.
38132         * lib/getstr.c (getstr): New file, extracted from getline.c, with
38133         the following changes: new parameter, delim2; both delim[12]
38134         parameters have type `int', not `char'.  The latter would lose
38135         with 8-bit delimiters.
38136         * lib/getstr.h: New file.
38137
38138 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
38139
38140         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
38141         than 1024, return a memory chunk of least possible size, instead
38142         of size PATH_MAX + 2. In the loop, increment the size proportionally.
38143         Use free/xmalloc instead of xrealloc to avoid copying for very long
38144         paths.
38145
38146 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
38147
38148         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
38149         the empty string.
38150
38151 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
38152
38153         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
38154         address, not strdup.  Include <stdlib.h> and don't declare free().
38155
38156 2000-06-19  Jim Meyering  <meyering@lucent.com>
38157
38158         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
38159
38160 2000-06-18  Jim Meyering  <meyering@lucent.com>
38161
38162         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
38163
38164         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
38165         `checking whether...' message to be consistent with that of the
38166         lstat test.
38167
38168 2000-06-18  Jim Meyering  <meyering@lucent.com>
38169
38170         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
38171         Besides, these days every porting target provides a mkdir function.
38172
38173         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
38174         needed. (this snippet comes from src/system.h).
38175
38176 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
38177
38178         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
38179
38180 2000-06-15  Paul Eggert  <eggert@twinsun.com>
38181
38182         * lib/human.c (adjust_value): New function.
38183         (human_readable_inexact): Apply rounding style even when
38184         printing approximate values.
38185
38186 2000-06-14  Paul Eggert  <eggert@twinsun.com>
38187
38188         * lib/human.c (human_readable_inexact): Allow an input block
38189         size that is not a multiple of the output block size, and vice versa.
38190         Reported by Piergiorgio Sartor.
38191
38192 2000-06-14  Paul Eggert  <eggert@twinsun.com>
38193
38194         * lib/getdate.y (get_date): Apply relative times after time
38195         zone indicator, not before.  Reported by Todd A. Jacobs.
38196
38197 2000-06-13  Jim Meyering  <meyering@lucent.com>
38198
38199         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
38200
38201         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
38202
38203 2000-06-12  Paul Eggert  <eggert@twinsun.com>
38204
38205         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
38206
38207 2000-06-12  Jim Meyering  <meyering@lucent.com>
38208
38209         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
38210         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
38211         optional argument.
38212         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
38213         the optional argument, `lib'.
38214
38215 2000-06-08  Jim Meyering  <meyering@lucent.com>
38216
38217         * m4/largefile.m4: Remove file (now that it's part of autoconf).
38218
38219 2000-06-04  Paul Eggert  <eggert@twinsun.com>
38220
38221         Rewrite largefile configuration so that we don't need to run
38222         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
38223         AC_CANONICAL_HOST in configure.in -- jmm]
38224
38225         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
38226         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
38227         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
38228         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
38229         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
38230         All uses changed.
38231         Instead of inspecting the output of getconf, try to compile the
38232         test program without and with the macro definition.
38233         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
38234         for getconf.  Instead, check for the needed flags by compiling
38235         test programs.
38236
38237 2000-06-04  Paul Eggert  <eggert@twinsun.com>
38238
38239         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
38240
38241 2000-06-04  Jim Meyering  <meyering@lucent.com>
38242
38243         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
38244         SunOS 4.1.4 for which gid_t is an unsigned type.
38245
38246 2000-06-03  Jim Meyering  <meyering@lucent.com>
38247
38248         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
38249         now that autoconf requires that.
38250
38251         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
38252         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
38253         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
38254
38255 2000-06-03  Jim Meyering  <meyering@lucent.com>
38256
38257         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
38258
38259 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
38260
38261         * m4/glibc21.m4: New file.
38262         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
38263
38264 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
38265
38266         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
38267         newer, don't install charset.alias.
38268         * lib/config.charset: Change the Linux/glibc rules so they become empty
38269         on glibc-2.1 or newer.
38270
38271 2000-06-02  Jim Meyering  <meyering@lucent.com>
38272
38273         * lib/mountlist.c: Back out last change.  Instead, do this...
38274         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
38275         me_dummy member using the same `ignore'-testing code.
38276         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
38277         fs_type strings.
38278         From Mark D. Roth.
38279
38280 2000-05-29  Jim Meyering  <meyering@lucent.com>
38281
38282         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
38283         mounts with the `ignore' attribute.  Based on a patch from
38284         Mark D. Roth.
38285
38286 2000-05-28  Jim Meyering  <meyering@lucent.com>
38287
38288         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
38289         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
38290         * m4/stat.m4: Likewise.
38291         * m4/lstat.m4: Likewise.
38292         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
38293
38294         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
38295         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
38296
38297 2000-05-26  Jim Meyering  <meyering@lucent.com>
38298
38299         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
38300
38301 2000-05-24  Jim Meyering  <meyering@lucent.com>
38302
38303         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
38304         autoconf requires that.
38305         * m4/lib-check.m4: Likewise.
38306         * m4/jm-macros.m4: Likewise.
38307         * m4/strftime.m4: Likewise.
38308
38309         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
38310         AC_CHECK_DECLS, now that autoconf requires that.
38311
38312 2000-05-22  Jim Meyering  <meyering@lucent.com>
38313
38314         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
38315         * m4/lstat.m4: Likewise.
38316
38317 2000-05-22  Jim Meyering  <meyering@lucent.com>
38318
38319         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
38320
38321 2000-05-20  Jim Meyering  <meyering@lucent.com>
38322
38323         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
38324         (jm_PREREQ): Use it.
38325
38326 2000-05-18  Jim Meyering  <meyering@lucent.com>
38327
38328         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
38329         back, too, since it may have been modified by allocate_entry.
38330         (hash_delete): Rewrite to use neither the assignment operator
38331         nor the comma operator in an if-expression.
38332
38333 2000-05-15  Paul Eggert  <eggert@twinsun.com>
38334
38335         * lib/closeout.c:
38336         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
38337         Remove; no longer needed.
38338         "quotearg.h": Add include.
38339         (file_name): Do not bother to explicitly initialize to NULL; it's less
38340         efficient on some hosts.
38341         (close_stdout_status): Remove test as to whether stdout was already
38342         closed; it breaks for the case "echo x | sort >&-".
38343         Quote file name colons.
38344         Do not assume that _("write error") lacks format strings.
38345
38346 2000-05-15  Jim Meyering  <meyering@lucent.com>
38347
38348         * lib/version-etc.c (version_etc_copyright): Update the copyright
38349         string used in all --version output.
38350
38351 2000-05-14  Jim Meyering  <meyering@lucent.com>
38352
38353         * lib/closeout.c (close_stdout_set_file_name): New function.
38354         (close_stdout_status): Use new file-scoped global.
38355         Return right away if fstat says the stdout file descriptor is invalid.
38356         * lib/closeout.h (close_stdout_set_file_name): Declare.
38357
38358 2000-05-10  Jim Meyering  <meyering@lucent.com>
38359
38360         * lib/closeout.c [default_exit_status]: New file-scoped variable.
38361         (close_stdout_set_status): New function.
38362         * lib/closeout.h (close_stdout_set_status): Declare.
38363
38364 2000-05-09  Jim Meyering  <meyering@lucent.com>
38365
38366         * m4/gettext.m4: Rename this...
38367         * m4/libintl.m4: ...to this.
38368
38369 2000-05-08  Jim Meyering  <meyering@lucent.com>
38370
38371         * lib/long-options.c: Don't include closeout.h.
38372         (parse_long_options): Don't call close_stdout for --version.
38373
38374 2000-05-06  Paul Eggert  <eggert@twinsun.com>
38375
38376         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
38377         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
38378         2.1.3 bug.  This avoids a clash when files like regex.c define
38379         _GNU_SOURCE.
38380
38381 2000-05-06  Jim Meyering  <meyering@lucent.com>
38382
38383         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
38384         (AC_REPLACE_FUNCS): Add strnlen.
38385
38386         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
38387         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
38388
38389         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
38390         AC_SEARCH_LIBS call for nanosleep.
38391         (LIB_NANOSLEEP): Set and AC_SUBST.
38392
38393 2000-05-06  Jim Meyering  <meyering@lucent.com>
38394
38395         * lib/strnlen.c: Undefine __strnlen and strnlen.
38396         [!weak_alias]: Define __strnlen to strnlen.
38397
38398         * lib/atexit.c: New file, from libiberty.
38399
38400 2000-05-06  Jim Meyering  <meyering@lucent.com>
38401
38402         * lib/closeout.c (close_stdout_status): Also check for errors on the
38403         stderr stream.
38404
38405 2000-05-05  Jim Meyering  <meyering@lucent.com>
38406
38407         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
38408         AC_SEARCH_LIBS call for clock_gettime.
38409         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
38410
38411         * m4/search-libs.m4: Update from autoconf.
38412
38413         su doesn't work on Solaris 2.6.
38414         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
38415         <shadow.h>.  Reported by Dragos Harabor.
38416
38417 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
38418
38419         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
38420         memcpy instead of xmalloc, xrealloc, path_concat.
38421         (locale_charset): Treat empty environment variables as absent.
38422         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
38423
38424 2000-05-04  Jim Meyering  <meyering@lucent.com>
38425
38426         * lib/getopt.c: Update from glibc.
38427         * lib/obstack.c: Likewise.
38428         * lib/obstack.h: Likewise.
38429         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
38430         file
38431
38432         * lib/regex.h: Likewise.
38433         * lib/strndup.c: Likewise.
38434         * lib/strnlen.c: New file, from glibc.
38435
38436 2000-05-03  Jim Meyering  <meyering@lucent.com>
38437
38438         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
38439
38440 2000-05-02  Paul Eggert  <eggert@twinsun.com>
38441
38442         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
38443         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
38444         compile-time test, rather than inspecting host and OS, to
38445         decide whether to define _LARGEFILE_SOURCE.
38446
38447 2000-05-01  Jim Meyering  <meyering@lucent.com>
38448
38449         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
38450
38451         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
38452         Based on a patch from Bruno Haible.
38453
38454 2000-05-01  Jim Meyering  <meyering@lucent.com>
38455
38456         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
38457
38458 2000-04-29  Jim Meyering  <meyering@lucent.com>
38459
38460         * lib/path-concat.c: Declare strdup only if it's not defined.
38461         * lib/canon-host.c: Likewise.
38462
38463 2000-04-28  Jim Meyering  <meyering@lucent.com>
38464
38465         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
38466         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
38467         is included first, then limits.h is included by locale.h by libintl.h.
38468         From John David Anglin.
38469
38470 2000-04-25  Jim Meyering  <meyering@lucent.com>
38471
38472         * lib/makepath.c (S_IRWXUGO): Define.
38473         (make_path): Always perform explicit chmod if MODE specifies any
38474         of the `special' permission bits.  Prompted by a bug report against
38475         install from Mate Wierdl and Joost van Baal.
38476
38477 2000-04-18  Jim Meyering  <meyering@lucent.com>
38478
38479         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
38480         (jm_PREREQ): Use it.
38481
38482 2000-04-18  Jim Meyering  <meyering@lucent.com>
38483
38484         * lib/README: New file.
38485
38486         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
38487         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
38488
38489 2000-04-17  Jim Meyering  <meyering@lucent.com>
38490
38491         Get it right :-)
38492         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
38493         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
38494         Suggestion from Akim Demaille.
38495
38496 2000-04-17  Jim Meyering  <meyering@lucent.com>
38497
38498         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
38499         the definition of it to rpl_strftime also defined-away the system's
38500         declaration.
38501
38502 2000-04-15  Jim Meyering  <meyering@lucent.com>
38503
38504         Use `C' to denote so-called `contiguous' files, the same way
38505         that tar does.
38506         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
38507         (ftypelet): Use S_ISCTG.
38508         From Michael Deutschmann.
38509
38510 2000-04-14  Jim Meyering  <meyering@lucent.com>
38511
38512         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
38513         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
38514         clobbered.
38515
38516 2000-04-14  Jim Meyering  <meyering@lucent.com>
38517
38518         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
38519
38520 2000-04-13  Jim Meyering  <meyering@lucent.com>
38521
38522         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
38523         AH_VERBATIM to insert required #ifndef into config.h.in.
38524         Suggestion from Akim Demaille.
38525
38526 2000-04-12  Jim Meyering  <meyering@lucent.com>
38527
38528         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
38529         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
38530         Christian Krackowizer.
38531
38532         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
38533         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
38534         (AC_SYS_LARGEFILE): Require.
38535         (AM_C_PROTOTYPES): Require.
38536
38537 2000-04-08  Jim Meyering  <meyering@lucent.com>
38538
38539         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
38540         names don't conflict.  Reported by Eli Zaretskii.
38541
38542 2000-04-07  Jim Meyering  <meyering@lucent.com>
38543
38544         * lib/putenv.c: Move inclusion of errno.h so it follows that of
38545         sys/types.h, to work around system header problems on AIX 3.2.5.
38546         From Bruno Haible.
38547
38548 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
38549
38550         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
38551         bug.  Deal with the different error behavior of Irix iconv.
38552
38553 2000-04-05  Paul Eggert  <eggert@twinsun.com>
38554
38555         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
38556         IRIX if the installer said otherwise.
38557
38558 2000-04-05  Jim Meyering  <meyering@lucent.com>
38559
38560         Portability tweaks required for ultrix4.3.
38561         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
38562         (jm_CHECK_DECLS): Add getutent to the list of functions.
38563         (_jm_DECL_HEADERS): Add utmpx.h.
38564         From John David Anglin.
38565
38566         * m4/strftime.m4: Back out the 2000-04-02 change.
38567         Instead of that change, simply undefine putenv in the test program.
38568
38569 2000-04-05  Jim Meyering  <meyering@lucent.com>
38570
38571         Portability tweaks required for ultrix4.3.
38572         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
38573         getutent.
38574         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
38575         * lib/canon-host.c: Declare strdup.
38576         * lib/path-concat.c: Likewise.
38577         From John David Anglin.
38578
38579 2000-04-04  Jim Meyering  <meyering@lucent.com>
38580
38581         Be more DOS 8.3-friendly.
38582         * lib/ref-add.sin: Renamed from ref-add.sed.in.
38583         * lib/ref-del.sin: Renamed from ref-del.sed.in.
38584         * lib/Makefile.am: Reflect renaming.
38585         Reported by Eli Zaretskii.
38586
38587         Use a temporary file name that won't clash with `charset.alias'
38588         in the DOS 8.3 name space.
38589         * lib/Makefile.am (charset_tmp): Define.
38590         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
38591         (uninstall-local): Likewise.
38592         Reported by Eli Zaretskii.
38593
38594 2000-04-03  Jim Meyering  <meyering@lucent.com>
38595
38596         * m4/gettext.m4: Fix typo in comment.
38597
38598         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
38599         textutils/configure.in).  Suggestion from Paul Eggert.
38600         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
38601
38602 2000-04-02  Paul Eggert  <eggert@twinsun.com>
38603
38604         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
38605         variable in the shell rather than using putenv, which isn't
38606         portable.  This avoids the configure-time inter-test dependency
38607         on the potentially-renamed putenv function.
38608
38609 2000-03-30  Paul Eggert  <eggert@twinsun.com>
38610
38611         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
38612         before checking struct stat.st_blksize, so that
38613         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
38614
38615 2000-03-29  Paul Eggert  <eggert@twinsun.com>
38616
38617         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
38618         since strftime.c uses HAVE_STRFTIME to decide whether to use
38619         the underlying strftime.
38620
38621 2000-03-29  Paul Eggert  <eggert@twinsun.com>
38622
38623         * lib/time/strftime.c (my_strftime): Make sure we call the system
38624         strftime, not ourselves, when invoking the underlying strftime.
38625
38626 2000-03-24  Jim Meyering  <meyering@lucent.com>
38627
38628         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
38629         (charset_alias): Define.
38630         (install-exec-local): Factor out common code.
38631         (uninstall-local): Split lines longer than 80.
38632         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
38633         (SUFFIXES): Define.
38634         (.sed.in.sed): New rule.  Don't redirect directly to $@.
38635         (CLEANFILES): Add ref-add.sed and ref-del.sed.
38636
38637 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
38638
38639         * lib/config.charset: Output a line containing "Packages using this
38640         file".
38641         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
38642         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
38643         ref-del.sed): New rules.
38644
38645 2000-03-17  Jim Meyering  <meyering@lucent.com>
38646
38647         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
38648         Otherwise, include <strings.h>
38649
38650 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
38651
38652         * lib/unicodeio.c (utf8_wctomb): New function.
38653         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
38654         format instead of in UCS-4 with platform dependent endianness.
38655
38656 2000-03-10  Jim Meyering  <meyering@lucent.com>
38657
38658         * m4/lib-check.m4: Look for getspnam in -lgen, too.
38659         From Marco Franzen.
38660
38661 2000-03-07  Paul Eggert  <eggert@twinsun.com>
38662
38663         * lib/savedir.c (savedir): Work even if directory size is
38664         negative; this can happen with some screwy NFS configurations.
38665
38666 2000-03-06  Jim Meyering  <meyering@lucent.com>
38667
38668         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
38669         if it's NULL (because we ran out of memory).  From Bruno Haible.
38670
38671 2000-03-05  Jim Meyering  <meyering@lucent.com>
38672
38673         * lib/localcharset.c ("path-concat.h"): Include.
38674         (get_charset_aliases): Use path_concat instead of ANSI string
38675         concatenation.
38676
38677         * lib/unicodeio.h (PARAMS): Define.
38678         Use it to guard prototype.
38679
38680 2000-03-04  Jim Meyering  <meyering@lucent.com>
38681
38682         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
38683         for lib/localcharset.c.
38684
38685 2000-03-04  Jim Meyering  <meyering@lucent.com>
38686
38687         * lib/Makefile.am (install-exec-local): Create $(libdir) before
38688         installing into it.
38689         (uninstall-local): Uncomment this rule so `make distcheck' works
38690         once again.
38691
38692         * lib/unicodeio.c (<errno.h>): Include it.
38693         (errno): Declare if not defined.
38694
38695         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
38696
38697         * lib/config.charset: New version, incorporating remarks from a linux
38698         i18n mailing list.  From Bruno Haible.
38699
38700 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
38701
38702         * m4/codeset.m4: New file.
38703         * m4/iconv.m4: New file.
38704         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
38705
38706 2000-03-03  Jim Meyering  <meyering@lucent.com>
38707
38708         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
38709
38710 2000-03-02  Jim Meyering  <meyering@lucent.com>
38711
38712         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
38713         the messages come out on separate lines.
38714
38715         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
38716         rather than jm_CHECK_DECLARATIONS.
38717         * m4/decl.m4: Remove now-unused file.
38718
38719         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
38720         geteuid.
38721
38722 2000-03-02  Jim Meyering  <meyering@lucent.com>
38723
38724         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
38725
38726 2000-03-01  Jim Meyering  <meyering@lucent.com>
38727
38728         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
38729         * lib/unicodeio.c: Likewise.
38730
38731 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
38732
38733         * lib/config.charset: New file.
38734         * lib/localcharset.c: New file.
38735         * lib/unicodeio.h, lib/unicodeio.c: New files.
38736         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
38737         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
38738         (noinst_HEADERS): Add unicodeio.h.
38739         (all-local, install-exec-local, charset.alias): New targets.
38740
38741 2000-02-28  Paul Eggert  <eggert@twinsun.com>
38742
38743         * lib/quotearg.c (ALERT_CHAR): New macro.
38744         (quotearg_buffer_restyled): Use it.
38745
38746 2000-02-27  Jim Meyering  <meyering@lucent.com>
38747
38748         * m4/check-decl.m4: Add getenv to the list.
38749
38750 2000-02-27  Jim Meyering  <meyering@lucent.com>
38751
38752         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
38753         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
38754
38755         * lib/backupfile.c: Guard inclusion of stdlib.h with
38756         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
38757         Declare malloc if needed.
38758
38759         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
38760         `#ifndef HAVE_DECL..'
38761         now that autoconf always defines the HAVE_DECL_ symbols.
38762         * lib/human.c: Likewise.
38763         * lib/same.c: Likewise.
38764         * lib/strtoumax.c: Likewise.
38765
38766         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
38767         declaration check was not run.
38768         * lib/hash.c: Likewise.
38769         * lib/human.c: Likewise.
38770         * lib/same.c: Likewise.
38771         * lib/strtoumax.c: Likewise.
38772
38773         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
38774         `.', then first look up the entire `.'-containing string as a login
38775         name.
38776
38777 2000-02-23  Jim Meyering  <meyering@lucent.com>
38778
38779         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
38780         in place of my hack.
38781
38782 2000-02-18  Paul Eggert  <eggert@twinsun.com>
38783
38784         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
38785         (textint): New typedef.
38786         (parser_control): Member year changed from int to textint.
38787         All uses changed.
38788         (YYSTYPE): Removed; replaced by %union with int and textint members.
38789         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
38790         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
38791         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
38792         (tSNUMBER, tUNUMBER): Now of type <textintval>.
38793         (date, number, to_year): Use width of number in digits, not its value,
38794         to determine whether it's a 2-digit year, or a 2-digit time.
38795         (yylex): Store number of digits of numeric tokens.
38796         Reported by John Kendall.
38797
38798         (parser_control): Changed from struct parser_control to typedef (for
38799         consistency).  All uses changed.
38800
38801         (tID): Removed; not used.
38802         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
38803
38804 2000-02-14  Paul Eggert  <eggert@twinsun.com>
38805
38806         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
38807         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
38808
38809 2000-02-12  Jim Meyering  <meyering@lucent.com>
38810
38811         * lib/userspec.c (ISDIGIT): Define it.
38812         (isdigit): Remove definition.
38813         (is_number): Use ISDIGIT, not isdigit.
38814         <libintl.h>: Include.
38815         (_ and N_): Define.
38816         (parse_user_spec): Mark translatable strings.
38817
38818 2000-02-10  Jim Meyering  <meyering@lucent.com>
38819
38820         With these changes, nanosleep.[ch] are finally enough like the other
38821         lib/* replacement files to compile on a few more losing systems.
38822
38823         * lib/nanosleep.h: Don't include config.h.
38824         Remove prototype from declaration of nanosleep.
38825         (PARAMS): Remove now-unneeded definition.
38826         * lib/nanosleep.c: #undef nanosleep.
38827         (rpl_nanosleep): Rename from nanosleep.
38828
38829 2000-02-10  Jim Meyering  <meyering@lucent.com>
38830
38831         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
38832         gnu_nanosleep to rpl_nanosleep.
38833
38834 2000-02-09  Jim Meyering  <meyering@lucent.com>
38835
38836         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
38837         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
38838
38839 2000-02-08  Akim Demaille  <akim@epita.fr>
38840
38841         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
38842         `[' and `]' and remove uses of `changequote'.
38843         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
38844         (AC_SYS_LARGEFILE): Likewise.
38845         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
38846         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
38847         of changequote.
38848         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
38849         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
38850         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
38851         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
38852
38853 2000-02-05  Jim Meyering  <meyering@lucent.com>
38854
38855         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
38856         Remove explicit use of AC_HEADER_TIME.  It is required by
38857         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
38858         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
38859         in autoconf whereby the expansion of the latter ended up preceding
38860         the expansion of its prerequisite, AC_HEADER_TIME.
38861         Reported by Volker Borchert.
38862
38863 2000-02-03  Jim Meyering  <meyering@lucent.com>
38864
38865         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
38866
38867 2000-02-03  Jim Meyering  <meyering@lucent.com>
38868
38869         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
38870         rather than with `#if HAVE_UTMPNAME'.
38871
38872 2000-02-02  Jim Meyering  <meyering@lucent.com>
38873
38874         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
38875         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
38876         Reported by Eli Zaretskii.
38877
38878 2000-02-01  Jim Meyering  <meyering@lucent.com>
38879
38880         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
38881
38882 2000-01-31  Jim Meyering  <meyering@lucent.com>
38883
38884         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
38885         functions.  Add the time.h and sys/time.h headers along with the
38886         AC_REQUIRE'ment of AC_HEADER_TIME.
38887
38888 2000-01-31  Jim Meyering  <meyering@lucent.com>
38889
38890         * lib/nanosleep.h (nanosleep): Guard declaration with
38891         `#if ! HAVE_DECL_NANOSLEEP'.
38892         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
38893         the declaration in that vendor's sys/timers.h.
38894         Reported by Christian Krackowizer.
38895
38896         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
38897         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
38898         (ISPRINT): Likewise.
38899         Reported by Tom Tromey.
38900
38901 2000-01-30  Jim Meyering  <meyering@lucent.com>
38902
38903         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
38904
38905         * m4/prereq.m4 (utmp_includes): Define.
38906         Check for ut_user and ut_name members in both struct utmpx
38907         and struct utmp.
38908
38909 2000-01-30  Jim Meyering  <meyering@lucent.com>
38910
38911         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
38912         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
38913         header files where only utmpx.ut_user is declared.
38914
38915         * lib/readutmp.h (UT_USER): Define.
38916
38917 2000-01-29  Jim Meyering  <meyering@lucent.com>
38918
38919         * m4/lib-check.m4: New file containing library-related checks from
38920         fileutils and sh-utils (textutils had none).
38921
38922 2000-01-28  Jim Meyering  <meyering@lucent.com>
38923
38924         * m4/perl.m4: Change format of warning message to look more like that
38925         from the missing script.  Suggestion from François Pinard.
38926
38927 2000-01-25  Jim Meyering  <meyering@lucent.com>
38928
38929         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
38930         well as time.h in the compile check.
38931         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
38932         Fix typo in cross-compiling case: s/yes/no/.
38933
38934 2000-01-23  Jim Meyering  <meyering@lucent.com>
38935
38936         * m4/jm-macros.m4: Move df-related tests here from
38937         fileutils/configure.in
38938
38939         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
38940         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
38941
38942         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
38943         s/space/ac_fsusage_space/.
38944         (jm_FILE_SYSTEM_USAGE): Take two parameters.
38945
38946         * m4/ftruncate.m4: New file (derived from part of
38947         fileutils/configure.in).
38948         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
38949         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
38950
38951         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
38952         AC_SUBST these here, rather than just in sh-util/configure.in, so
38953         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
38954         all the same.
38955         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
38956         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
38957         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
38958         (AC_SUBST(POW_LIBM)): Likewise.
38959         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
38960
38961 2000-01-23  Jim Meyering  <meyering@lucent.com>
38962
38963         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
38964         obstack.c.
38965
38966 2000-01-22  Jim Meyering  <meyering@lucent.com>
38967
38968         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
38969
38970         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
38971
38972         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
38973         configure.in
38974         (AC_CHECK_HEADERS): Likewise for sh-utils.
38975         (AC_CHECK_HEADERS): Likewise for textutils.
38976         Merge the three lists of headers.
38977
38978         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
38979         from fileutils' configure.in.
38980
38981         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
38982         code. Moved tests into their own function (_jm_DECL_HEADERS) in
38983         check-decl.m4.
38984
38985         * m4/check-decl.m4: Use #if rather than #ifdef.
38986         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
38987         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
38988         (_jm_DECL_HEADERS): Define new function.
38989         (jm_CHECK_DECLARATIONS): Require it.
38990
38991 2000-01-22  Jim Meyering  <meyering@lucent.com>
38992
38993         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
38994         [! HAVE_DECL_STRTOULL]: Declare strtoull.
38995         Required for some AIX systems.  Reported by Christian Krackowizer.
38996         [TESTING] (main): New function.
38997
38998         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
38999         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
39000         letters.
39001
39002         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
39003         iswprint.
39004
39005         * lib/strverscmp.c (ISDIGIT): Define.
39006         (strverscmp): Use ISDIGIT, not isdigit.
39007
39008 2000-01-19  Jim Meyering  <meyering@lucent.com>
39009
39010         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
39011         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
39012         defines `struct timespec' in <sys/time.h>
39013
39014         * m4/c-bs-a.m4: Remove uses of changequote altogether.
39015         Thanks to Akim for explaining.
39016
39017 2000-01-17  Paul Eggert  <eggert@twinsun.com>
39018
39019         * lib/nanosleep.c (nanosleep):
39020         Don't use SA_INTERRUPT to decide whether to call sigaction, as
39021         POSIX.1 doesn't require SA_INTERRUPT and some systems
39022         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
39023         it's been part of POSIX.1 since day 1 (in 1988).
39024
39025 2000-01-17  Jim Meyering  <meyering@lucent.com>
39026
39027         * lib/interlock: Remove unused file.  Reported by François Pinard.
39028
39029 2000-01-16  Paul Eggert  <eggert@twinsun.com>
39030
39031         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
39032         alert, backslash, formfeed, and vertical tab unnecessarily in
39033         shell quoting style.
39034
39035 2000-01-16  Jim Meyering  <meyering@lucent.com>
39036
39037         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
39038         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
39039         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
39040         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
39041
39042 2000-01-16  Jim Meyering  <meyering@lucent.com>
39043
39044         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
39045         because the latter didn't work.
39046
39047 2000-01-15  Jim Meyering  <meyering@lucent.com>
39048
39049         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
39050         (AC_REPLACE_FUNCS): Add memcpy and memset.
39051         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
39052         Add strpbrk.
39053         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
39054
39055 2000-01-12  Jim Meyering  <meyering@lucent.com>
39056
39057         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
39058         (jm_PREREQ): Use it.
39059         (jm_PREREQ_READUTMP): New macro.
39060         (jm_PREREQ): Use it.
39061
39062 2000-01-11  Paul Eggert  <eggert@twinsun.com>
39063
39064         Quote multibyte characters correctly.
39065         * m4/c-bs-a.m4: New file.
39066         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
39067         (jm_PREREQ): Use it.
39068
39069 2000-01-11  Paul Eggert  <eggert@twinsun.com>
39070
39071         * m4/uintmax_t.m4: Port to autoconf 2.13.
39072
39073 2000-01-08  Jim Meyering  <meyering@ascend.com>
39074
39075         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
39076         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
39077
39078 2000-01-04  Jim Meyering  <meyering@ascend.com>
39079
39080         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
39081         jm_STRUCT_DIRENT_D_TYPE.
39082         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
39083         jm_STRUCT_DIRENT_D_INO.
39084         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
39085         jm_STRUCT_UTIMBUF.
39086         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
39087         renamings.
39088         * m4/utime.m4: Likewise.
39089
39090         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
39091         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
39092
39093 2000-01-03  Paul Eggert  <eggert@twinsun.com>
39094
39095         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
39096         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
39097
39098 2000-01-02  Jim Meyering  <meyering@ascend.com>
39099
39100         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
39101         remember if this is necessary.
39102
39103 1999-12-26  Jim Meyering  <meyering@ascend.com>
39104
39105         * m4/jm-macros.m4: Use it here.
39106         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
39107
39108 1999-12-23  Jim Meyering  <meyering@ascend.com>
39109
39110         * m4/jm-macros.m4: Check for clock_gettime (moved from
39111         fileutils/configure.in)
39112         Check for gettimeofday.
39113
39114 1999-12-20  Jim Meyering  <meyering@ascend.com>
39115
39116         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
39117         autoconf-2.14a-1999-12-20.
39118
39119 1999-12-19  Jim Meyering  <meyering@ascend.com>
39120
39121         * m4/lstat-slash.m4: New file.
39122         * m4/jm-macros.m4: Use the new macro:
39123         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
39124
39125 1999-12-07  Jim Meyering  <meyering@ascend.com>
39126
39127         * m4/perl.m4: Require that File::Compare be available, too.
39128         Too many systems seem to lack it.
39129
39130         * m4/strftime.m4: Add checks for most of the cpp macros tested in
39131         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
39132
39133 1999-11-18  Paul Eggert  <eggert@twinsun.com>
39134
39135         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
39136         problem with the QNX 4.25 shell, which doesn't propagate exit
39137         status of failed commands inside shell assignments.
39138
39139 1999-11-17  Jim Meyering  <meyering@ascend.com>
39140
39141         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
39142
39143 1999-11-07  Jim Meyering  <meyering@ascend.com>
39144
39145         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
39146
39147 1999-11-06  Jim Meyering  <meyering@ascend.com>
39148
39149         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
39150         * m4/jm-macros.m4 (jm_MACROS): Use it here.
39151
39152 1999-11-05  Jim Meyering  <meyering@ascend.com>
39153
39154         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
39155         configure.in of textutils, fileutils, and sh-utils into this one
39156         (shared between those packages) file.
39157         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
39158         AC_STRUCT_ST_BLKSIZE.
39159
39160 1999-11-03  Jim Meyering  <meyering@ascend.com>
39161
39162         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
39163         of AC_CHECK_TYPE checks includes unistd.h.
39164         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
39165         Suggestion from Akim Demaille.
39166
39167 1999-10-30  Jim Meyering  <meyering@ascend.com>
39168
39169         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
39170         m4-quoted string.
39171         * m4/ls-mntd-fs.m4: Likewise.
39172         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
39173         * m4/jm-winsz1.m4: Likewise.
39174
39175         * m4/const.m4: Remove file, since the fix made it into the experimental
39176         version of autoconf.
39177         * m4/mktime.m4: Likewise.
39178
39179         * m4/check-type.m4: Remove file, now that the latest version of
39180         AC_CHECK_TYPE takes a third arg to specify additional #includes.
39181
39182         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
39183         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
39184         AC_CHECK_TYPE.
39185
39186 1999-10-04  Jim Meyering  <meyering@ascend.com>
39187
39188         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
39189
39190 1999-09-22  Paul Eggert  <eggert@twinsun.com>
39191
39192         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
39193         2.95.1 bug with HP-UX 10.20.
39194
39195 1999-09-17  Jim Meyering  <meyering@ascend.com>
39196
39197         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
39198         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
39199         due to missing strdup (against sh-utils-2.0).
39200
39201 1999-08-29  Jim Meyering  <meyering@ascend.com>
39202
39203         * m4/jm-macros.m4: Require jm_BISON.
39204         * m4/bison.m4: New file.
39205
39206 1999-08-17  Paul Eggert  <eggert@twinsun.com>
39207
39208         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
39209         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
39210
39211 1999-08-05  Jim Meyering  <meyering@ascend.com>
39212
39213         * m4/getline.m4: Rename test file from conftestdata to conftest.data
39214         to avoid conflicts with `conftest' on 8+3 filesystems.
39215         Suggestion from Eli Zaretskii.
39216
39217 1999-08-04  Jim Meyering  <meyering@ascend.com>
39218
39219         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
39220         fileutils and sh-utils (textutils's getline test was inadequate).
39221         (AM_FUNC_GETLINE): Run this test.
39222         (AC_CHECK_FUNCS): Check for getdelim.
39223         Reported by Bob Proulx.
39224
39225 1999-08-02  Jim Meyering  <meyering@ascend.com>
39226
39227         * m4/jm-macros.m4: Add a comment.
39228
39229 1999-08-01  Paul Eggert  <eggert@twinsun.com>
39230
39231         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
39232         <inttypes.h> defines strtoumax as a macro (and not as a
39233         function).
39234
39235 1999-08-01  Paul Eggert  <eggert@twinsun.com>
39236
39237         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
39238         that we can shift, multiply and divide unsigned long long
39239         values; Ultrix cc can't do it.
39240
39241 1999-08-01  Paul Eggert  <eggert@twinsun.com>
39242
39243         * m4/mktime.m4: New file, which is a preview of what should appear
39244         in the next public autoconf release.
39245
39246 1999-08-01  Paul Eggert  <eggert@twinsun.com>
39247
39248         * m4/lfs.m4: Remove this file.
39249         * m4/largefile.m4: New file.  It contains the old contents of
39250         lfs.m4, except that all names with prefix AC_LFS have been
39251         changed to use the prefix AC_SYS_LARGEFILE instead, to be
39252         compatible with future autoconf versions.  Also, some minor m4
39253         quoting problems have been fixed.
39254
39255 1999-08-01  Paul Eggert  <eggert@twinsun.com>
39256
39257         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
39258         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
39259         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
39260         and simplify the shell code.
39261
39262 1999-08-01  Jim Meyering  <meyering@ascend.com>
39263
39264         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
39265         m4.
39266
39267 1999-07-20  Jim Meyering  <meyering@ascend.com>
39268
39269         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
39270
39271 1999-07-15  Jim Meyering  <meyering@ascend.com>
39272
39273         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
39274
39275 1999-05-22  Jim Meyering  <meyering@ascend.com>
39276
39277         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
39278
39279 1999-05-20  Jim Meyering  <meyering@ascend.com>
39280
39281         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
39282         Add a colon after each `then' in case $4 is empty.
39283
39284 1999-05-16  Jim Meyering  <meyering@ascend.com>
39285
39286         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
39287
39288 1999-05-10  Jim Meyering  <meyering@ascend.com>
39289
39290         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
39291
39292         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
39293         AC_FUNC_MKTIME.
39294
39295 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
39296
39297         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
39298
39299 1999-05-04  Paul Eggert  <eggert@twinsun.com>
39300
39301         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
39302         not CPPFLAGS, so that linking works correctly in IRIX.
39303
39304 1999-04-30  Paul Eggert  <eggert@twinsun.com>
39305
39306         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
39307
39308 1999-04-20  Paul Eggert  <eggert@twinsun.com>
39309
39310         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
39311         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
39312         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
39313         jm_AC_TYPE_UNSIGNED_LONG_LONG.
39314         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
39315
39316         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
39317
39318 1999-04-20  Jim Meyering  <meyering@ascend.com>
39319
39320         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
39321         AC_REPLACE xstroull if necessary.  From Paul Eggert.
39322         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
39323
39324 1999-04-18  Jim Meyering  <meyering@ascend.com>
39325
39326         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
39327         * m4/jm-macros.m4: Use it.
39328
39329 1999-04-06  Jim Meyering  <meyering@ascend.com>
39330
39331         * m4/strftime.m4: Remove test for %f.
39332
39333 1999-03-29  Jim Meyering  <meyering@ascend.com>
39334
39335         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
39336         superset of the AC_TYPE_* checks in the textutils, fileutils,
39337         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
39338         AC_TYPE_PID_T.
39339
39340 1999-03-28  Jim Meyering  <meyering@ascend.com>
39341
39342         * m4/jm-macros.m4: Define GNU_PACKAGE here.
39343         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
39344         replaced e.g., in the *.sh files of the sh-utils.
39345
39346 1999-03-20  Jim Meyering  <meyering@ascend.com>
39347
39348         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
39349         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
39350         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
39351
39352 1999-03-19  Jim Meyering  <meyering@ascend.com>
39353
39354         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
39355
39356 1999-03-12  Jim Meyering  <meyering@ascend.com>
39357
39358         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
39359
39360 1999-03-07  Jim Meyering  <meyering@ascend.com>
39361
39362         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
39363         declared.
39364
39365 1999-02-17  Jim Meyering  <meyering@ascend.com>
39366
39367         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
39368         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
39369
39370 1999-02-07  Jim Meyering  <meyering@ascend.com>
39371
39372         * m4/group-member.m4: New file -- extracted from sh-utils'
39373         configure.in.
39374
39375         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
39376         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
39377
39378 1999-02-06  Jim Meyering  <meyering@ascend.com>
39379
39380         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
39381         * m4/fnmatch.m4: Likewise.
39382         * m4/getgroups.m4: Likewise.
39383         * m4/lstat.m4: Likewise.
39384         * m4/malloc.m4: Likewise.
39385         * m4/putenv.m4: Likewise.
39386         * m4/realloc.m4: Likewise.
39387         * m4/regex.m4: Likewise.
39388         * m4/stat.m4: Likewise.
39389         * m4/strftime.m4: Likewise.
39390         Suggestion from Alain Magloire.
39391
39392         * m4/chown.m4: Use `.$ac_objext', not `.o'.
39393         * m4/fnmatch.m4: Likewise.
39394         * m4/getgroups.m4: Likewise.
39395         * m4/getline.m4: Likewise.
39396         * m4/lstat.m4: Likewise.
39397         * m4/malloc.m4: Likewise.
39398         * m4/memcmp.m4: Likewise.
39399         * m4/putenv.m4: Likewise.
39400         * m4/realloc.m4: Likewise.
39401         * m4/regex.m4: Likewise.
39402         * m4/stat.m4: Likewise.
39403         * m4/strftime.m4: Likewise.
39404         Suggestion from Alain Magloire.
39405
39406         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
39407         an argument.
39408
39409         * m4/regex.m4: Add a run-time Test for proper operation of
39410         re_compile_pattern.
39411
39412 1999-01-31  Jim Meyering  <meyering@ascend.com>
39413
39414         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
39415
39416 1999-01-30  Jim Meyering  <meyering@ascend.com>
39417
39418         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
39419
39420         * m4/jm-mktime.m4: Make this a wrapper around the official
39421         AM_FUNC_MKTIME rather than my private copy, now that the official one
39422         is up to date.
39423         * m4/mktime.m4: Remove file.
39424
39425         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
39426         * m4/uptime.m4: Likewise.
39427         * m4/uintmax_t.m4: Likewise.
39428
39429 1999-01-28  Jim Meyering  <meyering@ascend.com>
39430
39431         * m4/jm-macros.m4: Use jm_AFS.
39432         * m4/afs.m4: New file (from fileutils' configure.in).
39433
39434         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
39435         * m4/chown.m4: Likewise.
39436         * m4/d-ino.m4: Likewise.
39437         * m4/d-type.m4: Likewise.
39438         * m4/fnmatch.m4: Likewise.
39439         * m4/getgroups.m4: Likewise.
39440         * m4/gettext.m4: Likewise.
39441         * m4/jm-mktime.m4: Likewise.
39442         * m4/jm-winsz2.m4: Likewise.
39443         * m4/lcmessage.m4: Likewise.
39444         * m4/ls-mntd-fs.m4: Likewise.
39445         * m4/malloc.m4: Likewise.
39446         * m4/memcmp.m4: Likewise.
39447         * m4/putenv.m4: Likewise.
39448         * m4/realloc.m4: Likewise.
39449         * m4/st_mtim.m4: Likewise.
39450         * m4/strftime.m4: Likewise.
39451
39452 1999-01-16  Jim Meyering  <meyering@ascend.com>
39453
39454         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
39455         (ARGMATCH_DIE_DECL): Define.
39456
39457 1999-01-12  Jim Meyering  <meyering@ascend.com>
39458
39459         * m4/Makefile.am.in: Rewrite to avoid using fmt.
39460         Reported by Lars Hecking.
39461
39462 1999-01-10  Jim Meyering  <meyering@ascend.com>
39463
39464         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
39465         gross kludge.
39466         * m4/inttypes_h.m4: Likewise.
39467         * m4/lstat.m4: Likewise.
39468         * m4/malloc.m4: Likewise.
39469         * m4/readdir.m4: Likewise.
39470         * m4/realloc.m4: Likewise.
39471         * m4/st_dm_mode.m4: Likewise.
39472         * m4/stat.m4: Likewise.
39473         * m4/utimbuf.m4: Likewise.
39474         * m4/utimes.m4: Likewise.
39475
39476         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
39477         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
39478         comments in config.h.in are meaningful.
39479
39480         * m4/jm-macros.m4: Require autoconf-2.13 here.
39481
39482         * m4/regex.m4: By default, don't use the included regex.c on systems
39483         with glibc 2.  Suggestion from Uli Drepper.
39484
39485 1999-01-02  Jim Meyering  <meyering@ascend.com>
39486
39487         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
39488
39489 1998-12-18  Jim Meyering  <meyering@ascend.com>
39490
39491         * m4/Makefile.am.in (Makefile.am): Simplify rule.
39492         Based on a suggestion from Lars Hecking.
39493
39494 1998-11-16  Paul Eggert  <eggert@twinsun.com>
39495
39496         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
39497
39498 1998-11-16  Jim Meyering  <meyering@ascend.com>
39499
39500         * m4/lfs.m4: Double-quote the `uname...` expression.
39501
39502 1998-11-14  Jim Meyering  <meyering@ascend.com>
39503
39504         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
39505         * m4/stat.m4: Likewise.
39506
39507 1998-11-03  Jim Meyering  <meyering@ascend.com>
39508
39509         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
39510         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
39511
39512 1998-10-18  Jim Meyering  <meyering@ascend.com>
39513
39514         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
39515
39516 1998-10-17  Jim Meyering  <meyering@ascend.com>
39517
39518         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
39519         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
39520         calls for those previously hard-coded headers.  Instead, take a new
39521         parameter.
39522         (jm_CHECK_DECLARATIONS): Reflect interface change.
39523         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
39524         (jm_CHECK_DECL_LOCALTIME_R): New macro.
39525
39526         * m4/mktime.m4: Test for spring-forward gap before long-running test.
39527
39528 1998-10-14  Jim Meyering  <meyering@ascend.com>
39529
39530         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
39531         instead of "TZ=America/Vancouver".  From Paul Eggert.
39532
39533 1998-10-11  Jim Meyering  <meyering@ascend.com>
39534
39535         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
39536         This adds a test for a recently added compatibility fix for mktime.c.
39537         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
39538
39539 1998-09-27  Jim Meyering  <meyering@ascend.com>
39540
39541         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
39542
39543         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
39544         ../configure.in, including a change from Gordon Matzigkeit to allow
39545         cross-compiling for the Hurd.
39546
39547         * m4/glibc.m4: New file/macro to test for the GNU C Library
39548         versions 1 and 2.  From Gordon Matzigkeit.
39549         Indent.
39550
39551 1998-09-21  Jim Meyering  <meyering@ascend.com>
39552
39553         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
39554
39555 1998-08-18  Paul Eggert  <eggert@twinsun.com>
39556
39557         Port nanosecond-resolution times to UnixWare 2.1.2 and
39558         pedantic Solaris 2.6.
39559
39560         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
39561         AC_STRUCT_ST_MTIM.
39562         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
39563         Generate name of ns member, instead of just 1 or undef.
39564         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
39565
39566 1998-08-15  Jim Meyering  <meyering@ascend.com>
39567
39568         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
39569         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
39570         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
39571         instead of jm_TYPE_SSIZE_T.
39572
39573 1998-08-12  Jim Meyering  <meyering@ascend.com>
39574
39575         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
39576
39577 1998-08-02  Jim Meyering  <meyering@ascend.com>
39578
39579         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
39580         in acconfig.h manually.
39581
39582 1998-07-31  Paul Eggert  <eggert@twinsun.com>
39583
39584         * m4/st_mtim.m4: New file.
39585
39586 1998-07-28  Jim Meyering  <meyering@ascend.com>
39587
39588         * m4/utimes.m4: Undef stat.
39589
39590 1998-07-25  Jim Meyering  <meyering@ascend.com>
39591
39592         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
39593         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
39594
39595 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
39596
39597         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
39598         uid and gid actually remain unchanged.
39599
39600 1998-07-07  Jim Meyering  <meyering@ascend.com>
39601
39602         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
39603
39604 1998-07-04  Jim Meyering  <meyering@ascend.com>
39605
39606         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
39607         to prove that this macro can be used in packages without regex.c.
39608
39609 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
39610
39611         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
39612         is to be used.
39613
39614 1998-07-03  Jim Meyering  <meyering@ascend.com>
39615
39616         * m4/gettext.m4: Add -lintl if it's found to be necessary.
39617
39618         * m4/gettext.m4: New file -- from gettext-0.10.35.
39619         * m4/lcmessage.m4: Likewise.
39620         * m4/progtest.m4: Likewise.
39621
39622         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
39623         * m4/jm-macros.m4: Require the new macro.
39624
39625 1998-06-29  Jim Meyering  <meyering@ascend.com>
39626
39627         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
39628         for the definition of NGROUPS (used in a system header included
39629         by sys/mount.h).
39630
39631 1998-06-28  Jim Meyering  <meyering@ascend.com>
39632
39633         * m4/ls-mntd-fs.m4: New file.
39634         * m4/fstypename.m4: New file.
39635
39636         * m4/jm-macros.m4: Require the new macro.
39637         * m4/jm-glibc-io.m4: New file.
39638
39639 1998-05-19  Jim Meyering  <meyering@ascend.com>
39640
39641         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
39642         * m4/lchown.m4: New file.
39643
39644         * m4/Makefile.am.in: New file.
39645         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
39646
39647 1998-05-14  Jim Meyering  <meyering@ascend.com>
39648
39649         * m4/Makefile.am (EXTRA_DIST): Add them.
39650         * m4/jm-macros.m4: New file.
39651         * m4/utimbuf.m4: New file.
39652
39653 1998-05-12  Jim Meyering  <meyering@ascend.com>
39654
39655         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
39656
39657 1998-05-11  Jim Meyering  <meyering@ascend.com>
39658
39659         * m4/isc-posix.m4: New file.
39660
39661 1998-05-10  Jim Meyering  <meyering@ascend.com>
39662
39663         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
39664
39665 1998-05-09  Jim Meyering  <meyering@ascend.com>
39666
39667         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
39668         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
39669         with automake.
39670
39671         * m4/ssize_t.m4: New file.
39672         * m4/mktime.m4: Remove file -- the new automake has this now.
39673
39674 1998-04-26  Jim Meyering  <meyering@ascend.com>
39675
39676         * m4/assert.m4: New file.
39677         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
39678
39679 1998-04-05  Jim Meyering  <meyering@ascend.com>
39680
39681         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
39682         (jm_PREREQ): Use it here.
39683
39684 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
39685
39686         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
39687         in acconfig.h.
39688
39689 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
39690
39691         * m4/prereq.m4: New file.
39692         * m4/error.m4: New file.
39693         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
39694
39695 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
39696
39697         * m4/getline.m4: Don't set am_cv_func_working_getline before the
39698         cache-check for the same variable -- that defeated the purpose of
39699         the test; the test program was never run.  This was a problem only
39700         on systems with losing getline functions -- HP-UX 10.20 is one.
39701         Reported by Bjorn Helgaas.
39702
39703 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
39704
39705         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
39706
39707 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
39708
39709         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
39710
39711         * m4/const.m4: New file.  Use an initializer in this declaration
39712         typedef int charset[2]; const charset x;
39713         Reported by Bob Glickstein.
39714
39715 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
39716
39717         * m4/chown.m4: Fix reversed types on -1 args to chown.
39718         From Kaveh Ghazi.
39719
39720 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
39721
39722         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
39723         Add lseek and memchr.
39724
39725         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
39726         T.E.Dickey <dickey@clark.net> said that some older preprocessors
39727         have a 20-character limit on names.
39728
39729 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
39730
39731         * m4/inttypes_h.m4: New file.
39732         * m4/uintmax_t.m4: New file.
39733         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
39734
39735
39736         -----
39737
39738         Copyright (C) 1997-2008 Free Software Foundation, Inc.
39739
39740         Copying and distribution of this file, with or without
39741         modification, are permitted provided the copyright notice
39742         and this notice are preserved.