Work around a HP cc compiler bug.
[pspp] / ChangeLog
1 2008-04-13  Bruno Haible  <bruno@clisp.org>
2
3         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
4         expression, so as to avoid HP-UX 11 cc compiler bug.
5
6 2008-04-13  Bruno Haible  <bruno@clisp.org>
7
8         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
9
10 2008-04-13  Bruno Haible  <bruno@clisp.org>
11
12         * lib/git-merge-changelog.c: Remove empty declaration outside of
13         functions.
14
15 2008-04-13  Bruno Haible  <bruno@clisp.org>
16
17         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
18
19 2008-04-13  Bruno Haible  <bruno@clisp.org>
20
21         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
22         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
23         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
24         also if it exists but lacks definitions of the SHUT_* macros.
25         * modules/sys_socket (Description): Update.
26         Reported by Elbert Pol <e.pol@chello.nl>.
27
28 2008-04-13  Bruno Haible  <bruno@clisp.org>
29
30         * lib/localcharset.c (OS2): Don't redefine if already defined.
31         Reported by Elbert Pol <e.pol@chello.nl>.
32
33 2008-04-13  Bruno Haible  <bruno@clisp.org>
34
35         * lib/binary-io.h [__EMX__]: Include <io.h>.
36         Reported by Elbert Pol <e.pol@chello.nl>.
37
38 2008-04-12  Bruno Haible  <bruno@clisp.org>
39
40         * lib/fpucw.h: Enable the definitions also for x86_64.
41         Needed for NetBSD/x86_64.
42         Reported by Thomas Klausner <tk@giga.or.at>.
43
44 2008-04-12  Bruno Haible  <bruno@clisp.org>
45
46         * tests/test-strtod.c: Include isnand.h.
47         (main): Use isnand instead of isnan.
48         Reported by Jim Meyering.
49
50 2008-04-12  Bruno Haible  <bruno@clisp.org>
51
52         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
53         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
54
55 2008-04-12  Jim Meyering  <meyering@redhat.com>
56
57         * m4/math_h.m4 (gl_MATH_H): Fix typos.
58
59 2008-04-12  Bruno Haible  <bruno@clisp.org>
60
61         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
62         Reported by Elbert Pol <e.pol@chello.nl>.
63
64 2008-04-12  Eric Blake  <ebb9@byu.net>
65
66         Work around Solaris 10 math.h bug.
67         * m4/math_h.m4 (gl_MATH_H): Check for bug.
68         (gl_MATH_H_DEFAULTS): Set up default.
69         * modules/math (Makefile.am): Replace new indicators.
70         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
71         * tests/test-math.c (main): Test this.
72         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
73         * doc/posix-headers/math.texi (math.h): Mention bug.
74         Reported by Nelson H. F. Beebe and Jim Meyering.
75
76 2008-04-11  Bruno Haible  <bruno@clisp.org>
77
78         Adapt to future versions of Apple GCC.
79         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
80         Reported by Peter O'Gorman <peter@pogma.com>.
81
82 2008-04-11  Bruno Haible  <bruno@clisp.org>
83
84         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
85
86 2008-04-11  Bruno Haible  <bruno@clisp.org>
87
88         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
89
90         * modules/getaddrinfo-tests (Makefile.am): Define
91         test_getaddrinfo_LDADD.
92
93 2008-04-11  Bruno Haible  <bruno@clisp.org>
94
95         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
96         (init): Fix syntax error.
97         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
98         is declared.
99
100 2008-04-11  Bruno Haible  <bruno@clisp.org>
101
102         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
103         * modules/glob (Depends-on): Add stdbool.
104
105 2008-04-11  Bruno Haible  <bruno@clisp.org>
106
107         * lib/trim.c: Include <string.h>.
108
109 2008-04-11  Eric Blake  <ebb9@byu.net>
110
111         Avoid compile failure on OS/2.
112         * lib/regex_internal.h (internal_function): Disable optimization
113         on OS/2 (__EMX__), where it caused compiler error.
114         Reported by Elbert Pol.
115
116 2008-04-11  Bruno Haible  <bruno@clisp.org>
117
118         Flush the standard error stream before aborting. Needed on mingw.
119         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
120         * tests/test-array_list.c (ASSERT): Likewise.
121         * tests/test-array_oset.c (ASSERT): Likewise.
122         * tests/test-avltree_list.c (ASSERT): Likewise.
123         * tests/test-avltree_oset.c (ASSERT): Likewise.
124         * tests/test-avltreehash_list.c (ASSERT): Likewise.
125         * tests/test-binary-io.c (ASSERT): Likewise.
126         * tests/test-byteswap.c (ASSERT): Likewise.
127         * tests/test-c-ctype.c (ASSERT): Likewise.
128         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
129         * tests/test-c-strcasestr.c (ASSERT): Likewise.
130         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
131         * tests/test-c-strstr.c (ASSERT): Likewise.
132         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
133         * tests/test-canonicalize.c (ASSERT): Likewise.
134         * tests/test-carray_list.c (ASSERT): Likewise.
135         * tests/test-ceilf1.c (ASSERT): Likewise.
136         * tests/test-ceilf2.c (ASSERT): Likewise.
137         * tests/test-ceill.c (ASSERT): Likewise.
138         * tests/test-count-one-bits.c (ASSERT): Likewise.
139         * tests/test-fbufmode.c (ASSERT): Likewise.
140         * tests/test-fflush2.c (ASSERT): Likewise.
141         * tests/test-floorf1.c (ASSERT): Likewise.
142         * tests/test-floorf2.c (ASSERT): Likewise.
143         * tests/test-floorl.c (ASSERT): Likewise.
144         * tests/test-fopen.c (ASSERT): Likewise.
145         * tests/test-fpending.c (ASSERT): Likewise.
146         * tests/test-fprintf-posix.c (ASSERT): Likewise.
147         * tests/test-fpurge.c (ASSERT): Likewise.
148         * tests/test-freadable.c (ASSERT): Likewise.
149         * tests/test-freadahead.c (ASSERT): Likewise.
150         * tests/test-freading.c (ASSERT): Likewise.
151         * tests/test-freadptr.c (ASSERT): Likewise.
152         * tests/test-freadptr2.c (ASSERT): Likewise.
153         * tests/test-freadseek.c (ASSERT): Likewise.
154         * tests/test-freopen.c (ASSERT): Likewise.
155         * tests/test-frexp.c (ASSERT): Likewise.
156         * tests/test-frexpl.c (ASSERT): Likewise.
157         * tests/test-fseek.c (ASSERT): Likewise.
158         * tests/test-fseeko.c (ASSERT): Likewise.
159         * tests/test-fstrcmp.c (ASSERT): Likewise.
160         * tests/test-ftell.c (ASSERT): Likewise.
161         * tests/test-ftello.c (ASSERT): Likewise.
162         * tests/test-func.c (ASSERT): Likewise.
163         * tests/test-fwritable.c (ASSERT): Likewise.
164         * tests/test-fwriting.c (ASSERT): Likewise.
165         * tests/test-getdelim.c (ASSERT): Likewise.
166         * tests/test-getline.c (ASSERT): Likewise.
167         * tests/test-i-ring.c (ASSERT): Likewise.
168         * tests/test-iconv-utf.c (ASSERT): Likewise.
169         * tests/test-iconv.c (ASSERT): Likewise.
170         * tests/test-isfinite.c (ASSERT): Likewise.
171         * tests/test-isnand.c (ASSERT): Likewise.
172         * tests/test-isnanf.c (ASSERT): Likewise.
173         * tests/test-isnanl.h (ASSERT): Likewise.
174         * tests/test-ldexpl.c (ASSERT): Likewise.
175         * tests/test-linked_list.c (ASSERT): Likewise.
176         * tests/test-linkedhash_list.c (ASSERT): Likewise.
177         * tests/test-localename.c (ASSERT): Likewise.
178         * tests/test-lseek.c (ASSERT): Likewise.
179         * tests/test-mbscasecmp.c (ASSERT): Likewise.
180         * tests/test-mbscasestr1.c (ASSERT): Likewise.
181         * tests/test-mbscasestr2.c (ASSERT): Likewise.
182         * tests/test-mbscasestr3.c (ASSERT): Likewise.
183         * tests/test-mbscasestr4.c (ASSERT): Likewise.
184         * tests/test-mbschr.c (ASSERT): Likewise.
185         * tests/test-mbscspn.c (ASSERT): Likewise.
186         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
187         * tests/test-mbspbrk.c (ASSERT): Likewise.
188         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
189         * tests/test-mbsrchr.c (ASSERT): Likewise.
190         * tests/test-mbsspn.c (ASSERT): Likewise.
191         * tests/test-mbsstr1.c (ASSERT): Likewise.
192         * tests/test-mbsstr2.c (ASSERT): Likewise.
193         * tests/test-mbsstr3.c (ASSERT): Likewise.
194         * tests/test-memchr2.c (ASSERT): Likewise.
195         * tests/test-memmem.c (ASSERT): Likewise.
196         * tests/test-open.c (ASSERT): Likewise.
197         * tests/test-printf-frexp.c (ASSERT): Likewise.
198         * tests/test-printf-frexpl.c (ASSERT): Likewise.
199         * tests/test-printf-posix.c (ASSERT): Likewise.
200         * tests/test-quotearg.c (ASSERT): Likewise.
201         * tests/test-rbtree_list.c (ASSERT): Likewise.
202         * tests/test-rbtree_oset.c (ASSERT): Likewise.
203         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
204         * tests/test-round1.c (ASSERT): Likewise.
205         * tests/test-roundf1.c (ASSERT): Likewise.
206         * tests/test-roundl.c (ASSERT): Likewise.
207         * tests/test-signbit.c (ASSERT): Likewise.
208         * tests/test-sleep.c (ASSERT): Likewise.
209         * tests/test-snprintf-posix.c (ASSERT): Likewise.
210         * tests/test-snprintf.c (ASSERT): Likewise.
211         * tests/test-sprintf-posix.c (ASSERT): Likewise.
212         * tests/test-stat-time.c (ASSERT): Likewise.
213         * tests/test-strcasestr.c (ASSERT): Likewise.
214         * tests/test-strerror.c (ASSERT): Likewise.
215         * tests/test-striconv.c (ASSERT): Likewise.
216         * tests/test-striconveh.c (ASSERT): Likewise.
217         * tests/test-striconveha.c (ASSERT): Likewise.
218         * tests/test-strsignal.c (ASSERT): Likewise.
219         * tests/test-strstr.c (ASSERT): Likewise.
220         * tests/test-strtod.c (ASSERT): Likewise.
221         * tests/test-trunc1.c (ASSERT): Likewise.
222         * tests/test-trunc2.c (ASSERT): Likewise.
223         * tests/test-truncf1.c (ASSERT): Likewise.
224         * tests/test-truncf2.c (ASSERT): Likewise.
225         * tests/test-truncl.c (ASSERT): Likewise.
226         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
227         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
228         * tests/test-vasnprintf.c (ASSERT): Likewise.
229         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
230         * tests/test-vasprintf.c (ASSERT): Likewise.
231         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
232         * tests/test-vprintf-posix.c (ASSERT): Likewise.
233         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
234         * tests/test-vsnprintf.c (ASSERT): Likewise.
235         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
236         * tests/test-wcwidth.c (ASSERT): Likewise.
237         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
238         * tests/test-xprintf-posix.c (ASSERT): Likewise.
239         * tests/test-xvasprintf.c (ASSERT): Likewise.
240         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
241         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
242         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
243         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
244         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
245         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
246         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
247         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
248         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
249         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
250         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
251         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
252         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
253         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
254         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
255         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
256         * tests/unictype/test-block_list.c (ASSERT): Likewise.
257         * tests/unictype/test-block_of.c (ASSERT): Likewise.
258         * tests/unictype/test-block_test.c (ASSERT): Likewise.
259         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
260         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
261         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
262         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
263         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
264         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
265         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
266         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
267         * tests/unictype/test-combining.c (ASSERT): Likewise.
268         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
269         * tests/unictype/test-digit.c (ASSERT): Likewise.
270         * tests/unictype/test-mirror.c (ASSERT): Likewise.
271         * tests/unictype/test-numeric.c (ASSERT): Likewise.
272         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
273         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
274         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
275         * tests/unictype/test-scripts.c (ASSERT): Likewise.
276         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
277         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
278         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
279         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
280         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
281         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
282         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
283         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
284         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
285         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
286         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
287         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
288         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
289         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
290         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
291         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
292         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
293         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
294         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
295         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
296         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
297         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
298         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
299         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
300         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
301         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
302         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
303         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
304         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
305         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
306         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
307         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
308         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
309         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
310         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
311         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
312         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
313         Reported by Eric Blake.
314
315 2008-04-11  Bruno Haible  <bruno@clisp.org>
316
317         * lib/wchar.in.h: Tweak comment.
318
319 2008-04-11  Bruno Haible  <bruno@clisp.org>
320
321         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
322         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
323         gl_COMMON.
324         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
325
326 2008-04-11  Bruno Haible  <bruno@clisp.org>
327
328         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
329
330 2008-04-11  Simon Josefsson  <simon@josefsson.org>
331
332         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
333         of attempting to use non-existing /dev/*random.  Based on patch
334         from Adam Strzelecki <ono@java.pl> in
335         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
336
337 2008-04-08  Bruno Haible  <bruno@clisp.org>
338
339         Add tentative support for emx+gcc.
340         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
341         * lib/fpurge.c (fpurge): Likewise.
342         * lib/freadable.c (freadable): Likewise.
343         * lib/freadahead.c (freadahead): Likewise.
344         * lib/freading.c (freading): Likewise.
345         * lib/freadptr.c (freadptr): Likewise.
346         * lib/freadseek.c (freadptrinc): Likewise.
347         * lib/fseeko.c (rpl_fseeko): Likewise.
348         * lib/fseterr.c (fseterr): Likewise.
349         * lib/fwritable.c (fwritable): Likewise.
350         * lib/fwriting.c (fwriting): Likewise.
351         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
352
353 2008-04-09  Eric Blake  <ebb9@byu.net>
354
355         Avoid some autoconf warnings.
356         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
357         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
358         * m4/afs.m4 (gl_AFS): Likewise.
359         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
360         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
361         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
362         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
363         (gl_INTEGER_TYPE_SUFFIX): Likewise.
364         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
365         (AC_CHECK_DECLS_ONCE): Likewise.
366         Rename file...
367         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
368         gnulib-tool requires autoconf 2.59 or better.
369         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
370
371 2008-04-08  Eric Blake  <ebb9@byu.net>
372
373         Use 'git describe --match' if present (added in git 1.5.5).
374         * build-aux/git-version-gen: Limit result to tags that match 'v*'
375         if possible.
376
377 2008-04-08  Bruno Haible  <bruno@clisp.org>
378
379         Add tentative support for OpenServer.
380         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
381         _ptr, _cnt.
382         * lib/fpurge.c (fpurge): Likewise.
383         * lib/freadable.c (freadable): Likewise.
384         * lib/freadahead.c (freadahead): Likewise.
385         * lib/freading.c (freading): Likewise.
386         * lib/freadptr.c (freadptr): Likewise.
387         * lib/freadseek.c (freadptrinc): Likewise.
388         * lib/fseeko.c (rpl_fseeko): Likewise.
389         * lib/fseterr.c (fseterr): Likewise.
390         * lib/fwritable.c (fwritable): Likewise.
391         * lib/fwriting.c (fwriting): Likewise.
392         Reported by Roger Cornelius <rac@tenzing.org> and
393         Brian K. White <brian@aljex.com>.
394
395 2008-04-06  Jim Meyering  <meyering@redhat.com>
396
397         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
398
399 2008-04-06  Bruno Haible  <bruno@clisp.org>
400
401         Avoid possible error with non-ASCII bytes in UTF-8 locales.
402         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
403         * tests/test-printf-posix.sh: Likewise.
404         * tests/test-vfprintf-posix.sh: Likewise.
405         * tests/test-vprintf-posix.sh: Likewise.
406         * tests/test-xprintf-posix.sh: Likewise.
407
408 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
409
410         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
411         hide error from 'ls', needed on OS/2.
412         Report by Elbert Pol <elbert.pol@gmail.com>.
413
414 2008-04-04  Eric Blake  <ebb9@byu.net>
415
416         Make test-fseeko.c failures meaningful.
417         * tests/test-fseeko.c: Print line number on failure.
418         * tests/test-fseek.c: Likewise.
419         Reported by Nelson H. F. Beebe.
420
421         Improve strtod bug detection check.
422         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
423         required for Solaris 10.
424         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
425
426 2008-04-04  Bruno Haible  <bruno@clisp.org>
427
428         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
429         by m4/setenv.m4.
430
431 2008-04-03  Eric Blake  <ebb9@byu.net>
432
433         Ensure sane .version contents.
434         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
435         version string.
436         * build-aux/git-version-gen: Improve documentation.
437
438         Make GNU make output nicer.
439         * top/GNUmakefile [!_have-Makefile]: Add dependency on
440         MAKECMDGOALS to enforce message for all command line targets.  Set
441         srcdir for use in maint.mk.
442
443         Another maintainer tweak.
444         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
445         a target that regenerates version.
446
447 2008-04-03  Jim Meyering  <meyering@redhat.com>
448
449         vc-list-files: don't cause coreutils "make po-check" failure
450         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
451
452 2008-04-03  Eric Blake  <ebb9@byu.net>
453
454         Allow VPATH usage of vc-list-files.
455         * build-aux/vc-list-files (scriptversion): Add timestamp.
456         (options): Add --help, --version, -C.
457         (CVS): Support installed cvsu.
458
459 2008-04-02  Bruno Haible  <bruno@clisp.org>
460
461         Avoid some "statement with no effect" warnings from gcc.
462         * tests/test-wctype.c (main): Explicitly ignore unused values.
463         Reported by Jim Meyering.
464
465 2008-04-02  Jim Meyering  <meyering@redhat.com>
466
467         Avoid some warnings from "gcc -Wshadow".
468         * tests/test-frexp.c (exp): Define to a different identifier.
469         * tests/test-frexpl.c (exp): Likewise.
470
471 2008-04-03  Jim Meyering  <meyering@redhat.com>
472
473         bootstrap: remove dangling *.[ch] symlinks from lib
474         * build-aux/bootstrap [dangling symlink removal]: Move find's
475         -depth option to precede all others, to avoid a warning.
476         Remove *.[ch] files too, and from "$source_base" (usually lib/).
477
478 2008-04-02  Bruno Haible  <bruno@clisp.org>
479
480         Avoid some warnings from "gcc -Wshadow".
481         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
482         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
483         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
484         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
485         Reported by Jim Meyering.
486
487 2008-04-01  Bruno Haible  <bruno@clisp.org>
488
489         Fix test to work on IRIX 6.5 with cc.
490         * tests/test-math.c (numeric_equal): New function.
491         (main): Use it.
492
493 2008-04-01  Bruno Haible  <bruno@clisp.org>
494
495         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
496
497 2008-04-01  Bruno Haible  <bruno@clisp.org>
498
499         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
500         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
501         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
502         (Depends-on): Remove math.
503
504         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
505         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
506         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
507         (Depends-on): Remove math.
508
509         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
510         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
511         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
512         (Depends-on): Remove math.
513         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
514         (Depends-on): Remove math.
515
516         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
517         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
518         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
519         (Depends-on): Remove math.
520         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
521         (Depends-on): Remove math.
522
523         * tests/test-round1.c: Include nan.h.
524         (main): Use NaNd instead of NAN.
525         * modules/round-tests (Files): Add tests/nan.h.
526
527         * tests/test-trunc1.c: Include nan.h.
528         (main): Use NaNd instead of NAN.
529         * modules/trunc-tests (Files): Add tests/nan.h.
530
531         * tests/test-roundf1.c: Include nan.h.
532         (main): Use NaNf instead of NAN.
533         * modules/roundf-tests (Files): Add tests/nan.h.
534
535         * tests/test-truncf1.c: Include nan.h.
536         (main): Use NaNf instead of NAN.
537         * modules/truncf-tests (Files): Add tests/nan.h.
538
539         * tests/test-ceilf1.c: Include nan.h.
540         (main): Use NaNf instead of NAN.
541         * modules/ceilf-tests (Files): Add tests/nan.h.
542
543         * tests/test-floorf1.c: Include nan.h.
544         (main): Use NaNf instead of NAN.
545         * modules/floorf-tests (Files): Add tests/nan.h.
546
547         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
548         (main): Use NaNf instead of NAN.
549         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
550
551         * tests/test-isnand.c: Include nan.h instead of <math.h>.
552         (main): Use NaNd instead of NAN.
553         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
554
555         * tests/test-frexp.c: Include nan.h.
556         (main): Use NaNd instead of NAN.
557         * modules/frexp-tests (Files): Add tests/nan.h.
558
559         * lib/isnan.c: Don't include <math.h>.
560         (FUNC): Don't use NAN macro.
561         * modules/isnand-nolibm (Depends-on): Remove math.
562         * modules/isnanf-nolibm (Depends-on): Remove math.
563         * modules/isnanl (Depends-on): Remove math.
564         * modules/isnanl-nolibm (Depends-on): Remove math.
565
566         * tests/nan.h: New file.
567
568 2008-04-01  Eric Blake  <ebb9@byu.net>
569
570         Fix typos.
571         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
572         values to be the right type.
573
574         For now, cater to gnulib strtod inaccuracies.
575         * tests/test-strtod.c (main): Allow 1-ulp error on expected
576         fractional results.  While not as nice from a QoI perspective, it
577         is a quicker patch than correctly implementing decimal to binary
578         rounding.
579
580 2008-03-31  Eric Blake  <ebb9@byu.net>
581
582         Guarantee a definition of NAN.
583         * lib/math.in.h (NAN): Define if missing.
584         * tests/test-math.c (main): Test it.
585         * doc/posix-headers/math.texi (math.h): Document this.
586         * lib/isnan.c (rpl_isnand): Use it.
587         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
588         * tests/test-floorf1.c (NaN): Likewise.
589         * tests/test-frexp.c (NaN): Likewise.
590         * tests/test-isnand.c (NaN): Likewise.
591         * tests/test-isnanf.c (NaN): Likewise.
592         * tests/test-round1.c (NaN): Likewise.
593         * tests/test-roundf1.c (NaN): Likewise.
594         * tests/test-snprintf-posix.h (NaN): Likewise.
595         * tests/test-sprintf-posix.h (NaN): Likewise.
596         * tests/test-trunc1.c (NaN): Likewise.
597         * tests/test-truncf1.c (NaN): Likewise.
598         * tests/test-vasnprintf-posix.c (NaN): Likewise.
599         * tests/test-vasprintf-posix.c (NaN): Likewise.
600         * modules/isnand-nolibm (Depends-on): Add math.
601         * modules/isnanf-nolibm (Depends-on): Likewise.
602         * modules/isnanl (Depends-on): Likewise.
603         * modules/isnanl-nolibm (Depends-on): Likewise.
604         * modules/snprintf-posix-tests (Depends-on): Likewise.
605         * modules/sprintf-posix-tests (Depends-on): Likewise.
606         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
607         * modules/vsprintf-posix-tests (Depends-on): Likewise.
608         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
609         * modules/vasprintf-posix-tests (Depends-on): Likewise.
610
611 2008-03-31  Bruno Haible  <bruno@clisp.org>
612
613         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
614         * doc/posix-functions/strtod.texi: Likewise.
615
616 2008-03-31  Bruno Haible  <bruno@clisp.org>
617
618         * tests/test-strtod.c (main): Don't use C99 syntax.
619
620 2008-03-31  Bruno Haible  <bruno@clisp.org>
621
622         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
623         Reported by Eric Blake.
624
625 2008-03-31  Jim Meyering  <meyering@redhat.com>
626
627         Don't compare actual signbit return values.
628         * tests/test-strtod.c (main): Rather, compare only their
629         zero/non-zero nature.
630
631 2008-03-31  Eric Blake  <ebb9@byu.net>
632
633         More strtod documentation.
634         * doc/posix-functions/strtod.texi (strtod): Interpret more test
635         failures as distinct bugs.
636
637 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
638
639         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
640         Problem reported by Erik Benada in
641         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
642
643 2008-03-30  Bruno Haible  <bruno@clisp.org>
644
645         * tests/test-strtod.c: Add comments about which assertion fails on which
646         platform.
647         * doc/posix-functions/strtod.texi: Add info about many more platforms.
648
649 2008-03-30  Eric Blake  <ebb9@byu.net>
650
651         Test signbit behavior on zeros.
652         * tests/test-signbit.c (test_signbitf): Add tests for zero.
653         (test_signbitd, test_signbitl): Likewise.
654
655         More strtod touchups.
656         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
657         sign of negative underflow, for now.  Use .5, not .1.
658         * doc/posix-functions/strtod.texi (strtod): Mention these
659         limitations.
660         Reported by Jim Meyering.
661
662 2008-03-30  Bruno Haible  <bruno@clisp.org>
663
664         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
665         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
666
667 2008-03-30  Bruno Haible  <bruno@clisp.org>
668
669         Avoid failure when attempting to return empty iconv results on some
670         platforms.
671         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
672         allocation, don't report ENOMEM when the resulting string is empty.
673
674 2008-03-30  Bruno Haible  <bruno@clisp.org>
675
676         Fix buffer overrun.
677         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
678         Don't consider the width for tmp_length. Check count against tmp_length
679         before doing the padding. Ensure enough allocation during padding.
680
681 2008-03-30  Eric Blake  <ebb9@byu.net>
682
683         strtod touchups.
684         * lib/strtod.c (strtod): Avoid compiler warnings.
685         Reported by Jim Meyering.
686
687 2008-03-30  Bruno Haible  <bruno@clisp.org>
688
689         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
690         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
691         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
692         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
693         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
694         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
695         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
696         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
697
698         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
699         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
700         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
701         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
702         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
703         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
704         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
705         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
706
707         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
708         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
709         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
710         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
711         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
712         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
713         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
714         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
715
716         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
717         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
718
719         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
720         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
721
722         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
723         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
724
725         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
726         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
727         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
728
729         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
730         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
731         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
732
733         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
734         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
735         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
736
737         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
738         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
739         * modules/vasprintf (Depends-on): Add EOVERFLOW.
740
741         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
742         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
743         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
744         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
745         (Depends-on): Add EOVERFLOW.
746         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
747         (Depends-on): Add EOVERFLOW.
748         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
749         (Depends-on): Add EOVERFLOW.
750         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
751         (Depends-on): Add EOVERFLOW.
752         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
753         (Depends-on): Add EOVERFLOW.
754         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
755         (Depends-on): Add EOVERFLOW.
756         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
757         (Depends-on): Add EOVERFLOW.
758         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
759         (Depends-on): Add EOVERFLOW.
760
761         * lib/sprintf.c (EOVERFLOW): Remove fallback.
762         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
763         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
764
765         * lib/snprintf.c (EOVERFLOW): Remove fallback.
766         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
767         * modules/snprintf (Depends-on): Add EOVERFLOW.
768
769         * lib/poll.c (EOVERFLOW): Remove fallback.
770         * modules/poll (Depends-on): Add EOVERFLOW.
771
772         * lib/getugroups.c (EOVERFLOW): Remove fallback.
773         * modules/getugroups (Depends-on): Add EOVERFLOW.
774
775         * lib/getdelim.c (EOVERFLOW): Remove fallback.
776         * modules/getdelim (Depends-on): Add EOVERFLOW.
777
778         * lib/ftell.c (EOVERFLOW): Remove fallback.
779         * modules/ftell (Depends-on): Add EOVERFLOW.
780
781         * lib/fprintf.c (EOVERFLOW): Remove fallback.
782         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
783         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
784
785         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
786
787         * modules/EOVERFLOW-tests: New file.
788         * tests/test-EOVERFLOW.c: New file.
789
790         * modules/EOVERFLOW: New file.
791         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
792
793 2008-03-30  Bruno Haible  <bruno@clisp.org>
794
795         Fix bug introduced on 2007-06-10.
796         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
797         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
798
799 2008-03-30  Bruno Haible  <bruno@clisp.org>
800
801         Improve freadseek's efficiency after ungetc.
802         * lib/freadseek.c: Include freadahead.h.
803         (freadptrinc): New function, extracted from freadseek.
804         (freadseek): Use it in a loop. Use freadahead to determine the number
805         of loop iterations.
806         * modules/freadseek (Depends-on): Add freadahead.
807         (configure.ac): Require AC_C_INLINE.
808
809 2008-03-30  Bruno Haible  <bruno@clisp.org>
810
811         * lib/freadseek.c (freadseek): Don't ignore the return value of
812         freadptr.
813
814 2008-03-29  Eric Blake  <ebb9@byu.net>
815
816         Add hex float support.
817         * modules/strtod (Depends-on): Add c-ctype.
818         (Link): Mention POW_LIB.
819         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
820         whitespace between 'e' and exponent.
821         * tests/test-strtod.c (main): Enable hex float tests.
822         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
823         now provides.
824
825         Document various strtod bugs, with some fixes.
826         * doc/posix-functions/strtod.texi (strtod): Document bugs with
827         "-0x", "inf", "nan", and hex constants.
828         * doc/posix-functions/atof.texi (atof): Likewise.
829         * modules/stdlib (Makefile.am): Support strtod.
830         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
831         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
832         detect additional strtod bugs.
833         * lib/stdlib.in.h (rpl_strtod): Add declarations.
834         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
835         bool where appropriate.  Parse 'inf' and 'nan'.
836         * tests/test-strtod.c: New file.
837         * modules/strtod (Depends-on): Add stdbool, stdlib.
838         (configure.ac): Turn on module indicator.
839         * modules/strtod-tests: New module.
840
841 2008-03-29  Eric Blake  <ebb9@byu.net>
842
843         Fix ftell on mingw.
844         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
845         * modules/ftell-tests (Depends-on): Add binary-io.
846         * modules/ftello-tests (Depends-on): Likewise.
847         * tests/test-ftell.c (main): Enhance test to cover behavior after
848         ungetc.  Enforce binary mode.
849         * tests/test-ftello.c (main): Likewise.
850
851         Pass test-freadseek on cygwin.
852         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
853         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
854         ungetc buffer.
855
856         * tests/test-fflush2.c (main): Fix typo.
857
858 2008-03-29  Bruno Haible  <bruno@clisp.org>
859
860         * tests/test-fflush2.c (main): Temporarily disable the contents of
861         this test.
862         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
863         Reported by Eric Blake.
864
865 2008-03-28  Simon Josefsson  <simon@josefsson.org>
866
867         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
868         (GC_SHA224_DIGEST_SIZE): Add.
869
870         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
871         (gc_hash_digest_length): Likewise.
872         (gc_hash_buffer): Likewise.
873
874 2008-03-25  Bruno Haible  <bruno@clisp.org>
875
876         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
877         detail which gettext release to use.
878         Reported by Simon Josefsson.
879
880 2008-03-26  Jim Meyering  <meyering@redhat.com>
881
882         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
883         * modules/gnumakefile (clean-GNUmakefile): Also, use
884         test ... && ... || : syntax rather than if-then ... fi.
885
886         gnumakefile: Don't double-quote-expand $(VPATH) value.
887         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
888
889 2008-03-24  Eric Blake  <ebb9@byu.net>
890
891         Alter GNUmakefile to install into top directory.
892         * modules/maintainer-makefile: Split, and add dependency...
893         * modules/gnumakefile: to this new module.
894         * build-aux/GNUmakefile: Move...
895         * top/GNUmakefile: ...here.
896         * build-aux/maint.mk: Move...
897         * top/maint.mk: ...here.
898         * MODULES.html.sh (Support for maintaining...): Document new
899         module.
900
901 2008-03-23  Bruno Haible  <bruno@clisp.org>
902
903         * gnulib-tool: New options --vc-files, --no-vc-files.
904         (func_usage): Document them.
905         (vc_files): New variable.
906         (func_import): Consider vc_files.
907         (func_create_testdir): Set vc_files to empty.
908         Suggested by Jim Meyering and Karl Berry.
909
910 2008-03-23  Bruno Haible  <bruno@clisp.org>
911
912         Fix regex compilation error on HP-UX 11.
913         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
914         * modules/regex (Files): Add m4/mbstate_t.m4.
915         Reported by Ton Voon <ton.voon@altinity.com>.
916
917 2008-03-23  Bruno Haible  <bruno@clisp.org>
918
919         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
920
921 2008-03-23  Eric Blake  <ebb9@byu.net>
922             Bruno Haible  <bruno@clisp.org>
923
924         Install files from top/ in the destination directory.
925         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
926         augmentation also for the files from top/.
927         (func_import, func_create_testdir): Rewrite file names:
928         top/filename -> filename.
929
930 2008-03-23  Bruno Haible  <bruno@clisp.org>
931
932         Tweak "gnulib --version" output.
933         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
934
935 2008-03-23  Bruno Haible  <bruno@clisp.org>
936
937         Tweak "gnulib --version" output.
938         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
939         rather than contents of ChangeLog, when possible.
940
941 2008-03-21  Eric Blake  <ebb9@byu.net>
942
943         More --version tweaks.
944         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
945         date of last ChangeLog entry.
946
947 2008-03-21  Jim Meyering  <meyering@redhat.com>
948
949         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
950
951 2008-03-20  Eric Blake  <ebb9@byu.net>
952
953         VPATH fix.
954         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
955
956 2008-03-20  Simon Josefsson  <simon@josefsson.org>
957
958         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
959         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
960
961 2008-03-20  Eric Blake  <ebb9@byu.net>
962
963         Sync GNUmakefile with coreutils.
964         * build-aux/GNUmakefile (have-Makefile): Rename...
965         (_have-Makefile): ...to this, for namespace consideration.
966         (GNUmakefile.cfg): Include, if present.
967         (_autoreconf): Define a default.
968         (_is-dist-target): New rule for rebuilds to pick up intra-release
969         version.
970         (maint-cfg.mk): Rename...
971         (cfg.mk): ...to this.
972
973 2008-03-18  Jim Meyering  <meyering@redhat.com>
974
975         New script and module: mktempd
976         * MODULES.html.sh (maint+release support): Add mktempd.
977         * build-aux/mktempd: New file.
978         * modules/mktempd: New file.
979
980 2008-03-15  Jim Meyering  <meyering@redhat.com>
981
982         Undo last change.
983         * lib/sha1.c, lib/md5.c: 63 != ~63.
984         Reported by Andreas Schwab.
985
986         sha1.c, md5.c: Hoist a redundant expression.
987         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
988         "ctx->buflen" only once, before calling *_process_block.
989         * lib/md5.c (md5_process_bytes): Likewise.
990
991 2008-03-14  Eric Blake  <ebb9@byu.net>
992
993         Bump copyright year in files generated by gnulib-tool.
994         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
995         gnulib-tool, rather than hard-coding it.
996
997         Fix 'gnulib-tool --version' output to work with git.
998         * gnulib-tool (func_gnulib_dir): New function, extracted from...
999         (startup): ...here.
1000         (func_version): Use it to invoke git-version-gen, rather than
1001         relying on CVS keyword expansion.  Modernize wording.
1002         (cvsdatestamp, last_checkin_date, version): Kill unused
1003         variables.
1004
1005 2008-03-12  Jim Meyering  <meyering@redhat.com>
1006
1007         Recognize optional cast of the argument to free.
1008         * build-aux/useless-if-before-free: Update regexps.
1009
1010         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
1011
1012 2008-03-11  Bruno Haible  <bruno@clisp.org>
1013
1014         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
1015         by a single package.
1016         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
1017         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
1018         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
1019         Reported by Sam Steingold <sds@gnu.org>.
1020
1021 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
1022
1023         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
1024         repositories.
1025
1026 2008-03-11  Bruno Haible  <bruno@clisp.org>
1027
1028         Avoid conflicts between local macro definitions.
1029         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
1030         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
1031
1032 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
1033             Bruno Haible  <bruno@clisp.org>
1034
1035         Make va_copy work with some version of xlc on AIX 5.1.
1036         * lib/stdarg.in.h: New file.
1037         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
1038         On AIX, use a <stdarg.h> file substitute.
1039         * modules/stdarg (Files): Add lib/stdarg.in.h.
1040         (Depends-on): Add include_next.
1041         (Makefile.am): Build a stdarg.h substitute if requested.
1042         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
1043
1044 2008-03-10  Bruno Haible  <bruno@clisp.org>
1045
1046         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
1047         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
1048         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
1049
1050 2008-03-10  Bruno Haible  <bruno@clisp.org>
1051
1052         * modules/stdlib (Depends-on): Add include_next, remove
1053         absolute-header.
1054
1055 2008-03-09  Bruno Haible  <bruno@clisp.org>
1056
1057         * lib/freadahead.h (freadahead): Document more precisely.
1058         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
1059         the sum of both buffer sizes.
1060         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
1061         * NEWS: Document the change.
1062
1063 2008-03-09  Bruno Haible  <bruno@clisp.org>
1064
1065         Extend freadptr to return also the buffer size.
1066         * lib/freadptr.h (freadptr): Add sizep argument.
1067         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
1068         (freadptr): Add sizep argument. Determine buffer size like freadahead
1069         does.
1070         * tests/test-freadptr.c: Don't include freadahead.h.
1071         (main): Adapt for new calling convention of freadptr.
1072         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
1073         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
1074         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
1075         tests/test-freadptr2.sh.
1076         (Depends): Remove freadahead.
1077         (TESTS): Add test-freadptr2.sh.
1078         (check_PROGRAMS): Add test-freadptr2.
1079
1080 2008-03-09  Bruno Haible  <bruno@clisp.org>
1081
1082         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
1083         Report and solution by Simon Josefsson.
1084
1085 2008-03-06  Bruno Haible  <bruno@clisp.org>
1086
1087         Make fflush after ungetc work on BSD platforms.
1088         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
1089         * tests/test-fflush2.c: New file.
1090         * tests/test-fflush2.sh: New file.
1091         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
1092         tests/test-fflush2.c.
1093         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
1094         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
1095
1096 2008-03-06  Eric Blake  <ebb9@byu.net>
1097
1098         Likewise for ftello.
1099         * modules/ftello (Dependencies): Add extensions.
1100         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
1101
1102 2008-03-06  Bruno Haible  <bruno@clisp.org>
1103
1104         * modules/fseeko (Dependencies): Add extensions.
1105         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
1106         Needed on glibc systems.
1107
1108 2008-03-06  Bruno Haible  <bruno@clisp.org>
1109
1110         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
1111         email address.
1112         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
1113
1114 2008-03-06  Bruno Haible  <bruno@clisp.org>
1115
1116         * users.txt: Add libgnupdf.
1117
1118 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
1119
1120         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
1121         (Header File Substitutes, Function Substitutes,
1122         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
1123         (Build robot for gnulib): Fix typo.
1124
1125 2008-03-06  Bruno Haible  <bruno@clisp.org>
1126
1127         * doc/gnulib-tool.texi (VCS Issues): Small updates.
1128         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
1129
1130 2008-03-06  Bruno Haible  <bruno@clisp.org>
1131
1132         * doc/func.texi: New file, extracted from doc/gnulib.texi.
1133         * doc/gnulib.texi: Include it.
1134
1135 2008-03-06  Simon Josefsson  <simon@josefsson.org>
1136
1137         * modules/func (License): Change license to unlimited; there was
1138         no LGPL parts in the module anyway.
1139
1140 2008-03-06  Simon Josefsson  <simon@josefsson.org>
1141
1142         * modules/__func__: Renamed to modules/func.
1143         * modules/__func__-tests: Renamed to modules/func-tests.
1144         * tests/test-__func__.c: Renamed to tests/test-func.c.
1145         * m4/__func__.m4: Renamed to m4/func.m4.
1146         * doc/gnulib.texi (__func__): Section renamed to func.
1147         Suggested by Eric Blake <ebb9@byu.net>.
1148
1149 2008-03-06  Simon Josefsson  <simon@josefsson.org>
1150
1151         * doc/gnulib.texi (__func__): Use C99 terminology when talking
1152         about __func__.  Make example self-contained.  Suggested by Eric
1153         Blake <ebb9@byu.net>.
1154
1155         * tests/test-__func__.c (main): Avoid extraneous () around __func.
1156         Suggested by Eric Blake <ebb9@byu.net>.
1157
1158 2008-03-06  Simon Josefsson  <simon@josefsson.org>
1159
1160         * modules/__func__: New file.
1161         * modules/__func__-tests: New file.
1162         * tests/test-__func__.c: New file.
1163         * m4/__func__.m4: New file.
1164         * doc/gnulib.texi (__func__): Document __func__ module.
1165
1166 2008-03-05  Simon Josefsson  <simon@josefsson.org>
1167
1168         * modules/byteswap (License): Re-license as LGPLv2+.
1169
1170 2008-03-05  Simon Josefsson  <simon@josefsson.org>
1171
1172         * doc/Makefile: Add pdf target.
1173
1174 2008-03-05  Simon Josefsson  <simon@josefsson.org>
1175
1176         * modules/inline (License): Use 'unlimited', since there are only
1177         *.m4 files in this module.
1178
1179 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
1180             Bruno Haible  <bruno@clisp.org>
1181
1182         Add support for HP C 7.1 on OpenVMS 8.3.
1183         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
1184
1185 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
1186
1187         Update VMS specifics.
1188         * lib/getopt.c [VMS]: Remove include of unixlib.h.
1189
1190 2008-03-02  Jim Meyering  <meyering@redhat.com>
1191
1192         Remove the last dependency on the "free" module.
1193         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
1194         Reported by Bob Proulx.
1195
1196         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
1197
1198         Remove useless "if" tests before free.  Deprecate "free" module.
1199         * doc/posix-functions/free.texi: Mention that this
1200         module is no longer useful.
1201         * modules/free (Notice): Say this module is obsolete.
1202         * modules/readutmp (Depends-on): Remove free.
1203         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
1204         * lib/putenv.c (putenv): Likewise.
1205         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
1206         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
1207         * tests/test-c-strcasestr.c (main): Likewise.
1208         * tests/test-c-strstr.c (main): Likewise.
1209         * tests/test-mbscasestr1.c (main): Likewise.
1210         * tests/test-mbscasestr2.c (main): Likewise.
1211         * tests/test-mbsstr1.c (main): Likewise.
1212         * tests/test-mbsstr2.c (main): Likewise.
1213         * tests/test-memmem.c (main): Likewise.
1214         * tests/test-strcasestr.c (main): Likewise.
1215         * tests/test-striconv.c (main): Likewise.
1216         * tests/test-striconveh.c (main): Likewise.
1217         * tests/test-striconveha.c (main): Likewise.
1218         * tests/test-strstr.c (main): Likewise.
1219
1220         * build-aux/git-version-gen: Adjust a comment and the Usage string.
1221
1222         bootstrap: sync from coreutils again
1223         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
1224
1225 2008-03-01  Jim Meyering  <meyering@redhat.com>
1226
1227         bootstrap: sync from coreutils
1228         * build-aux/bootstrap (update_po_files): Copy a .po file into place
1229         also when the target doesn't exist.
1230
1231 2008-03-01  Eric Blake  <ebb9@byu.net>
1232
1233         Fix bugs in last patch.
1234         * lib/memchr2.c (memchr2): Fix typo.
1235         * tests/test-memchr2.c: Test previous bug, and don't use GNU
1236         extension.
1237         Reported by Bruce Korb.
1238
1239         New module 'memchr2'.
1240         * modules/memchr2: New file.
1241         * modules/memchr2-tests: Likewise.
1242         * lib/memchr2.h: Likewise.
1243         * lib/memchr2.c: Likewise, based on memchr.c.
1244         * tests/test-memchr2.c: New test.
1245         * MODULES.html.sh (String handling): Add memchr2.
1246
1247 2008-02-29  Bruno Haible  <bruno@clisp.org>
1248
1249         * modules/freadseek-tests: New file.
1250         * tests/test-freadseek.sh: New file.
1251         * tests/test-freadseek.c: New file.
1252
1253         New module 'freadseek'.
1254         * modules/freadseek: New file.
1255         * lib/freadseek.h: New file.
1256         * lib/freadseek.c: New file.
1257         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
1258
1259 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
1260
1261         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
1262         wydawca.
1263
1264         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
1265         program_invocation_name and program_invocation_short_name are
1266         present.
1267
1268 2008-02-28  Bruno Haible  <bruno@clisp.org>
1269
1270         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
1271         * tests/test-freadptr.sh: Also test non-seekable stdin.
1272
1273 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
1274
1275         * build-aux/bootstrap (source_base, m4_base)
1276         (doc_base, tests_base): New variables.
1277         (gnulib_tool_options): Do not hardcode base directories, use
1278         the above variables instead.
1279
1280 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
1281
1282         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
1283
1284 2008-02-28  Bruno Haible  <bruno@clisp.org>
1285
1286         * modules/freadptr-tests: New file.
1287         * tests/test-freadptr.sh: New file.
1288         * tests/test-freadptr.c: New file.
1289
1290         New module 'freadptr'.
1291         * modules/freadptr: New file.
1292         * lib/freadptr.h: New file.
1293         * lib/freadptr.c: New file.
1294         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
1295
1296 2008-02-26  Karl Berry  <karl@freefriends.org>
1297
1298         Sync from Libtool:
1299         * libltdl/argz.c (argz_add, argz_count): New functions.
1300         * libltdl/argz.in.h: Declare them.
1301         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
1302
1303 2008-02-22  Bruno Haible  <bruno@clisp.org>
1304
1305         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
1306         is a pointer type.  Needed for HP-UX 10.
1307         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
1308         * doc/posix-functions/gmtime_r.texi: Likewise.
1309         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
1310
1311 2008-02-24  Bruno Haible  <bruno@clisp.org>
1312
1313         * modules/environ-tests: New file.
1314         * tests/test-environ.c: New file.
1315
1316         New module 'environ'.
1317         * modules/environ: New file.
1318         * lib/unistd.in.h (environ): New declaration.
1319         * m4/environ.m4: New file.
1320         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
1321         after use.
1322         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
1323         HAVE_DECL_ENVIRON.
1324         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
1325         HAVE_DECL_ENVIRON.
1326         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
1327         wrong claim that 'environ' is missing on some systems.
1328         * modules/execute (Depends-on): Add environ.
1329         * lib/execute.c (environ): Remove fallback declaration.
1330         * modules/pipe (Depends-on): Add environ.
1331         * lib/pipe.c (environ): Remove fallback declaration.
1332         * modules/setenv (Depends-on): Add environ.
1333         * lib/setenv.c (environ): Remove fallback declaration.
1334         * modules/unsetenv (Depends-on): Add environ.
1335         * lib/unsetenv.c (environ): Remove fallback declaration.
1336         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
1337         m4/environ.m4.
1338         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
1339         (gl_PREREQ_UNSETENV): Likewise.
1340
1341 2008-02-24  Bruno Haible  <bruno@clisp.org>
1342
1343         * doc/posix-functions/environ.texi: Document the MacOS X problem.
1344
1345 2008-02-20  Bob Proulx  <bob@proulx.com>
1346
1347         Enable use of older two part flavor 'git describe'.
1348         * build-aux/git-version-gen: If using the older two part flavor of
1349         git version then recreate the third part now present in the
1350         newer three part flavor of git describe.
1351
1352 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
1353
1354         * lib/fts.c (fts_build): Typo correction to comment.
1355
1356 2008-02-17  Bruno Haible  <bruno@clisp.org>
1357
1358         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
1359         generating no-op conflicts.
1360
1361 2008-02-17  Bruno Haible  <bruno@clisp.org>
1362
1363         Speed up by 10%.
1364         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
1365         result_entries, rather than an index-based loop.
1366
1367 2008-02-17  Bruno Haible  <bruno@clisp.org>
1368
1369         Speed up by 25%.
1370         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
1371         'hashcode_cached'.
1372         (entry_create): New function.
1373         (entry_hashcode): Use the cached hashcode if possible.
1374         (read_changelog_file, try_split_merged_entry): Use entry_create.
1375
1376 2008-02-17  Bruno Haible  <bruno@clisp.org>
1377
1378         Speed up from O(n^2) to O(n) for long ChangeLog files.
1379         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
1380         (read_changelog_file): Change implementation of entries_reversed list
1381         to rbtreehash.
1382         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
1383
1384 2008-02-17  Bruno Haible  <bruno@clisp.org>
1385
1386         New option --split-merged-entry.
1387         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
1388         (find_paragraph_end, try_split_merged_entry): New functions.
1389         (long_options): Add option --split-merged-entry.
1390         (usage): Document option --split-merged-entry.
1391         (main): Implement option --split-merged-entry.
1392         Reported by Eric Blake.
1393
1394 2008-02-17  Bruno Haible  <bruno@clisp.org>
1395
1396         * lib/git-merge-changelog.c: Include c-strstr.h.
1397         (main): Support the "git pull --rebase" situation.
1398         * modules/git-merge-changelog (Depends-on): Add c-strstr.
1399         Reported by Eric Blake.
1400
1401 2008-02-16  Eric Blake  <ebb9@byu.net>
1402
1403         Avoid doubling \ in common case of "c-maybe" quoting style.
1404         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
1405         eliding outer quotes.
1406         * lib/quotearg.h: Document this.
1407         * tests/test-quotearg.c (result_strings, inputs, results_g)
1408         (flag_results, locale_results): Test it by adding a new string to
1409         each test group.
1410         (compare_strings): Test new string.
1411
1412 2008-02-13  Eric Blake  <ebb9@byu.net>
1413
1414         Avoid trigraph quoting in default output.
1415         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
1416         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
1417         unless explicitly requested.
1418         * tests/test-quotearg.c (flag_results, main): Add additional tests.
1419
1420 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
1421
1422         Don't rely on signed integer overflowing to negative value.
1423         * lib/getugroups.c (getugroups): Include <limits.h>.
1424         Instead, compare against INT_MAX, and increment only if the test passes.
1425
1426 2008-02-13  Jim Meyering  <meyering@redhat.com>
1427         and Eric Blake  <ebb9@byu.net>
1428
1429         Avoid shadowing warning and compile errors on Linux.
1430         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
1431         forwarding macros on Linux.
1432         (dcgettext): Define a stub, for Linux.
1433         (results_g, main): Avoid warnings.
1434
1435 2008-02-12  Eric Blake  <ebb9@byu.net>
1436
1437         Silence warning in last patch.
1438         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
1439
1440         Quotearg part 4: add tests, fix c-maybe colon quoting.
1441         * lib/quotearg.h: Improve documentation.
1442         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
1443         escapes when adding outer quotes.  When quoting trigraphs, use
1444         valid C notation.  When quoting NUL, omit extra characters if next
1445         character is not digit.  Alter prototype.
1446         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
1447         callers.
1448         * modules/quotearg-tests: New module.
1449         * tests/test-quotearg.c: New test.
1450
1451 2008-02-07  Eric Blake  <ebb9@byu.net>
1452
1453         Quotearg part 3: add flag to control outer quote elision.
1454         * lib/quotearg.h (c_maybe_quoting_style): New style.
1455         (enum quoting_flags): Better documentation of flags.
1456         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
1457         c-maybe style.
1458         (quotearg_buffer_restyled): Handle new flag to elide outer
1459         quotes.
1460
1461         Quotearg part 2: add flag that can control NUL elision.
1462         * lib/quotearg.h (set_quoting_flags): New prototype.
1463         * lib/quotearg.c (struct quoting_options): Add flag field.
1464         (set_quoting_flags): New function.
1465         (quotearg_buffer_restyled): Add flags parameter.
1466         (quotearg_alloc_mem): Set the flag if length cannot be returned.
1467         (quotearg_n_options): Set the flag, since length cannot be
1468         returned.
1469         (quoting_options_from_style): Default flags correctly.
1470
1471         Quotearg part 1: more wrappers, restore quotearg_char state.
1472         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
1473         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
1474         (quotearg_colon_mem): New wrappers.
1475         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
1476         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
1477         functions.
1478         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
1479         (quotearg_colon_mem): New functions.
1480
1481 2008-02-11  Bruno Haible  <bruno@clisp.org>
1482
1483         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
1484         library in the current directory: it does not work with parallel make.
1485         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1486
1487 2008-02-11  Bruno Haible  <bruno@clisp.org>
1488
1489         * .gitattributes: New file.
1490
1491 2008-02-11  Jim Meyering  <meyering@redhat.com>
1492
1493         useless-if-before-free: Fix reversed exit values.
1494         * build-aux/useless-if-before-free: Use correct values
1495         for EXIT_MATCH and EXIT_NO_MATCH.
1496
1497         * build-aux/useless-if-before-free: Close stdout carefully.
1498
1499 2008-02-10  Bruno Haible  <bruno@clisp.org>
1500
1501         New module 'git-merge-changelog'.
1502         * modules/git-merge-changelog: New file.
1503         * lib/git-merge-changelog.c: New file.
1504
1505 2008-02-10  Jim Meyering  <meyering@redhat.com>
1506
1507         useless-if-before-free: New option: --list (-l).
1508
1509         useless-if-before-free: Don't exit immediately upon open failure.
1510         * build-aux/useless-if-before-free: Exit 2 for errors.
1511         Upon failure to open a file, don't exit immediately.
1512         Rather, just warn and continue with any remaining files.
1513
1514 2008-02-10  Bruno Haible  <bruno@clisp.org>
1515
1516         New abstract list operation 'node_set_value'.
1517         * lib/gl_list.h (gl_list_node_set_value): New function.
1518         (struct gl_list_implementation): New field node_set_value.
1519         * lib/gl_list.c (gl_list_node_set_value): New function.
1520         * lib/gl_array_list.c (gl_array_node_set_value): New function.
1521         (gl_array_list_implementation): Update.
1522         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
1523         (gl_carray_list_implementation): Update.
1524         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
1525         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
1526         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
1527         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
1528         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
1529         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
1530         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
1531         Update.
1532         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
1533         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
1534         (gl_sublist_list_implementation): Update.
1535
1536 2008-02-10  Bruno Haible  <bruno@clisp.org>
1537
1538         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
1539         Needed when ELEMENT is #defined to 'some_type *'.
1540
1541 2008-02-10  Jim Meyering  <meyering@redhat.com>
1542
1543         New script and module: useless-if-before-free
1544         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
1545         * build-aux/useless-if-before-free: New file.
1546         * modules/useless-if-before-free: New file.
1547
1548         * build-aux/gitlog-to-changelog: Use committer date, not author date.
1549
1550         xstrtol_error: Fix typo.
1551         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
1552         s/exit_failure/exit_status/.
1553
1554 2008-02-09  Jim Meyering  <meyering@redhat.com>
1555
1556         New script and module: gitlog-to-changelog
1557         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
1558         * modules/gitlog-to-changelog: New file.
1559         * build-aux/gitlog-to-changelog: New file.
1560
1561 2008-02-08  Jim Meyering  <meyering@redhat.com>
1562
1563         Avoid two "parameter unused" warnings.
1564         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
1565         Mark "st" as used.
1566
1567         Use "git COMMAND", not "git-COMMAND".
1568         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
1569         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
1570         * build-aux/git-version-gen: Use "git status", not "git-status".
1571
1572 2008-02-07  Bruno Haible  <bruno@clisp.org>
1573
1574         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
1575         Avoids a crash on Windows Vista.
1576         Reported by Adam Strzelecki <ono@java.pl> via
1577         Simon Josefsson <simon@josefsson.org>.
1578
1579 2008-02-06  Bruno Haible  <bruno@clisp.org>
1580
1581         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
1582         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
1583         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
1584         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
1585         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
1586         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
1587         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
1588         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
1589         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
1590         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
1591         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
1592         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
1593         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
1594         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
1595         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
1596         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
1597         left-adjust flag.
1598         * tests/test-snprintf-posix.h (test_function): Likewise.
1599         * tests/test-sprintf-posix.h (test_function): Likewise.
1600         * tests/test-vasprintf-posix.c (test_function): Likewise.
1601         * doc/posix-functions/fprintf.texi: Update.
1602         * doc/posix-functions/printf.texi: Update.
1603         * doc/posix-functions/snprintf.texi: Update.
1604         * doc/posix-functions/sprintf.texi: Update.
1605         * doc/posix-functions/vfprintf.texi: Update.
1606         * doc/posix-functions/vprintf.texi: Update.
1607         * doc/posix-functions/vsnprintf.texi: Update.
1608         * doc/posix-functions/vsprintf.texi: Update.
1609         Reported by Peter Fales <psfales@alcatel-lucent.com>.
1610
1611 2008-02-06  Bruno Haible  <bruno@clisp.org>
1612
1613         Fix bug introduced on 2008-01-26.
1614         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
1615
1616 2008-02-06  Bruno Haible  <bruno@clisp.org>
1617
1618         Fix bug introduced on 2007-06-10.
1619         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
1620         !NEED_PRINTF_FLAG_ZERO.
1621
1622 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
1623
1624         getloadavg: use libperfstat on AIX5
1625         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
1626
1627 2008-02-03  Bruno Haible  <bruno@clisp.org>
1628
1629         * lib/diffseq.h: Add comments about required #includes.
1630         Reported by Michael Biggs <gnulib@doubleplum.net>.
1631
1632 2008-02-01  Bruno Haible  <bruno@clisp.org>
1633
1634         * users.txt: Add gnuit.
1635
1636 2008-01-31  Bruno Haible  <bruno@clisp.org>
1637
1638         * lib/md4.c (set_uint32): Mark as inline.
1639         * lib/md5.c (set_uint32): Likewise.
1640         * lib/sha1.c (set_uint32): Likewise.
1641         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
1642         * m4/md5.m4 (gl_MD5): Likewise.
1643         * m4/sha1.m4 (gl_SHA1): Likewise.
1644
1645 2008-01-31  Jim Meyering  <meyering@redhat.com>
1646
1647         Use "sizeof VAR", rather than a literal "4".
1648         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
1649         * lib/md4.c (md4_read_ctx): Likewise.
1650         * lib/sha1.c (sha1_read_ctx): Likewise.
1651
1652 2008-01-31  Simon Josefsson  <simon@josefsson.org>
1653
1654         * tests/test-sha1.c: New file, based on test-md5.c.
1655
1656         * modules/crypto/sha1-tests: New file.
1657
1658 2008-01-31  Simon Josefsson  <simon@josefsson.org>
1659
1660         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
1661
1662 2008-01-31  Jim Meyering  <meyering@redhat.com>
1663
1664         Prefer "sizeof v" over the equivalent "4".
1665         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
1666         * lib/md5.c (set_uint32): Likewise.
1667         * lib/sha1.c (set_uint32): Likewise.
1668
1669 2008-01-31  Simon Josefsson  <simon@josefsson.org>
1670
1671         * lib/sha1.c (set_uint32): Mark function as static.
1672
1673 2008-01-31  Simon Josefsson  <simon@josefsson.org>
1674
1675         md2: clarify comments to say that alignment is not required.
1676         * lib/md2.h: Remove warning about alignment in comment.
1677         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
1678         never been required.
1679
1680 2008-01-31  Simon Josefsson  <simon@josefsson.org>
1681
1682         md4: adapt alignment constraint fix from sha1.
1683         * lib/md4.c (set_uint32): New function, from sha1.c
1684         (md4_read_ctx): Use it.
1685         (md4_finish_ctx): Doc fix.
1686         * lib/md4.h: Doc fix.
1687
1688 2008-01-31  Simon Josefsson  <simon@josefsson.org>
1689
1690         md5: adapt alignment constraint fix from sha1.
1691         * lib/md5.c (set_uint32): New function, from sha1.c
1692         (md5_read_ctx): Use it.
1693         (md5_finish_ctx): Doc fix.
1694         * lib/md5.h: Doc fix.
1695
1696 2008-01-30  Peter Palfrader  <weasel@debian.org>
1697
1698         sha1: remove the result buffer alignment constraint
1699         * lib/sha1.c (set_uint32): New function.
1700         (sha1_read_ctx): Rewrite to remove the result buffer alignment
1701         constraint.
1702         (sha1_finish_ctx): Remove comment warning about alignment constraint.
1703         * lib/sha1.h: Likewise.
1704
1705 2008-01-30  Andreas Schwab  <schwab@suse.de>
1706             Bruno Haible  <bruno@clisp.org>
1707
1708         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
1709         correct definition of LDBL_MIN_EXP.
1710
1711 2008-01-30  Karl Berry  <karl@gnu.org>
1712
1713         * config/srclist-update: try to preserve x bit on updates.
1714         * config/srclistvars.sh: update for karl.
1715
1716 2008-01-29  Jim Meyering  <meyering@redhat.com>
1717
1718         vasnprintf.c: Avoid warning about unused label
1719         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
1720         "overflow" label definition and associated code with the
1721         same cpp condition that guards the sole use of that label.
1722
1723 2008-01-26  Bruno Haible  <bruno@clisp.org>
1724
1725         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
1726         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
1727         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
1728         * lib/isnanl-nolibm.h (isnanl): Likewise.
1729         Reported by Paul Eggert <eggert@cs.ucla.edu>.
1730
1731 2008-01-26  Bruno Haible  <bruno@clisp.org>
1732
1733         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
1734         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
1735
1736 2008-01-26  Bruno Haible  <bruno@clisp.org>
1737
1738         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
1739         GCC >= 4.0 built-in.
1740         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
1741
1742 2008-01-26  Bruno Haible  <bruno@clisp.org>
1743
1744         Rename isnan, applicable to 'double' only, to isnand.
1745         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
1746         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
1747         (configure.ac): Update.
1748         (Include): Replace "isnan.h" with "isnand.h".
1749         * m4/isnand.m4: Renamed from m4/isnan.m4.
1750         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
1751         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
1752         instead of isnan.c.
1753         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
1754         instead of HAVE_ISNAN_IN_LIBC.
1755         (isnand): Renamed from isnan.
1756         * lib/isnand.c: New file.
1757         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
1758         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
1759         (Makefile.am): Update.
1760         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
1761         Include isnand.h instead of isnan.h.
1762         (main): Test isnand instead of isnan.
1763         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
1764         isnan-nolibm.
1765         * modules/frexp (Depends-on): Likewise.
1766         * modules/frexp-tests (Depends-on): Likewise.
1767         * modules/frexp-nolibm (Depends-on): Likewise.
1768         * modules/frexp-nolibm-tests (Depends-on): Likewise.
1769         * modules/isfinite (Depends-on): Likewise.
1770         * modules/round-tests (Depends-on): Likewise.
1771         * modules/signbit (Depends-on): Likewise.
1772         * modules/signbit-tests (Depends-on): Likewise.
1773         * modules/snprintf-posix (Depends-on): Likewise.
1774         * modules/sprintf-posix (Depends-on): Likewise.
1775         * modules/trunc-tests (Depends-on): Likewise.
1776         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
1777         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
1778         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
1779         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
1780         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
1781         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
1782         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
1783         * modules/vasnprintf-posix (Depends-on): Likewise.
1784         * modules/vasprintf-posix (Depends-on): Likewise.
1785         * modules/vfprintf-posix (Depends-on): Likewise.
1786         * modules/vsnprintf-posix (Depends-on): Likewise.
1787         * modules/vsprintf-posix (Depends-on): Likewise.
1788         * lib/frexp.c: Include isnand.h instead of isnan.h.
1789         (ISNAN): Set to isnand instead of isnan.
1790         * lib/isfinite.c: Include isnand.h instead of isnan.h.
1791         (gl_isfinited): Use isnand instead of isnan.
1792         * lib/signbitd.c: Include isnand.h instead of isnan.h.
1793         (gl_signbitd): Use isnand instead of isnan.
1794         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
1795         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
1796         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
1797         (main): Use isnand instead of isnan.
1798         * tests/test-round1.c: Include isnand.h.
1799         (main): Use isnand instead of isnan.
1800         * tests/test-round2.c: Include isnand.h instead of isnan.h.
1801         (ISNAN): Set to isnand instead of isnan.
1802         * tests/test-trunc1.c: Include isnand.h.
1803         (main): Use isnand instead of isnan.
1804         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
1805         (equal): Use isnand instead of isnan.
1806         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
1807         isnand-nolibm.
1808         * NEWS: Mention the change.
1809
1810 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
1811             Bruno Haible  <bruno@clisp.org>
1812
1813         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
1814         the GCC builtins for signbits are present and set
1815         REPLACE_SIGNBIT_USING_GCC if so.
1816         * lib/math.in.h (signbit): Define using GCC builtins if
1817         REPLACE_SIGNBIT_USING_GCC is set.
1818         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
1819         REPLACE_SIGNBIT_USING_GCC.
1820         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
1821
1822 2008-01-25  Jim Meyering  <meyering@redhat.com>
1823
1824         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
1825         * lib/poll.c: Include <config.h>, not "config.h".
1826         * tests/test-getaddrinfo.c: Likewise.
1827
1828 2008-01-25  Simon Josefsson  <simon@josefsson.org>
1829
1830         * modules/sockets-tests: New file.
1831
1832 2008-01-24  Simon Josefsson  <simon@josefsson.org>
1833
1834         * modules/sockets: New module, can be used to call WSA_Startup and
1835         WSA_Cleanup when needed.
1836
1837         * lib/sockets.h, lib/sockets.c: New files.
1838
1839         * m4/sockets.m4: New file.
1840
1841         * tests/test-sockets.c: New file.
1842
1843 2008-01-19  Bruno Haible  <bruno@clisp.org>
1844
1845         * doc/posix-headers: Renamed from doc/headers.
1846         * doc/posix-functions: Renamed from doc/functions.
1847         * doc/gnulib.texi: Update.
1848
1849 2008-01-19  Bruno Haible  <bruno@clisp.org>
1850
1851         * doc/glibc-functions/strcasestr.texi: Include contents of
1852         doc/functions/strcasestr.texi, fixing the list of platforms.
1853         * doc/functions/strcasestr.texi: Remove file.
1854
1855 2008-01-19  Bruno Haible  <bruno@clisp.org>
1856
1857         * doc/glibc-functions/memmem.texi: Include contents of
1858         doc/functions/memmem.texi.
1859         * doc/functions/memmem.texi: Remove file.
1860
1861 2008-01-18  Bruno Haible  <bruno@clisp.org>
1862
1863         * doc/glibc-functions/*.texi: New files.
1864         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
1865         to use the new files.
1866
1867 2008-01-17  Bruno Haible  <bruno@clisp.org>
1868
1869         * tests/test-gethostname.c (main): Fix printf statement.
1870
1871 2008-01-17  Simon Josefsson  <simon@josefsson.org>
1872
1873         * modules/gethostname-tests: New file.
1874
1875         * tests/test-gethostname.c: New file.
1876
1877 2008-01-17  Simon Josefsson  <simon@josefsson.org>
1878
1879         * lib/gethostname.c: Include string.h unconditionally, strncpy is
1880         used by the UNAME case.  Reported by Bruno Haible
1881         <bruno@clisp.org>.
1882
1883 2008-01-17  Eric Blake  <ebb9@byu.net>
1884
1885         Convert c-strcasestr to be more efficient.
1886         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
1887         (Depends-on): Add c-strcase, remove malloca, strnlen.
1888         * tests/test-c-strcasestr.c (main): Enhance test.
1889         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
1890
1891 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
1892
1893         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
1894         Use it in creating po/Makevars.
1895
1896 2008-01-15  Simon Josefsson  <simon@josefsson.org>
1897
1898         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
1899         Applications that requires it should initialize libgcrypt
1900         manually.
1901
1902 2008-01-16  Simon Josefsson  <simon@josefsson.org>
1903
1904         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
1905
1906 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
1907
1908         Fix problem with getdate on mingw32 reported by Simon Josefsson
1909         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
1910         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
1911         tzname", when deciding whether to declare tzname.
1912         * lib/strftime.c (tzname): Likewise.
1913
1914 2008-01-15  Bruno Haible  <bruno@clisp.org>
1915
1916         Work around a MacOS X 10.5 bug in frexpl().
1917         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
1918         * doc/functions/frexpl.texi: Document the bug.
1919         Reported by Elias Pipping <pipping@gentoo.org>.
1920
1921 2008-01-14  Eric Blake  <ebb9@byu.net>
1922
1923         Touch up previous patch.
1924         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
1925         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
1926
1927         Convert strcasestr module to use Two-Way algorithm.
1928         * modules/strcasestr-simple: New module, based on the old
1929         strcasestr, but with Two-Way rather than KMP.
1930         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
1931         * lib/string.in.h (rpl_strcasestr): Declare.
1932         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
1933         performance.
1934         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
1935         * modules/string (Makefile.am): Support strcasestr.
1936         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
1937         * modules/strcasestr-tests (Depends-on): Check for alarm.
1938         * tests/test-strcasestr.c: Augment test.
1939         * lib/str-two-way.h: Clean up stray macro.
1940         * NEWS: Document new module.
1941         * MODULES.html.sh (string handling): Likewise.
1942         * doc/functions/strcasestr.texi: New file.
1943         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
1944         here, since it is not a POSIX function.
1945
1946 2008-01-14  Colin Watson  <cjwatson@debian.org>
1947             Bruno Haible  <bruno@clisp.org>
1948
1949         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
1950         works fine; if not, set REPLACE_STRSIGNAL.
1951         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
1952         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
1953         REPLACE_STRSIGNAL.
1954         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
1955         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
1956         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
1957
1958 2008-01-14  Bruno Haible  <bruno@clisp.org>
1959
1960         * modules/strsignal (Include): Change to <string.h>.
1961
1962 2008-01-14  Colin Watson  <cjwatson@debian.org>
1963
1964         * modules/argp (Notice): Add a notice recommending to change
1965         XGETTEXT_OPTIONS.
1966         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
1967
1968 2008-01-13  Colin Watson  <cjwatson@debian.org>
1969
1970         * modules/strsignal-tests: New file.
1971         * tests/test-strsignal.c: New file.
1972
1973         * lib/strsignal.c: New file, from glibc with modifications.
1974         * lib/siglist.h: New file, from glibc with modifications.
1975         * lib/string.in.h (strsignal): New declaration.
1976         * m4/strsignal.m4: New file.
1977         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
1978         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
1979         * modules/strsignal: New file.
1980         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
1981         HAVE_DECL_STRSIGNAL.
1982
1983 2008-01-13  Bruno Haible  <bruno@clisp.org>
1984
1985         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
1986         locale encoding is not ASCII. Needed for OpenBSD 4.0.
1987         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
1988         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
1989
1990 2008-01-13  Bruno Haible  <bruno@clisp.org>
1991
1992         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
1993         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
1994         * lib/argp.h (__attribute__): Likewise.
1995         * lib/c-stack.c (__attribute__): Likewise.
1996         * lib/error.h (__attribute__): Likewise.
1997         * lib/fts.c (__attribute__): Likewise.
1998         * lib/openat.h (__attribute__): Likewise.
1999         * lib/stdio.in.h (__attribute__): Likewise.
2000         * lib/string.in.h (__attribute__): Likewise.
2001         * lib/utimens.c (__attribute__): Likewise.
2002         * lib/vasnprintf.h (__attribute__): Likewise.
2003         * lib/xalloc.h (__attribute__): Likewise.
2004         * lib/xprintf.h (__attribute__): Likewise.
2005         * lib/xstrtol.h (__attribute__): Likewise.
2006         * lib/xvasprintf.h (__attribute__): Likewise.
2007
2008 2008-01-12  Bruno Haible  <bruno@clisp.org>
2009
2010         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
2011         * doc/glibc-headers/a.out.texi: New file.
2012         * doc/glibc-headers/aliases.texi: New file.
2013         * doc/glibc-headers/alloca.texi: New file.
2014         * doc/glibc-headers/ar.texi: New file.
2015         * doc/glibc-headers/argp.texi: New file.
2016         * doc/glibc-headers/argz.texi: New file.
2017         * doc/glibc-headers/byteswap.texi: New file.
2018         * doc/glibc-headers/crypt.texi: New file.
2019         * doc/glibc-headers/endian.texi: New file.
2020         * doc/glibc-headers/envz.texi: New file.
2021         * doc/glibc-headers/err.texi: New file.
2022         * doc/glibc-headers/error.texi: New file.
2023         * doc/glibc-headers/execinfo.texi: New file.
2024         * doc/glibc-headers/fpu_control.texi: New file.
2025         * doc/glibc-headers/fstab.texi: New file.
2026         * doc/glibc-headers/fts.texi: New file.
2027         * doc/glibc-headers/getopt.texi: New file.
2028         * doc/glibc-headers/ieee754.texi: New file.
2029         * doc/glibc-headers/ifaddrs.texi: New file.
2030         * doc/glibc-headers/libintl.texi: New file.
2031         * doc/glibc-headers/mcheck.texi: New file.
2032         * doc/glibc-headers/mntent.texi: New file.
2033         * doc/glibc-headers/obstack.texi: New file.
2034         * doc/glibc-headers/paths.texi: New file.
2035         * doc/glibc-headers/printf.texi: New file.
2036         * doc/glibc-headers/pty.texi: New file.
2037         * doc/glibc-headers/resolv.texi: New file.
2038         * doc/glibc-headers/shadow.texi: New file.
2039         * doc/glibc-headers/sysexits.texi: New file.
2040         * doc/glibc-headers/ttyent.texi: New file.
2041
2042 2008-01-12  Jim Meyering  <meyering@redhat.com>
2043
2044         announce-gen: emit Gnulib's git-based version string.
2045         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
2046         New option --gnulib-version=V, where V is expected to be
2047         the output of running git describe in the gnulib directory.
2048         (get_tool_versions): Request feedback on xdelta.  I suspect it's
2049         not useful, and plan to stop publishing an xdelta file with each
2050         coreutils release.
2051
2052         * build-aux/announce-gen: Also check for lzma-compressed files.
2053
2054 2008-01-11  Bruno Haible  <bruno@clisp.org>
2055
2056         * tests/test-memmem.c (main): Increase maximum allowed time.
2057         * tests/test-strstr.c (main): Likewise.
2058
2059 2008-01-11  Bruno Haible  <bruno@clisp.org>
2060
2061         * doc/functions/memmem.texi: Add more precisions about platforms.
2062         * doc/functions/strstr.texi: Likewise.
2063
2064 2008-01-10  Eric Blake  <ebb9@byu.net>
2065
2066         * m4/strstr.m4: Delete cruft from copy-n-paste.
2067         Reported by Bruno Haible.
2068
2069 2008-01-10  Bruno Haible  <bruno@clisp.org>
2070
2071         Make c-strstr rely on strstr.
2072         * lib/c-strstr.c: Don't include str-kmp.h.
2073         (c_strstr): Define in terms of strstr.
2074         * modules/c-strstr (Files): Remove lib/str-kmp.h.
2075         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
2076
2077 2008-01-10  Bruno Haible  <bruno@clisp.org>
2078
2079         * doc/gnulib.texi (String Functions in C Locale): New section.
2080         * doc/c-ctype.texi: New file.
2081         * doc/c-strcase.texi: New file.
2082         * doc/c-strcaseeq.texi: New file.
2083         * doc/c-strcasestr.texi: New file.
2084         * doc/c-strstr.texi: New file.
2085         * doc/c-strtod.texi: New file.
2086         * doc/c-strtold.texi: New file.
2087
2088 2008-01-10  Eric Blake  <ebb9@byu.net>
2089
2090         * lib/relocatable.h: Fix a comment.
2091
2092 2008-01-10  Eric Blake  <ebb9@byu.net>
2093
2094         Share two-way algorithm.
2095         * lib/str-two-way.h: New file, merged from...
2096         * lib/memmem.c: ...here...
2097         * lib/strstr.c: ...and here.
2098         * modules/memmem (Files): Use it.
2099         * modules/strstr (Files): Likewise.
2100
2101         Avoid quadratic strstr implementations.
2102         * lib/strstr.c: New file.
2103         * m4/strstr.m4: Likewise.
2104         * modules/strstr: Likewise.
2105         * modules/strstr-tests: Likewise.
2106         * tests/test-strstr.c: Likewise.
2107         * lib/string.in.h (rpl_strstr): Declare.
2108         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
2109         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
2110         * modules/string (Makefile.am): Likewise.
2111         * MODULES.html.sh (string handling): Mention new module.
2112         * doc/functions/strstr.texi (strstr): Document the bug.
2113
2114 2008-01-10  Bruno Haible  <bruno@clisp.org>
2115
2116         * lib/relocatable.h (relocate): State whether result is freshly
2117         allocated or not.
2118         * lib/relocatable.c (relocate): Return a freshly allocated string
2119         instead of a pointer to a privately held string.
2120         Reported by Sylvain Beucler <beuc@gnu.org>.
2121
2122 2008-01-10  Colin Watson  <cjwatson@debian.org>
2123
2124         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
2125         s/S_ISNLK/S_ISLNK/.
2126
2127 2008-01-09  Bruno Haible  <bruno@clisp.org>
2128
2129         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
2130         and other files.
2131         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
2132         if it's only a guess.
2133         * modules/memmem: Simplify by depending on memmem-simple.
2134
2135 2008-01-09  Bruno Haible  <bruno@clisp.org>
2136
2137         Work around OpenBSD 4.0 tdelete() bug.
2138         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
2139         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
2140         macros and don't redefine the enum values.
2141         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
2142         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
2143         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
2144
2145 2008-01-09  Bruno Haible  <bruno@clisp.org>
2146
2147         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
2148         (main): Don't perform the tests if setlocale did not install a UTF-8
2149         locale. Needed on OpenBSD 4.0.
2150         * modules/wcwidth-tests (Depends-on): Add localcharset.
2151
2152 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
2153
2154         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
2155         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
2156         * NEWS: announce this.
2157         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
2158
2159 2008-01-09  Simon Josefsson  <simon@josefsson.org>
2160         and Eric Blake  <ebb9@byu.net>
2161
2162         Add memmem-simple module.
2163         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
2164         (gl_FUNC_MEMMEM): Separate performance from presence checks.
2165         * modules/memmem-simple: New file.
2166         * modules/memmem (Description): Tweak.
2167         * MODULES.html.sh (string handling): Mention new module.
2168         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
2169         addressed by memmem-simple.
2170         * NEWS: Document the difference.
2171
2172 2008-01-09  Eric Blake  <ebb9@byu.net>
2173
2174         Give gcc some memmem optimization hints.
2175         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
2176         (strcasestr): Declare as pure.
2177         * modules/memmem (Maintainer): Claim my implementation.
2178
2179 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2180
2181         Support AIX 6.1 and higher.
2182         * build-aux/config.libpath: Likewise.
2183         * build-aux/config.rpath: Likewise.
2184
2185 2008-01-08  Jim Meyering  <meyering@redhat.com>
2186             Bruno Haible  <bruno@clisp.org>
2187
2188         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
2189         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
2190         Reported by Peter Fales in
2191         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
2192
2193 2008-01-08  Bruno Haible  <bruno@clisp.org>
2194
2195         * modules/unictype/category-of (Depends-on): Add
2196         unictype/category-none.
2197         * modules/unictype/category-and-tests (Depends-on): Add
2198         unictype/category-{L,N,Lu,Nd}.
2199         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
2200         * modules/unictype/category-or-tests (Depends-on): Add
2201         unictype/category-{L,N}.
2202         * modules/unictype/category-name-tests (Depends-on): Add
2203         unictype/category-{Z,Nl}.
2204         Reported by Simon Josefsson.
2205
2206 2008-01-08  Bruno Haible  <bruno@clisp.org>
2207
2208         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
2209         convention better.
2210         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
2211         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
2212         Reported by Peter Miller <millerp@canb.auug.org.au>.
2213
2214 2008-01-08  Eric Blake  <ebb9@byu.net>
2215
2216         Rewrite memmem to guarantee linear complexity without malloc.
2217         * lib/memmem.c (memmem): Use Two-Way rather than
2218         Knuth-Morris-Pratt, to allow O(1) space usage.
2219         (critical_factorization, two_way_short_needle)
2220         (two_way_long_needle): New functions.
2221         (knuth_morris_pratt): Delete.
2222         * modules/memmem (Depends-on): No longer need malloca or stdbool.
2223         Add stdint.
2224         * tests/test-memmem.c (main): Add tests for periodic needle and
2225         sublinear performance.
2226         * doc/functions/memmem.texi (memmem): Document other deficiencies
2227         in cygwin and older glibc.
2228
2229 2008-01-08  Bruno Haible  <bruno@clisp.org>
2230
2231         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
2232         augmentation.
2233
2234 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
2235
2236         Add a configure time option: --disable-acl.
2237         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
2238         AC_ARG_ENABLE(acl).
2239
2240 2008-01-06  Simon Josefsson  <simon@josefsson.org>
2241
2242         * tests/test-localename.c: Don't include obsolete "setenv.h".
2243
2244         * modules/localename-tests (Depends-on): Need unsetenv.
2245
2246 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2247
2248         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
2249
2250 2008-01-06  Colin Watson  <cjwatson@debian.org>
2251
2252         * users.txt: Add man-db.
2253
2254 2008-01-07  Bruno Haible  <bruno@clisp.org>
2255
2256         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
2257         previous section name.
2258
2259 2008-01-07  Bruno Haible  <bruno@clisp.org>
2260
2261         * lib/progname.c (set_program_name): Don't strip off a leading
2262         "lt-" prefix outside a .libs directory.
2263         Suggested by Paul Eggert.
2264
2265 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
2266             Bruno Haible  <bruno@clisp.org>
2267
2268         Improve memory cleanup in 'relocatable' module.
2269         * lib/relocatable.h (compute_curr_prefix): Change return type to
2270         'char *'.
2271         * lib/relocatable.c (compute_curr_prefix): Change return type to
2272         'char *'. Free curr_installdir after use.
2273         (relocate): Free curr_prefix_better after use.
2274         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
2275
2276 2008-01-01  Bruno Haible  <bruno@clisp.org>
2277
2278         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
2279         failure on older glibc systems.
2280         Reported by Peter Fales <psfales@alcatel-lucent.com>.
2281
2282 2008-01-05  Eric Blake  <ebb9@byu.net>
2283
2284         Avoid quadratic system memmem.
2285         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
2286         Reported by Ralf Wildenhues.
2287
2288         Fix memmem test for mingw.
2289         * modules/memmem-tests (configure.ac): Check for alarm.
2290         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
2291         it.
2292         * doc/functions/memmem.texi: New file.
2293         * doc/gnulib.texi (Function Substitutes): Add memmem.
2294         Reported by Bruno Haible.
2295
2296 2008-01-04  Bruno Haible  <bruno@clisp.org>
2297
2298         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
2299         Require gl_HEADER_STRINGS_H_DEFAULTS, not
2300         gl_HEADER_STRING_H_DEFAULTS.
2301
2302 2008-01-04  Eric Blake  <ebb9@byu.net>
2303
2304         Shorten duration of memmem test.
2305         * tests/test-memmem.c (main): Use alarm to declare failure if test
2306         is taking too long.
2307         Reported by Ralf Wildenhues.
2308
2309 2007-12-21  Simon Josefsson  <simon@josefsson.org>
2310
2311         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
2312         string, needed by strerror.
2313
2314 2008-01-03  Colin Watson  <cjwatson@debian.org>
2315             Bruno Haible  <bruno@clisp.org>
2316
2317         * doc/gnulib-tool.texi (Localization): New section.
2318
2319 2008-01-02  Bruno Haible  <bruno@clisp.org>
2320
2321         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
2322         variables to 'unsigned char *' type.
2323         Reported by Paul Eggert.
2324
2325 2008-01-02  Jim Meyering  <jim@meyering.net>
2326
2327         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
2328
2329 2007-12-31  Jim Meyering  <jim@meyering.net>
2330
2331         Avoid use of private FTS type name.
2332         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
2333
2334 2007-12-30  Karl Berry  <karl@gnu.org>
2335
2336         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
2337         work around defect in Texinfo and/or the standalone Info browser.
2338
2339 2007-12-30  Bruno Haible  <bruno@clisp.org>
2340
2341         Unify 5 copies of the KMP code.
2342         * lib/str-kmp.h: New file.
2343         * lib/c-strcasestr.c: Include str-kmp.h.
2344         (knuth_morris_pratt): Remove function.
2345         (c_strcasestr): Update.
2346         * lib/c-strstr.c: Include str-kmp.h.
2347         (knuth_morris_pratt): Remove function.
2348         (c_strcasestr): Update.
2349         * lib/mbscasestr.c: Include str-kmp.h.
2350         (knuth_morris_pratt_unibyte): Remove function.
2351         * lib/mbsstr.c: Include str-kmp.h.
2352         (knuth_morris_pratt_unibyte): Remove function.
2353         * lib/strcasestr.c: Include str-kmp.h.
2354         (knuth_morris_pratt): Remove function.
2355         (strcasestr): Update.
2356         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
2357         * modules/c-strstr (Files): Likewise.
2358         * modules/mbscasestr (Files): Likewise.
2359         * modules/mbsstr (Files): Likewise.
2360         * modules/strcasestr (Files): Likewise.
2361         Suggested by Paul Eggert.
2362
2363 2007-12-30  Bruno Haible  <bruno@clisp.org>
2364
2365         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
2366         defined.
2367
2368 2007-12-30  Bruno Haible  <bruno@clisp.org>
2369
2370         * lib/xmalloca.h: Include xalloc.h.
2371         (xnmalloca): New macro.
2372
2373 2007-12-30  Bruno Haible  <bruno@clisp.org>
2374
2375         * lib/malloca.h (nmalloca): New macro.
2376         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
2377         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
2378         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
2379         knuth_morris_pratt_multibyte): Likewise.
2380         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
2381         knuth_morris_pratt_multibyte): Likewise.
2382         * lib/memmem.c (knuth_morris_pratt): Likewise.
2383         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
2384
2385 2007-12-25  Bruno Haible  <bruno@clisp.org>
2386
2387         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
2388         * lib/glob.c: Don't include openat.h.
2389         (link_exists2_p): Add back the code that deals with the
2390         !GLOB_ALTDIRFUNC case.
2391         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
2392         let it do the filename concatenation.
2393         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
2394         * modules/glob (Depends-on): Remove openat.
2395
2396 2007-12-31  Bruno Haible  <bruno@clisp.org>
2397
2398         * modules/dirfd (License): Change to LGPLv2+.
2399         Approved by Jim Meyering.
2400
2401 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
2402
2403         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
2404         when multiplying M by sizeof (size_t).
2405
2406 2007-12-10  Martin Lambers  <marlam@marlam.de>
2407
2408         Override getpagesize on mingw.
2409         * lib/getpagesize.c: New file.
2410         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
2411         * modules/getpagesize (Files): Add lib/getpagesize.c.
2412         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
2413         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
2414         REPLACE_GETPAGESIZE.
2415         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
2416
2417 2007-12-25  Bruno Haible  <bruno@clisp.org>
2418
2419         * modules/localcharset (Notice): New field.
2420         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
2421         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
2422
2423 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
2424             Bruno Haible  <bruno@clisp.org>
2425
2426         Avoid using the syntax symbol() in formatted documentation.
2427         * MODULES.html.sh (func_module): When replacing symbol() with a
2428         hyperlink, remove the parentheses. Show an error if some remain.
2429         Recognize and render the '...' syntax.
2430         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
2431         Rework. Add paragraph about GCC's inlining.
2432         * doc/alloca.texi: Likewise.
2433         * doc/error.texi: Remove parentheses from symbol reference.
2434         * doc/gnulib-intro.texi: Likewise.
2435         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
2436         * modules/fnmatch (Description): Reword to say "the ... function".
2437         * modules/full-read (Description): Likewise.
2438         * modules/full-write (Description): Likewise.
2439         * modules/safe-read (Description): Likewise.
2440         * modules/safe-write (Description): Likewise.
2441         * modules/strchrnul (Description): Likewise.
2442         * modules/trim (Description): Likewise.
2443         * modules/error (Description): Remove parentheses from symbol
2444         references.
2445         * modules/verror (Description): Likewise.
2446         Reported by Karl Berry.
2447
2448 2007-12-25  Bruno Haible  <bruno@clisp.org>
2449
2450         Fixup after 2007-10-16 commit.
2451         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
2452
2453 2007-12-24  Bruno Haible  <bruno@clisp.org>
2454
2455         Make --enable-relocatable work with DESTDIR.
2456         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
2457         to compute installdir from destprog.
2458         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
2459         also set the RELOC_DESTDIR variable.
2460         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
2461
2462 2007-12-24  Bruno Haible  <bruno@clisp.org>
2463
2464         Fix link error due to xalloc_die().
2465         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
2466         of xreadlink.
2467         * lib/relocwrapper.c: Update comments.
2468         * build-aux/install-reloc: Remove xreadlink.c from file list.
2469         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
2470         xreadlink.c.
2471         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
2472
2473 2007-12-24  Bruno Haible  <bruno@clisp.org>
2474
2475         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
2476         * lib/setenv.h: Remove file.
2477         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
2478         lib/setenv.h.
2479         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
2480         (Depends-on): Add stdlib.
2481         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
2482         gl_FUNC_UNSETENV.
2483         (Include): Replace setenv.h with <stdlib.h>.
2484         * modules/unsetenv: New file.
2485         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
2486         * lib/unsetenv.c: Include <stdlib.h> first.
2487         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
2488         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
2489         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
2490         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
2491         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
2492         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
2493         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
2494         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
2495         * doc/functions/unsetenv.texi: Update.
2496         * modules/xsetenv (Depends-on): Add unsetenv.
2497         * modules/getdate (Depends-on): Likewise.
2498         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
2499         * lib/xsetenv.c: Don't include setenv.h.
2500         * lib/getdate.y: Likewise.
2501         * lib/relocwrapper.c: Likewise.
2502         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
2503         (Depends-on): Add stdlib.
2504         * NEWS: Mention the changes.
2505         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
2506
2507 2007-12-23  Bruno Haible  <bruno@clisp.org>
2508
2509         * lib/memmem.c (memmem): Use lowercase variable names. Tab
2510         indentation.
2511
2512 2007-12-23  Bruno Haible  <bruno@clisp.org>
2513
2514         * lib/c-strcasestr.c: Add more comments.
2515         * lib/c-strstr.c: Likewise.
2516         * lib/mbscasestr.c: Likewise.
2517         * lib/mbsstr.c: Likewise.
2518         * lib/strcasestr.c: Likewise.
2519         * lib/memmem.c: Likewise.
2520
2521 2007-12-23  Bruno Haible  <bruno@clisp.org>
2522
2523         * tests/test-memmem.c: Include <string.h> first.
2524
2525 2007-12-22  Bruno Haible  <bruno@clisp.org>
2526
2527         * gnulib-tool (func_create_testdir): Change $auxdir while generating
2528         the contents of $testsbase.
2529         Reported by Ralf Wildenhues.
2530
2531 2007-12-22  Bruno Haible  <bruno@clisp.org>
2532
2533         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
2534         two variables local_ldadd_before, local_ldadd_last.
2535
2536 2007-12-20  Eric Blake  <ebb9@byu.net>
2537
2538         Work around circular library issue when cross-compiling.
2539         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
2540         that progname.o does not need to pull in rpl_memcmp.
2541
2542 2007-12-19  Eric Blake  <ebb9@byu.net>
2543
2544         Fix memmem to avoid O(n^2) worst-case complexity.
2545         * lib/memmem.c (knuth_morris_pratt): New function.
2546         (memmem): Use it if first few naive iterations fail.
2547         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
2548         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
2549         * modules/memchr (License): Likewise.
2550         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
2551         malloca.
2552         * tests/test-memmem.c: Rewrite, borrowing ideas from
2553         test-mbsstr1.c; the old version wouldn't even compile!
2554         * modules/memmem-tests: New file.
2555         * lib/string.in.h (rpl_memmem): Add declaration.
2556         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
2557         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
2558         REPLACE_MEMMEM.
2559
2560 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
2561
2562         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
2563         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
2564         before any system include files, and undef after them all.  This
2565         should fix a problem on VMS reported by John E. Malmberg in
2566         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
2567
2568 2007-12-17  Eric Blake  <ebb9@byu.net>
2569
2570         Revert addition of verify, for BSD/OS.
2571         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
2572         can't handle large files, for the sake of obsolete platforms.
2573         * modules/fseeko (Depends-on): Remove verify.
2574         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
2575         * doc/functions/ftello.texi (ftello): Likewise.
2576         * doc/functions/fgetpos.texi (fgetpos): Likewise.
2577         Reported by Larry Jones.
2578
2579 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
2580
2581         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
2582         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
2583
2584 2007-12-17  Jim Meyering  <meyering@redhat.com>
2585
2586         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
2587         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
2588         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
2589         * modules/getcwd (Depends-on): Add openat.
2590         Reported by Petr Salinger.
2591
2592 2007-12-17  Bruno Haible  <bruno@clisp.org>
2593
2594         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
2595         avoid a segmentation fault of the configure test on x86_64 systems.
2596
2597 2007-12-15  Jim Meyering  <meyering@redhat.com>
2598
2599         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
2600
2601 2007-12-13  Eric Blake  <ebb9@byu.net>
2602
2603         Another fseek test.
2604         * tests/test-fseek.c (main): Also test ungetc handling.
2605         * tests/test-fseeko.c (main): Likewise.
2606         * modules/fseeko (Depends-on): Add verify.
2607         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
2608         large.
2609         Reported by Larry Jones.
2610
2611         Fix fseeko on mingw.
2612         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
2613         seek.
2614
2615         Beef up fseek tests.
2616         * tests/test-fseek.c (main): Also test eof handling.
2617         * tests/test-fseeko.c (main): Likewise.
2618         Reported by Larry Jones.
2619
2620 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
2621
2622         Fix fseeko on BSD-based platforms.
2623         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
2624         successful seek.
2625
2626 2007-12-12  Eric Blake  <ebb9@byu.net>
2627
2628         Allow circular dependency of separate libtests.a
2629         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
2630         when use_libtests.
2631
2632 2007-12-11  Eric Blake  <ebb9@byu.net>
2633
2634         Fix bug with -0.0L in previous patch.
2635         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
2636         * tests/test-isnan.c (main): Also test on zeroes.
2637         * tests/test-isnanf.c (main): Likewise.
2638         * tests/test-isnanl.h (main): Likewise.
2639
2640         Detect pseudo-denormals on x86 even when cross-compiling.
2641         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
2642         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
2643         invalid bit patterns that happen to satisfy ==.
2644
2645         Avoid link failures with separate libtests.a.
2646         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
2647         last, to satisfy circular dependencies.
2648
2649 2007-12-11  Eric Blake  <ebb9@byu.net>
2650         and Bruno Haible  <bruno@clisp.org>
2651
2652         Fix OpenBSD 4.0 <float.h> handling of long double.
2653         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
2654         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
2655         * doc/headers/float.texi (float.h): Document OpenBSD bug.
2656
2657 2007-12-11  Jim Meyering  <meyering@redhat.com>
2658
2659         * users.txt: Add libvirt.
2660
2661         Support versions of autoconf prior to 2.59c.
2662         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
2663         if it is not already defined.
2664
2665 2007-12-09  Bruno Haible  <bruno@clisp.org>
2666
2667         Let 'gnulib-tool --import' collect sources needed for the tests in
2668         tests/ rather than in lib/.
2669         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
2670         argument. If true, add rules to generate libtests.a, and put libtests.a
2671         into $(LDADD). Consider source files in subdirectories and set
2672         uses_subdirs.
2673         (func_emit_initmacro_start, func_emit_initmacro_end,
2674         func_emit_initmacro_done): Pass all arguments explicitly.
2675         (func_import): Determine two module lists main_modules,
2676         testsrelated_modules. Determine use_libtests. Determine two variables
2677         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
2678         instead of just sed_transform_lib_file. Determine two variables
2679         main_files and testsrelated_files. Compute 'files' as the union of
2680         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
2681         func_add_or_update. In the generated gnulib-comp.m4, collect the
2682         object files for tests/ in different variables than those for lib/.
2683         Substitute LIBTESTS_LIBDEPS.
2684         (func_create_testdir): Combine the uses_subdirs results from
2685         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
2686
2687 2007-12-09  Bruno Haible  <bruno@clisp.org>
2688
2689         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
2690         the build-aux directory.
2691
2692 2007-12-09  Bruno Haible  <bruno@clisp.org>
2693
2694         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
2695         introduced on 2006-09-09.
2696
2697 2007-12-07  Jim Meyering  <meyering@redhat.com>
2698
2699         Let these macros work also with autoconf-2.59.
2700         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
2701         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
2702         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
2703
2704 2007-12-06  Jim Meyering  <meyering@redhat.com>
2705
2706         Avoid a configure-time syntax error in gl_FUNC_ACL.
2707         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
2708         function in each branch, before testing the cache variable.
2709
2710 2007-12-04  Eric Blake  <ebb9@byu.net>
2711
2712         Make scripts executable.
2713         * build-aux/config.guess: Add execute permissions.
2714         * build-aux/config.sub: Likewise.
2715         * build-aux/gendocs.sh: Likewise.
2716
2717         Fix frexp on mingw.
2718         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
2719         cross-compiling.
2720         * doc/functions/frexp.texi (frexp): Document the bug.
2721
2722         Make cygwin fseeko check more reliable.
2723         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
2724         version numbers, rather than unrelated feature check.
2725         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
2726         * doc/functions/ftello.texi (ftello): Likewise.
2727         Reported by Bruno Haible.
2728
2729         * m4/strerror.m4: Bump version number.
2730
2731 2007-12-03  Bruno Haible  <bruno@clisp.org>
2732
2733         * doc/functions/mprotect.texi: Mention the mingw problem.
2734
2735 2007-12-03  Eric Blake  <ebb9@byu.net>
2736
2737         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
2738         REPLACE_STRERROR is initialized before this macro.
2739
2740 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
2741
2742         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
2743         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
2744         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
2745         put -lsec in even for programs other than 'ls'.  This fixes a problem
2746         for gettext reported by Bruno Haible in
2747         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
2748         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
2749         Add support for Solaris 10.  This isn't efficient, but should get the
2750         job done for now.
2751
2752 2007-12-03  James Youngman  <jay@gnu.org>
2753
2754         * doc/regexprops-generic.texi: change "an close-group" to "a
2755         close-group" and "illegal" to "not allowed".
2756
2757 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2758
2759         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
2760         pr_byname.h. Needed for the rare case when the maintainer has done
2761         "make maintainer-clean" in the source directory and then attempts a
2762         build outside the source directory.
2763         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
2764         scripts_byname.h.
2765
2766 2007-12-02  Martin Lambers <marlam@marlam.de>
2767             Bruno Haible  <bruno@clisp.org>
2768
2769         * lib/getpagesize.h: Remove file.
2770         * lib/unistd.in.h: Include declaration of getpagesize here.
2771         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
2772         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
2773         HAVE_SYS_PARAM_H.
2774         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
2775         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
2776         * modules/getpagesize (Files): Remove lib/getpagesize.h.
2777         (Depends-on): Add unistd.
2778         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
2779         (Include): Use <unistd.h> instead of getpagesize.h.
2780         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
2781         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
2782         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
2783         gl_GETPAGESIZE invocation, already handled by module dependency.
2784         * lib/pagealign_alloc.c: Don't include getpagesize.h.
2785
2786 2007-12-02  Bruno Haible  <bruno@clisp.org>
2787
2788         * modules/strings-tests: New file.
2789         * tests/test-strings.c: New file.
2790
2791         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
2792         * lib/strings.in.h: New file.
2793         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
2794         * m4/strings_h.m4: New file.
2795         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
2796         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
2797         * modules/strings: New file.
2798         * modules/string (Makefile.am): Update.
2799         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
2800         Reported by Karl Berry.
2801
2802 2007-12-01  Eric Blake  <ebb9@byu.net>
2803
2804         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
2805         accomodate fix in cygwin 1.5.25.
2806
2807 2007-12-01  Jim Meyering  <meyering@redhat.com>
2808
2809         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
2810         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
2811         that would inhibit utf8-optimization of a regexp containing line-
2812         or buffer-anchors, e.g., `^', `$'.
2813
2814 2007-11-30  Bruno Haible  <bruno@clisp.org>
2815
2816         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
2817         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
2818         glthread_recursive_lock_init.
2819         * lib/lock.c (glthread_recursive_lock_init)
2820         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
2821         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
2822
2823 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
2824
2825         New function qset_acl, like set_acl but with syscall semantics.
2826         * lib/acl.h (qset_acl): New decl.
2827         * lib/acl.c (qset_acl): New function.
2828         (set_acl): Use new function.  Use more-consistent diagnostics.
2829
2830 2007-11-28  Jim Meyering  <meyering@redhat.com>
2831
2832         * modules/physmem (License): Change from GPL to LGPLv2+.
2833
2834 2007-11-26  Bruno Haible  <bruno@clisp.org>
2835
2836         * lib/vasnprintf.c (decode_long_double): Don't abort if the
2837         'long double' type has excess precision.
2838         Reported by Jim Meyering in
2839         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
2840
2841 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2842
2843         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
2844         Sync from <http://gnu.org/licenses>.
2845         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
2846         with license text from same location.
2847         * doc/maintain.texi, doc/standards.texi:  Sync from
2848         <http://savannah.gnu.org/projects/gnustandards>.
2849
2850 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
2851         and Jim Meyering  <meyering@redhat.com>
2852
2853         Adjust getdate' grammar to accept a slightly more regular language.
2854         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
2855         Before, the former was rejected.
2856         * lib/getdate.y (digits_to_date_time): New function, factored
2857         out of ...
2858         (number): ...here.  Just call digits_to_date_time.
2859         (hybrid): New non-terminal to handle an <unsigned number,
2860         signed relative offset> sequence consistently.
2861
2862 2007-11-18  Jim Meyering  <meyering@redhat.com>
2863
2864         Pull my changes from coreutils:
2865         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
2866         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
2867         use of $gnulib_tool_option_extras, so that it's separated from the
2868         preceding argument.
2869
2870         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
2871         * build-aux/bootstrap (cp_mark_as_generated): Create any required
2872         parent destination directories before copying a file into place.
2873
2874 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
2875
2876         bootstrap: work also with 4-argument variant of AC_INIT
2877         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
2878
2879 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
2880
2881         Port test-getaddrinfo to Solaris.
2882         Problem reported by Bruno Haible in
2883         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
2884         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
2885         explanation of setting 'hints'.
2886         Don't reject an implementation merely because it returns EAI_SERVICE.
2887         (EAI_SERVICE): Define to 0 if not defined.
2888
2889 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
2890
2891         The license of gnu-make and posix-shell is now "GPLed build tool".
2892         * modules/gnu-make (License): Likewise.
2893         * modules/posix-shell (License): Likewise.
2894
2895         New module posix-shell, for determining a POSIX shell
2896         or perhaps something that is close enough to a POSIX shell.
2897         * m4/posix-shell.m4: New file.
2898         * modules/posix-shell: New file.
2899
2900         * MODULES.html.sh: Mention new module.
2901
2902         New module gnu-make, for determining whether we're using GNU Make.
2903         * m4/gnu-make.m4: New file.
2904         * modules/gnu-make: New file.
2905         * MODULES.html.sh: Mention new module.
2906
2907 2007-11-14  Jim Meyering  <meyering@redhat.com>
2908
2909         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
2910         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
2911         use this macro to create a function _definition_.
2912         Remove useless "#undef ARGMATCH_DIE".
2913
2914 2007-11-14  Bruno Haible  <bruno@clisp.org>
2915
2916         * lib/config.charset: Update for OpenBSD 4.1.
2917         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
2918
2919 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
2920
2921         Document 64-bit #if problems in stdint.texi.
2922         * doc/headers/stdint.texi (stdint.h): Mention problems with
2923         64-bit-#if, and how to work around them.
2924
2925         Don't insist on 'long long int' support in the preprocessor.  It
2926         breaks too many things.  For example, PRIdMAX still uses a 'long
2927         long int' format with the latest Sun compiler, even though
2928         HAVE_LONG_LONG_INT isn't defined due to that compiler's
2929         preprocessor problem.  This causes the latest coreutils to dump
2930         core on Solaris 10 sparc with the Sun C compiler.
2931         Instead, fix the 2007-10-16 problem in a different way, by evaluating
2932         the troublesome expressions at configure-time, not at #if-time.
2933         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
2934         preprocessor.
2935         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
2936         compile-time C checks, done at 'configure'-time.
2937         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
2938         * modules/inttypes (Makefile): Substitute the new symbols that
2939         gl_INTTYPES_H now generates.
2940         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
2941
2942 2007-11-12  Bruno Haible  <bruno@clisp.org>
2943
2944         Tests for Unicode character classification functions.
2945
2946         * modules/unictype/bidicategory-byname-tests: New file.
2947         * modules/unictype/bidicategory-name-tests: New file.
2948         * modules/unictype/bidicategory-of-tests: New file.
2949         * modules/unictype/bidicategory-test-tests: New file.
2950         * modules/unictype/block-list-tests: New file.
2951         * modules/unictype/block-of-tests: New file.
2952         * modules/unictype/block-test-tests: New file.
2953         * modules/unictype/category-C-tests: New file.
2954         * modules/unictype/category-Cc-tests: New file.
2955         * modules/unictype/category-Cf-tests: New file.
2956         * modules/unictype/category-Cn-tests: New file.
2957         * modules/unictype/category-Co-tests: New file.
2958         * modules/unictype/category-Cs-tests: New file.
2959         * modules/unictype/category-L-tests: New file.
2960         * modules/unictype/category-Ll-tests: New file.
2961         * modules/unictype/category-Lm-tests: New file.
2962         * modules/unictype/category-Lo-tests: New file.
2963         * modules/unictype/category-Lt-tests: New file.
2964         * modules/unictype/category-Lu-tests: New file.
2965         * modules/unictype/category-M-tests: New file.
2966         * modules/unictype/category-Mc-tests: New file.
2967         * modules/unictype/category-Me-tests: New file.
2968         * modules/unictype/category-Mn-tests: New file.
2969         * modules/unictype/category-N-tests: New file.
2970         * modules/unictype/category-Nd-tests: New file.
2971         * modules/unictype/category-Nl-tests: New file.
2972         * modules/unictype/category-No-tests: New file.
2973         * modules/unictype/category-P-tests: New file.
2974         * modules/unictype/category-Pc-tests: New file.
2975         * modules/unictype/category-Pd-tests: New file.
2976         * modules/unictype/category-Pe-tests: New file.
2977         * modules/unictype/category-Pf-tests: New file.
2978         * modules/unictype/category-Pi-tests: New file.
2979         * modules/unictype/category-Po-tests: New file.
2980         * modules/unictype/category-Ps-tests: New file.
2981         * modules/unictype/category-S-tests: New file.
2982         * modules/unictype/category-Sc-tests: New file.
2983         * modules/unictype/category-Sk-tests: New file.
2984         * modules/unictype/category-Sm-tests: New file.
2985         * modules/unictype/category-So-tests: New file.
2986         * modules/unictype/category-Z-tests: New file.
2987         * modules/unictype/category-Zl-tests: New file.
2988         * modules/unictype/category-Zp-tests: New file.
2989         * modules/unictype/category-Zs-tests: New file.
2990         * modules/unictype/category-and-not-tests: New file.
2991         * modules/unictype/category-and-tests: New file.
2992         * modules/unictype/category-byname-tests: New file.
2993         * modules/unictype/category-name-tests: New file.
2994         * modules/unictype/category-none-tests: New file.
2995         * modules/unictype/category-of-tests: New file.
2996         * modules/unictype/category-or-tests: New file.
2997         * modules/unictype/category-test-withtable-tests: New file.
2998         * modules/unictype/combining-class-tests: New file.
2999         * modules/unictype/ctype-alnum-tests: New file.
3000         * modules/unictype/ctype-alpha-tests: New file.
3001         * modules/unictype/ctype-blank-tests: New file.
3002         * modules/unictype/ctype-cntrl-tests: New file.
3003         * modules/unictype/ctype-digit-tests: New file.
3004         * modules/unictype/ctype-graph-tests: New file.
3005         * modules/unictype/ctype-lower-tests: New file.
3006         * modules/unictype/ctype-print-tests: New file.
3007         * modules/unictype/ctype-punct-tests: New file.
3008         * modules/unictype/ctype-space-tests: New file.
3009         * modules/unictype/ctype-upper-tests: New file.
3010         * modules/unictype/ctype-xdigit-tests: New file.
3011         * modules/unictype/decimal-digit-tests: New file.
3012         * modules/unictype/digit-tests: New file.
3013         * modules/unictype/mirror-tests: New file.
3014         * modules/unictype/numeric-tests: New file.
3015         * modules/unictype/property-alphabetic-tests: New file.
3016         * modules/unictype/property-ascii-hex-digit-tests: New file.
3017         * modules/unictype/property-bidi-arabic-digit-tests: New file.
3018         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
3019         * modules/unictype/property-bidi-block-separator-tests: New file.
3020         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
3021         * modules/unictype/property-bidi-common-separator-tests: New file.
3022         * modules/unictype/property-bidi-control-tests: New file.
3023         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
3024         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
3025         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
3026         * modules/unictype/property-bidi-european-digit-tests: New file.
3027         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
3028         * modules/unictype/property-bidi-left-to-right-tests: New file.
3029         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
3030         * modules/unictype/property-bidi-other-neutral-tests: New file.
3031         * modules/unictype/property-bidi-pdf-tests: New file.
3032         * modules/unictype/property-bidi-segment-separator-tests: New file.
3033         * modules/unictype/property-bidi-whitespace-tests: New file.
3034         * modules/unictype/property-byname-tests: New file.
3035         * modules/unictype/property-combining-tests: New file.
3036         * modules/unictype/property-composite-tests: New file.
3037         * modules/unictype/property-currency-symbol-tests: New file.
3038         * modules/unictype/property-dash-tests: New file.
3039         * modules/unictype/property-decimal-digit-tests: New file.
3040         * modules/unictype/property-default-ignorable-code-point-tests: New file.
3041         * modules/unictype/property-deprecated-tests: New file.
3042         * modules/unictype/property-diacritic-tests: New file.
3043         * modules/unictype/property-extender-tests: New file.
3044         * modules/unictype/property-format-control-tests: New file.
3045         * modules/unictype/property-grapheme-base-tests: New file.
3046         * modules/unictype/property-grapheme-extend-tests: New file.
3047         * modules/unictype/property-grapheme-link-tests: New file.
3048         * modules/unictype/property-hex-digit-tests: New file.
3049         * modules/unictype/property-hyphen-tests: New file.
3050         * modules/unictype/property-id-continue-tests: New file.
3051         * modules/unictype/property-id-start-tests: New file.
3052         * modules/unictype/property-ideographic-tests: New file.
3053         * modules/unictype/property-ids-binary-operator-tests: New file.
3054         * modules/unictype/property-ids-trinary-operator-tests: New file.
3055         * modules/unictype/property-ignorable-control-tests: New file.
3056         * modules/unictype/property-iso-control-tests: New file.
3057         * modules/unictype/property-join-control-tests: New file.
3058         * modules/unictype/property-left-of-pair-tests: New file.
3059         * modules/unictype/property-line-separator-tests: New file.
3060         * modules/unictype/property-logical-order-exception-tests: New file.
3061         * modules/unictype/property-lowercase-tests: New file.
3062         * modules/unictype/property-math-tests: New file.
3063         * modules/unictype/property-non-break-tests: New file.
3064         * modules/unictype/property-not-a-character-tests: New file.
3065         * modules/unictype/property-numeric-tests: New file.
3066         * modules/unictype/property-other-alphabetic-tests: New file.
3067         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
3068         * modules/unictype/property-other-grapheme-extend-tests: New file.
3069         * modules/unictype/property-other-id-continue-tests: New file.
3070         * modules/unictype/property-other-id-start-tests: New file.
3071         * modules/unictype/property-other-lowercase-tests: New file.
3072         * modules/unictype/property-other-math-tests: New file.
3073         * modules/unictype/property-other-uppercase-tests: New file.
3074         * modules/unictype/property-paired-punctuation-tests: New file.
3075         * modules/unictype/property-paragraph-separator-tests: New file.
3076         * modules/unictype/property-pattern-syntax-tests: New file.
3077         * modules/unictype/property-pattern-white-space-tests: New file.
3078         * modules/unictype/property-private-use-tests: New file.
3079         * modules/unictype/property-punctuation-tests: New file.
3080         * modules/unictype/property-quotation-mark-tests: New file.
3081         * modules/unictype/property-radical-tests: New file.
3082         * modules/unictype/property-sentence-terminal-tests: New file.
3083         * modules/unictype/property-soft-dotted-tests: New file.
3084         * modules/unictype/property-space-tests: New file.
3085         * modules/unictype/property-terminal-punctuation-tests: New file.
3086         * modules/unictype/property-test-tests: New file.
3087         * modules/unictype/property-titlecase-tests: New file.
3088         * modules/unictype/property-unassigned-code-value-tests: New file.
3089         * modules/unictype/property-unified-ideograph-tests: New file.
3090         * modules/unictype/property-uppercase-tests: New file.
3091         * modules/unictype/property-variation-selector-tests: New file.
3092         * modules/unictype/property-white-space-tests: New file.
3093         * modules/unictype/property-xid-continue-tests: New file.
3094         * modules/unictype/property-xid-start-tests: New file.
3095         * modules/unictype/property-zero-width-tests: New file.
3096         * modules/unictype/scripts-tests: New file.
3097         * modules/unictype/syntax-c-ident-tests: New file.
3098         * modules/unictype/syntax-c-whitespace-tests: New file.
3099         * modules/unictype/syntax-java-ident-tests: New file.
3100         * modules/unictype/syntax-java-whitespace-tests: New file.
3101         * tests/unictype/test-bidi_byname.c: New file.
3102         * tests/unictype/test-bidi_name.c: New file.
3103         * tests/unictype/test-bidi_of.c: New file.
3104         * tests/unictype/test-bidi_test.c: New file.
3105         * tests/unictype/test-block_list.c: New file.
3106         * tests/unictype/test-block_of.c: New file.
3107         * tests/unictype/test-block_test.c: New file.
3108         * tests/unictype/test-categ_and.c: New file.
3109         * tests/unictype/test-categ_and_not.c: New file.
3110         * tests/unictype/test-categ_byname.c: New file.
3111         * tests/unictype/test-categ_name.c: New file.
3112         * tests/unictype/test-categ_none.c: New file.
3113         * tests/unictype/test-categ_of.c: New file.
3114         * tests/unictype/test-categ_or.c: New file.
3115         * tests/unictype/test-categ_test_withtable.c: New file.
3116         * tests/unictype/test-combining.c: New file.
3117         * tests/unictype/test-decdigit.c: New file.
3118         * tests/unictype/test-digit.c: New file.
3119         * tests/unictype/test-mirror.c: New file.
3120         * tests/unictype/test-numeric.c: New file.
3121         * tests/unictype/test-pr_byname.c: New file.
3122         * tests/unictype/test-pr_test.c: New file.
3123         * tests/unictype/test-predicate-part1.h: New file.
3124         * tests/unictype/test-predicate-part2.h: New file.
3125         * tests/unictype/test-scripts.c: New file.
3126         * tests/unictype/test-sy_c_ident.c: New file.
3127         * tests/unictype/test-sy_java_ident.c: New file.
3128
3129         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
3130         for Unicode 5.0.0.
3131         * tests/unictype/test-categ_Cc.c: Likewise.
3132         * tests/unictype/test-categ_Cf.c: Likewise.
3133         * tests/unictype/test-categ_Cn.c: Likewise.
3134         * tests/unictype/test-categ_Co.c: Likewise.
3135         * tests/unictype/test-categ_Cs.c: Likewise.
3136         * tests/unictype/test-categ_L.c: Likewise.
3137         * tests/unictype/test-categ_Ll.c: Likewise.
3138         * tests/unictype/test-categ_Lm.c: Likewise.
3139         * tests/unictype/test-categ_Lo.c: Likewise.
3140         * tests/unictype/test-categ_Lt.c: Likewise.
3141         * tests/unictype/test-categ_Lu.c: Likewise.
3142         * tests/unictype/test-categ_M.c: Likewise.
3143         * tests/unictype/test-categ_Mc.c: Likewise.
3144         * tests/unictype/test-categ_Me.c: Likewise.
3145         * tests/unictype/test-categ_Mn.c: Likewise.
3146         * tests/unictype/test-categ_N.c: Likewise.
3147         * tests/unictype/test-categ_Nd.c: Likewise.
3148         * tests/unictype/test-categ_Nl.c: Likewise.
3149         * tests/unictype/test-categ_No.c: Likewise.
3150         * tests/unictype/test-categ_P.c: Likewise.
3151         * tests/unictype/test-categ_Pc.c: Likewise.
3152         * tests/unictype/test-categ_Pd.c: Likewise.
3153         * tests/unictype/test-categ_Pe.c: Likewise.
3154         * tests/unictype/test-categ_Pf.c: Likewise.
3155         * tests/unictype/test-categ_Pi.c: Likewise.
3156         * tests/unictype/test-categ_Po.c: Likewise.
3157         * tests/unictype/test-categ_Ps.c: Likewise.
3158         * tests/unictype/test-categ_S.c: Likewise.
3159         * tests/unictype/test-categ_Sc.c: Likewise.
3160         * tests/unictype/test-categ_Sk.c: Likewise.
3161         * tests/unictype/test-categ_Sm.c: Likewise.
3162         * tests/unictype/test-categ_So.c: Likewise.
3163         * tests/unictype/test-categ_Z.c: Likewise.
3164         * tests/unictype/test-categ_Zl.c: Likewise.
3165         * tests/unictype/test-categ_Zp.c: Likewise.
3166         * tests/unictype/test-categ_Zs.c: Likewise.
3167         * tests/unictype/test-ctype_alnum.c: Likewise.
3168         * tests/unictype/test-ctype_alpha.c: Likewise.
3169         * tests/unictype/test-ctype_blank.c: Likewise.
3170         * tests/unictype/test-ctype_cntrl.c: Likewise.
3171         * tests/unictype/test-ctype_digit.c: Likewise.
3172         * tests/unictype/test-ctype_graph.c: Likewise.
3173         * tests/unictype/test-ctype_lower.c: Likewise.
3174         * tests/unictype/test-ctype_print.c: Likewise.
3175         * tests/unictype/test-ctype_punct.c: Likewise.
3176         * tests/unictype/test-ctype_space.c: Likewise.
3177         * tests/unictype/test-ctype_upper.c: Likewise.
3178         * tests/unictype/test-ctype_xdigit.c: Likewise.
3179         * tests/unictype/test-decdigit.h: Likewise.
3180         * tests/unictype/test-digit.h: Likewise.
3181         * tests/unictype/test-numeric.h: Likewise.
3182         * tests/unictype/test-pr_alphabetic.c: Likewise.
3183         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
3184         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
3185         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
3186         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
3187         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
3188         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
3189         * tests/unictype/test-pr_bidi_control.c: Likewise.
3190         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
3191         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
3192         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
3193         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
3194         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
3195         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
3196         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
3197         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
3198         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
3199         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
3200         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
3201         * tests/unictype/test-pr_combining.c: Likewise.
3202         * tests/unictype/test-pr_composite.c: Likewise.
3203         * tests/unictype/test-pr_currency_symbol.c: Likewise.
3204         * tests/unictype/test-pr_dash.c: Likewise.
3205         * tests/unictype/test-pr_decimal_digit.c: Likewise.
3206         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
3207         * tests/unictype/test-pr_deprecated.c: Likewise.
3208         * tests/unictype/test-pr_diacritic.c: Likewise.
3209         * tests/unictype/test-pr_extender.c: Likewise.
3210         * tests/unictype/test-pr_format_control.c: Likewise.
3211         * tests/unictype/test-pr_grapheme_base.c: Likewise.
3212         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
3213         * tests/unictype/test-pr_grapheme_link.c: Likewise.
3214         * tests/unictype/test-pr_hex_digit.c: Likewise.
3215         * tests/unictype/test-pr_hyphen.c: Likewise.
3216         * tests/unictype/test-pr_id_continue.c: Likewise.
3217         * tests/unictype/test-pr_id_start.c: Likewise.
3218         * tests/unictype/test-pr_ideographic.c: Likewise.
3219         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
3220         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
3221         * tests/unictype/test-pr_ignorable_control.c: Likewise.
3222         * tests/unictype/test-pr_iso_control.c: Likewise.
3223         * tests/unictype/test-pr_join_control.c: Likewise.
3224         * tests/unictype/test-pr_left_of_pair.c: Likewise.
3225         * tests/unictype/test-pr_line_separator.c: Likewise.
3226         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
3227         * tests/unictype/test-pr_lowercase.c: Likewise.
3228         * tests/unictype/test-pr_math.c: Likewise.
3229         * tests/unictype/test-pr_non_break.c: Likewise.
3230         * tests/unictype/test-pr_not_a_character.c: Likewise.
3231         * tests/unictype/test-pr_numeric.c: Likewise.
3232         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
3233         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
3234         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
3235         * tests/unictype/test-pr_other_id_continue.c: Likewise.
3236         * tests/unictype/test-pr_other_id_start.c: Likewise.
3237         * tests/unictype/test-pr_other_lowercase.c: Likewise.
3238         * tests/unictype/test-pr_other_math.c: Likewise.
3239         * tests/unictype/test-pr_other_uppercase.c: Likewise.
3240         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
3241         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
3242         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
3243         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
3244         * tests/unictype/test-pr_private_use.c: Likewise.
3245         * tests/unictype/test-pr_punctuation.c: Likewise.
3246         * tests/unictype/test-pr_quotation_mark.c: Likewise.
3247         * tests/unictype/test-pr_radical.c: Likewise.
3248         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
3249         * tests/unictype/test-pr_soft_dotted.c: Likewise.
3250         * tests/unictype/test-pr_space.c: Likewise.
3251         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
3252         * tests/unictype/test-pr_titlecase.c: Likewise.
3253         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
3254         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
3255         * tests/unictype/test-pr_uppercase.c: Likewise.
3256         * tests/unictype/test-pr_variation_selector.c: Likewise.
3257         * tests/unictype/test-pr_white_space.c: Likewise.
3258         * tests/unictype/test-pr_xid_continue.c: Likewise.
3259         * tests/unictype/test-pr_xid_start.c: Likewise.
3260         * tests/unictype/test-pr_zero_width.c: Likewise.
3261         * tests/unictype/test-sy_c_whitespace.c: Likewise.
3262         * tests/unictype/test-sy_java_whitespace.c: Likewise.
3263
3264 2007-11-12  Bruno Haible  <bruno@clisp.org>
3265
3266         Unicode character classification functions.
3267         * lib/unictype.h: New file.
3268         * modules/unictype/base: New file.
3269         * modules/unictype/category-L: New file.
3270         * modules/unictype/category-Lu: New file.
3271         * modules/unictype/category-Ll: New file.
3272         * modules/unictype/category-Lt: New file.
3273         * modules/unictype/category-Lm: New file.
3274         * modules/unictype/category-Lo: New file.
3275         * modules/unictype/category-M: New file.
3276         * modules/unictype/category-Mn: New file.
3277         * modules/unictype/category-Mc: New file.
3278         * modules/unictype/category-Me: New file.
3279         * modules/unictype/category-N: New file.
3280         * modules/unictype/category-Nd: New file.
3281         * modules/unictype/category-Nl: New file.
3282         * modules/unictype/category-No: New file.
3283         * modules/unictype/category-P: New file.
3284         * modules/unictype/category-Pc: New file.
3285         * modules/unictype/category-Pd: New file.
3286         * modules/unictype/category-Ps: New file.
3287         * modules/unictype/category-Pe: New file.
3288         * modules/unictype/category-Pi: New file.
3289         * modules/unictype/category-Pf: New file.
3290         * modules/unictype/category-Po: New file.
3291         * modules/unictype/category-S: New file.
3292         * modules/unictype/category-Sm: New file.
3293         * modules/unictype/category-Sc: New file.
3294         * modules/unictype/category-Sk: New file.
3295         * modules/unictype/category-So: New file.
3296         * modules/unictype/category-Z: New file.
3297         * modules/unictype/category-Zs: New file.
3298         * modules/unictype/category-Zl: New file.
3299         * modules/unictype/category-Zp: New file.
3300         * modules/unictype/category-C: New file.
3301         * modules/unictype/category-Cc: New file.
3302         * modules/unictype/category-Cf: New file.
3303         * modules/unictype/category-Cs: New file.
3304         * modules/unictype/category-Co: New file.
3305         * modules/unictype/category-Cn: New file.
3306         * modules/unictype/category-or: New file.
3307         * modules/unictype/category-of: New file.
3308         * modules/unictype/category-test: New file.
3309         * modules/unictype/category-test-withtable: New file.
3310         * modules/unictype/category-byname: New file.
3311         * modules/unictype/category-none: New file.
3312         * modules/unictype/category-and: New file.
3313         * modules/unictype/category-and-not: New file.
3314         * modules/unictype/category-name: New file.
3315         * modules/unictype/combining-class: New file.
3316         * modules/unictype/category-all: New file.
3317         * modules/unictype/bidicategory-all: New file.
3318         * modules/unictype/bidicategory-byname: New file.
3319         * modules/unictype/bidicategory-name: New file.
3320         * modules/unictype/bidicategory-of: New file.
3321         * modules/unictype/bidicategory-test: New file.
3322         * modules/unictype/decimal-digit: New file.
3323         * modules/unictype/digit: New file.
3324         * modules/unictype/numeric: New file.
3325         * modules/unictype/mirror: New file.
3326         * modules/unictype/property-white-space: New file.
3327         * modules/unictype/property-alphabetic: New file.
3328         * modules/unictype/property-other-alphabetic: New file.
3329         * modules/unictype/property-not-a-character: New file.
3330         * modules/unictype/property-default-ignorable-code-point: New file.
3331         * modules/unictype/property-other-default-ignorable-code-point: New
3332         file.
3333         * modules/unictype/property-deprecated: New file.
3334         * modules/unictype/property-logical-order-exception: New file.
3335         * modules/unictype/property-variation-selector: New file.
3336         * modules/unictype/property-private-use: New file.
3337         * modules/unictype/property-unassigned-code-value: New file.
3338         * modules/unictype/property-uppercase: New file.
3339         * modules/unictype/property-other-uppercase: New file.
3340         * modules/unictype/property-lowercase: New file.
3341         * modules/unictype/property-other-lowercase: New file.
3342         * modules/unictype/property-titlecase: New file.
3343         * modules/unictype/property-soft-dotted: New file.
3344         * modules/unictype/property-id-start: New file.
3345         * modules/unictype/property-other-id-start: New file.
3346         * modules/unictype/property-id-continue: New file.
3347         * modules/unictype/property-other-id-continue: New file.
3348         * modules/unictype/property-xid-start: New file.
3349         * modules/unictype/property-xid-continue: New file.
3350         * modules/unictype/property-pattern-white-space: New file.
3351         * modules/unictype/property-pattern-syntax: New file.
3352         * modules/unictype/property-join-control: New file.
3353         * modules/unictype/property-grapheme-base: New file.
3354         * modules/unictype/property-grapheme-extend: New file.
3355         * modules/unictype/property-other-grapheme-extend: New file.
3356         * modules/unictype/property-grapheme-link: New file.
3357         * modules/unictype/property-bidi-control: New file.
3358         * modules/unictype/property-bidi-left-to-right: New file.
3359         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
3360         * modules/unictype/property-bidi-arabic-right-to-left: New file.
3361         * modules/unictype/property-bidi-european-digit: New file.
3362         * modules/unictype/property-bidi-eur-num-separator: New file.
3363         * modules/unictype/property-bidi-eur-num-terminator: New file.
3364         * modules/unictype/property-bidi-arabic-digit: New file.
3365         * modules/unictype/property-bidi-common-separator: New file.
3366         * modules/unictype/property-bidi-block-separator: New file.
3367         * modules/unictype/property-bidi-segment-separator: New file.
3368         * modules/unictype/property-bidi-whitespace: New file.
3369         * modules/unictype/property-bidi-non-spacing-mark: New file.
3370         * modules/unictype/property-bidi-boundary-neutral: New file.
3371         * modules/unictype/property-bidi-pdf: New file.
3372         * modules/unictype/property-bidi-embedding-or-override: New file.
3373         * modules/unictype/property-bidi-other-neutral: New file.
3374         * modules/unictype/property-hex-digit: New file.
3375         * modules/unictype/property-ascii-hex-digit: New file.
3376         * modules/unictype/property-ideographic: New file.
3377         * modules/unictype/property-unified-ideograph: New file.
3378         * modules/unictype/property-radical: New file.
3379         * modules/unictype/property-ids-binary-operator: New file.
3380         * modules/unictype/property-ids-trinary-operator: New file.
3381         * modules/unictype/property-zero-width: New file.
3382         * modules/unictype/property-space: New file.
3383         * modules/unictype/property-non-break: New file.
3384         * modules/unictype/property-iso-control: New file.
3385         * modules/unictype/property-format-control: New file.
3386         * modules/unictype/property-dash: New file.
3387         * modules/unictype/property-hyphen: New file.
3388         * modules/unictype/property-punctuation: New file.
3389         * modules/unictype/property-line-separator: New file.
3390         * modules/unictype/property-paragraph-separator: New file.
3391         * modules/unictype/property-quotation-mark: New file.
3392         * modules/unictype/property-sentence-terminal: New file.
3393         * modules/unictype/property-terminal-punctuation: New file.
3394         * modules/unictype/property-currency-symbol: New file.
3395         * modules/unictype/property-math: New file.
3396         * modules/unictype/property-other-math: New file.
3397         * modules/unictype/property-paired-punctuation: New file.
3398         * modules/unictype/property-left-of-pair: New file.
3399         * modules/unictype/property-combining: New file.
3400         * modules/unictype/property-composite: New file.
3401         * modules/unictype/property-decimal-digit: New file.
3402         * modules/unictype/property-numeric: New file.
3403         * modules/unictype/property-diacritic: New file.
3404         * modules/unictype/property-extender: New file.
3405         * modules/unictype/property-ignorable-control: New file.
3406         * modules/unictype/property-test: New file.
3407         * modules/unictype/property-byname: New file.
3408         * modules/unictype/property-all: New file.
3409         * modules/unictype/scripts: New file.
3410         * modules/unictype/scripts-all: New file.
3411         * modules/unictype/block-of: New file.
3412         * modules/unictype/block-test: New file.
3413         * modules/unictype/block-list: New file.
3414         * modules/unictype/block-all: New file.
3415         * modules/unictype/syntax-c-whitespace: New file.
3416         * modules/unictype/syntax-java-whitespace: New file.
3417         * modules/unictype/syntax-c-ident: New file.
3418         * modules/unictype/syntax-java-ident: New file.
3419         * modules/unictype/ctype-alnum: New file.
3420         * modules/unictype/ctype-alpha: New file.
3421         * modules/unictype/ctype-cntrl: New file.
3422         * modules/unictype/ctype-digit: New file.
3423         * modules/unictype/ctype-graph: New file.
3424         * modules/unictype/ctype-lower: New file.
3425         * modules/unictype/ctype-print: New file.
3426         * modules/unictype/ctype-punct: New file.
3427         * modules/unictype/ctype-space: New file.
3428         * modules/unictype/ctype-upper: New file.
3429         * modules/unictype/ctype-xdigit: New file.
3430         * modules/unictype/ctype-blank: New file.
3431         * lib/unictype/bidi_byname.c: New file.
3432         * lib/unictype/bidi_name.c: New file.
3433         * lib/unictype/bidi_of.c: New file.
3434         * lib/unictype/bidi_test.c: New file.
3435         * lib/unictype/bitmap.h: New file.
3436         * lib/unictype/block_test.c: New file.
3437         * lib/unictype/blocks.c: New file.
3438         * lib/unictype/categ_C.c: New file.
3439         * lib/unictype/categ_Cc.c: New file.
3440         * lib/unictype/categ_Cf.c: New file.
3441         * lib/unictype/categ_Cn.c: New file.
3442         * lib/unictype/categ_Co.c: New file.
3443         * lib/unictype/categ_Cs.c: New file.
3444         * lib/unictype/categ_L.c: New file.
3445         * lib/unictype/categ_Ll.c: New file.
3446         * lib/unictype/categ_Lm.c: New file.
3447         * lib/unictype/categ_Lo.c: New file.
3448         * lib/unictype/categ_Lt.c: New file.
3449         * lib/unictype/categ_Lu.c: New file.
3450         * lib/unictype/categ_M.c: New file.
3451         * lib/unictype/categ_Mc.c: New file.
3452         * lib/unictype/categ_Me.c: New file.
3453         * lib/unictype/categ_Mn.c: New file.
3454         * lib/unictype/categ_N.c: New file.
3455         * lib/unictype/categ_Nd.c: New file.
3456         * lib/unictype/categ_Nl.c: New file.
3457         * lib/unictype/categ_No.c: New file.
3458         * lib/unictype/categ_P.c: New file.
3459         * lib/unictype/categ_Pc.c: New file.
3460         * lib/unictype/categ_Pd.c: New file.
3461         * lib/unictype/categ_Pe.c: New file.
3462         * lib/unictype/categ_Pf.c: New file.
3463         * lib/unictype/categ_Pi.c: New file.
3464         * lib/unictype/categ_Po.c: New file.
3465         * lib/unictype/categ_Ps.c: New file.
3466         * lib/unictype/categ_S.c: New file.
3467         * lib/unictype/categ_Sc.c: New file.
3468         * lib/unictype/categ_Sk.c: New file.
3469         * lib/unictype/categ_Sm.c: New file.
3470         * lib/unictype/categ_So.c: New file.
3471         * lib/unictype/categ_Z.c: New file.
3472         * lib/unictype/categ_Zl.c: New file.
3473         * lib/unictype/categ_Zp.c: New file.
3474         * lib/unictype/categ_Zs.c: New file.
3475         * lib/unictype/categ_and.c: New file.
3476         * lib/unictype/categ_and_not.c: New file.
3477         * lib/unictype/categ_byname.c: New file.
3478         * lib/unictype/categ_name.c: New file.
3479         * lib/unictype/categ_none.c: New file.
3480         * lib/unictype/categ_of.c: New file.
3481         * lib/unictype/categ_or.c: New file.
3482         * lib/unictype/categ_test.c: New file.
3483         * lib/unictype/combining.c: New file.
3484         * lib/unictype/ctype_alnum.c: New file.
3485         * lib/unictype/ctype_alpha.c: New file.
3486         * lib/unictype/ctype_blank.c: New file.
3487         * lib/unictype/ctype_cntrl.c: New file.
3488         * lib/unictype/ctype_digit.c: New file.
3489         * lib/unictype/ctype_graph.c: New file.
3490         * lib/unictype/ctype_lower.c: New file.
3491         * lib/unictype/ctype_print.c: New file.
3492         * lib/unictype/ctype_punct.c: New file.
3493         * lib/unictype/ctype_space.c: New file.
3494         * lib/unictype/ctype_upper.c: New file.
3495         * lib/unictype/ctype_xdigit.c: New file.
3496         * lib/unictype/decdigit.c: New file.
3497         * lib/unictype/digit.c: New file.
3498         * lib/unictype/identsyntaxmap.h: New file.
3499         * lib/unictype/mirror.c: New file.
3500         * lib/unictype/numeric.c: New file.
3501         * lib/unictype/pr_alphabetic.c: New file.
3502         * lib/unictype/pr_ascii_hex_digit.c: New file.
3503         * lib/unictype/pr_bidi_arabic_digit.c: New file.
3504         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
3505         * lib/unictype/pr_bidi_block_separator.c: New file.
3506         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
3507         * lib/unictype/pr_bidi_common_separator.c: New file.
3508         * lib/unictype/pr_bidi_control.c: New file.
3509         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
3510         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
3511         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
3512         * lib/unictype/pr_bidi_european_digit.c: New file.
3513         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
3514         * lib/unictype/pr_bidi_left_to_right.c: New file.
3515         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
3516         * lib/unictype/pr_bidi_other_neutral.c: New file.
3517         * lib/unictype/pr_bidi_pdf.c: New file.
3518         * lib/unictype/pr_bidi_segment_separator.c: New file.
3519         * lib/unictype/pr_bidi_whitespace.c: New file.
3520         * lib/unictype/pr_byname.c: New file.
3521         * lib/unictype/pr_byname.gperf: New file.
3522         * lib/unictype/pr_combining.c: New file.
3523         * lib/unictype/pr_composite.c: New file.
3524         * lib/unictype/pr_currency_symbol.c: New file.
3525         * lib/unictype/pr_dash.c: New file.
3526         * lib/unictype/pr_decimal_digit.c: New file.
3527         * lib/unictype/pr_default_ignorable_code_point.c: New file.
3528         * lib/unictype/pr_deprecated.c: New file.
3529         * lib/unictype/pr_diacritic.c: New file.
3530         * lib/unictype/pr_extender.c: New file.
3531         * lib/unictype/pr_format_control.c: New file.
3532         * lib/unictype/pr_grapheme_base.c: New file.
3533         * lib/unictype/pr_grapheme_extend.c: New file.
3534         * lib/unictype/pr_grapheme_link.c: New file.
3535         * lib/unictype/pr_hex_digit.c: New file.
3536         * lib/unictype/pr_hyphen.c: New file.
3537         * lib/unictype/pr_id_continue.c: New file.
3538         * lib/unictype/pr_id_start.c: New file.
3539         * lib/unictype/pr_ideographic.c: New file.
3540         * lib/unictype/pr_ids_binary_operator.c: New file.
3541         * lib/unictype/pr_ids_trinary_operator.c: New file.
3542         * lib/unictype/pr_ignorable_control.c: New file.
3543         * lib/unictype/pr_iso_control.c: New file.
3544         * lib/unictype/pr_join_control.c: New file.
3545         * lib/unictype/pr_left_of_pair.c: New file.
3546         * lib/unictype/pr_line_separator.c: New file.
3547         * lib/unictype/pr_logical_order_exception.c: New file.
3548         * lib/unictype/pr_lowercase.c: New file.
3549         * lib/unictype/pr_math.c: New file.
3550         * lib/unictype/pr_non_break.c: New file.
3551         * lib/unictype/pr_not_a_character.c: New file.
3552         * lib/unictype/pr_numeric.c: New file.
3553         * lib/unictype/pr_other_alphabetic.c: New file.
3554         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
3555         * lib/unictype/pr_other_grapheme_extend.c: New file.
3556         * lib/unictype/pr_other_id_continue.c: New file.
3557         * lib/unictype/pr_other_id_start.c: New file.
3558         * lib/unictype/pr_other_lowercase.c: New file.
3559         * lib/unictype/pr_other_math.c: New file.
3560         * lib/unictype/pr_other_uppercase.c: New file.
3561         * lib/unictype/pr_paired_punctuation.c: New file.
3562         * lib/unictype/pr_paragraph_separator.c: New file.
3563         * lib/unictype/pr_pattern_syntax.c: New file.
3564         * lib/unictype/pr_pattern_white_space.c: New file.
3565         * lib/unictype/pr_private_use.c: New file.
3566         * lib/unictype/pr_punctuation.c: New file.
3567         * lib/unictype/pr_quotation_mark.c: New file.
3568         * lib/unictype/pr_radical.c: New file.
3569         * lib/unictype/pr_sentence_terminal.c: New file.
3570         * lib/unictype/pr_soft_dotted.c: New file.
3571         * lib/unictype/pr_space.c: New file.
3572         * lib/unictype/pr_terminal_punctuation.c: New file.
3573         * lib/unictype/pr_test.c: New file.
3574         * lib/unictype/pr_titlecase.c: New file.
3575         * lib/unictype/pr_unassigned_code_value.c: New file.
3576         * lib/unictype/pr_unified_ideograph.c: New file.
3577         * lib/unictype/pr_uppercase.c: New file.
3578         * lib/unictype/pr_variation_selector.c: New file.
3579         * lib/unictype/pr_white_space.c: New file.
3580         * lib/unictype/pr_xid_continue.c: New file.
3581         * lib/unictype/pr_xid_start.c: New file.
3582         * lib/unictype/pr_zero_width.c: New file.
3583         * lib/unictype/scripts.c: New file.
3584         * lib/unictype/sy_c_ident.c: New file.
3585         * lib/unictype/sy_c_whitespace.c: New file.
3586         * lib/unictype/sy_java_ident.c: New file.
3587         * lib/unictype/sy_java_whitespace.c: New file.
3588
3589         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
3590         Unicode 5.0.0.
3591         * lib/unictype/blocks.h: Likewise.
3592         * lib/unictype/categ_C.h: Likewise.
3593         * lib/unictype/categ_Cc.h: Likewise.
3594         * lib/unictype/categ_Cf.h: Likewise.
3595         * lib/unictype/categ_Cn.h: Likewise.
3596         * lib/unictype/categ_Co.h: Likewise.
3597         * lib/unictype/categ_Cs.h: Likewise.
3598         * lib/unictype/categ_L.h: Likewise.
3599         * lib/unictype/categ_Ll.h: Likewise.
3600         * lib/unictype/categ_Lm.h: Likewise.
3601         * lib/unictype/categ_Lo.h: Likewise.
3602         * lib/unictype/categ_Lt.h: Likewise.
3603         * lib/unictype/categ_Lu.h: Likewise.
3604         * lib/unictype/categ_M.h: Likewise.
3605         * lib/unictype/categ_Mc.h: Likewise.
3606         * lib/unictype/categ_Me.h: Likewise.
3607         * lib/unictype/categ_Mn.h: Likewise.
3608         * lib/unictype/categ_N.h: Likewise.
3609         * lib/unictype/categ_Nd.h: Likewise.
3610         * lib/unictype/categ_Nl.h: Likewise.
3611         * lib/unictype/categ_No.h: Likewise.
3612         * lib/unictype/categ_P.h: Likewise.
3613         * lib/unictype/categ_Pc.h: Likewise.
3614         * lib/unictype/categ_Pd.h: Likewise.
3615         * lib/unictype/categ_Pe.h: Likewise.
3616         * lib/unictype/categ_Pf.h: Likewise.
3617         * lib/unictype/categ_Pi.h: Likewise.
3618         * lib/unictype/categ_Po.h: Likewise.
3619         * lib/unictype/categ_Ps.h: Likewise.
3620         * lib/unictype/categ_S.h: Likewise.
3621         * lib/unictype/categ_Sc.h: Likewise.
3622         * lib/unictype/categ_Sk.h: Likewise.
3623         * lib/unictype/categ_Sm.h: Likewise.
3624         * lib/unictype/categ_So.h: Likewise.
3625         * lib/unictype/categ_Z.h: Likewise.
3626         * lib/unictype/categ_Zl.h: Likewise.
3627         * lib/unictype/categ_Zp.h: Likewise.
3628         * lib/unictype/categ_Zs.h: Likewise.
3629         * lib/unictype/categ_of.h: Likewise.
3630         * lib/unictype/combining.h: Likewise.
3631         * lib/unictype/ctype_alnum.h: Likewise.
3632         * lib/unictype/ctype_alpha.h: Likewise.
3633         * lib/unictype/ctype_blank.h: Likewise.
3634         * lib/unictype/ctype_cntrl.h: Likewise.
3635         * lib/unictype/ctype_digit.h: Likewise.
3636         * lib/unictype/ctype_graph.h: Likewise.
3637         * lib/unictype/ctype_lower.h: Likewise.
3638         * lib/unictype/ctype_print.h: Likewise.
3639         * lib/unictype/ctype_punct.h: Likewise.
3640         * lib/unictype/ctype_space.h: Likewise.
3641         * lib/unictype/ctype_upper.h: Likewise.
3642         * lib/unictype/ctype_xdigit.h: Likewise.
3643         * lib/unictype/decdigit.h: Likewise.
3644         * lib/unictype/digit.h: Likewise.
3645         * lib/unictype/mirror.h: Likewise.
3646         * lib/unictype/numeric.h: Likewise.
3647         * lib/unictype/pr_alphabetic.h: Likewise.
3648         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
3649         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
3650         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
3651         * lib/unictype/pr_bidi_block_separator.h: Likewise.
3652         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
3653         * lib/unictype/pr_bidi_common_separator.h: Likewise.
3654         * lib/unictype/pr_bidi_control.h: Likewise.
3655         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
3656         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
3657         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
3658         * lib/unictype/pr_bidi_european_digit.h: Likewise.
3659         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
3660         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
3661         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
3662         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
3663         * lib/unictype/pr_bidi_pdf.h: Likewise.
3664         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
3665         * lib/unictype/pr_bidi_whitespace.h: Likewise.
3666         * lib/unictype/pr_combining.h: Likewise.
3667         * lib/unictype/pr_composite.h: Likewise.
3668         * lib/unictype/pr_currency_symbol.h: Likewise.
3669         * lib/unictype/pr_dash.h: Likewise.
3670         * lib/unictype/pr_decimal_digit.h: Likewise.
3671         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
3672         * lib/unictype/pr_deprecated.h: Likewise.
3673         * lib/unictype/pr_diacritic.h: Likewise.
3674         * lib/unictype/pr_extender.h: Likewise.
3675         * lib/unictype/pr_format_control.h: Likewise.
3676         * lib/unictype/pr_grapheme_base.h: Likewise.
3677         * lib/unictype/pr_grapheme_extend.h: Likewise.
3678         * lib/unictype/pr_grapheme_link.h: Likewise.
3679         * lib/unictype/pr_hex_digit.h: Likewise.
3680         * lib/unictype/pr_hyphen.h: Likewise.
3681         * lib/unictype/pr_id_continue.h: Likewise.
3682         * lib/unictype/pr_id_start.h: Likewise.
3683         * lib/unictype/pr_ideographic.h: Likewise.
3684         * lib/unictype/pr_ids_binary_operator.h: Likewise.
3685         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
3686         * lib/unictype/pr_ignorable_control.h: Likewise.
3687         * lib/unictype/pr_iso_control.h: Likewise.
3688         * lib/unictype/pr_join_control.h: Likewise.
3689         * lib/unictype/pr_left_of_pair.h: Likewise.
3690         * lib/unictype/pr_line_separator.h: Likewise.
3691         * lib/unictype/pr_logical_order_exception.h: Likewise.
3692         * lib/unictype/pr_lowercase.h: Likewise.
3693         * lib/unictype/pr_math.h: Likewise.
3694         * lib/unictype/pr_non_break.h: Likewise.
3695         * lib/unictype/pr_not_a_character.h: Likewise.
3696         * lib/unictype/pr_numeric.h: Likewise.
3697         * lib/unictype/pr_other_alphabetic.h: Likewise.
3698         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
3699         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
3700         * lib/unictype/pr_other_id_continue.h: Likewise.
3701         * lib/unictype/pr_other_id_start.h: Likewise.
3702         * lib/unictype/pr_other_lowercase.h: Likewise.
3703         * lib/unictype/pr_other_math.h: Likewise.
3704         * lib/unictype/pr_other_uppercase.h: Likewise.
3705         * lib/unictype/pr_paired_punctuation.h: Likewise.
3706         * lib/unictype/pr_paragraph_separator.h: Likewise.
3707         * lib/unictype/pr_pattern_syntax.h: Likewise.
3708         * lib/unictype/pr_pattern_white_space.h: Likewise.
3709         * lib/unictype/pr_private_use.h: Likewise.
3710         * lib/unictype/pr_punctuation.h: Likewise.
3711         * lib/unictype/pr_quotation_mark.h: Likewise.
3712         * lib/unictype/pr_radical.h: Likewise.
3713         * lib/unictype/pr_sentence_terminal.h: Likewise.
3714         * lib/unictype/pr_soft_dotted.h: Likewise.
3715         * lib/unictype/pr_space.h: Likewise.
3716         * lib/unictype/pr_terminal_punctuation.h: Likewise.
3717         * lib/unictype/pr_titlecase.h: Likewise.
3718         * lib/unictype/pr_unassigned_code_value.h: Likewise.
3719         * lib/unictype/pr_unified_ideograph.h: Likewise.
3720         * lib/unictype/pr_uppercase.h: Likewise.
3721         * lib/unictype/pr_variation_selector.h: Likewise.
3722         * lib/unictype/pr_white_space.h: Likewise.
3723         * lib/unictype/pr_xid_continue.h: Likewise.
3724         * lib/unictype/pr_xid_start.h: Likewise.
3725         * lib/unictype/pr_zero_width.h: Likewise.
3726         * lib/unictype/scripts.h: Likewise.
3727         * lib/unictype/scripts_byname.gperf: Likewise.
3728         * lib/unictype/sy_c_ident.h: Likewise.
3729         * lib/unictype/sy_c_whitespace.h: Likewise.
3730         * lib/unictype/sy_java_ident.h: Likewise.
3731         * lib/unictype/sy_java_whitespace.h: Likewise.
3732
3733         * lib/unictype/Makefile: New file.
3734         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
3735         glibc.
3736         * lib/unictype/3level.h: New file, copied from glibc.
3737         * lib/unictype/3levelbit.h: New file.
3738
3739 2007-11-11  Bruno Haible  <bruno@clisp.org>
3740
3741         * modules/gperf: New file.
3742         * modules/iconv_open (Depends-on): Add it.
3743         (Makefile.am): Remove the GPERF definition.
3744
3745 2007-11-11  Bruno Haible  <bruno@clisp.org>
3746
3747         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
3748         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
3749
3750 2007-11-11  Bruno Haible  <bruno@clisp.org>
3751
3752         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
3753         (usage): Remove function.
3754
3755 2007-11-11  Bruno Haible  <bruno@clisp.org>
3756
3757         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
3758         gl_FUNC_CEILF_LIBS.
3759         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
3760         gl_FUNC_CEIL_LIBS.
3761         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
3762         gl_FUNC_CEILL_LIBS.
3763         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
3764         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
3765         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
3766
3767 2007-11-11  Bruno Haible  <bruno@clisp.org>
3768
3769         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
3770         roundf were declared but do not exist on functions.
3771         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
3772         roundl were declared but do not exist on functions.
3773         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
3774         HAVE_FLOORL_AND_CEILL, respectively.
3775         Needed for Sun C on Solaris 10.
3776
3777 2007-11-11  Bruno Haible  <bruno@clisp.org>
3778
3779         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
3780         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
3781         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
3782         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
3783         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
3784         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
3785         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
3786         HAVE_DECL_ROUNDF.
3787         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
3788         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
3789         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
3790         of HAVE_DECL_ROUND*.
3791         * modules/math (Makefile.am): Update.
3792
3793 2007-11-10  Bruno Haible  <bruno@clisp.org>
3794
3795         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
3796         ptrdiff_t as m4/intl.m4.
3797
3798 2007-11-10  Jim Meyering  <meyering@redhat.com>
3799
3800         Avoid link failure for the argmatch test.
3801         * tests/test-argmatch.c (usage): Define function to avoid a link
3802         failure: argmatch_die requires a usage function.
3803
3804 2007-11-09  Bruno Haible  <bruno@clisp.org>
3805
3806         * doc/functions/snprintf.texi: Mention BeOS deficiency.
3807         * doc/functions/vsnprintf.texi: Likewise.
3808         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
3809         with a size argument < 2.
3810
3811 2007-11-09  Bruno Haible  <bruno@clisp.org>
3812
3813         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
3814         buffer. Fixes an inefficiency introduced on 2007-11-03.
3815
3816 2007-11-09  Bruno Haible  <bruno@clisp.org>
3817
3818         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
3819         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
3820
3821 2007-11-08  Jim Meyering  <meyering@redhat.com>
3822
3823         Change cache variable name prefix "jm_" to "gl_" everywhere.
3824         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
3825         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
3826         * m4/uptime.m4: s/gl_/jm_/
3827
3828 2007-11-07  Bruno Haible  <bruno@clisp.org>
3829
3830         Update to GNU gettext 0.17.
3831         * m4/intl.m4: Update to GNU gettext 0.17.
3832         * m4/po.m4: Likewise.
3833         * modules/gettext (Files): Remove m4/ulonglong.m4.
3834         (configure.ac): Require gettext infrastructure from version 0.17.
3835
3836 2007-11-06  Bruno Haible  <bruno@clisp.org>
3837
3838         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
3839         symbolic values are not defined in a public header.
3840         * lib/freadable.c (freadable) [QNX]: Likewise.
3841         * lib/freadahead.c (freadahead) [QNX]: Likewise.
3842         * lib/freading.c (freading) [QNX]: Likewise.
3843         * lib/fseterr.c (fseterr) [QNX]: Likewise.
3844         * lib/fwritable.c (fwritable) [QNX]: Likewise.
3845         * lib/fwriting.c (fwriting) [QNX]: Likewise.
3846         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
3847         Reported by Alain Magloire.
3848
3849         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
3850
3851 2007-11-05  Bruno Haible  <bruno@clisp.org>
3852
3853         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
3854         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
3855         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
3856         Reported by Eric Blake.
3857
3858 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3859             Bruno Haible  <bruno@clisp.org>
3860
3861         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
3862         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
3863         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
3864         (malloc): Undefine also before including <stdlib.h>.
3865         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
3866         Needed on OSF/1 4.0.
3867
3868 2007-11-05  Jim Meyering  <meyering@redhat.com>
3869
3870         git-version-gen: sync from coreutils.
3871         * build-aux/git-version-gen: Add comments.
3872         Change the first '-' to '.' in the snapshot version string,
3873         e.g., 6.9-377-08144 -> 6.9.377-08144
3874         Remove first parameter.
3875         Don't declare a version "-dirty" merely because a time
3876         stamp has changed.
3877
3878 2007-11-04  Bruno Haible  <bruno@clisp.org>
3879
3880         * lib/lock.h: Protect all macro definitions containing an 'if'
3881         statement through a "do { ... } while (0)".
3882         * lib/tls.h: Likewise.
3883
3884 2007-11-04  Bruno Haible  <bruno@clisp.org>
3885
3886         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
3887
3888 2007-11-04  Bruno Haible  <bruno@clisp.org>
3889
3890         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
3891         * modules/fprintf-posix (Depends-on): Add nocrash.
3892         * modules/snprintf-posix (Depends-on): Likewise.
3893         * modules/sprintf-posix (Depends-on): Likewise.
3894         * modules/vasnprintf-posix (Depends-on): Likewise.
3895         * modules/vasprintf-posix (Depends-on): Likewise.
3896         * modules/vfprintf-posix (Depends-on): Likewise.
3897         * modules/vsnprintf-posix (Depends-on): Likewise.
3898         * modules/vsprintf-posix (Depends-on): Likewise.
3899         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
3900         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
3901         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
3902         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
3903         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
3904         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
3905         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
3906
3907 2007-11-04  Bruno Haible  <bruno@clisp.org>
3908
3909         * modules/nocrash: New file.
3910         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
3911         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
3912
3913 2007-11-04  Bruno Haible  <bruno@clisp.org>
3914
3915         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
3916         precision handling.
3917         * tests/test-vasprintf-posix.c (test_function): Likewise.
3918         * tests/test-snprintf-posix.h (test_function): Likewise.
3919         * tests/test-sprintf-posix.h (test_function): Likewise.
3920
3921         Fix *printf behaviour for large precisions on mingw and BeOS.
3922         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
3923         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
3924         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
3925         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
3926         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
3927         gl_PRINTF_PRECISION and test its result. Invoke
3928         gl_PREREQ_VASNPRINTF_PRECISION.
3929         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
3930         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
3931         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
3932         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
3933         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
3934         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
3935         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
3936         * doc/functions/fprintf.texi: Update.
3937         * doc/functions/printf.texi: Update.
3938         * doc/functions/snprintf.texi: Update.
3939         * doc/functions/sprintf.texi: Update.
3940         * doc/functions/vfprintf.texi: Update.
3941         * doc/functions/vprintf.texi: Update.
3942         * doc/functions/vsnprintf.texi: Update.
3943         * doc/functions/vsprintf.texi: Update.
3944
3945 2007-11-04  Bruno Haible  <bruno@clisp.org>
3946
3947         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
3948
3949 2007-11-04  Bruno Haible  <bruno@clisp.org>
3950
3951         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
3952         Reported by Sylvain Beucler <beuc@gnu.org>.
3953
3954 2007-11-03  Bruno Haible  <bruno@clisp.org>
3955
3956         * tests/test-fprintf-posix2.sh: New file.
3957         * tests/test-fprintf-posix2.c: New file.
3958         * modules/fprintf-posix-tests (Files): Add them.
3959         (TESTS): Add test-fprintf-posix2.sh.
3960         (configure.ac): Check for getrlimit and setrlimit.
3961         (check_PROGRAMS): Add test-fprintf-posix2.
3962
3963         * tests/test-printf-posix2.sh: New file.
3964         * tests/test-printf-posix2.c: New file.
3965         * modules/printf-posix-tests (Files): Add them.
3966         (TESTS): Add test-printf-posix2.sh.
3967         (configure.ac): Check for getrlimit and setrlimit.
3968         (check_PROGRAMS): Add test-printf-posix2.
3969
3970         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
3971         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
3972         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
3973         (decode_double): New function, copied from decode_long_double.
3974         (scale10_round_decimal_decoded): New function, extracted from
3975         scale10_round_decimal_long_double.
3976         (scale10_round_decimal_long_double): Use it.
3977         (scale10_round_decimal_double): New function.
3978         (floorlog10): New function.
3979         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
3980         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
3981         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
3982         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
3983         gl_PRINTF_ENOMEM and test its result. Invoke
3984         gl_PREREQ_VASNPRINTF_ENOMEM.
3985         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
3986         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
3987         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
3988         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
3989         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
3990         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
3991         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
3992         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
3993         * modules/snprintf-posix (Depends-on): Likewise.
3994         * modules/sprintf-posix (Depends-on): Likewise.
3995         * modules/vasnprintf-posix (Depends-on): Likewise.
3996         * modules/vasprintf-posix (Depends-on): Likewise.
3997         * modules/vfprintf-posix (Depends-on): Likewise.
3998         * modules/vsnprintf-posix (Depends-on): Likewise.
3999         * modules/vsprintf-posix (Depends-on): Likewise.
4000         * doc/functions/fprintf.texi: Update.
4001         * doc/functions/printf.texi: Update.
4002         * doc/functions/snprintf.texi: Update.
4003         * doc/functions/sprintf.texi: Update.
4004         * doc/functions/vfprintf.texi: Update.
4005         * doc/functions/vprintf.texi: Update.
4006         * doc/functions/vsnprintf.texi: Update.
4007         * doc/functions/vsprintf.texi: Update.
4008
4009 2007-11-03  Bruno Haible  <bruno@clisp.org>
4010
4011         * modules/frexp-nolibm-tests: New file.
4012
4013         * modules/frexp-nolibm: New file.
4014         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
4015
4016 2007-11-03  Bruno Haible  <bruno@clisp.org>
4017
4018         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
4019         value is C99 compliant.
4020         Needed for OSF/1 5.1.
4021
4022 2007-11-03  Bruno Haible  <bruno@clisp.org>
4023
4024         Fix out-of-memory handling of vasnprintf.
4025         * lib/printf-parse.c: Include <errno.h>.
4026         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
4027         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
4028         is already set.
4029
4030 2007-11-02  Eric Blake  <ebb9@byu.net>
4031
4032         Fix tests on cygwin.
4033         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
4034
4035 2007-11-01  Bruno Haible  <bruno@clisp.org>
4036
4037         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
4038         warning.
4039         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
4040         needed for POSIX compatibility.
4041
4042 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
4043
4044         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
4045         for compatibility with GNU.
4046
4047 2007-11-01  Bruno Haible  <bruno@clisp.org>
4048
4049         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
4050         (putenv): Renamed from rpl_putenv. Change argument type from
4051         'const char *' to 'char *'.
4052         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
4053         of defining putenv in config.h, just set REPLACE_PUTENV.
4054         * modules/putenv (Depends-on): Add stdlib.
4055         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
4056         (Include): Use <stdlib.h>.
4057         * lib/stdlib.in.h (putenv): New declaration.
4058         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
4059         REPLACE_PUTENV.
4060         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
4061         REPLACE_PUTENV.
4062         Needed for MacOS X 10.5.0.
4063         Reported by Peter O'Gorman <peter@pogma.com>.
4064
4065 2007-11-01  Jim Meyering  <meyering@redhat.com>
4066
4067         Treat an empty date string exactly like "0".
4068         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
4069         if the remaining date string (to be parsed) is empty, use "0".
4070         Reported by Mischa Molhoek and discussed in this thread:
4071         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
4072
4073 2007-10-31  Bruno Haible  <bruno@clisp.org>
4074
4075         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
4076         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
4077         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
4078         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
4079         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
4080         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
4081
4082 2007-10-31  Bruno Haible  <bruno@clisp.org>
4083
4084         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
4085         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
4086         (AC_TYPE_LONG_LONG_INT): Use it.
4087         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
4088         it as well.
4089         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
4090         to m4/longlong.m4.
4091         * modules/stdint (Files): Remove m4/ulonglong.m4.
4092         * modules/strtoull (Files): Use m4/longlong.m4 instead of
4093         m4/ulonglong.m4.
4094         * modules/strtoumax (Files): Likewise.
4095
4096 2007-10-30  Bruno Haible  <bruno@clisp.org>
4097
4098         * modules/xvasprintf-posix: New file.
4099         Suggested by Eric Blake.
4100
4101 2007-10-30  Bruno Haible  <bruno@clisp.org>
4102
4103         * modules/xprintf-posix-tests: New file.
4104         * tests/test-xprintf-posix.sh: New file.
4105         * tests/test-xprintf-posix.c: New file.
4106         * tests/test-xfprintf-posix.c: New file.
4107
4108         * modules/xprintf-posix: New file.
4109
4110 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4111
4112         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
4113         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
4114         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
4115
4116 2007-10-29  Bruno Haible  <bruno@clisp.org>
4117
4118         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
4119         contain the special marker '_cv_'.
4120         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
4121         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
4122         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
4123         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
4124         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
4125         Reported by Ralf Wildenhues.
4126
4127 2007-10-29  Bruno Haible  <bruno@clisp.org>
4128
4129         * gnulib-tool (func_import): When --lgpl is not specified, set
4130         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
4131         GPLv3.
4132         Reported by Simon Josefsson.
4133
4134 2007-10-28  Bruno Haible  <bruno@clisp.org>
4135
4136         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
4137         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
4138         HAVE_DECL_ISFINITE.
4139         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
4140         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
4141         HAVE_DECL_ISFINITE.
4142
4143 2007-10-28  Bruno Haible  <bruno@clisp.org>
4144
4145         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
4146         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
4147
4148 2007-10-28  Bruno Haible  <bruno@clisp.org>
4149
4150         Fix link errors with Sun C 5.0 on Solaris 10.
4151         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
4152         function is declared but not present in the compiler's libm.
4153         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
4154         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
4155         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
4156         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
4157         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
4158         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
4159         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
4160         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
4161         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
4162         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
4163         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
4164         HAVE_DECL_FLOORL.
4165
4166 2007-10-28  Bruno Haible  <bruno@clisp.org>
4167
4168         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
4169         gl_FUNC_FLOORL. Cache the result.
4170         (gl_FUNC_FLOORL): Use it.
4171         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
4172         gl_FUNC_CEILL. Cache the result.
4173         (gl_FUNC_CEILL): Use it.
4174
4175         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
4176         gl_FUNC_FLOOR. Cache the result.
4177         (gl_FUNC_FLOOR): Use it.
4178         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
4179         gl_FUNC_CEIL. Cache the result.
4180         (gl_FUNC_CEIL): Use it.
4181
4182         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
4183         gl_FUNC_FLOORF. Cache the result.
4184         (gl_FUNC_FLOORF): Use it.
4185         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
4186         gl_FUNC_CEILF. Cache the result.
4187         (gl_FUNC_CEILF): Use it.
4188
4189 2007-10-28  Bruno Haible  <bruno@clisp.org>
4190
4191         * gnulib-tool: Allow specifying the LGPL version number through
4192         --lgpl=2 or --lgpl=3.
4193         (func_usage): Document --lgpl with argument.
4194         Handle --lgpl=... arguments.
4195         (func_import): Recognize also gl_LGPL calls with an argument. When
4196         --lgpl=2 is used and the module's license is just LGPL, report an
4197         error. Set sed_transform_lib_file according to the lgpl variable. In
4198         the generated files, use --lgpl or gl_LGPL invocations with argument,
4199         if necessary.
4200         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
4201         an LGPv2+ license.
4202         * doc/gnulib-tool.texi (Modified imports): Update explanation of
4203         gl_LGPL macro.
4204
4205 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4206             Bruno Haible  <bruno@clisp.org>
4207
4208         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
4209         (u16_uctomb_aux): Likewise.
4210         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
4211         !HAVE_INLINE.
4212         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
4213
4214 2007-10-28  Bruno Haible  <bruno@clisp.org>
4215
4216         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
4217         Invoke AM_GETTEXT_OPTION if it exists.
4218         * modules/vasprintf: Likewise.
4219         * modules/verror: Likewise.
4220         * modules/xprintf: Likewise.
4221         * modules/xvasprintf: Likewise.
4222
4223 2007-10-27  Ben Pfaff  <blp@gnu.org>
4224
4225         * lib/math.in.h: Define isfinite macro and prototypes for
4226         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
4227         implementations.
4228         * m4/math_h.m4: New substitutions for isfinite module.
4229         * lib/isfinite.c: New file.
4230         * m4/isfinite.m4: New file.
4231         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
4232         * modules/isfinite: New file.
4233         * modules/isfinite-tests: New file.
4234         * tests/tests-isfinite.c: New file.
4235         * doc/functions/isfinite.texi: Mention isfinite module.
4236         * MODULES.html.sh: Mention new module.
4237
4238 2007-10-27  Ben Pfaff  <blp@gnu.org>
4239
4240         Ralf Wildenhues reported that Tru64 4.0D declares the round
4241         functions but does not have definitions.
4242         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
4243         cannot be found in any library, set the output variable to
4244         "missing" instead of "".
4245         * m4/round.m4: Also use our substitute if we cannot find round in
4246         any library, even if it is declared.
4247         * m4/roundf.m4: Likewise for roundf.
4248         * m4/roundl.m4: Likewise for roundl.
4249         * lib/math.in.h: Undefine roundf, round, roundl before defining
4250         their replacements, to allow for hypothetical systems where these
4251         may be defined as macros but not available in libraries.
4252
4253 2007-10-27  Bruno Haible  <bruno@clisp.org>
4254
4255         * doc/gnulib.texi: Invoke @firstparagraphindent.
4256         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
4257         changes in gnulib.
4258         (Source changes): New section.
4259
4260 2007-10-26  Bruno Haible  <bruno@clisp.org>
4261
4262         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
4263         borrowed from autoconf.
4264
4265 2007-10-26  Bruno Haible  <bruno@clisp.org>
4266
4267         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
4268         strerror returned the empty string. Needed on HP-UX 11.00.
4269
4270 2007-10-24  Micah Cowan  <micah@cowan.name>
4271
4272         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
4273         * build-aux/bootstrap: Remove support for now-unnecessary option,
4274         --cvs-user, and envvars CVS_USER, CVS_RSH.
4275
4276 2007-10-24  Jim Meyering  <meyering@redhat.com>
4277
4278         Avoid diagnostics from sha1sum when there is no cached checksum.
4279         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
4280         if the po.s1 file hasn't been created yet.
4281
4282         * build-aux/bootstrap: Sync from coreutils:
4283         2007-10-24  Jim Meyering  <meyering@redhat.com>
4284         Get gnulib from the git repository, not from an obsolete cvs one.
4285         * build-aux/bootstrap: Suggestion from Micah Cowan.
4286         2007-10-04  Jim Meyering  <jim@meyering.net>
4287         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
4288         (update_po_files): Work also when there are no .po files in po/.
4289
4290 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
4291
4292         * README: Append ".git" to git and cg examples.
4293         Problem reported by Benoit Sigoure.
4294
4295 2007-10-23  Micah Cowan  <micah@cowan.name>
4296
4297         * users.txt: Add wget.
4298
4299 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4300
4301         Fix linking of some unistdio tests on FreeBSD.
4302         * modules/unistdio/u16-vsnprintf-tests
4303         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
4304         * modules/unistdio/u16-vsprintf-tests
4305         (test_u16_vsnprintf1_LDADD): Likewise.
4306         * modules/unistdio/u32-vsnprintf-tests
4307         (test_u32_vsnprintf1_LDADD): Likewise.
4308         * modules/unistdio/u32-vsprintf-tests
4309         (test_u32_vsprintf1_LDADD): Likewise.
4310         * modules/unistdio/u8-vsnprintf-tests
4311         (test_u8_vsnprintf1_LDADD): Likewise.
4312         * modules/unistdio/u8-vsprintf-tests
4313         (test_u8_vsprintf1_LDADD): Likewise.
4314         * modules/unistdio/ulc-vsnprintf-tests
4315         (test_ulc_vsnprintf1_LDADD): Likewise.
4316         * modules/unistdio/ulc-vsprintf-tests
4317         (test_ulc_vsprintf1_LDADD): Likewise.
4318
4319         Fix linking of some uniconv tests on FreeBSD.
4320         * modules/uniconv/u16-conv-from-enc-tests
4321         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
4322         * modules/uniconv/u16-conv-to-enc-tests
4323         (test_u16_conv_to_enc_LDADD): Likewise.
4324         * modules/uniconv/u16-strconv-from-enc-tests
4325         (test_u16_strconv_from_enc_LDADD): Likewise.
4326         * modules/uniconv/u16-strconv-to-enc-tests
4327         (test_u16_strconv_to_enc_LDADD): Likewise.
4328         * modules/uniconv/u32-conv-from-enc-tests
4329         (test_u32_conv_from_enc_LDADD): Likewise.
4330         * modules/uniconv/u32-conv-to-enc-tests
4331         (test_u32_conv_to_enc_LDADD): Likewise.
4332         * modules/uniconv/u32-strconv-from-enc-tests
4333         (test_u32_strconv_from_enc_LDADD): Likewise.
4334         * modules/uniconv/u32-strconv-to-enc-tests
4335         (test_u32_strconv_to_enc_LDADD): Likewise.
4336         * modules/uniconv/u8-conv-from-enc-tests
4337         (test_u8_conv_from_enc_LDADD): Likewise.
4338         * modules/uniconv/u8-conv-to-enc-tests
4339         (test_u8_conv_to_enc_LDADD): Likewise.
4340         * modules/uniconv/u8-strconv-from-enc-tests
4341         (test_u8_strconv_from_enc_LDADD): Likewise.
4342         * modules/uniconv/u8-strconv-to-enc-tests
4343         (test_u8_strconv_to_enc_LDADD): Likewise.
4344
4345 2007-10-22  Bruno Haible  <bruno@clisp.org>
4346
4347         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
4348         size.
4349
4350 2007-10-22  Eric Blake  <ebb9@byu.net>
4351
4352         Tweak x*printf documentation.
4353         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
4354         variable name and comments.
4355         Suggested by Bruno Haible.
4356
4357 2007-10-22  Bruno Haible  <bruno@clisp.org>
4358
4359         * lib/acl.c (copy_acl): Fix file name in comment.
4360
4361 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
4362
4363         Fix Tru64 problem with stdbool.h.
4364         * lib/stdbool.in.h (false, true):
4365         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
4366         Don't declare as an enum in this situation; it runs afoul of Tru64.
4367         Problem reported by Steven M. Schweda in
4368         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
4369
4370 2007-10-22  Eric Blake  <ebb9@byu.net>
4371
4372         Also wrap vf?printf.
4373         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
4374         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
4375         (xvprintf, xvfprintf): New functions.
4376
4377 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4378
4379         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
4380         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
4381
4382         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
4383         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
4384
4385 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
4386
4387         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
4388         by Bruno Haible.
4389
4390 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4391
4392         * lib/getloadavg.c
4393         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
4394         Undef `sys' after including sys/table.h, for Tru64 4.0D.
4395
4396         * tests/test-i-ring.c: Work for C89.
4397
4398 2007-10-22  Bruno Haible  <bruno@clisp.org>
4399
4400         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
4401         -1u, in preprocessor expression, so that we don't test for the bug
4402         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
4403         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
4404
4405 2007-10-22  Eric Blake  <ebb9@byu.net>
4406
4407         * tests/test-yesno.sh: Silence stderr during test.
4408
4409 2007-10-22  Simon Josefsson  <simon@josefsson.org>
4410
4411         * modules/crypto/gc-camellia: New file.
4412
4413         * m4/gc-camellia.m4: New file.
4414
4415         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
4416
4417         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
4418
4419 2007-10-22  Simon Josefsson  <simon@josefsson.org>
4420
4421         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
4422         --help to stdout.  Reported by sms@antinode.org (Steven
4423         M. Schweda).
4424
4425 2007-10-22  Simon Josefsson  <simon@josefsson.org>
4426
4427         * users.txt: Fix link to libksba.
4428
4429 2007-10-21  Ben Pfaff  <blp@gnu.org>
4430
4431         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
4432         round.c roundf implementation that depends on floorf and ceilf to
4433         be tested unconditionally.
4434
4435 2007-10-21  Ben Pfaff  <blp@gnu.org>
4436
4437         * m4/check-libm-func.m4: Removed.
4438         * m4/check-math-lib.m4: New file.
4439         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
4440         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
4441         definition and lack of AC_LIBOBJ([roundf]).
4442         * m4/roundl.m4: Ditto, and similarly for roundl.
4443         * modules/round: Reference new m4 file.
4444         * modules/roundf: Ditto.
4445         * modules/roundl: Ditto.
4446         * tests/test-round2.c (main): Use ROUND instead of round.
4447         Bug report from Bruno Haible.
4448
4449 2007-10-21  Bruno Haible  <bruno@clisp.org>
4450
4451         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
4452         context.
4453
4454 2007-10-21  Bruno Haible  <bruno@clisp.org>
4455
4456         * tests/test-wcwidth.c (main): Allow negative result for some control
4457         characters.
4458
4459         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
4460         Needed on OSF/1 5.1.
4461
4462 2007-10-21  Bruno Haible  <bruno@clisp.org>
4463
4464         * tests/test-floorf1.c: Include isnanf.h.
4465         (main): Use isnanf() instead of isnan().
4466         * tests/test-ceilf1.c: Include isnanf.h.
4467         (main): Use isnanf() instead of isnan().
4468         * tests/test-truncf1.c: Include isnanf.h.
4469         (main): Use isnanf() instead of isnan().
4470         * tests/test-roundf1.c: Include isnanf.h.
4471         (main): Use isnanf() instead of isnan().
4472
4473 2007-10-21  Eric Blake  <ebb9@byu.net>
4474
4475         * users.txt: Update URL for m4.
4476
4477 2007-10-21  Bruno Haible  <bruno@clisp.org>
4478
4479         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
4480
4481 2007-10-21  Bruno Haible  <bruno@clisp.org>
4482
4483         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
4484         Git's management files if the CVS files are not present.
4485
4486 2007-10-20  Bruno Haible  <bruno@clisp.org>
4487
4488         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
4489         gcc-3.4.x.
4490
4491 2007-10-20  Ben Pfaff  <blp@gnu.org>
4492
4493         * lib/math.in.h: Declare round, roundf, roundl if we are providing
4494         implementations.
4495         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
4496         * lib/round.c: New file.
4497         * lib/roundf.c: New file.
4498         * lib/roundl.c: New file.
4499         * m4/round.m4: New file.
4500         * m4/roundf.m4: New file.
4501         * m4/roundl.m4: New file.
4502         * m4/check-libm-func-m4: New file.
4503         * modules/math: Replace round, roundf, roundl related @VARS@ in
4504         math.in.h.
4505         * modules/round: New file.
4506         * modules/round-tests: New file.
4507         * modules/roundf: New file.
4508         * modules/roundf-tests: New file.
4509         * modules/roundl: New file.
4510         * modules/roundl-tests: New file.
4511         * tests/test-round1.c: New file.
4512         * tests/test-round2.c: New file.
4513         * tests/test-roundf1.c: New file.
4514         * tests/test-roundf2.c: New file.
4515         * tests/test-roundl.c: New file.
4516         * doc/functions/round.texi: Mention round module.
4517         * doc/functions/roundf.texi: Mention roundf module.
4518         * doc/functions/roundl.texi: Mention roundl module.
4519         * MODULES.html.sh: Mention new modules.
4520         Thanks to Bruno Haible for suggestions.
4521
4522 2007-10-20  Jim Meyering  <meyering@redhat.com>
4523
4524         * lib/xprintf.c: Include <config.h> unconditionally.
4525
4526         Change xprintf's license to GPL.
4527         * modules/xprintf (License): s/LGPL/GPL/, since this module
4528         depends on modules (exit and exitfail) which are GPL.
4529         Suggestion from Bruno Haible.
4530
4531         xprintf fixes.
4532         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
4533         Use a clearer diagnostic.
4534         Patch from Bruno Haible.
4535
4536 2007-10-20  Bruno Haible  <bruno@clisp.org>
4537
4538         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
4539         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
4540         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4541
4542 2007-10-20  Bruno Haible  <bruno@clisp.org>
4543
4544         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
4545         precision in the comparison result > x - 1 or similar.
4546         * tests/test-ceilf2.c (correct_result_p): Likewise.
4547         * tests/test-truncf2.c (correct_result_p): Likewise.
4548         * tests/test-trunc2.c (correct_result_p): Likewise.
4549         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4550
4551 2007-10-20  Bruno Haible  <bruno@clisp.org>
4552
4553         * modules/ceil: New file.
4554         * m4/ceil.m4: New file.
4555         * doc/functions/ceil.texi: Mention the 'ceil' module.
4556
4557 2007-10-20  Bruno Haible  <bruno@clisp.org>
4558
4559         * modules/floor: New file.
4560         * m4/floor.m4: New file.
4561         * doc/functions/floor.texi: Mention the 'floor' module.
4562
4563 2007-10-20  Bruno Haible  <bruno@clisp.org>
4564
4565         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
4566         of %a.
4567         * modules/floorf-tests (Depends-on): Likewise.
4568         * modules/truncf-tests (Depends-on): Likewise.
4569         * modules/trunc-tests (Depends-on): Likewise.
4570         Reported by Ben Pfaff.
4571
4572 2007-10-19  Jim Meyering  <meyering@redhat.com>
4573
4574         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
4575         Don't bother testing specific errno values.  Just test ferror.
4576
4577         New module: xprintf
4578         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
4579
4580 2007-10-19  Bruno Haible  <bruno@clisp.org>
4581
4582         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
4583         syntax.
4584         * modules/javaexec (Makefile.am): Likewise.
4585         * modules/relocatable-prog (Makefile.am): Likewise.
4586         Suggested by Jim Meyering.
4587
4588 2007-10-18  Bruno Haible  <bruno@clisp.org>
4589
4590         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
4591         Reported by Jim Meyering.
4592
4593 2007-10-18  Eric Blake  <ebb9@byu.net>
4594
4595         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
4596
4597 2007-10-18  Bruno Haible  <bruno@clisp.org>
4598
4599         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
4600         the format string into writable memory. Needed in Fortify conditions.
4601
4602 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
4603             Bruno Haible  <bruno@clisp.org>
4604
4605         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
4606         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
4607         * modules/trim (Depends-on): Add mbchar.
4608         (configure.ac): Add gl_FUNC_MBRTOWC.
4609         (Makefile.am): Augment lib_SOURCES.
4610
4611 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
4612
4613         Modify glob.c to use fstatat and dirfd, to simplify it.
4614         Suggested by Eric Blake.
4615         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
4616         Don't include <stdbool.h>; not used.
4617         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
4618         (link_exists_p): Simplify implementation, since we can now assume
4619         dirfd and fstatat.
4620         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
4621
4622 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4623
4624         * gnulib-tool (func_get_dependencies): Fix sed script to
4625         match only tests.
4626
4627 2007-10-17  Bruno Haible  <bruno@clisp.org>
4628
4629         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
4630         allow locale names without encoding suffix.
4631         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
4632         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
4633
4634 2007-10-16  Bruno Haible  <bruno@clisp.org>
4635
4636         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
4637         * lib/getgroups.c (getgroups): Likewise.
4638         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
4639
4640 2007-10-16  Bruno Haible  <bruno@clisp.org>
4641
4642         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
4643         * modules/malloc-posix (License): Likewise.
4644         * modules/realloc-posix (License): Likewise.
4645         * modules/calloc-posix (License): Likewise.
4646         * modules/intprops (License): Change from GPL to LGPL, with
4647         Paul Eggert's approval.
4648
4649 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
4650
4651         Merge glibc changes into lib/glob.c.
4652
4653         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
4654         2007-10-15 04:59:03 UTC.  Here are the changes:
4655
4656         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
4657
4658         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
4659
4660         * lib/glob.c: Add some branch prediction throughout.
4661
4662         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
4663
4664         [BZ #5103]
4665         * lib/glob.c (glob): Recognize patterns starting \/.
4666
4667         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
4668
4669         [BZ #3996]
4670         * lib/glob.c (attribute_hidden): Define if not defined.
4671         (glob): Unescape dirname, filename or username when needed and not
4672         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
4673         is NULL.  Handle unescaped [ in pattern without closing ].
4674         Don't pass GLOB_CHECK down to recursive glob for directories.
4675         (__glob_pattern_type): New function.
4676         (__glob_pattern_p): Implement using __glob_pattern_type.
4677         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
4678         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
4679         Remove unreachable code.
4680
4681         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
4682
4683         * lib/glob.c (glob_in_dir): Add some comments and asserts to
4684         explain why there are no leaks.
4685
4686         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
4687
4688         [BZ #3253]
4689         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
4690         time, rather allocate increasingly bigger arrays of pointers, if
4691         possible with alloca, if too large with malloc.
4692
4693 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
4694
4695         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
4696         Problem reported by H.Merijn Brand in
4697         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
4698         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
4699         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
4700
4701 2007-10-15  Bruno Haible  <bruno@clisp.org>
4702
4703         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
4704         with explicit rpl_ prefix.
4705         * lib/fopen.c (fopen): Likewise.
4706         * lib/freopen.c (freopen): Likewise.
4707         * lib/iconv.c (iconv): Likewise.
4708         * lib/iconv_close.c (iconv_close): Likewise.
4709
4710 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4711
4712         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
4713
4714 2007-10-15  Bruno Haible  <bruno@clisp.org>
4715
4716         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
4717         <stddef.h> instead of <stdlib.h> since we only need NULL.
4718         Reported by Ben Pfaff <blp@cs.stanford.edu>.
4719
4720 2007-10-15  Bruno Haible  <bruno@clisp.org>
4721
4722         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
4723         Replace paragraph talking about LIBOBJS.
4724         Reported by Colin Watson <cjwatson@debian.org>.
4725
4726 2007-10-15  Bruno Haible  <bruno@clisp.org>
4727
4728         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
4729         <stdlib.h> before using NULL.
4730
4731 2007-10-15  Simon Josefsson  <simon@josefsson.org>
4732
4733         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
4734         Reported by Albert Chin <china@thewrittenword.com>.
4735
4736 2007-10-14  Bruno Haible  <bruno@clisp.org>
4737
4738         * modules/iconv_open-utf-tests: New file.
4739         * tests/test-iconv-utf.c: New file.
4740
4741         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
4742         * modules/iconv_open-utf: New file.
4743         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
4744         (iconv, iconv_close): New declarations.
4745         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
4746         be defined.
4747         (iconv_open): Add special handling of conversion between UTF-8 and
4748         UTF-{16,32}{BE,LE}.
4749         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
4750         * lib/iconv_close.c: New file.
4751         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
4752         gl_FUNC_ICONV_OPEN.
4753         (gl_FUNC_ICONV_OPEN): Use it.
4754         (gl_FUNC_ICONV_OPEN_UTF): New macro.
4755         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
4756         and REPLACE_ICONV_UTF.
4757         * modules/iconv_open (Depends-on): Add c-strcase.
4758         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
4759         ICONV_CONST.
4760         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
4761
4762 2007-10-13  Albert Chin  <china@thewrittenword.com>
4763             Bruno Haible  <bruno@clisp.org>
4764
4765         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
4766         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
4767
4768 2007-10-13  Bruno Haible  <bruno@clisp.org>
4769
4770         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
4771         defined, use the ISO C99 inline semantics.
4772         * lib/argp.h (ARGP_EI): Likewise.
4773
4774 2007-10-13  Bruno Haible  <bruno@clisp.org>
4775
4776         Handle 'inline' change in gcc 4.3.0.
4777         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
4778         argp_fmtstream_write, argp_fmtstream_set_lmargin,
4779         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
4780         argp_fmtstream_point): Disable 'extern' declaration if the function
4781         definition is going to be provided inline.
4782         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
4783         semantics, not the ISO C99 inline semantics.
4784         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
4785         'extern' declaration if the function definition is going to be provided
4786         inline.
4787         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
4788         the GNU C inline semantics, not the ISO C99 inline semantics. With
4789         GCC 4.2, avoid a warning.
4790
4791 2007-10-13  Bruno Haible  <bruno@clisp.org>
4792
4793         * lib/freading.h (freading): Enable the use of __freading for
4794         glibc >= 2.7.
4795         * lib/freading.c (freading): Likewise.
4796
4797 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
4798
4799         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
4800         "warning: C99 inline functions are not supported; using GNU89".
4801
4802 2007-10-12  Bruno Haible  <bruno@clisp.org>
4803
4804         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
4805         of 2.
4806         * tests/test-ceilf2.c: New file.
4807         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
4808
4809         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
4810         * modules/ceilf-tests: Update.
4811
4812 2007-10-12  Bruno Haible  <bruno@clisp.org>
4813
4814         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
4815         of 2.
4816         * tests/test-floorf2.c: New file.
4817         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
4818
4819         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
4820         * modules/floorf-tests: Update.
4821
4822 2007-10-12  Bruno Haible  <bruno@clisp.org>
4823
4824         * tests/test-trunc2.c: New file.
4825         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
4826
4827         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
4828         * modules/trunc-tests: Update.
4829
4830 2007-10-12  Bruno Haible  <bruno@clisp.org>
4831
4832         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
4833         of 2.
4834         * tests/test-truncf2.c: New file.
4835         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
4836
4837         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
4838         * modules/truncf-tests: Update.
4839
4840 2007-10-11  Eric Blake  <ebb9@byu.net>
4841
4842         Don't claim strerror is broken on Interix.
4843         * doc/functions/strerror.texi (strerror): Known broken systems are
4844         now Solaris 8, and not Interix.
4845         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
4846         Interix on cross-compile.
4847         Reported by Martin Koeppe in
4848         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
4849
4850 2007-10-11  Bruno Haible  <bruno@clisp.org>
4851
4852         * modules/i-ring-tests: New file.
4853         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
4854         instead of assert.
4855
4856 2007-10-11  Bruno Haible  <bruno@clisp.org>
4857
4858         * modules/filenamecat-tests: New file.
4859         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
4860         * lib/filenamecat.c: Remove test code.
4861
4862 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
4863
4864         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
4865
4866         * lib/strerror.c: Include <string.h> always, to test interface,
4867         and to remove the need for the dummy.
4868         Include intprops.h to compute width instead of doing it ourselves
4869         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
4870         (strerror): Define it to return NULL if there's no system strerror.
4871         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
4872         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
4873         ancient pre-strerror Unix systems well any more.  Saying "unknown
4874         system error" is enough.
4875         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
4876         simpler strerror.c implementation.
4877         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
4878         Simplify the tests to reflect the simpler strerror implementation.
4879         * modules/strerror (Depends-on): Add intprops.
4880
4881 2007-10-09  Eric Blake  <ebb9@byu.net>
4882
4883         Silence test-fpending.
4884         * modules/fpending-tests (Files): Add wrapper script.
4885         * tests/test-fpending.sh: New file.
4886
4887 2007-10-09  Bruno Haible  <bruno@clisp.org>
4888
4889         * MODULES.html.sh (func_module): Don't create a hyperlink for
4890         function names like 'printf_frexp'.
4891         (Misc): Add crc, memxor.
4892         (Characteristics of floating types): New section.
4893         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
4894         isnanf-nolibm, signbit, trunc, truncf, truncl.
4895         (Enhancements for ISO C 99 functions): New subsection Input/output.
4896         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
4897         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
4898         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
4899         (Compatibility checks for POSIX:2001 functions): Add clock-time.
4900         (Enhancements for POSIX:2001 functions): Add chdir-long.
4901         (File system functions): Add areadlink, chdir-safer, read-file.
4902         Remove cycle-check.
4903         (File system as inode set): New section.
4904         (Date and time): Add gethrxtime.
4905         (Multithreading): Add openmp.
4906         (Internationalization functions): Add localename.
4907         (Unicode string functions): Add unistr/u*-mbsnlen.
4908         (Support for maintaining and releasing projects): Add git-version-gen.
4909         (Lone files): Remove directories.
4910
4911 2007-10-08  Ben Pfaff  <blp@gnu.org>
4912
4913         * lib/xmalloca.h: Fix typo in comment.
4914
4915 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
4916
4917         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
4918         when avoiding problems with integer overflow.  Use a portable test
4919         instead.
4920
4921 2007-10-08  Simon Josefsson  <simon@josefsson.org>
4922
4923         * modules/dummy (License): Change to LGPLv2+.
4924         * modules/float (License): Likewise
4925         * modules/realloc (License): Likewise
4926         * modules/stdlib (License): Likewise
4927
4928 2007-10-07  Bruno Haible  <bruno@clisp.org>
4929
4930         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
4931         * floor.c (TWO_MANT_DIG): Likewise.
4932         * ceil.c (TWO_MANT_DIG): Likewise.
4933         Reported by Ben Pfaff.
4934
4935 2007-10-07  Bruno Haible  <bruno@clisp.org>
4936
4937         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
4938         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
4939         * lib/frexp.c (FUNC): Likewise.
4940         * lib/printf-frexp.h (printf_frexp): Likewise.
4941         * lib/printf-frexpl.h (printf_frexpl): Likewise.
4942         * lib/printf-frexp.c (FUNC): Likewise.
4943         Suggested by Jim Meyering.
4944
4945 2007-10-07  Jim Meyering  <meyering@redhat.com>
4946
4947         Make xnanosleep's integer overflow test more robust.
4948         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
4949         so that gcc-4.3.0 doesn't optimize away this test for overflow.
4950
4951 2007-10-07  Bruno Haible  <bruno@clisp.org>
4952
4953         * NEWS: Mention the license change.
4954
4955         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
4956         abbreviations in the modules files.
4957
4958         Change copyright notice from GPLv2+ to GPLv3+.
4959         * README: Change copyright notice.
4960         * MODULES.html.sh: Likewise.
4961         * build-aux/bootstrap.conf: Likewise.
4962         * build-aux/config.libpath: Likewise.
4963         * build-aux/csharpcomp.sh.in: Likewise.
4964         * build-aux/csharpexec.sh.in: Likewise.
4965         * build-aux/install-reloc: Likewise.
4966         * build-aux/javacomp.sh.in: Likewise.
4967         * build-aux/javaexec.sh.in: Likewise.
4968         * build-aux/ldd.sh.in: Likewise.
4969         * build-aux/reloc-ldflags: Likewise.
4970         * build-aux/relocatable.sh.in: Likewise.
4971         * build-aux/x-to-1.in: Likewise.
4972         * check-module: Likewise.
4973         * config/srclistvars.sh: Likewise.
4974         * gnulib-tool: Likewise.
4975         * lib/acl-internal.h: Likewise.
4976         * lib/acl.c: Likewise.
4977         * lib/acl.h: Likewise.
4978         * lib/acl_entries.c: Likewise.
4979         * lib/areadlink-with-size.c: Likewise.
4980         * lib/areadlink.c: Likewise.
4981         * lib/areadlink.h: Likewise.
4982         * lib/argmatch.c: Likewise.
4983         * lib/argmatch.h: Likewise.
4984         * lib/argp-ba.c: Likewise.
4985         * lib/argp-eexst.c: Likewise.
4986         * lib/argp-fmtstream.c: Likewise.
4987         * lib/argp-fmtstream.h: Likewise.
4988         * lib/argp-fs-xinl.c: Likewise.
4989         * lib/argp-help.c: Likewise.
4990         * lib/argp-namefrob.h: Likewise.
4991         * lib/argp-parse.c: Likewise.
4992         * lib/argp-pin.c: Likewise.
4993         * lib/argp-pv.c: Likewise.
4994         * lib/argp-pvh.c: Likewise.
4995         * lib/argp-xinl.c: Likewise.
4996         * lib/argp.h: Likewise.
4997         * lib/at-func.c: Likewise.
4998         * lib/atanl.c: Likewise.
4999         * lib/backupfile.c: Likewise.
5000         * lib/backupfile.h: Likewise.
5001         * lib/basename.c: Likewise.
5002         * lib/binary-io.h: Likewise.
5003         * lib/byteswap.in.h: Likewise.
5004         * lib/c-stack.c: Likewise.
5005         * lib/c-stack.h: Likewise.
5006         * lib/c-strcasestr.c: Likewise.
5007         * lib/c-strcasestr.h: Likewise.
5008         * lib/c-strstr.c: Likewise.
5009         * lib/c-strstr.h: Likewise.
5010         * lib/c-strtod.c: Likewise.
5011         * lib/calloc.c: Likewise.
5012         * lib/canon-host.c: Likewise.
5013         * lib/canon-host.h: Likewise.
5014         * lib/canonicalize-lgpl.c: Likewise.
5015         * lib/canonicalize.c: Likewise.
5016         * lib/canonicalize.h: Likewise.
5017         * lib/ceil.c: Likewise.
5018         * lib/ceilf.c: Likewise.
5019         * lib/ceill.c: Likewise.
5020         * lib/chdir-long.c: Likewise.
5021         * lib/chdir-long.h: Likewise.
5022         * lib/chdir-safer.c: Likewise.
5023         * lib/chdir-safer.h: Likewise.
5024         * lib/chown.c: Likewise.
5025         * lib/classpath.c: Likewise.
5026         * lib/classpath.h: Likewise.
5027         * lib/clean-temp.c: Likewise.
5028         * lib/clean-temp.h: Likewise.
5029         * lib/cloexec.c: Likewise.
5030         * lib/close-stream.c: Likewise.
5031         * lib/closein.c: Likewise.
5032         * lib/closein.h: Likewise.
5033         * lib/closeout.c: Likewise.
5034         * lib/closeout.h: Likewise.
5035         * lib/concat-filename.c: Likewise.
5036         * lib/copy-file.c: Likewise.
5037         * lib/copy-file.h: Likewise.
5038         * lib/count-one-bits.h: Likewise.
5039         * lib/crc.c: Likewise.
5040         * lib/crc.h: Likewise.
5041         * lib/creat-safer.c: Likewise.
5042         * lib/csharpcomp.c: Likewise.
5043         * lib/csharpcomp.h: Likewise.
5044         * lib/csharpexec.c: Likewise.
5045         * lib/csharpexec.h: Likewise.
5046         * lib/cycle-check.c: Likewise.
5047         * lib/cycle-check.h: Likewise.
5048         * lib/diacrit.c: Likewise.
5049         * lib/diacrit.h: Likewise.
5050         * lib/diffseq.h: Likewise.
5051         * lib/dirchownmod.c: Likewise.
5052         * lib/dirent.in.h: Likewise.
5053         * lib/dirfd.c: Likewise.
5054         * lib/dirfd.h: Likewise.
5055         * lib/dirname.c: Likewise.
5056         * lib/dirname.h: Likewise.
5057         * lib/dummy.c: Likewise.
5058         * lib/dup-safer.c: Likewise.
5059         * lib/dup2.c: Likewise.
5060         * lib/eealloc.h: Likewise.
5061         * lib/error.c: Likewise.
5062         * lib/error.h: Likewise.
5063         * lib/euidaccess.c: Likewise.
5064         * lib/exclude.c: Likewise.
5065         * lib/exclude.h: Likewise.
5066         * lib/execute.c: Likewise.
5067         * lib/execute.h: Likewise.
5068         * lib/exitfail.c: Likewise.
5069         * lib/exitfail.h: Likewise.
5070         * lib/expl.c: Likewise.
5071         * lib/fatal-signal.c: Likewise.
5072         * lib/fatal-signal.h: Likewise.
5073         * lib/fbufmode.c: Likewise.
5074         * lib/fbufmode.h: Likewise.
5075         * lib/fchdir.c: Likewise.
5076         * lib/fchmodat.c: Likewise.
5077         * lib/fchownat.c: Likewise.
5078         * lib/fcntl--.h: Likewise.
5079         * lib/fcntl-safer.h: Likewise.
5080         * lib/fcntl.in.h: Likewise.
5081         * lib/fd-safer.c: Likewise.
5082         * lib/fflush.c: Likewise.
5083         * lib/file-has-acl.c: Likewise.
5084         * lib/file-set.c: Likewise.
5085         * lib/file-type.c: Likewise.
5086         * lib/file-type.h: Likewise.
5087         * lib/fileblocks.c: Likewise.
5088         * lib/filemode.c: Likewise.
5089         * lib/filemode.h: Likewise.
5090         * lib/filename.h: Likewise.
5091         * lib/filenamecat.c: Likewise.
5092         * lib/filenamecat.h: Likewise.
5093         * lib/findprog.c: Likewise.
5094         * lib/findprog.h: Likewise.
5095         * lib/float.in.h: Likewise.
5096         * lib/floor.c: Likewise.
5097         * lib/floorf.c: Likewise.
5098         * lib/floorl.c: Likewise.
5099         * lib/fopen-safer.c: Likewise.
5100         * lib/fopen.c: Likewise.
5101         * lib/fpending.c: Likewise.
5102         * lib/fpending.h: Likewise.
5103         * lib/fprintf.c: Likewise.
5104         * lib/fprintftime.h: Likewise.
5105         * lib/fpucw.h: Likewise.
5106         * lib/fpurge.c: Likewise.
5107         * lib/fpurge.h: Likewise.
5108         * lib/freadable.c: Likewise.
5109         * lib/freadable.h: Likewise.
5110         * lib/freadahead.c: Likewise.
5111         * lib/freadahead.h: Likewise.
5112         * lib/freading.c: Likewise.
5113         * lib/freading.h: Likewise.
5114         * lib/free.c: Likewise.
5115         * lib/freopen.c: Likewise.
5116         * lib/frexp.c: Likewise.
5117         * lib/frexpl.c: Likewise.
5118         * lib/fseek.c: Likewise.
5119         * lib/fseterr.c: Likewise.
5120         * lib/fseterr.h: Likewise.
5121         * lib/fstatat.c: Likewise.
5122         * lib/fstrcmp.c: Likewise.
5123         * lib/fstrcmp.h: Likewise.
5124         * lib/fsusage.c: Likewise.
5125         * lib/fsusage.h: Likewise.
5126         * lib/ftell.c: Likewise.
5127         * lib/ftello.c: Likewise.
5128         * lib/fts-cycle.c: Likewise.
5129         * lib/fts.c: Likewise.
5130         * lib/fts_.h: Likewise.
5131         * lib/full-read.c: Likewise.
5132         * lib/full-read.h: Likewise.
5133         * lib/full-write.c: Likewise.
5134         * lib/full-write.h: Likewise.
5135         * lib/fwritable.c: Likewise.
5136         * lib/fwritable.h: Likewise.
5137         * lib/fwriteerror.c: Likewise.
5138         * lib/fwriteerror.h: Likewise.
5139         * lib/fwriting.c: Likewise.
5140         * lib/fwriting.h: Likewise.
5141         * lib/gcd.c: Likewise.
5142         * lib/gcd.h: Likewise.
5143         * lib/getcwd.c: Likewise.
5144         * lib/getdate.h: Likewise.
5145         * lib/getdate.y: Likewise.
5146         * lib/getdomainname.c: Likewise.
5147         * lib/getdomainname.h: Likewise.
5148         * lib/getgroups.c: Likewise.
5149         * lib/gethostname.c: Likewise.
5150         * lib/gethrxtime.c: Likewise.
5151         * lib/gethrxtime.h: Likewise.
5152         * lib/getloadavg.c: Likewise.
5153         * lib/getndelim2.c: Likewise.
5154         * lib/getndelim2.h: Likewise.
5155         * lib/getnline.c: Likewise.
5156         * lib/getnline.h: Likewise.
5157         * lib/getopt.c: Likewise.
5158         * lib/getopt.in.h: Likewise.
5159         * lib/getopt1.c: Likewise.
5160         * lib/getopt_int.h: Likewise.
5161         * lib/getpagesize.h: Likewise.
5162         * lib/getsubopt.c: Likewise.
5163         * lib/gettime.c: Likewise.
5164         * lib/getugroups.c: Likewise.
5165         * lib/getugroups.h: Likewise.
5166         * lib/getusershell.c: Likewise.
5167         * lib/gl_anyavltree_list1.h: Likewise.
5168         * lib/gl_anyavltree_list2.h: Likewise.
5169         * lib/gl_anyhash_list1.h: Likewise.
5170         * lib/gl_anyhash_list2.h: Likewise.
5171         * lib/gl_anylinked_list1.h: Likewise.
5172         * lib/gl_anylinked_list2.h: Likewise.
5173         * lib/gl_anyrbtree_list1.h: Likewise.
5174         * lib/gl_anyrbtree_list2.h: Likewise.
5175         * lib/gl_anytree_list1.h: Likewise.
5176         * lib/gl_anytree_list2.h: Likewise.
5177         * lib/gl_anytree_oset.h: Likewise.
5178         * lib/gl_anytreehash_list1.h: Likewise.
5179         * lib/gl_anytreehash_list2.h: Likewise.
5180         * lib/gl_array_list.c: Likewise.
5181         * lib/gl_array_list.h: Likewise.
5182         * lib/gl_array_oset.c: Likewise.
5183         * lib/gl_array_oset.h: Likewise.
5184         * lib/gl_avltree_list.c: Likewise.
5185         * lib/gl_avltree_list.h: Likewise.
5186         * lib/gl_avltree_oset.c: Likewise.
5187         * lib/gl_avltree_oset.h: Likewise.
5188         * lib/gl_avltreehash_list.c: Likewise.
5189         * lib/gl_avltreehash_list.h: Likewise.
5190         * lib/gl_carray_list.c: Likewise.
5191         * lib/gl_carray_list.h: Likewise.
5192         * lib/gl_linked_list.c: Likewise.
5193         * lib/gl_linked_list.h: Likewise.
5194         * lib/gl_linkedhash_list.c: Likewise.
5195         * lib/gl_linkedhash_list.h: Likewise.
5196         * lib/gl_list.c: Likewise.
5197         * lib/gl_list.h: Likewise.
5198         * lib/gl_oset.c: Likewise.
5199         * lib/gl_oset.h: Likewise.
5200         * lib/gl_rbtree_list.c: Likewise.
5201         * lib/gl_rbtree_list.h: Likewise.
5202         * lib/gl_rbtree_oset.c: Likewise.
5203         * lib/gl_rbtree_oset.h: Likewise.
5204         * lib/gl_rbtreehash_list.c: Likewise.
5205         * lib/gl_rbtreehash_list.h: Likewise.
5206         * lib/gl_sublist.c: Likewise.
5207         * lib/gl_sublist.h: Likewise.
5208         * lib/group-member.c: Likewise.
5209         * lib/group-member.h: Likewise.
5210         * lib/hard-locale.c: Likewise.
5211         * lib/hard-locale.h: Likewise.
5212         * lib/hash-pjw.c: Likewise.
5213         * lib/hash-pjw.h: Likewise.
5214         * lib/hash-triple.c: Likewise.
5215         * lib/hash.c: Likewise.
5216         * lib/hash.h: Likewise.
5217         * lib/human.c: Likewise.
5218         * lib/human.h: Likewise.
5219         * lib/i-ring.c: Likewise.
5220         * lib/i-ring.h: Likewise.
5221         * lib/idcache.c: Likewise.
5222         * lib/imaxabs.c: Likewise.
5223         * lib/imaxdiv.c: Likewise.
5224         * lib/inet_pton.c: Likewise.
5225         * lib/inet_pton.h: Likewise.
5226         * lib/intprops.h: Likewise.
5227         * lib/inttostr.c: Likewise.
5228         * lib/inttostr.h: Likewise.
5229         * lib/inttypes.in.h: Likewise.
5230         * lib/isapipe.c: Likewise.
5231         * lib/isdir.c: Likewise.
5232         * lib/isnan.c: Likewise.
5233         * lib/isnan.h: Likewise.
5234         * lib/isnanf.c: Likewise.
5235         * lib/isnanf.h: Likewise.
5236         * lib/isnanl-nolibm.h: Likewise.
5237         * lib/isnanl.c: Likewise.
5238         * lib/isnanl.h: Likewise.
5239         * lib/javacomp.c: Likewise.
5240         * lib/javacomp.h: Likewise.
5241         * lib/javaexec.c: Likewise.
5242         * lib/javaexec.h: Likewise.
5243         * lib/javaversion.c: Likewise.
5244         * lib/javaversion.h: Likewise.
5245         * lib/javaversion.java: Likewise.
5246         * lib/lbrkprop.h: Likewise.
5247         * lib/lchmod.h: Likewise.
5248         * lib/lchown.c: Likewise.
5249         * lib/ldexpl.c: Likewise.
5250         * lib/linebreak.c: Likewise.
5251         * lib/linebreak.h: Likewise.
5252         * lib/linebuffer.c: Likewise.
5253         * lib/linebuffer.h: Likewise.
5254         * lib/locale.in.h: Likewise.
5255         * lib/logl.c: Likewise.
5256         * lib/long-options.c: Likewise.
5257         * lib/long-options.h: Likewise.
5258         * lib/lstat.c: Likewise.
5259         * lib/lstat.h: Likewise.
5260         * lib/math.in.h: Likewise.
5261         * lib/mbchar.c: Likewise.
5262         * lib/mbchar.h: Likewise.
5263         * lib/mbfile.h: Likewise.
5264         * lib/mbiter.h: Likewise.
5265         * lib/mbscasecmp.c: Likewise.
5266         * lib/mbscasestr.c: Likewise.
5267         * lib/mbschr.c: Likewise.
5268         * lib/mbscspn.c: Likewise.
5269         * lib/mbslen.c: Likewise.
5270         * lib/mbsncasecmp.c: Likewise.
5271         * lib/mbsnlen.c: Likewise.
5272         * lib/mbspbrk.c: Likewise.
5273         * lib/mbspcasecmp.c: Likewise.
5274         * lib/mbsrchr.c: Likewise.
5275         * lib/mbssep.c: Likewise.
5276         * lib/mbsspn.c: Likewise.
5277         * lib/mbsstr.c: Likewise.
5278         * lib/mbstok_r.c: Likewise.
5279         * lib/mbswidth.c: Likewise.
5280         * lib/mbswidth.h: Likewise.
5281         * lib/mbuiter.h: Likewise.
5282         * lib/memcasecmp.c: Likewise.
5283         * lib/memcasecmp.h: Likewise.
5284         * lib/memchr.c: Likewise.
5285         * lib/memcmp.c: Likewise.
5286         * lib/memcoll.c: Likewise.
5287         * lib/memcoll.h: Likewise.
5288         * lib/memcpy.c: Likewise.
5289         * lib/memrchr.c: Likewise.
5290         * lib/mkancesdirs.c: Likewise.
5291         * lib/mkdir-p.c: Likewise.
5292         * lib/mkdir-p.h: Likewise.
5293         * lib/mkdir.c: Likewise.
5294         * lib/mkdirat.c: Likewise.
5295         * lib/mkdtemp.c: Likewise.
5296         * lib/mkstemp-safer.c: Likewise.
5297         * lib/mkstemp.c: Likewise.
5298         * lib/modechange.c: Likewise.
5299         * lib/modechange.h: Likewise.
5300         * lib/mountlist.c: Likewise.
5301         * lib/mountlist.h: Likewise.
5302         * lib/mpsort.c: Likewise.
5303         * lib/nanosleep.c: Likewise.
5304         * lib/obstack.c: Likewise.
5305         * lib/obstack.h: Likewise.
5306         * lib/open-safer.c: Likewise.
5307         * lib/open.c: Likewise.
5308         * lib/openat-die.c: Likewise.
5309         * lib/openat-priv.h: Likewise.
5310         * lib/openat-proc.c: Likewise.
5311         * lib/openat.c: Likewise.
5312         * lib/openat.h: Likewise.
5313         * lib/pagealign_alloc.c: Likewise.
5314         * lib/pagealign_alloc.h: Likewise.
5315         * lib/physmem.c: Likewise.
5316         * lib/physmem.h: Likewise.
5317         * lib/pipe-safer.c: Likewise.
5318         * lib/pipe.c: Likewise.
5319         * lib/pipe.h: Likewise.
5320         * lib/posixtm.c: Likewise.
5321         * lib/posixtm.h: Likewise.
5322         * lib/posixver.c: Likewise.
5323         * lib/printf-frexp.c: Likewise.
5324         * lib/printf-frexp.h: Likewise.
5325         * lib/printf-frexpl.c: Likewise.
5326         * lib/printf-frexpl.h: Likewise.
5327         * lib/printf.c: Likewise.
5328         * lib/progname.c: Likewise.
5329         * lib/progname.h: Likewise.
5330         * lib/progreloc.c: Likewise.
5331         * lib/putenv.c: Likewise.
5332         * lib/quote.c: Likewise.
5333         * lib/quote.h: Likewise.
5334         * lib/quotearg.c: Likewise.
5335         * lib/quotearg.h: Likewise.
5336         * lib/raise.c: Likewise.
5337         * lib/readline.c: Likewise.
5338         * lib/readline.h: Likewise.
5339         * lib/readlink.c: Likewise.
5340         * lib/readtokens.c: Likewise.
5341         * lib/readtokens.h: Likewise.
5342         * lib/readtokens0.c: Likewise.
5343         * lib/readtokens0.h: Likewise.
5344         * lib/readutmp.c: Likewise.
5345         * lib/readutmp.h: Likewise.
5346         * lib/realloc.c: Likewise.
5347         * lib/relocwrapper.c: Likewise.
5348         * lib/rename-dest-slash.c: Likewise.
5349         * lib/rename.c: Likewise.
5350         * lib/rmdir.c: Likewise.
5351         * lib/rpmatch.c: Likewise.
5352         * lib/safe-read.c: Likewise.
5353         * lib/safe-read.h: Likewise.
5354         * lib/safe-write.c: Likewise.
5355         * lib/safe-write.h: Likewise.
5356         * lib/same-inode.h: Likewise.
5357         * lib/same.c: Likewise.
5358         * lib/same.h: Likewise.
5359         * lib/save-cwd.c: Likewise.
5360         * lib/save-cwd.h: Likewise.
5361         * lib/savedir.c: Likewise.
5362         * lib/savedir.h: Likewise.
5363         * lib/savewd.c: Likewise.
5364         * lib/savewd.h: Likewise.
5365         * lib/search.in.h: Likewise.
5366         * lib/setenv.c: Likewise.
5367         * lib/setenv.h: Likewise.
5368         * lib/settime.c: Likewise.
5369         * lib/sh-quote.c: Likewise.
5370         * lib/sh-quote.h: Likewise.
5371         * lib/sig2str.c: Likewise.
5372         * lib/sig2str.h: Likewise.
5373         * lib/signal.in.h: Likewise.
5374         * lib/signbitd.c: Likewise.
5375         * lib/signbitf.c: Likewise.
5376         * lib/signbitl.c: Likewise.
5377         * lib/sigprocmask.c: Likewise.
5378         * lib/sincosl.c: Likewise.
5379         * lib/sleep.c: Likewise.
5380         * lib/sprintf.c: Likewise.
5381         * lib/sqrtl.c: Likewise.
5382         * lib/stat-time.h: Likewise.
5383         * lib/stdio--.h: Likewise.
5384         * lib/stdio-safer.h: Likewise.
5385         * lib/stdlib--.h: Likewise.
5386         * lib/stdlib-safer.h: Likewise.
5387         * lib/stdlib.in.h: Likewise.
5388         * lib/stpcpy.c: Likewise.
5389         * lib/stpncpy.c: Likewise.
5390         * lib/strchrnul.c: Likewise.
5391         * lib/strcspn.c: Likewise.
5392         * lib/strerror.c: Likewise.
5393         * lib/strftime.c: Likewise.
5394         * lib/strftime.h: Likewise.
5395         * lib/striconveh.c: Likewise.
5396         * lib/striconveh.h: Likewise.
5397         * lib/striconveha.c: Likewise.
5398         * lib/striconveha.h: Likewise.
5399         * lib/stripslash.c: Likewise.
5400         * lib/strnlen1.c: Likewise.
5401         * lib/strnlen1.h: Likewise.
5402         * lib/strtod.c: Likewise.
5403         * lib/strtoimax.c: Likewise.
5404         * lib/strtok_r.c: Likewise.
5405         * lib/strtol.c: Likewise.
5406         * lib/strtoll.c: Likewise.
5407         * lib/strtoul.c: Likewise.
5408         * lib/strtoull.c: Likewise.
5409         * lib/sysexits.in.h: Likewise.
5410         * lib/tempname.c: Likewise.
5411         * lib/tempname.h: Likewise.
5412         * lib/timespec.h: Likewise.
5413         * lib/tls.c: Likewise.
5414         * lib/tls.h: Likewise.
5415         * lib/tmpdir.c: Likewise.
5416         * lib/tmpdir.h: Likewise.
5417         * lib/tmpfile-safer.c: Likewise.
5418         * lib/tmpfile.c: Likewise.
5419         * lib/trigl.c: Likewise.
5420         * lib/trigl.h: Likewise.
5421         * lib/trim.c: Likewise.
5422         * lib/trim.h: Likewise.
5423         * lib/trunc.c: Likewise.
5424         * lib/truncf.c: Likewise.
5425         * lib/truncl.c: Likewise.
5426         * lib/tsearch.c: Likewise.
5427         * lib/unicodeio.c: Likewise.
5428         * lib/unicodeio.h: Likewise.
5429         * lib/unistd--.h: Likewise.
5430         * lib/unistd-safer.h: Likewise.
5431         * lib/unistdio/ulc-fprintf.c: Likewise.
5432         * lib/unistdio/ulc-vfprintf.c: Likewise.
5433         * lib/unlinkdir.c: Likewise.
5434         * lib/unlinkdir.h: Likewise.
5435         * lib/unlocked-io.h: Likewise.
5436         * lib/unsetenv.c: Likewise.
5437         * lib/userspec.c: Likewise.
5438         * lib/utime.c: Likewise.
5439         * lib/utimecmp.c: Likewise.
5440         * lib/utimecmp.h: Likewise.
5441         * lib/utimens.c: Likewise.
5442         * lib/verify.h: Likewise.
5443         * lib/verror.c: Likewise.
5444         * lib/verror.h: Likewise.
5445         * lib/version-etc-fsf.c: Likewise.
5446         * lib/version-etc.c: Likewise.
5447         * lib/version-etc.h: Likewise.
5448         * lib/vfprintf.c: Likewise.
5449         * lib/vprintf.c: Likewise.
5450         * lib/vsprintf.c: Likewise.
5451         * lib/w32spawn.h: Likewise.
5452         * lib/wait-process.c: Likewise.
5453         * lib/wait-process.h: Likewise.
5454         * lib/wcwidth.c: Likewise.
5455         * lib/write-any-file.c: Likewise.
5456         * lib/xalloc-die.c: Likewise.
5457         * lib/xalloc.h: Likewise.
5458         * lib/xasprintf.c: Likewise.
5459         * lib/xgetcwd.c: Likewise.
5460         * lib/xgetcwd.h: Likewise.
5461         * lib/xgetdomainname.c: Likewise.
5462         * lib/xgetdomainname.h: Likewise.
5463         * lib/xgethostname.c: Likewise.
5464         * lib/xmalloc.c: Likewise.
5465         * lib/xmalloca.c: Likewise.
5466         * lib/xmalloca.h: Likewise.
5467         * lib/xmemcoll.c: Likewise.
5468         * lib/xnanosleep.c: Likewise.
5469         * lib/xreadlink.c: Likewise.
5470         * lib/xreadlink.h: Likewise.
5471         * lib/xsetenv.c: Likewise.
5472         * lib/xsetenv.h: Likewise.
5473         * lib/xstriconv.c: Likewise.
5474         * lib/xstriconv.h: Likewise.
5475         * lib/xstrndup.c: Likewise.
5476         * lib/xstrndup.h: Likewise.
5477         * lib/xstrtod.c: Likewise.
5478         * lib/xstrtod.h: Likewise.
5479         * lib/xstrtol-error.c: Likewise.
5480         * lib/xstrtol.c: Likewise.
5481         * lib/xstrtol.h: Likewise.
5482         * lib/xtime.h: Likewise.
5483         * lib/xvasprintf.c: Likewise.
5484         * lib/xvasprintf.h: Likewise.
5485         * lib/yesno.c: Likewise.
5486         * lib/yesno.h: Likewise.
5487         * posix-modules: Likewise.
5488         * tests/test-alloca-opt.c: Likewise.
5489         * tests/test-arcfour.c: Likewise.
5490         * tests/test-arctwo.c: Likewise.
5491         * tests/test-argmatch.c: Likewise.
5492         * tests/test-argp-2.sh: Likewise.
5493         * tests/test-argp.c: Likewise.
5494         * tests/test-arpa_inet.c: Likewise.
5495         * tests/test-array_list.c: Likewise.
5496         * tests/test-array_oset.c: Likewise.
5497         * tests/test-atexit.c: Likewise.
5498         * tests/test-avltree_list.c: Likewise.
5499         * tests/test-avltree_oset.c: Likewise.
5500         * tests/test-avltreehash_list.c: Likewise.
5501         * tests/test-base64.c: Likewise.
5502         * tests/test-binary-io.c: Likewise.
5503         * tests/test-byteswap.c: Likewise.
5504         * tests/test-c-ctype.c: Likewise.
5505         * tests/test-c-strcasecmp.c: Likewise.
5506         * tests/test-c-strcasestr.c: Likewise.
5507         * tests/test-c-strncasecmp.c: Likewise.
5508         * tests/test-c-strstr.c: Likewise.
5509         * tests/test-canonicalize-lgpl.c: Likewise.
5510         * tests/test-canonicalize.c: Likewise.
5511         * tests/test-carray_list.c: Likewise.
5512         * tests/test-ceilf.c: Likewise.
5513         * tests/test-ceill.c: Likewise.
5514         * tests/test-count-one-bits.c: Likewise.
5515         * tests/test-crc.c: Likewise.
5516         * tests/test-dirname.c: Likewise.
5517         * tests/test-fbufmode.c: Likewise.
5518         * tests/test-fcntl.c: Likewise.
5519         * tests/test-fflush.c: Likewise.
5520         * tests/test-floorf.c: Likewise.
5521         * tests/test-floorl.c: Likewise.
5522         * tests/test-fopen.c: Likewise.
5523         * tests/test-fprintf-posix.c: Likewise.
5524         * tests/test-fprintf-posix.h: Likewise.
5525         * tests/test-fpurge.c: Likewise.
5526         * tests/test-freadable.c: Likewise.
5527         * tests/test-freadahead.c: Likewise.
5528         * tests/test-freading.c: Likewise.
5529         * tests/test-freopen.c: Likewise.
5530         * tests/test-frexp.c: Likewise.
5531         * tests/test-frexpl.c: Likewise.
5532         * tests/test-fseek.c: Likewise.
5533         * tests/test-fseeko.c: Likewise.
5534         * tests/test-fseterr.c: Likewise.
5535         * tests/test-fstrcmp.c: Likewise.
5536         * tests/test-ftell.c: Likewise.
5537         * tests/test-ftello.c: Likewise.
5538         * tests/test-fwritable.c: Likewise.
5539         * tests/test-fwriting.c: Likewise.
5540         * tests/test-getaddrinfo.c: Likewise.
5541         * tests/test-getpass.c: Likewise.
5542         * tests/test-gettimeofday.c: Likewise.
5543         * tests/test-hmac-md5.c: Likewise.
5544         * tests/test-hmac-sha1.c: Likewise.
5545         * tests/test-iconv.c: Likewise.
5546         * tests/test-iconvme.c: Likewise.
5547         * tests/test-inttypes.c: Likewise.
5548         * tests/test-isnan.c: Likewise.
5549         * tests/test-isnanf.c: Likewise.
5550         * tests/test-isnanl-nolibm.c: Likewise.
5551         * tests/test-isnanl.c: Likewise.
5552         * tests/test-isnanl.h: Likewise.
5553         * tests/test-ldexpl.c: Likewise.
5554         * tests/test-linked_list.c: Likewise.
5555         * tests/test-linkedhash_list.c: Likewise.
5556         * tests/test-locale.c: Likewise.
5557         * tests/test-localename.c: Likewise.
5558         * tests/test-lock.c: Likewise.
5559         * tests/test-lseek.c: Likewise.
5560         * tests/test-malloca.c: Likewise.
5561         * tests/test-math.c: Likewise.
5562         * tests/test-mbscasecmp.c: Likewise.
5563         * tests/test-mbscasestr1.c: Likewise.
5564         * tests/test-mbscasestr2.c: Likewise.
5565         * tests/test-mbscasestr3.c: Likewise.
5566         * tests/test-mbscasestr4.c: Likewise.
5567         * tests/test-mbschr.c: Likewise.
5568         * tests/test-mbscspn.c: Likewise.
5569         * tests/test-mbsncasecmp.c: Likewise.
5570         * tests/test-mbspbrk.c: Likewise.
5571         * tests/test-mbspcasecmp.c: Likewise.
5572         * tests/test-mbsrchr.c: Likewise.
5573         * tests/test-mbsspn.c: Likewise.
5574         * tests/test-mbsstr1.c: Likewise.
5575         * tests/test-mbsstr2.c: Likewise.
5576         * tests/test-mbsstr3.c: Likewise.
5577         * tests/test-md5.c: Likewise.
5578         * tests/test-memmem.c: Likewise.
5579         * tests/test-netinet_in.c: Likewise.
5580         * tests/test-open.c: Likewise.
5581         * tests/test-printf-frexp.c: Likewise.
5582         * tests/test-printf-frexpl.c: Likewise.
5583         * tests/test-printf-posix.c: Likewise.
5584         * tests/test-printf-posix.h: Likewise.
5585         * tests/test-rbtree_list.c: Likewise.
5586         * tests/test-rbtree_oset.c: Likewise.
5587         * tests/test-rbtreehash_list.c: Likewise.
5588         * tests/test-read-file.c: Likewise.
5589         * tests/test-rijndael.c: Likewise.
5590         * tests/test-search.c: Likewise.
5591         * tests/test-signbit.c: Likewise.
5592         * tests/test-sleep.c: Likewise.
5593         * tests/test-snprintf-posix.c: Likewise.
5594         * tests/test-snprintf-posix.h: Likewise.
5595         * tests/test-snprintf.c: Likewise.
5596         * tests/test-sprintf-posix.c: Likewise.
5597         * tests/test-sprintf-posix.h: Likewise.
5598         * tests/test-stat-time.c: Likewise.
5599         * tests/test-stdbool.c: Likewise.
5600         * tests/test-stdint.c: Likewise.
5601         * tests/test-stdio.c: Likewise.
5602         * tests/test-stdlib.c: Likewise.
5603         * tests/test-stpncpy.c: Likewise.
5604         * tests/test-strcasestr.c: Likewise.
5605         * tests/test-striconv.c: Likewise.
5606         * tests/test-striconveh.c: Likewise.
5607         * tests/test-striconveha.c: Likewise.
5608         * tests/test-string.c: Likewise.
5609         * tests/test-sys_select.c: Likewise.
5610         * tests/test-sys_socket.c: Likewise.
5611         * tests/test-sys_stat.c: Likewise.
5612         * tests/test-sys_time.c: Likewise.
5613         * tests/test-sysexits.c: Likewise.
5614         * tests/test-time.c: Likewise.
5615         * tests/test-tls.c: Likewise.
5616         * tests/test-trunc.c: Likewise.
5617         * tests/test-truncf.c: Likewise.
5618         * tests/test-truncl.c: Likewise.
5619         * tests/test-unistd.c: Likewise.
5620         * tests/test-vasnprintf-posix.c: Likewise.
5621         * tests/test-vasnprintf-posix2.c: Likewise.
5622         * tests/test-vasnprintf.c: Likewise.
5623         * tests/test-vasprintf-posix.c: Likewise.
5624         * tests/test-vasprintf.c: Likewise.
5625         * tests/test-verify.c: Likewise.
5626         * tests/test-vfprintf-posix.c: Likewise.
5627         * tests/test-vprintf-posix.c: Likewise.
5628         * tests/test-vsnprintf-posix.c: Likewise.
5629         * tests/test-vsnprintf.c: Likewise.
5630         * tests/test-vsprintf-posix.c: Likewise.
5631         * tests/test-wchar.c: Likewise.
5632         * tests/test-wctype.c: Likewise.
5633         * tests/test-wcwidth.c: Likewise.
5634         * tests/test-xstrtol.c: Likewise.
5635         * tests/test-xvasprintf.c: Likewise.
5636         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
5637         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
5638         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
5639         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
5640         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
5641         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
5642         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
5643         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
5644         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
5645         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
5646         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
5647         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
5648         * tests/uniname/test-uninames.c: Likewise.
5649         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
5650         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
5651         * tests/unistdio/test-u16-printf1.h: Likewise.
5652         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
5653         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
5654         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
5655         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
5656         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
5657         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
5658         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
5659         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
5660         * tests/unistdio/test-u32-printf1.h: Likewise.
5661         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
5662         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
5663         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
5664         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
5665         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
5666         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
5667         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
5668         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
5669         * tests/unistdio/test-u8-printf1.h: Likewise.
5670         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
5671         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
5672         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
5673         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
5674         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
5675         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
5676         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
5677         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
5678         * tests/unistdio/test-ulc-printf1.h: Likewise.
5679         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
5680         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
5681         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
5682         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
5683         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
5684         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
5685         * tests/uniwidth/test-u16-strwidth.c: Likewise.
5686         * tests/uniwidth/test-u16-width.c: Likewise.
5687         * tests/uniwidth/test-u32-strwidth.c: Likewise.
5688         * tests/uniwidth/test-u32-width.c: Likewise.
5689         * tests/uniwidth/test-u8-strwidth.c: Likewise.
5690         * tests/uniwidth/test-u8-width.c: Likewise.
5691         * tests/uniwidth/test-uc_width.c: Likewise.
5692         * config/srclist-update: Likewise.
5693         (fixlicense): Update to GPLv3+.
5694
5695         Change copyright notice from LGPLv2.1+ to LGPLv3+.
5696         * tests/test-tsearch.c: Change copyright notice.
5697
5698         Change copyright notice from LGPLv2.0+ to LGPLv3+.
5699         * lib/c-strcaseeq.h: Change copyright notice.
5700         * lib/streq.h: Likewise.
5701         * lib/uniconv.h: Likewise.
5702         * lib/uniconv/u-conv-from-enc.h: Likewise.
5703         * lib/uniconv/u-conv-to-enc.h: Likewise.
5704         * lib/uniconv/u-strconv-from-enc.h: Likewise.
5705         * lib/uniconv/u-strconv-to-enc.h: Likewise.
5706         * lib/uniconv/u16-conv-from-enc.c: Likewise.
5707         * lib/uniconv/u16-conv-to-enc.c: Likewise.
5708         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
5709         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
5710         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
5711         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
5712         * lib/uniconv/u32-conv-from-enc.c: Likewise.
5713         * lib/uniconv/u32-conv-to-enc.c: Likewise.
5714         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
5715         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
5716         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
5717         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
5718         * lib/uniconv/u8-conv-from-enc.c: Likewise.
5719         * lib/uniconv/u8-conv-to-enc.c: Likewise.
5720         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
5721         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
5722         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
5723         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
5724         * lib/uniname.h: Likewise.
5725         * lib/uniname/uniname.c: Likewise.
5726         * lib/unistdio.h: Likewise.
5727         * lib/unistdio/u-asnprintf.h: Likewise.
5728         * lib/unistdio/u-asprintf.h: Likewise.
5729         * lib/unistdio/u-printf-args.c: Likewise.
5730         * lib/unistdio/u-printf-args.h: Likewise.
5731         * lib/unistdio/u-printf-parse.h: Likewise.
5732         * lib/unistdio/u-snprintf.h: Likewise.
5733         * lib/unistdio/u-sprintf.h: Likewise.
5734         * lib/unistdio/u-vasprintf.h: Likewise.
5735         * lib/unistdio/u-vsnprintf.h: Likewise.
5736         * lib/unistdio/u-vsprintf.h: Likewise.
5737         * lib/unistdio/u16-asnprintf.c: Likewise.
5738         * lib/unistdio/u16-asprintf.c: Likewise.
5739         * lib/unistdio/u16-printf-parse.c: Likewise.
5740         * lib/unistdio/u16-snprintf.c: Likewise.
5741         * lib/unistdio/u16-sprintf.c: Likewise.
5742         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
5743         * lib/unistdio/u16-u16-asprintf.c: Likewise.
5744         * lib/unistdio/u16-u16-snprintf.c: Likewise.
5745         * lib/unistdio/u16-u16-sprintf.c: Likewise.
5746         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
5747         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
5748         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
5749         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
5750         * lib/unistdio/u16-vasnprintf.c: Likewise.
5751         * lib/unistdio/u16-vasprintf.c: Likewise.
5752         * lib/unistdio/u16-vsnprintf.c: Likewise.
5753         * lib/unistdio/u16-vsprintf.c: Likewise.
5754         * lib/unistdio/u32-asnprintf.c: Likewise.
5755         * lib/unistdio/u32-asprintf.c: Likewise.
5756         * lib/unistdio/u32-printf-parse.c: Likewise.
5757         * lib/unistdio/u32-snprintf.c: Likewise.
5758         * lib/unistdio/u32-sprintf.c: Likewise.
5759         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
5760         * lib/unistdio/u32-u32-asprintf.c: Likewise.
5761         * lib/unistdio/u32-u32-snprintf.c: Likewise.
5762         * lib/unistdio/u32-u32-sprintf.c: Likewise.
5763         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
5764         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
5765         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
5766         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
5767         * lib/unistdio/u32-vasnprintf.c: Likewise.
5768         * lib/unistdio/u32-vasprintf.c: Likewise.
5769         * lib/unistdio/u32-vsnprintf.c: Likewise.
5770         * lib/unistdio/u32-vsprintf.c: Likewise.
5771         * lib/unistdio/u8-asnprintf.c: Likewise.
5772         * lib/unistdio/u8-asprintf.c: Likewise.
5773         * lib/unistdio/u8-printf-parse.c: Likewise.
5774         * lib/unistdio/u8-snprintf.c: Likewise.
5775         * lib/unistdio/u8-sprintf.c: Likewise.
5776         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
5777         * lib/unistdio/u8-u8-asprintf.c: Likewise.
5778         * lib/unistdio/u8-u8-snprintf.c: Likewise.
5779         * lib/unistdio/u8-u8-sprintf.c: Likewise.
5780         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
5781         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
5782         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
5783         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
5784         * lib/unistdio/u8-vasnprintf.c: Likewise.
5785         * lib/unistdio/u8-vasprintf.c: Likewise.
5786         * lib/unistdio/u8-vsnprintf.c: Likewise.
5787         * lib/unistdio/u8-vsprintf.c: Likewise.
5788         * lib/unistdio/ulc-asnprintf.c: Likewise.
5789         * lib/unistdio/ulc-asprintf.c: Likewise.
5790         * lib/unistdio/ulc-printf-parse.c: Likewise.
5791         * lib/unistdio/ulc-snprintf.c: Likewise.
5792         * lib/unistdio/ulc-sprintf.c: Likewise.
5793         * lib/unistdio/ulc-vasnprintf.c: Likewise.
5794         * lib/unistdio/ulc-vasprintf.c: Likewise.
5795         * lib/unistdio/ulc-vsnprintf.c: Likewise.
5796         * lib/unistdio/ulc-vsprintf.c: Likewise.
5797         * lib/unistr.h: Likewise.
5798         * lib/unistr/u-cpy-alloc.h: Likewise.
5799         * lib/unistr/u-cpy.h: Likewise.
5800         * lib/unistr/u-endswith.h: Likewise.
5801         * lib/unistr/u-move.h: Likewise.
5802         * lib/unistr/u-set.h: Likewise.
5803         * lib/unistr/u-startswith.h: Likewise.
5804         * lib/unistr/u-stpcpy.h: Likewise.
5805         * lib/unistr/u-stpncpy.h: Likewise.
5806         * lib/unistr/u-strcat.h: Likewise.
5807         * lib/unistr/u-strcpy.h: Likewise.
5808         * lib/unistr/u-strcspn.h: Likewise.
5809         * lib/unistr/u-strdup.h: Likewise.
5810         * lib/unistr/u-strlen.h: Likewise.
5811         * lib/unistr/u-strncat.h: Likewise.
5812         * lib/unistr/u-strncpy.h: Likewise.
5813         * lib/unistr/u-strnlen.h: Likewise.
5814         * lib/unistr/u-strpbrk.h: Likewise.
5815         * lib/unistr/u-strspn.h: Likewise.
5816         * lib/unistr/u-strstr.h: Likewise.
5817         * lib/unistr/u-strtok.h: Likewise.
5818         * lib/unistr/u16-check.c: Likewise.
5819         * lib/unistr/u16-chr.c: Likewise.
5820         * lib/unistr/u16-cmp.c: Likewise.
5821         * lib/unistr/u16-cpy-alloc.c: Likewise.
5822         * lib/unistr/u16-cpy.c: Likewise.
5823         * lib/unistr/u16-endswith.c: Likewise.
5824         * lib/unistr/u16-mblen.c: Likewise.
5825         * lib/unistr/u16-mbsnlen.c: Likewise.
5826         * lib/unistr/u16-mbtouc-aux.c: Likewise.
5827         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
5828         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
5829         * lib/unistr/u16-mbtouc.c: Likewise.
5830         * lib/unistr/u16-mbtoucr.c: Likewise.
5831         * lib/unistr/u16-move.c: Likewise.
5832         * lib/unistr/u16-next.c: Likewise.
5833         * lib/unistr/u16-prev.c: Likewise.
5834         * lib/unistr/u16-set.c: Likewise.
5835         * lib/unistr/u16-startswith.c: Likewise.
5836         * lib/unistr/u16-stpcpy.c: Likewise.
5837         * lib/unistr/u16-stpncpy.c: Likewise.
5838         * lib/unistr/u16-strcat.c: Likewise.
5839         * lib/unistr/u16-strchr.c: Likewise.
5840         * lib/unistr/u16-strcmp.c: Likewise.
5841         * lib/unistr/u16-strcpy.c: Likewise.
5842         * lib/unistr/u16-strcspn.c: Likewise.
5843         * lib/unistr/u16-strdup.c: Likewise.
5844         * lib/unistr/u16-strlen.c: Likewise.
5845         * lib/unistr/u16-strmblen.c: Likewise.
5846         * lib/unistr/u16-strmbtouc.c: Likewise.
5847         * lib/unistr/u16-strncat.c: Likewise.
5848         * lib/unistr/u16-strncmp.c: Likewise.
5849         * lib/unistr/u16-strncpy.c: Likewise.
5850         * lib/unistr/u16-strnlen.c: Likewise.
5851         * lib/unistr/u16-strpbrk.c: Likewise.
5852         * lib/unistr/u16-strrchr.c: Likewise.
5853         * lib/unistr/u16-strspn.c: Likewise.
5854         * lib/unistr/u16-strstr.c: Likewise.
5855         * lib/unistr/u16-strtok.c: Likewise.
5856         * lib/unistr/u16-to-u32.c: Likewise.
5857         * lib/unistr/u16-to-u8.c: Likewise.
5858         * lib/unistr/u16-uctomb-aux.c: Likewise.
5859         * lib/unistr/u16-uctomb.c: Likewise.
5860         * lib/unistr/u32-check.c: Likewise.
5861         * lib/unistr/u32-chr.c: Likewise.
5862         * lib/unistr/u32-cmp.c: Likewise.
5863         * lib/unistr/u32-cpy-alloc.c: Likewise.
5864         * lib/unistr/u32-cpy.c: Likewise.
5865         * lib/unistr/u32-endswith.c: Likewise.
5866         * lib/unistr/u32-mblen.c: Likewise.
5867         * lib/unistr/u32-mbsnlen.c: Likewise.
5868         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
5869         * lib/unistr/u32-mbtouc.c: Likewise.
5870         * lib/unistr/u32-mbtoucr.c: Likewise.
5871         * lib/unistr/u32-move.c: Likewise.
5872         * lib/unistr/u32-next.c: Likewise.
5873         * lib/unistr/u32-prev.c: Likewise.
5874         * lib/unistr/u32-set.c: Likewise.
5875         * lib/unistr/u32-startswith.c: Likewise.
5876         * lib/unistr/u32-stpcpy.c: Likewise.
5877         * lib/unistr/u32-stpncpy.c: Likewise.
5878         * lib/unistr/u32-strcat.c: Likewise.
5879         * lib/unistr/u32-strchr.c: Likewise.
5880         * lib/unistr/u32-strcmp.c: Likewise.
5881         * lib/unistr/u32-strcpy.c: Likewise.
5882         * lib/unistr/u32-strcspn.c: Likewise.
5883         * lib/unistr/u32-strdup.c: Likewise.
5884         * lib/unistr/u32-strlen.c: Likewise.
5885         * lib/unistr/u32-strmblen.c: Likewise.
5886         * lib/unistr/u32-strmbtouc.c: Likewise.
5887         * lib/unistr/u32-strncat.c: Likewise.
5888         * lib/unistr/u32-strncmp.c: Likewise.
5889         * lib/unistr/u32-strncpy.c: Likewise.
5890         * lib/unistr/u32-strnlen.c: Likewise.
5891         * lib/unistr/u32-strpbrk.c: Likewise.
5892         * lib/unistr/u32-strrchr.c: Likewise.
5893         * lib/unistr/u32-strspn.c: Likewise.
5894         * lib/unistr/u32-strstr.c: Likewise.
5895         * lib/unistr/u32-strtok.c: Likewise.
5896         * lib/unistr/u32-to-u16.c: Likewise.
5897         * lib/unistr/u32-to-u8.c: Likewise.
5898         * lib/unistr/u32-uctomb.c: Likewise.
5899         * lib/unistr/u8-check.c: Likewise.
5900         * lib/unistr/u8-chr.c: Likewise.
5901         * lib/unistr/u8-cmp.c: Likewise.
5902         * lib/unistr/u8-cpy-alloc.c: Likewise.
5903         * lib/unistr/u8-cpy.c: Likewise.
5904         * lib/unistr/u8-endswith.c: Likewise.
5905         * lib/unistr/u8-mblen.c: Likewise.
5906         * lib/unistr/u8-mbsnlen.c: Likewise.
5907         * lib/unistr/u8-mbtouc-aux.c: Likewise.
5908         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
5909         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
5910         * lib/unistr/u8-mbtouc.c: Likewise.
5911         * lib/unistr/u8-mbtoucr.c: Likewise.
5912         * lib/unistr/u8-move.c: Likewise.
5913         * lib/unistr/u8-next.c: Likewise.
5914         * lib/unistr/u8-prev.c: Likewise.
5915         * lib/unistr/u8-set.c: Likewise.
5916         * lib/unistr/u8-startswith.c: Likewise.
5917         * lib/unistr/u8-stpcpy.c: Likewise.
5918         * lib/unistr/u8-stpncpy.c: Likewise.
5919         * lib/unistr/u8-strcat.c: Likewise.
5920         * lib/unistr/u8-strchr.c: Likewise.
5921         * lib/unistr/u8-strcmp.c: Likewise.
5922         * lib/unistr/u8-strcpy.c: Likewise.
5923         * lib/unistr/u8-strcspn.c: Likewise.
5924         * lib/unistr/u8-strdup.c: Likewise.
5925         * lib/unistr/u8-strlen.c: Likewise.
5926         * lib/unistr/u8-strmblen.c: Likewise.
5927         * lib/unistr/u8-strmbtouc.c: Likewise.
5928         * lib/unistr/u8-strncat.c: Likewise.
5929         * lib/unistr/u8-strncmp.c: Likewise.
5930         * lib/unistr/u8-strncpy.c: Likewise.
5931         * lib/unistr/u8-strnlen.c: Likewise.
5932         * lib/unistr/u8-strpbrk.c: Likewise.
5933         * lib/unistr/u8-strrchr.c: Likewise.
5934         * lib/unistr/u8-strspn.c: Likewise.
5935         * lib/unistr/u8-strstr.c: Likewise.
5936         * lib/unistr/u8-strtok.c: Likewise.
5937         * lib/unistr/u8-to-u16.c: Likewise.
5938         * lib/unistr/u8-to-u32.c: Likewise.
5939         * lib/unistr/u8-uctomb-aux.c: Likewise.
5940         * lib/unistr/u8-uctomb.c: Likewise.
5941         * lib/unitypes.h: Likewise.
5942         * lib/uniwidth.h: Likewise.
5943         * lib/uniwidth/cjk.h: Likewise.
5944         * lib/uniwidth/u16-strwidth.c: Likewise.
5945         * lib/uniwidth/u16-width.c: Likewise.
5946         * lib/uniwidth/u32-strwidth.c: Likewise.
5947         * lib/uniwidth/u32-width.c: Likewise.
5948         * lib/uniwidth/u8-strwidth.c: Likewise.
5949         * lib/uniwidth/u8-width.c: Likewise.
5950         * lib/uniwidth/width.c: Likewise.
5951
5952 2007-10-07  Bruno Haible  <bruno@clisp.org>
5953
5954         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
5955         The file is still under LGPL (see modules/inttypes).
5956
5957 2007-10-06  Bruno Haible  <bruno@clisp.org>
5958
5959         * modules/trunc (Dependencies): Add 'extensions'.
5960         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
5961         Reported by Ben Pfaff <blp@gnu.org>.
5962
5963 2007-10-06  Bruno Haible  <bruno@clisp.org>
5964
5965         * modules/freopen-tests: New file.
5966         * tests/test-freopen.c: New file.
5967
5968         * modules/fopen-tests: New file.
5969         * tests/test-fopen.c: New file.
5970
5971         * modules/fopen: New file.
5972         * lib/fopen.c: New file.
5973         * m4/fopen.m4: New file.
5974         * modules/freopen: New file.
5975         * lib/freopen.c: New file.
5976         * m4/freopen.m4: New file.
5977         * lib/stdio.in.h (fopen, freopen): New declarations.
5978         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
5979         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
5980         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
5981         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
5982         * doc/functions/fopen.texi: Mention the 'fopen' module.
5983         * doc/functions/freopen.texi: Mention the 'freopen' module.
5984
5985 2007-10-06  Bruno Haible  <bruno@clisp.org>
5986
5987         * modules/open-tests: New file.
5988         * tests/test-open.c: New file.
5989
5990         * modules/open: New file.
5991         * lib/open.c: New file.
5992         * m4/open.m4: New file.
5993         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
5994         lib/open.c does.
5995         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
5996         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
5997         macros.
5998         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
5999         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
6000         REPLACE_OPEN.
6001         * doc/functions/open.texi: Mention the 'open' module.
6002
6003 2007-10-04  Bruno Haible  <bruno@clisp.org>
6004
6005         * modules/ceill-tests: New file.
6006         * tests/test-ceill.c: New file.
6007
6008         * modules/ceill: New file.
6009         * lib/ceill.c: Replace entire file.
6010         * m4/ceill.m4: New file.
6011         * lib/math.in.h (ceill): Replace declaration.
6012         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
6013         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
6014         * doc/functions/ceill.texi: Mention the 'ceill' module.
6015         * modules/mathl (Files): Remove lib/ceill.c.
6016         (Depends-on): Add ceill.
6017
6018 2007-10-04  Bruno Haible  <bruno@clisp.org>
6019
6020         * modules/ceilf-tests: New file.
6021         * tests/test-ceilf.c: New file.
6022
6023         * modules/ceilf: New file.
6024         * lib/ceil.c: New file.
6025         * lib/ceilf.c: New file.
6026         * m4/ceilf.m4: New file.
6027         * lib/math.in.h (ceilf): New declaration.
6028         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
6029         HAVE_DECL_CEILF.
6030         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
6031         HAVE_DECL_CEILF.
6032         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
6033
6034 2007-10-04  Bruno Haible  <bruno@clisp.org>
6035
6036         * modules/floorl-tests: New file.
6037         * tests/test-floorl.c: New file.
6038
6039         * modules/floorl: New file.
6040         * lib/floorl.c: Replace entire file.
6041         * m4/floorl.m4: New file.
6042         * lib/math.in.h (floorl): Replace declaration.
6043         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
6044         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
6045         * doc/functions/floorl.texi: Mention the 'floorl' module.
6046         * modules/mathl (Files): Remove lib/floorl.c.
6047         (Depends-on): Add floorl.
6048
6049 2007-10-04  Bruno Haible  <bruno@clisp.org>
6050
6051         * modules/floorf-tests: New file.
6052         * tests/test-floorf.c: New file.
6053
6054         * modules/floorf: New file.
6055         * lib/floor.c: New file.
6056         * lib/floorf.c: New file.
6057         * m4/floorf.m4: New file.
6058         * lib/math.in.h (floorf): New declaration.
6059         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
6060         HAVE_DECL_FLOORF.
6061         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
6062         HAVE_DECL_FLOORF.
6063         * doc/functions/floorf.texi: Mention the 'floorf' module.
6064
6065 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
6066             Bruno Haible  <bruno@clisp.org>
6067
6068         Advertise for the Git server instead of the CVS server.
6069         * doc/gnulib-intro.texi (Steady Development): Mention the Git
6070         repository instead of the CVS one.
6071         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
6072         about all VCS systems generically.
6073         * doc/gnulib.texi (Introduction): Capitalize `Git'.
6074
6075 2007-10-04  Bruno Haible  <bruno@clisp.org>
6076
6077         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
6078         means.
6079         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
6080
6081 2007-10-04  Bruno Haible  <bruno@clisp.org>
6082
6083         * modules/truncl-tests: New file.
6084         * tests/test-truncl.c: New file.
6085
6086         * modules/truncl: New file.
6087         * lib/truncl.c: New file.
6088         * m4/truncl.m4: New file.
6089         * lib/math.in.h (truncl): New declaration.
6090         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
6091         HAVE_DECL_TRUNCL.
6092         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
6093         HAVE_DECL_TRUNCL.
6094         * doc/functions/truncl.texi: Mention the 'truncl' module.
6095
6096 2007-10-04  Bruno Haible  <bruno@clisp.org>
6097
6098         * modules/truncf-tests: New file.
6099         * tests/test-truncf.c: New file.
6100
6101         * modules/truncf: New file.
6102         * lib/trunc.c: Make paramerizable through USE_* macros.
6103         * lib/truncf.c: New file.
6104         * m4/truncf.m4: New file.
6105         * lib/math.in.h (truncf): New declaration.
6106         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
6107         HAVE_DECL_TRUNCF.
6108         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
6109         HAVE_DECL_TRUNCF.
6110         * doc/functions/truncf.texi: Mention the 'truncf' module.
6111
6112 2007-10-03  Bruno Haible  <bruno@clisp.org>
6113
6114         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
6115         augmentation also for tests modules.
6116         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
6117         * modules/atexit-tests (Makefile.am): Likewise.
6118         * modules/binary-io-tests (Makefile.am): Likewise.
6119         * modules/c-strcase-tests (Makefile.am): Likewise.
6120         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
6121         * modules/canonicalize-tests (Makefile.am): Likewise.
6122         * modules/closein-tests (Makefile.am): Likewise.
6123         * modules/fprintf-posix-tests (Makefile.am): Likewise.
6124         * modules/freadahead-tests (Makefile.am): Likewise.
6125         * modules/fseek-tests (Makefile.am): Likewise.
6126         * modules/fseeko-tests (Makefile.am): Likewise.
6127         * modules/ftell-tests (Makefile.am): Likewise.
6128         * modules/ftello-tests (Makefile.am): Likewise.
6129         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
6130         * modules/isnanl-tests (Makefile.am): Likewise.
6131         * modules/lseek-tests (Makefile.am): Likewise.
6132         * modules/mbscasecmp-tests (Makefile.am): Likewise.
6133         * modules/mbscasestr-tests (Makefile.am): Likewise.
6134         * modules/mbschr-tests (Makefile.am): Likewise.
6135         * modules/mbscspn-tests (Makefile.am): Likewise.
6136         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
6137         * modules/mbspbrk-tests (Makefile.am): Likewise.
6138         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
6139         * modules/mbsrchr-tests (Makefile.am): Likewise.
6140         * modules/mbsspn-tests (Makefile.am): Likewise.
6141         * modules/mbsstr-tests (Makefile.am): Likewise.
6142         * modules/printf-posix-tests (Makefile.am): Likewise.
6143         * modules/snprintf-posix-tests (Makefile.am): Likewise.
6144         * modules/sprintf-posix-tests (Makefile.am): Likewise.
6145         * modules/tsearch-tests (Makefile.am): Likewise.
6146         * modules/uniname/uniname-tests (Makefile.am): Likewise.
6147         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
6148         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
6149         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
6150         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
6151         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
6152         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
6153         * modules/vprintf-posix-tests (Makefile.am): Likewise.
6154         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
6155         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
6156         * modules/xstrtoimax-tests (Makefile.am): Likewise.
6157         * modules/xstrtol-tests (Makefile.am): Likewise.
6158         * modules/xstrtoumax-tests (Makefile.am): Likewise.
6159         * modules/yesno-tests (Makefile.am): Likewise.
6160
6161 2007-10-03  Bruno Haible  <bruno@clisp.org>
6162
6163         * modules/trunc-tests: New file.
6164         * tests/test-trunc.c: New file.
6165
6166         * modules/trunc: New file.
6167         * lib/trunc.c: New file.
6168         * m4/trunc.m4: New file.
6169         * lib/math.in.h (trunc): New declaration.
6170         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
6171         HAVE_DECL_TRUNC.
6172         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
6173         HAVE_DECL_TRUNC.
6174         * doc/functions/trunc.texi: Mention the 'trunc' module.
6175
6176 2007-10-03  Bruno Haible  <bruno@clisp.org>
6177
6178         * tests/test-fpending.c: New file, mostly copied
6179         from coreutils/lib/t-fpending.c.
6180         * modules/fpending-tests: New file.
6181
6182 2007-10-03  Bruno Haible  <bruno@clisp.org>
6183
6184         Port the stdio extensions to QNX (untested).
6185         * lib/fseterr.c (fseterr): Add support for QNX.
6186         * lib/fbufmode.c (fbufmode): Likewise.
6187         * lib/freadable.c (freadable): Likewise.
6188         * lib/fwritable.c (fwritable): Likewise.
6189         * lib/freading.c (freading): Likewise.
6190         * lib/fwriting.c (fwriting): Likewise.
6191         * lib/freadahead.c (freadahed): Likewise.
6192         * lib/fpurge.c (fpurge): Likewise.
6193         * lib/fseeko.c (rpl_fseeko): Likewise.
6194
6195 2007-10-03  Bruno Haible  <bruno@clisp.org>
6196             Jim Meyering  <jim@meyering.net>
6197             Eric Blake  <ebb9@byu.net>
6198
6199         * doc/relocatable.texi: Use @command instead of @program.
6200
6201 2007-10-02  Jim Meyering  <jim@meyering.net>
6202
6203         Perform one more "_.h" -> ".in.h" substitution.
6204         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
6205         instead of unistd_.h here, too.
6206
6207 2007-10-01  Bruno Haible  <bruno@clisp.org>
6208
6209         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
6210         Needed for the alloca-opt module.
6211
6212 2007-09-30  Bruno Haible  <bruno@clisp.org>
6213
6214         * lib/alloca.in.h: Renamed from lib/alloca_.h.
6215         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
6216         alloca_.h.
6217         * lib/argz.in.h: Renamed from lib/argz_.h.
6218         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
6219         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
6220         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
6221         byteswap_.h.
6222         * lib/dirent.in.h: Renamed from lib/dirent_.h.
6223         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
6224         dirent_.h.
6225         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
6226         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
6227         fcntl_.h.
6228         * lib/float.in.h: Renamed from lib/float_.h.
6229         * modules/float (Files, Makefile.am): Use float.in.h instead of
6230         float_.h.
6231         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
6232         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
6233         fnmatch_.h.
6234         * lib/getopt.in.h: Renamed from lib/getopt_.h.
6235         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
6236         getopt_.h.
6237         * lib/glob.in.h: Renamed from lib/glob_.h.
6238         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
6239         * lib/iconv.in.h: Renamed from lib/iconv_.h.
6240         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
6241         iconv_.h.
6242         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
6243         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
6244         inttypes_.h.
6245         * lib/locale.in.h: Renamed from lib/locale_.h.
6246         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
6247         locale_.h.
6248         * lib/math.in.h: Renamed from lib/math_.h.
6249         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
6250         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
6251         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
6252         of netinet_in_.h. Add dependency.
6253         * lib/poll.in.h: Renamed from lib/poll_.h.
6254         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
6255         * lib/search.in.h: Renamed from lib/search_.h.
6256         * modules/search (Files, Makefile.am): Use search.in.h instead of
6257         search_.h.
6258         * lib/signal.in.h: Renamed from lib/signal_.h.
6259         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
6260         _signal.h.
6261         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
6262         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
6263         stdbool_.h.
6264         * lib/stdint.in.h: Renamed from lib/stdint_.h.
6265         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
6266         stdint_.h.
6267         * lib/stdio.in.h: Renamed from lib/stdio_.h.
6268         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
6269         stdio_.h.
6270         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
6271         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
6272         stdlib_.h.
6273         * lib/string.in.h: Renamed from lib/string_.h.
6274         * modules/string (Files, Makefile.am): Use string.in.h instead of
6275         string_.h.
6276         * doc/gnulib-tool.texi (Initial import): Update.
6277         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
6278         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
6279         of sys_select_.h. Add dependency.
6280         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
6281         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
6282         of sys_socket_.h.
6283         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
6284         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
6285         sys_stat_.h.
6286         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
6287         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
6288         sys_time_.h.
6289         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
6290         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
6291         sysexits_.h.
6292         * lib/time.in.h: Renamed from lib/time_.h.
6293         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
6294         * lib/unistd.in.h: Renamed from lib/unistd_.h.
6295         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
6296         unistd_.h.
6297         * lib/wchar.in.h: Renamed from lib/wchar_.h.
6298         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
6299         wchar_.h.
6300         * lib/wctype.in.h: Renamed from lib/wctype_.h.
6301         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
6302         wctype_.h.
6303         * build-aux/bootstrap (slurp): Update.
6304         * lib/.cppi-disable: Update.
6305
6306 2007-09-30  Bruno Haible  <bruno@clisp.org>
6307
6308         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
6309         Needed on BeOS.
6310
6311 2007-09-30  Bruno Haible  <bruno@clisp.org>
6312
6313         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
6314
6315 2007-09-29  Bruno Haible  <bruno@clisp.org>
6316
6317         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
6318
6319 2007-09-29  Bruno Haible  <bruno@clisp.org>
6320
6321         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
6322         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
6323         * build-aux/install-reloc: Compile also areadlink.c.
6324         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
6325
6326 2007-09-29  Bruno Haible  <bruno@clisp.org>
6327
6328         * gnulib-tool (func_emit_initmacro_done): Indentation.
6329
6330 2007-09-29  Bruno Haible  <bruno@clisp.org>
6331
6332         * README: Add CVS checkout update instructions.
6333         Info from Bob Proulx <bob@proulx.com>.
6334
6335 2007-09-28  Eric Blake  <ebb9@byu.net>
6336
6337         Provide move-if-change.
6338         * build-aux/move-if-change: New file, based on best practice
6339         rather than any canonical upstream location.
6340
6341 2007-09-28  Jim Meyering  <jim@meyering.net>
6342
6343         Fix canonicalize loop-detection corner case.
6344         Do not attempt to stat the symlink values stored via seen_triple.
6345         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
6346         on linux-2.6.18, (but not 2.6.22).
6347         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
6348         triple_compare.  The former compares dev,ino,filename, while the latter
6349         would actually stat dirname(filename) when dev and ino were equal.
6350         * lib/hash-triple.c: Install <string.h>.
6351         (STREQ): Define.
6352         (triple_compare_ino_str): New function.
6353         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
6354
6355 2007-09-28  Eric Blake  <ebb9@byu.net>
6356
6357         Enforce that AC_REPLACE_FUNCS files exist.
6358         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
6359         override check for typos.
6360
6361         Fix test-closein on Solaris 10.
6362         * tests/test-closein.c (main): Don't assume stdin can be inherited
6363         closed on all systems.
6364         * tests/test-closein.sh: Likewise.
6365         Reported by Piotr Tarnowski.
6366
6367 2007-09-28  Jim Meyering  <jim@meyering.net>
6368
6369         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
6370
6371 2007-09-27  Jim Meyering  <jim@meyering.net>
6372
6373         canonicalize: Avoid a false-positive cycle failure.
6374         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
6375         Sort.  Remove cycle-check.
6376         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
6377         not cycle-check.h.
6378         (seen_triple): New function.
6379         (canonicalize_filename_mode): Use it instead of cycle-check.
6380         * tests/test-canonicalize.c: Add a test for this bug.
6381         * tests/test-canonicalize.sh: Set up and run the test.
6382
6383         New module, file-set, from coreutils.
6384         * modules/file-set: Define it.
6385         * lib/file-set.c, lib/file-set.h: Implement.
6386
6387         New module, hash-triple, from coreutils.
6388         * modules/hash-triple: Define it.
6389         * lib/hash-triple.c, lib/hash-triple.h: Implement.
6390
6391 2007-09-25  Eric Blake  <ebb9@byu.net>
6392
6393         Fix strerror on Interix.
6394         * lib/string_.h (strerror): Declare replacement.
6395         * doc/functions/strerror.texi (strerror): Document the Interix
6396         shortcoming.
6397         * modules/string (Makefile.am): Support new hooks.
6398         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
6399         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
6400         gl_FUNC_STRERROR_SEPARATE.
6401         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
6402         * lib/strerror.c (rpl_strerror): Provide replacement.
6403         * modules/strerror (Depends-on): Add string.
6404         (configure.ac): Detect use of module.
6405         * tests/test-strerror.c: New file.
6406         * modules/strerror-tests: New test module.
6407         * modules/argp (Depends-on): Add strerror.
6408         * modules/error (Depends-on): Likewise.
6409         Reported by Martin Koeppe.
6410
6411 2007-09-24  Bruno Haible  <bruno@clisp.org>
6412
6413         * README: Update git instructions.
6414
6415 2007-09-24  Eric Blake  <ebb9@byu.net>
6416
6417         Revert fpending breakage from 2007-09-08.
6418         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
6419         __fpending.c.
6420
6421 2007-09-24  Jim Meyering  <jim@meyering.net>
6422
6423         filenamecat.c: Add a test.
6424         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
6425         showing how the function works when DIR is the empty string.
6426
6427 2007-09-21  Simon Josefsson  <simon@josefsson.org>
6428
6429         * tests/test-canonicalize.sh: Turn on executable bit.
6430
6431 2007-09-19  Eric Blake  <ebb9@byu.net>
6432
6433         * README: Update CVS instructions.
6434
6435 2007-09-18  Bruno Haible  <bruno@clisp.org>
6436
6437         * modules/areadlink: New file.
6438         * lib/areadlink.h (areadlink): New declaration.
6439         * lib/areadlink.c: New file, based on lib/xreadlink.c.
6440
6441 2007-09-17  Jim Meyering  <jim@meyering.net>
6442
6443         * lib/savewd.c (ESTALE) [!defined]: Define.
6444         Reported to be required on Interix by Martin Koeppe.
6445
6446 2007-09-17  Bruno Haible  <bruno@clisp.org>
6447
6448         * gnulib-tool (func_version): Use $version.
6449
6450 2007-09-16  Bruno Haible  <bruno@clisp.org>
6451
6452         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
6453         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
6454         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
6455         Reported by Greg Schafer <gschafer@zip.com.au>.
6456
6457 2007-09-15  Bruno Haible  <bruno@clisp.org>
6458
6459         * gnulib-tool (sed): Try a little harder to make bash understand the
6460         alias.
6461         Reported by Bruce Korb <bruce.korb@gmail.com>.
6462
6463 2007-09-13  Eric Blake  <ebb9@byu.net>
6464
6465         * ChangeLog: Remove conflict markers.
6466
6467 2007-09-13  Simon Josefsson  <simon@josefsson.org>
6468
6469         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
6470         Reported by Bruno Haible <bruno@clisp.org>.
6471
6472 2007-09-12  Bruno Haible  <bruno@clisp.org>
6473
6474         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
6475         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
6476         is not defined.
6477
6478 2007-09-12  Eric Blake  <ebb9@byu.net>
6479
6480         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
6481         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
6482         Autoconf definition.
6483         * modules/euidaccess (Depends-on): Add extensions, for
6484         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
6485         * modules/fnmatch (Depends-on): Likewise.
6486         * modules/getaddrinfo (Depends-on): Likewise.
6487         * modules/getdelim (Depends-on): Likewise.
6488         * modules/getline (Depends-on): Likewise.
6489         * modules/getsubopt (Depends-on): Likewise.
6490         * modules/gettext (Depends-on): Likewise.
6491         * modules/group-member (Depends-on): Likewise.
6492         * modules/mbchar (Depends-on): Likewise.
6493         * modules/memmem (Depends-on): Likewise.
6494         * modules/mempcpy (Depends-on): Likewise.
6495         * modules/memrchr (Depends-on): Likewise.
6496         * modules/pagealign_alloc (Depends-on): Likewise.
6497         * modules/readutmp (Depends-on): Likewise.
6498         * modules/stpcpy (Depends-on): Likewise.
6499         * modules/stpncpy (Depends-on): Likewise.
6500         * modules/strchrnul (Depends-on): Likewise.
6501         * modules/strndup (Depends-on): Likewise.
6502         * modules/strsep (Depends-on): Likewise.
6503         * modules/strverscmp (Depends-on): Likewise.
6504         * modules/vasprintf (Depends-on): Likewise.
6505         * modules/wcwidth (Depends-on): Likewise.
6506         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
6507         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
6508         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
6509         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
6510         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
6511         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
6512         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
6513         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
6514         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
6515         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
6516         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
6517         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
6518         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
6519         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
6520         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
6521         * m4/readutmp.m4 (gl_READUTMP): Likewise.
6522         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
6523         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
6524         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
6525         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
6526         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
6527         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
6528         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
6529         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
6530         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
6531         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
6532         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
6533         so that lock.m4 can be used in gettext without extensions module.
6534
6535 2007-09-11  Bruno Haible  <bruno@clisp.org>
6536
6537         * m4/isc-posix.m4: Remove file.
6538         Suggested by Eric Blake.
6539
6540 2007-09-11  Eric Blake  <ebb9@byu.net>
6541
6542         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
6543
6544 2007-09-10  Bruno Haible  <bruno@clisp.org>
6545
6546         * posix-modules: Fix typo in error message.
6547         Reported by Matt <mkraai@beckman.com>.
6548
6549 2007-09-09  Bruno Haible  <bruno@clisp.org>
6550
6551         * doc/functions/getdelim.texi: Update list of platforms lacking the
6552         function.
6553         * doc/functions/getline.texi: Likewise.
6554
6555 2007-09-09  Jim Meyering  <jim@meyering.net>
6556
6557         * lib/hash.c (hash_initialize): Detect calloc failure.
6558         Reported by Bruno Haible.
6559
6560 2007-09-09  Bruno Haible  <bruno@clisp.org>
6561
6562         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
6563         malloc or realloc fails.
6564
6565 2007-09-09  Bruno Haible  <bruno@clisp.org>
6566
6567         * modules/getcwd (Depends-on): Add malloc-posix.
6568         * modules/glob (Depends-on): Likewise.
6569         * modules/putenv (Depends-on): Likewise.
6570         * modules/strdup (Depends-on): Likewise.
6571         * modules/getdelim (Depends-on): Add realloc-posix.
6572         * modules/read-file (Depends-on): Likewise.
6573
6574 2007-09-09  Bruno Haible  <bruno@clisp.org>
6575
6576         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
6577         (gl_FUNC_MALLOC_POSIX): Require it.
6578         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
6579         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
6580         * modules/realloc (Files): Add m4/malloc.m4.
6581         * modules/calloc (Files): Likewise.
6582
6583 2007-09-09  Bruno Haible  <bruno@clisp.org>
6584
6585         * modules/malloc-posix: New file.
6586         * modules/malloc (Depends-on): Add malloc-posix.
6587         * lib/malloc.c: Include errno.h.
6588         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
6589         and a POSIX-compatible malloc into a single function. Set ENOMEM
6590         when returning NULL.
6591         * m4/malloc.m4: New file.
6592         * doc/functions/malloc.texi: Mention the malloc-posix module.
6593         * lib/stdlib_.h (malloc): New declaration.
6594         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
6595         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
6596         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
6597         and HAVE_MALLOC_POSIX.
6598
6599 2007-09-09  Bruno Haible  <bruno@clisp.org>
6600
6601         * modules/realloc-posix: New file.
6602         * modules/realloc (Depends-on): Add realloc-posix.
6603         * lib/realloc.c: Include errno.h.
6604         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
6605         and a POSIX-compatible realloc into a single function. Set ENOMEM
6606         when returning NULL.
6607         * m4/realloc.m4: New file.
6608         * doc/functions/realloc.texi: Mention the realloc-posix module.
6609         * lib/stdlib_.h (realloc): New declaration.
6610         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
6611         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
6612         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
6613         and HAVE_REALLOC_POSIX.
6614
6615 2007-09-09  Bruno Haible  <bruno@clisp.org>
6616
6617         * modules/calloc-posix: New file.
6618         * modules/calloc (Depends-on): Add calloc-posix.
6619         * lib/calloc.c: Include errno.h.
6620         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
6621         and a POSIX-compatible calloc into a single function. Set ENOMEM
6622         when returning NULL.
6623         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
6624         * doc/functions/calloc.texi: Mention the calloc-posix module.
6625         * lib/stdlib_.h (calloc): New declaration.
6626         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
6627         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
6628         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
6629         and HAVE_CALLOC_POSIX.
6630
6631 2007-09-09  Bruno Haible  <bruno@clisp.org>
6632
6633         Allow for modules to show an arbitrary notice.
6634         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
6635         * gnulib-tool: New option --extract-notice.
6636         (func_usage): Document it.
6637         (sed_extract_prog): Update.
6638         (func_get_notice): New function.
6639         (func_modules_notice): New function.
6640         (func_import, func_create_testdir): Invoke it.
6641         Suggested by Jim Meyering.
6642
6643 2007-09-09  Bruno Haible  <bruno@clisp.org>
6644
6645         * gnulib-tool: New options --verbose, --quiet.
6646         (func_usage): Document them.
6647         (verbose): New variable.
6648         (func_execute_command): New function.
6649         (func_import): Don't show the module list and the file list if
6650         $verbose < 0.
6651         (func_create_testdir): Likewise. Use func_execute_command.
6652         (func_create_megatestdir): Use func_execute_command.
6653
6654 2007-09-08  Bruno Haible  <bruno@clisp.org>
6655
6656         * gnulib-tool (func_import): Prefer rsync over wget when available,
6657         for fetching the PO files.
6658
6659 2007-09-08  Bruno Haible  <bruno@clisp.org>
6660
6661         * posix-modules: New file. Portions copied from gnulib-tool.
6662         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
6663
6664 2007-09-08  Jim Meyering  <jim@meyering.net>
6665
6666         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
6667         * lib/fpending.h: Rename from __fpending.h.
6668         * lib/fpending.c: Rename from __fpending.c.
6669         Include "fpending.h", not "__fpending.h".
6670         * lib/__fpending.h, lib/__fpending.c: Remove files.
6671         * modules/fpending (Files): Reflect new file names.
6672         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
6673
6674 2007-09-08  Bruno Haible  <bruno@clisp.org>
6675
6676         * m4/inttypes-h.m4: Remove stub file.
6677
6678 2007-09-07  Simon Josefsson  <simon@josefsson.org>
6679
6680         * doc/headers/stdint.texi: Discuss #include_next issue.
6681
6682 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
6683
6684         * build-aux/bootstrap: Remove obsolete comment about wget --help.
6685
6686 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
6687
6688         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
6689         in variable name.
6690
6691 2007-09-03  Jim Meyering  <jim@meyering.net>
6692
6693         New module: git-version-gen.
6694         * modules/git-version-gen: New file.
6695
6696         Import changes from coreutils for bootstrap script.
6697
6698         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
6699
6700         bootstrap: uses rsync to download the .po files
6701         * build-aux/bootstrap (po_download_command_format): New global.
6702         (download_po_files): Use rsync.
6703         (update_po_files): Don't remove .po files after download,
6704         so future rsync runs can take advantage of the copies.
6705
6706         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
6707
6708         Solve the unnecessary-.po-file-regeneration problem once and for all.
6709         * build-aux/bootstrap (download_po_files): New function, renamed from
6710         get_translations.  Now, downloads, but doesn't update LINGUAS.
6711         (update_po_files): New function.
6712
6713         bootstrap: Ignore more.
6714         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
6715         uniwidth to e.g., lib/.gitignore.
6716         (slurp): Handle the sys_stat_.h -> sys mapping, too.
6717
6718         * build-aux/bootstrap: New setting: vc_ignore.
6719         (insert_sorted_if_absent): Create $file if absent.
6720         Adapt to new, possibly empty, list: $vc_ignore.
6721
6722         bootstrap: generate more ignorable names
6723         * build-aux/bootstrap (slurp): When generating ignorable names,
6724         also map .sin to .sed, .gperf to .c, and .y to .c.
6725
6726 2007-09-03  Jim Meyering  <jim@meyering.net>
6727
6728         * build-aux/git-version-gen: New file, from coreutils.  For details, see
6729         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
6730
6731 2007-09-02  Bruno Haible  <bruno@clisp.org>
6732
6733         Fix mis-recognition of 'mcs' on QNX 6.
6734         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
6735         output contains the string "Mono".
6736         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
6737         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
6738
6739 2007-09-01  Bruno Haible  <bruno@clisp.org>
6740
6741         Fix collision between uniwidth/* and linebreak modules.
6742         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
6743         u32_width): Remove declarations.
6744         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
6745         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
6746         streq3, streq2, streq1, streq0): Remove functions.
6747         (STREQ): Remove macro.
6748         (is_cjk_encoding): Remove function.
6749         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
6750         (uc_width, u8_width, u16_width, u32_width): Remove functions.
6751         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
6752         * NEWS: Document the change.
6753
6754 2007-09-01  Bruno Haible  <bruno@clisp.org>
6755
6756         * lib/streq.h: Add double-inclusion guard.
6757
6758 2007-09-01  Karl Berry  <karl@gnu.org>
6759
6760         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
6761
6762 2007-08-28  Jim Meyering  <jim@meyering.net>
6763
6764         Rename mreadlink_with_size to areadlink_with_size.
6765         * NEWS: Document the change.
6766         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
6767         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
6768         * lib/mreadlink.h: Rename this to...
6769         * lib/areadlink.h: ...this.
6770         * modules/mreadlink-with-size: Rename this to...
6771         * modules/areadlink-with-size: ...this.
6772         * lib/canonicalize.c: Reflect the renaming.
6773         * modules/canonicalize: Likewise.
6774
6775 2007-08-26  Bruno Haible  <bruno@clisp.org>
6776
6777         * gnulib-tool (func_import): When deciding which files to remove,
6778         consider also dangling symbolic links.
6779         Reported by Eric Blake.
6780
6781 2007-08-26  Bruno Haible  <bruno@clisp.org>
6782
6783         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
6784
6785 2007-08-23  Simon Josefsson  <simon@josefsson.org>
6786
6787         * lib/readline.c: Don't include getline.h, the prototype is now
6788         found in stdio.h.
6789
6790 2007-08-23  Jim Meyering  <jim@meyering.net>
6791
6792         Getdelim touchup.
6793         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
6794         around the funlockfile call, since funlockfile never sets errno.
6795         Don't set errno upon failed realloc.
6796
6797 2007-08-22  Eric Blake  <ebb9@byu.net>
6798
6799         Getline touchups.
6800         * lib/getdelim.c (getdelim): Revert regression that required *n to
6801         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
6802         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
6803         getdelim, rather than whether implementation is missing.
6804         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
6805         * lib/stdio_.h (getline): Also declare if replacement is
6806         required.
6807         * doc/functions/getdelim.texi: New file.
6808         * doc/functions/getline.texi: Likewise.
6809         * doc/gnulib.texi (Function Substitutes): Add new files.
6810         Reported by Bruno Haible.
6811
6812 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
6813
6814         * users.txt: Add Guile.
6815
6816 2007-08-22  Eric Blake  <ebb9@byu.net>
6817
6818         * tests/test-getdelim.c (main): Use remove, not unlink.
6819         * tests/test-getline.c (main): Likewise.
6820
6821         Move getline and getdelim into stdio.h, per POSIX 200x.
6822         * modules/getline (Files): Remove getline.h.
6823         (Depends-on): Add stdio.
6824         (configure.ac): Add module indicator.
6825         * modules/getdelim (Files): Remove getdelim.h.
6826         (Depends-on): Add stdio.
6827         (configure.ac): Add module indicator.
6828         * modules/stdio (Makefile.am): Work with new indicators.
6829         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
6830         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
6831         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
6832         * lib/getdelim.h: Delete.
6833         * lib/getline.h: Delete.
6834         * lib/stdio_.h (getdelim, getline): Declare.
6835         * modules/getdelim-tests: New module.
6836         * modules/getline-tests: Likewise.
6837         * tests/test-getdelim.c: New file.
6838         * tests/test-getline.c: Likewise.
6839         * NEWS: Document the change.
6840         * lib/getline.c: Update choice of header.
6841         * lib/csharpcomp.c: Likewise.
6842         * lib/getpass.c: Likewise.
6843         * lib/javacomp.c: Likewise.
6844         * lib/javaversion.c: Likewise.
6845         * lib/yesno.c: Likewise.
6846         * lib/getdelim.c: Likewise.
6847         (getdelim): Set errno on failure, and avoid memory leak.
6848
6849 2007-08-19  Bruno Haible  <bruno@clisp.org>
6850
6851         * modules/closein (Depends-on): Add freadahead.
6852         * lib/closein.c: Include freadahead.h.
6853         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
6854         is zero.
6855
6856 2007-08-19  Bruno Haible  <bruno@clisp.org>
6857
6858         * modules/freadahead-tests: New file.
6859         * tests/test-freadahead.sh: New file.
6860         * tests/test-freadahead.c: New file.
6861
6862         * modules/freadahead: New file.
6863         * lib/freadahead.h: New file.
6864         * lib/freadahead.c: New file.
6865         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
6866         fbufmode, fpurge, freadable, fwritable.
6867
6868 2007-08-19  Eric Blake  <ebb9@byu.net>
6869
6870         Test yesno in combination with closein.
6871         * lib/yesno.c (yesno): Document use of stdin.
6872         * modules/yesno-tests (Files): New module.
6873         * tests/test-yesno.c (main): New file.
6874         * tests/test-yesno.sh: Likewise.
6875
6876 2007-08-19  Bruno Haible  <bruno@clisp.org>
6877
6878         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
6879         * lib/fseeko.c (rpl_fseeko): Likewise.
6880         * lib/fseterr.c (fseterr): Likewise.
6881
6882 2007-08-19  Bruno Haible  <bruno@clisp.org>
6883
6884         * tests/test-lseek.c (main): Disable a test for BeOS.
6885         * doc/functions/lseek.texi: Document the BeOS bug.
6886
6887 2007-08-19  Bruno Haible  <bruno@clisp.org>
6888             Eric Blake  <ebb9@byu.net>
6889
6890         * lib/lseek.c: Include <sys/stat.h>.
6891         (rpl_lseek): Add workaround code also for Unix platforms.
6892         Needed for BeOS.
6893         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
6894         * doc/functions/lseek.texi: Document BeOS definiency.
6895
6896 2007-08-18  Bruno Haible  <bruno@clisp.org>
6897
6898         * modules/fstrcmp-tests: New file.
6899         * tests/test-fstrcmp.c: New file.
6900
6901 2007-08-18  Bruno Haible  <bruno@clisp.org>
6902
6903         * modules/fstrcmp: New file, from GNU gettext with modifications.
6904         * lib/fstrcmp.h: New file, from GNU gettext.
6905         * lib/fstrcmp.c: New file, from GNU gettext.
6906         * MODULES.html.sh (String handling): Add fstrcmp.
6907
6908 2007-08-18  Bruno Haible  <bruno@clisp.org>
6909
6910         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
6911         'bool'.
6912         (diag, compareseq): Remove const from the ctxt argument.
6913         (USE_HEURISTIC): Undefine at the end.
6914
6915 2007-08-18  Jim Meyering  <jim@meyering.net>
6916
6917         New file: lib/idcache.h
6918         * NEWS: Mention the addition.
6919         * modules/idcache (Files): Add lib/idcache.h
6920         * lib/idcache.c: Include "idcache.h".
6921         Don't include <sys/types.h>.
6922         Add a FIXME comment.
6923         Move file-scoped "static" declarations to the top.
6924         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
6925
6926 2007-08-17  Bruno Haible  <bruno@clisp.org>
6927         and Paul Eggert  <eggert@cs.ucla.edu>
6928
6929         * MODULES.html.sh: Add diffseq.
6930         * modules/diffseq: New file.
6931         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
6932         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
6933
6934 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
6935
6936         Import changes from coreutils for bootstrap script.
6937
6938         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
6939
6940         * build-aux/bootstrap (slurp): Work even in environments where
6941         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
6942         current code does not slurp files whose names start with ".", and
6943         this looks like it might be a troublesome area.
6944
6945         2007-07-11  Jim Meyering  <jim@meyering.net>
6946
6947         If there's a GPL vN copyright comment, require that N == 3.
6948
6949         2007-07-08  Jim Meyering  <jim@meyering.net>
6950
6951         Run the coreutils-specific code only if tests/Makefile.am.in exists.
6952         * build-aux/bootstrap (mam_template): Move definition out of loop.
6953
6954         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
6955
6956         * build-aux/bootstrap (symlink_to_dir): Rename function from
6957         symlink_to_gnulib.  Add a directory parameter.  Update all
6958         callers.
6959         (cp_mark_as_generated): Also check for -- and link to -- files in
6960         gl/.
6961
6962         2007-07-08  Jim Meyering  <jim@meyering.net>
6963
6964         Adapt to deeper hierarchy in gnulib.
6965         * build-aux/bootstrap (symlink_to_dir): If the destination
6966         directory doesn't exist, create it. This is required at least for
6967         "lib/uniwidth/cjk.h".
6968
6969         2007-05-15  Jim Meyering  <jim@meyering.net>
6970
6971         * build-aux/bootstrap: Now that generated Makefile.am files
6972         are no longer under version control, they must be created at
6973         bootstrap time.
6974
6975 2007-08-14  Ben Pfaff  <blp@gnu.org>
6976
6977         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
6978
6979 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
6980
6981         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
6982         given the changes below.
6983         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
6984         even on hosts that have padding bits beyond the supported 64.
6985
6986 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
6987
6988         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
6989         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
6990         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
6991         depends on it.
6992         (xstrtol_error): Remove.
6993         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
6994         but with a different signature.
6995         (ATTRIBUTE_NORETURN, __attribute__): New macros.
6996         * lib/xstrtol-error.c: Include exitfail.h.
6997         (xstrtol_fatal): New function, with a different signature from the
6998         old xstrtol_error, so that the caller need not worry about passing
6999         in an exit status, or about storage management of the option argument.
7000         (xstrtol_error): Now a static function.  Redo signature to
7001         implement xstrtol_fatal.  Output the correct number of hyphens in
7002         front of the option so that the caller need not worry about
7003         storage management.
7004         (N_): New macro.
7005         (_): Remove; not used now.
7006         * modules/xstrtol: Depend on getopt.
7007         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
7008         of old STRTOL_FATAL_ERROR macro.
7009         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
7010         of test program.
7011         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
7012         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
7013
7014 2007-08-08  Eric Blake  <ebb9@byu.net>
7015
7016         * lib/xstrtol-error.c: Add missing include.
7017
7018         Move xstrtol messages into gnulib domain, when --pobase is used.
7019         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
7020         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
7021         * modules/xstrtol (Files): Distribute new file.
7022         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
7023         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
7024         * tests/test-xstrtol.c: ...into new file.
7025         * tests/test-xstrtoul.c: Also test xstrtoul.
7026         * tests/test-xstrtoimax.c: Also test xstrtoimax.
7027         * tests/test-xstrtoumax.c: Also test xstrtoumax.
7028         * tests/test-xstrtol.sh: Drive the tests.
7029         * tests/test-xstrtoimax.sh: Likewise.
7030         * tests/test-xstrtoumax.sh: Likewise.
7031         * modules/xstrtol-tests: New module.
7032         * modules/xstrtoimax-tests: Likewise.
7033         * modules/xstrtoumax-tests: Likewise.
7034
7035 2007-08-08  Jim Meyering  <jim@meyering.net>
7036
7037         New function: mfile_name_concat.
7038         * lib/filenamecat.c (mfile_name_concat): New function, just like
7039         file_name_concat, but return NULL upon failure rather than exiting
7040         with a diagnostic.
7041         * lib/filenamecat.h: Declare it.
7042
7043 2007-08-07  Bruno Haible  <bruno@clisp.org>
7044
7045         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
7046         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
7047         warning from gcc.
7048         Reported by Eric Blake.
7049
7050 2007-08-07  Simon Josefsson  <simon@josefsson.org>
7051
7052         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
7053         * modules/crypto/arcfour (License): Likewise.
7054         * modules/crypto/des-tests (License): Likewise.
7055         * modules/crypto/gc-arctwo-tests (License): Likewise.
7056         * modules/crypto/gc-des-tests (License): Likewise.
7057         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
7058         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
7059         * modules/crypto/gc-md2-tests (License): Likewise.
7060         * modules/crypto/gc-md4-tests (License): Likewise.
7061         * modules/crypto/gc-md5-tests (License): Likewise.
7062         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
7063         * modules/crypto/gc-rijndael-tests (License): Likewise.
7064         * modules/crypto/gc-sha1-tests (License): Likewise.
7065         * modules/crypto/gc-tests (License): Likewise.
7066         * modules/crypto/hmac-md5 (License): Likewise.
7067         * modules/crypto/hmac-sha1 (License): Likewise.
7068         * modules/crypto/md2-tests (License): Likewise.
7069         * modules/crypto/md4-tests (License): Likewise.
7070         * modules/crypto/md5 (License): Likewise.
7071         * modules/crypto/rijndael (License): Likewise.
7072         * modules/crypto/sha1 (License): Likewise.
7073         * modules/memxor (License): Likewise.
7074
7075 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
7076         and Bruno Haible  <bruno@clisp.org>
7077
7078         * NEWS: Describe interface changes to human, xstrtol.
7079         * lib/human.h: Include <xstrtol.h>.
7080         (human_options): Return enum strtol_error, not int.  Remove
7081         bool arg; take int * instead.
7082         * lib/human.c: Don't include "gettext.h".
7083         (_): Remove; no longer used.
7084         Don't include <xstrtol.h>, since human.h does it.
7085         (human_options): Adjust to abovementioned interface changes.
7086         Do not report error to stderr; that's now the caller's
7087         responsibility.
7088         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
7089         interface change.
7090         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
7091         Str, Argument_type_string.  All uses changed.  Put " argument"
7092         in diagnostics to make them clearer.  Change wording of suffix
7093         message for clarity.
7094         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
7095         Argument_type_string.
7096         (STRTOL_FATAL_WARN): Remove; no longer used.
7097         * modules/human (Depends-on): Remove gettext-h.
7098
7099 2007-08-06  Simon Josefsson  <simon@josefsson.org>
7100
7101         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
7102
7103 2007-07-31  Bruno Haible  <bruno@clisp.org>
7104
7105         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
7106         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
7107         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
7108
7109 2007-07-31  Bruno Haible  <bruno@clisp.org>
7110
7111         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
7112         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
7113
7114 2007-07-30  Bruno Haible  <bruno@clisp.org>
7115
7116         * modules/base64 (License): Use the synonymous term "LGPLv2+".
7117         * modules/c-ctype (License): Likewise.
7118         * modules/c-strcase (License): Likewise.
7119         * modules/check-version (License): Likewise.
7120         * modules/iconv (License): Likewise.
7121         * modules/iconv_open (License): Likewise.
7122         * modules/read-file (License): Likewise.
7123         * modules/striconv (License): Likewise.
7124         * modules/strverscmp (License): Likewise.
7125         * modules/vasprintf (License): Likewise.
7126         * modules/crypto/des (License): Likewise.
7127         * modules/crypto/gc (License): Likewise.
7128         * modules/crypto/gc-arcfour (License): Likewise.
7129         * modules/crypto/gc-arctwo (License): Likewise.
7130         * modules/crypto/gc-des (License): Likewise.
7131         * modules/crypto/gc-hmac-md5 (License): Likewise.
7132         * modules/crypto/gc-hmac-sha1 (License): Likewise.
7133         * modules/crypto/gc-md2 (License): Likewise.
7134         * modules/crypto/gc-md4 (License): Likewise.
7135         * modules/crypto/gc-md5 (License): Likewise.
7136         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
7137         * modules/crypto/gc-random (License): Likewise.
7138         * modules/crypto/gc-rijndael (License): Likewise.
7139         * modules/crypto/gc-sha1 (License): Likewise.
7140         * modules/crypto/md2 (License): Likewise.
7141         * modules/crypto/md4 (License): Likewise.
7142
7143 2007-07-30  Jim Meyering  <jim@meyering.net>
7144
7145         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
7146         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
7147         it has valid stat data.  This bug would cause du not to count the
7148         sizes of inaccessible directories.
7149         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
7150         in <http://bugzilla.redhat.com/250077>.
7151
7152 2007-07-25  Peter O'Gorman  <peter@pogma.com>
7153             Bruno Haible  <bruno@clisp.org>
7154
7155         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
7156         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
7157         #include_next, gives a diagnostic about it, but reports no error in
7158         the exit code.
7159         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
7160
7161 2007-07-24  Ben Pfaff  <blp@gnu.org>
7162
7163         Improve name: "count-one-bits" is better than "popcount".
7164         * MODULES.html.sh: Update name.
7165         * lib/popcount.h: Renamed lib/count-one-bits.h.
7166         (popcount): Renamed count_one_bits.
7167         (popcountl): Renamed count_one_bits_l.
7168         (popcountll): Renamed count_one_bits_ll.
7169         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
7170         * modules/popcount: Renamed module/count-one-bits.
7171         * modules/popcount-tests: Renamed module/count-one-bits-tests.
7172         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
7173
7174 2007-07-23  Ben Pfaff  <blp@gnu.org>
7175
7176         * lib/popcount.h (popcount32): Reduce size of constants, to allow
7177         better code generation, and add U to large constants to avoid
7178         warnings, in non-GCC case.
7179         Suggested by Bruno Haible.
7180
7181 2007-07-23  Ben Pfaff  <blp@gnu.org>
7182
7183         * lib/popcount.h: Use verify_true instead of if...abort.
7184         * modules/popcount: Depend on verify module.
7185         Suggested by Jim Meyering.
7186
7187 2007-07-23  Bruno Haible  <bruno@clisp.org>
7188
7189         * gnulib-tool (func_import): Create a .cvsignore file also when the
7190         directory is not yet in CVS but the toplevel directory is. When
7191         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
7192         Reported by Karl Berry.
7193
7194 2007-07-22  Ben Pfaff  <blp@gnu.org>
7195
7196         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
7197         case.
7198         Suggested by Eric Blake.
7199
7200 2007-07-22  Ben Pfaff  <blp@gnu.org>
7201
7202         New module: popcount.
7203         * MODULES.html.sh: Add popcount.
7204         * modules/popcount: New file.
7205         * modules/popcount-tests: New file.
7206         * tests/test-popcount.c: New file.
7207         * lib/popcount.h: New file.
7208         * m4/popcount.m4: New file.
7209
7210 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
7211
7212         * build-aux/announce-gen: Update to GPLv3.
7213
7214         * build-aux/config.guess: Update from config.
7215
7216 2007-07-21  Bruno Haible  <bruno@clisp.org>
7217
7218         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
7219         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
7220
7221 2007-07-20  Jim Meyering  <jim@meyering.net>
7222
7223         * check-module: Diagnose a self-dependency.
7224
7225 2007-07-19  Bruno Haible  <bruno@clisp.org>
7226
7227         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
7228         empty.
7229         Reported by Eric Blake.
7230
7231 2007-07-18  Bruno Haible  <bruno@clisp.org>
7232
7233         * gnulib-tool: New options --po-base, --po-domain.
7234         (func_usage): Document them.
7235         (pobase, po_domain): New variables.
7236         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
7237         DEFAULT_TEXT_DOMAIN.
7238         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
7239         (func_import): Consider pobase and po_domain. Create a po/ directory.
7240         (func_create_testdir): Set pobase and po_domain to empty.
7241         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
7242         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
7243
7244 2007-07-18  Bruno Haible  <bruno@clisp.org>
7245
7246         * gnulib-tool (func_get_automake_snippet): Synthesize also an
7247         EXTRA_DIST augmentation for files in build-aux/.
7248
7249 2007-07-16  Bruno Haible  <bruno@clisp.org>
7250
7251         * modules/lseek (License): Use the synonymous term "LGPLv2+".
7252         * modules/getdelim (License): Likewise.
7253
7254 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
7255
7256         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
7257         * modules/d-type (License): Likewise.
7258         * modules/extensions (License): Likewise.
7259         * modules/fnmatch (License): Likewise.
7260         * modules/fseeko (License): Likewise.
7261         * modules/getaddrinfo (License): Likewise.
7262         * modules/getline (License): Likewise.
7263         * modules/getlogin_r (License): Likewise.
7264         * modules/getpass (License): Likewise.
7265         * modules/gettimeofday (License): Likewise.
7266         * modules/glob (License): Likewise.
7267         * modules/inet_ntop (License): Likewise.
7268         * modules/malloc (License): Likewise.
7269         * modules/malloca (License): Likewise.
7270         * modules/memmem (License): Likewise.
7271         * modules/mempcpy (License): Likewise.
7272         * modules/memset (License): Likewise.
7273         * modules/minmax (License): Likewise.
7274         * modules/mktime (License): Likewise.
7275         * modules/netinet_in (License): Likewise.
7276         * modules/pathmax (License): Likewise.
7277         * modules/poll (License): Likewise.
7278         * modules/regex (License): Likewise.
7279         * modules/snprintf (License): Likewise.
7280         * modules/stdbool (License): Likewise.
7281         * modules/stdint (License): Likewise.
7282         * modules/stdio (License): Likewise.
7283         * modules/strcase (License): Likewise.
7284         * modules/strcasestr (License): Likewise.
7285         * modules/strdup (License): Likewise.
7286         * modules/string (License): Likewise.
7287         * modules/strndup (License): Likewise.
7288         * modules/strnlen (License): Likewise.
7289         * modules/strpbrk (License): Likewise.
7290         * modules/strptime (License): Likewise.
7291         * modules/strsep (License): Likewise.
7292         * modules/sys_select (License): Likewise.
7293         * modules/sys_socket (License): Likewise.
7294         * modules/sys_stat (License): Likewise.
7295         * modules/sys_time (License): Likewise.
7296         * modules/time (License): Likewise.
7297         * modules/time_r (License): Likewise.
7298         * modules/timegm (License): Likewise.
7299         * modules/unistd (License): Likewise.
7300         * modules/vsnprintf (License): Likewise.
7301         * modules/wctype (License): Likewise.
7302
7303 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7304
7305         * modules/argz (License): LGPLv2+.
7306
7307 2007-07-15  Karl Berry  <karl@gnu.org>
7308
7309         * doc/gnulib.texi: revise node structure per new fdl.texi.
7310
7311 2007-07-14  Bruno Haible  <bruno@clisp.org>
7312
7313         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
7314         the output file.
7315         * lib/uniname/uninames.h: Regenerated.
7316
7317 2007-07-14  Karl Berry  <karl@gnu.org>
7318
7319         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
7320         omitting sectioning and index commands.
7321
7322 2007-07-13  Bruno Haible  <bruno@clisp.org>
7323
7324         New gnulib-tool option --more-symlinks.
7325         * gnulib-tool (func_usage): Document --more-symlinks.
7326         (do_copyrights): New variable.
7327         Recognize option --more-symlinks.
7328         (func_import): Don't add a copyright notice transform to
7329         sed_transform_lib_file if do_copyrights is empty.
7330
7331 2007-07-13  Bruno Haible  <bruno@clisp.org>
7332
7333         * lib/vasnprintf.c (decimal_point_char): Define also if
7334         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
7335         && !NEED_PRINTF_DIRECTIVE_A.
7336         Reported by Clemens Koller <clemens.koller@anagramm.de> via
7337         Gary V. Vaughan <gary@gnu.org>.
7338
7339 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
7340
7341         * lib/inttypes_.h: Undo previous change, since it was fixed
7342         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
7343
7344 2007-07-13  Bruno Haible  <bruno@clisp.org>
7345
7346         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
7347         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
7348
7349 2007-07-13  Jim Meyering  <jim@meyering.net>
7350
7351         df: Don't fail for Tru64's "file-on-file mount".
7352         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
7353         so we fall through and use statfs instead.  Details here:
7354         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
7355         Reported by Albert Chin.
7356
7357 2007-07-13  Bruno Haible  <bruno@clisp.org>
7358
7359         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
7360         * modules/configmake (License): Likewise.
7361         * modules/gettext (License): Likewise.
7362         * modules/gettext-h (License): Likewise.
7363         * modules/include_next (License): Likewise.
7364         * modules/link-warning (License): Likewise.
7365         * modules/localcharset (License): Likewise.
7366         * modules/localename (License): Likewise.
7367         * modules/lock (License): Likewise.
7368         * modules/relocatable-lib-lgpl (License): Likewise.
7369         * modules/size_max (License): Likewise.
7370         * modules/vasnprintf (License): Likewise.
7371         * modules/wchar (License): Likewise.
7372         * modules/xsize (License): Likewise.
7373
7374 2007-07-13  Bruno Haible  <bruno@clisp.org>
7375
7376         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
7377         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
7378
7379 2007-07-12  Bruno Haible  <bruno@clisp.org>
7380
7381         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
7382         in the modules files.
7383
7384 2007-07-11  Karl Berry  <karl@gnu.org>
7385
7386         * MODULES.html.sh (func_module): use
7387          sed -e '\|^'"${includefile}"'$|d'
7388          instead of /.../d, to avoid errors on $includefile's containing /.
7389
7390 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
7391
7392         * gnulib-tool (func_import): Avoid duplication of --avoid
7393         statements
7394         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
7395         names to `_' in variable names.
7396
7397 2007-07-10  Eric Blake  <ebb9@byu.net>
7398
7399         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
7400         * NEWS: Document this change.
7401
7402 2007-07-08  Bruno Haible  <bruno@clisp.org>
7403
7404         Update to Unicode 5.0.
7405         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
7406         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
7407         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
7408         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
7409         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
7410         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
7411         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
7412         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
7413         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
7414         U+10A3F, U+1D242..U+1D244.
7415         (nonspacing_table_ind): Update.
7416         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
7417         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
7418
7419 2007-07-08  Bruno Haible  <bruno@clisp.org>
7420
7421         Update to Unicode 5.0.
7422         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
7423         code transform. Extend the name index field of unicode_name_to_code and
7424         unicode_code_to_name from 16 to 24 bits.
7425         * lib/uniname/uniname.c (unicode_character_name,
7426         unicode_name_character): Add the range 0x12xxx to the code transform.
7427         * lib/uniname/uninames.h: Regenerated.
7428         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
7429
7430 2007-07-07  Bruno Haible  <bruno@clisp.org>
7431
7432         * modules/wcwidth-tests: New file.
7433         * tests/test-wcwidth.c: New file.
7434
7435         Work around MacOS X wcwidth() bug.
7436         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
7437         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
7438         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
7439         original wcwidth in non-UTF-8 locales.
7440         * modules/wcwidth (Depends-on): Add localcharset, streq,
7441         uniwidth/width.
7442         * doc/functions/wcwidth.texi: Update.
7443
7444 2007-07-07  Bruno Haible  <bruno@clisp.org>
7445
7446         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
7447         (wcwidth): New declaration.
7448         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
7449         macros.
7450         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
7451         here. Prepare for creating <wchar.h> unconditionally.
7452         * modules/wchar (Depends-on): Add link-warning.
7453         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
7454         REPLACE_WCWIDTH, and GL_LINK_WARNING.
7455         * lib/wcwidth.h: Remove file.
7456         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
7457         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
7458         * modules/wcwidth (Files): Remove lib/wcwidth.h.
7459         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
7460         (Include): Replace wcwidth.h with <wchar.h>.
7461         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
7462         * lib/mbchar.h: Don't include wcwidth.h.
7463         * lib/mbswidth.c: Likewise.
7464         * NEWS: Mention the change.
7465
7466 2007-07-07  Bruno Haible  <bruno@clisp.org>
7467
7468         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
7469         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
7470         definition with an external declaration.
7471         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
7472         defined as a function. Remove AC_C_INLINE requirement.
7473         * modules/wcwidth (Files): Add lib/wcwidth.c.
7474         (Makefile.am): Remove redundant statement.
7475
7476 2007-07-07  Bruno Haible  <bruno@clisp.org>
7477
7478         * MODULES.html.sh (Unicode string functions): Add the new modules.
7479
7480         * tests/uniwidth/test-u32-strwidth.c: New file.
7481         * modules/uniwidth/u32-strwidth-tests: New file.
7482
7483         * lib/uniwidth/u32-strwidth.c: New file.
7484         * modules/uniwidth/u32-strwidth: New file.
7485
7486         * tests/uniwidth/test-u16-strwidth.c: New file.
7487         * modules/uniwidth/u16-strwidth-tests: New file.
7488
7489         * lib/uniwidth/u16-strwidth.c: New file.
7490         * modules/uniwidth/u16-strwidth: New file.
7491
7492         * tests/uniwidth/test-u8-strwidth.c: New file.
7493         * modules/uniwidth/u8-strwidth-tests: New file.
7494
7495         * lib/uniwidth/u8-strwidth.c: New file.
7496         * modules/uniwidth/u8-strwidth: New file.
7497
7498         * tests/uniwidth/test-u32-width.c: New file.
7499         * modules/uniwidth/u32-width-tests: New file.
7500
7501         * lib/uniwidth/u32-width.c: New file.
7502         * modules/uniwidth/u32-width: New file.
7503
7504         * tests/uniwidth/test-u16-width.c: New file.
7505         * modules/uniwidth/u16-width-tests: New file.
7506
7507         * lib/uniwidth/u16-width.c: New file.
7508         * modules/uniwidth/u16-width: New file.
7509
7510         * tests/uniwidth/test-u8-width.c: New file.
7511         * modules/uniwidth/u8-width-tests: New file.
7512
7513         * lib/uniwidth/u8-width.c: New file.
7514         * modules/uniwidth/u8-width: New file.
7515
7516         * tests/uniwidth/test-uc_width.c: New file.
7517         * modules/uniwidth/width-tests: New file.
7518
7519         * lib/uniwidth/width.c: New file, from GNU libiconv.
7520         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
7521         * modules/uniwidth/width: New file.
7522
7523         * lib/uniwidth.h: New file, from GNU libiconv.
7524         * modules/uniwidth/base: New file.
7525
7526 2007-07-07  Bruno Haible  <bruno@clisp.org>
7527
7528         * lib/uniname.h: New file, from GNU gettext.
7529         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
7530         * lib/uniname/uninames.h: New file, from GNU gettext.
7531         * lib/uniname/uniname.c: New file, from GNU gettext.
7532         * tests/uniname/test-uninames.sh: New file.
7533         * tests/uniname/test-uninames.c: New file, from GNU gettext.
7534         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
7535         * modules/uniname/base: New file.
7536         * modules/uniname/uniname: New file.
7537         * modules/uniname/uniname-tests: New file.
7538         * MODULES.html.sh (Unicode string functions): Add the new modules.
7539
7540 2007-07-06  Bruno Haible  <bruno@clisp.org>
7541
7542         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
7543
7544 2007-07-06  Bruno Haible  <bruno@clisp.org>
7545
7546         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
7547         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
7548         includes <cygwin/sys_time.h> which includes <sys/select.h> which
7549         include <sys/time.h>.
7550         Reported by Eric Blake.
7551
7552 2007-07-06  Eric Blake  <ebb9@byu.net>
7553
7554         Fix testing canonicalize on cygwin.
7555         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
7556         Revert patch from 2007-06-19.
7557         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
7558         canonicalize module is also in use.
7559         * tests/test-canonicalize.c: New file.
7560         * tests/test-canonicalize.sh: Likewise.
7561         * modules/canonicalize-tests: Likewise.
7562
7563 2007-07-06  Jim Meyering  <jim@meyering.net>
7564
7565         * lib/getugroups.c (getugroups): Detect getgrent failure.
7566         Adjust comment to reflect reality: this function may return -1.
7567
7568 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
7569
7570         * build-aux/bootstrap (TP_URL,get_translations): Update to use
7571         the new TP address.
7572         (usage): Fix typo
7573         (gnulib_mk): New variable.
7574
7575 2007-07-05  Jim Meyering  <jim@meyering.net>
7576
7577         Don't let endgrent clobber errno, no matter how improbable.
7578         * lib/getugroups.c (getugroups): Save and restore errno around
7579         endgrent call.
7580
7581         Close the group DB even when failing with 2^31 or more members.
7582         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
7583
7584 2007-07-04  Jim Meyering  <jim@meyering.net>
7585
7586         * lib/getugroups.h: New file.
7587         * lib/getugroups.c: Include "getugroups.h".
7588         Remove uses of "register" keyword.
7589         Move local variable, "cp", down into scope where used.
7590         Give "username" parameter the "const" attribute.
7591         * modules/getugroups (Files): Add lib/getugroups.h
7592
7593 2007-07-04  Karl Berry  <karl@gnu.org>
7594
7595         * MODULES.html.sh (func_all_modules): Complete rename of
7596         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
7597
7598 2007-07-02  Bruno Haible  <bruno@clisp.org>
7599
7600         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
7601         mode, when inttypes.h comes from gnulib.
7602         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
7603
7604 2007-07-02  Simon Josefsson  <simon@josefsson.org>
7605
7606         * NEWS: Mention lgpl module name change.
7607
7608         * modules/lgpl-2.1: Renamed from lgpl.
7609
7610         * NEWS: Mention gpl module name change.
7611
7612         * modules/gpl-3.0: New file, based on gpl-2.0.
7613
7614         * modules/gpl-2.0: Renamed from gpl.
7615
7616         * modules/gpl: Fix filename, doc/gpl.texi is now found at
7617         doc/gpl-2.0.texi.
7618
7619 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
7620
7621         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
7622         #define __STDC_LIMIT_MACROS temporarily while including
7623         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
7624         Problem reported by Joel E. Denny in
7625         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
7626
7627 2007-07-01  Bruno Haible  <bruno@clisp.org>
7628
7629         * lib/unistdio.h: New file.
7630         * lib/unistdio/u-asnprintf.h: New file.
7631         * lib/unistdio/u-asprintf.h: New file.
7632         * lib/unistdio/u-printf-args.c: New file.
7633         * lib/unistdio/u-printf-args.h: New file.
7634         * lib/unistdio/u-printf-parse.h: New file.
7635         * lib/unistdio/u-snprintf.h: New file.
7636         * lib/unistdio/u-sprintf.h: New file.
7637         * lib/unistdio/u-vasprintf.h: New file.
7638         * lib/unistdio/u-vsnprintf.h: New file.
7639         * lib/unistdio/u-vsprintf.h: New file.
7640         * lib/unistdio/ulc-asnprintf.c: New file.
7641         * lib/unistdio/ulc-asprintf.c: New file.
7642         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
7643         * lib/unistdio/ulc-printf-parse.c: New file.
7644         * lib/unistdio/ulc-snprintf.c: New file.
7645         * lib/unistdio/ulc-sprintf.c: New file.
7646         * lib/unistdio/ulc-vasnprintf.c: New file.
7647         * lib/unistdio/ulc-vasprintf.c: New file.
7648         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
7649         * lib/unistdio/ulc-vsnprintf.c: New file.
7650         * lib/unistdio/ulc-vsprintf.c: New file.
7651         * lib/unistdio/u8-asnprintf.c: New file.
7652         * lib/unistdio/u8-asprintf.c: New file.
7653         * lib/unistdio/u8-printf-parse.c: New file.
7654         * lib/unistdio/u8-snprintf.c: New file.
7655         * lib/unistdio/u8-sprintf.c: New file.
7656         * lib/unistdio/u8-vasnprintf.c: New file.
7657         * lib/unistdio/u8-vasprintf.c: New file.
7658         * lib/unistdio/u8-vsnprintf.c: New file.
7659         * lib/unistdio/u8-vsprintf.c: New file.
7660         * lib/unistdio/u8-u8-asnprintf.c: New file.
7661         * lib/unistdio/u8-u8-asprintf.c: New file.
7662         * lib/unistdio/u8-u8-snprintf.c: New file.
7663         * lib/unistdio/u8-u8-sprintf.c: New file.
7664         * lib/unistdio/u8-u8-vasnprintf.c: New file.
7665         * lib/unistdio/u8-u8-vasprintf.c: New file.
7666         * lib/unistdio/u8-u8-vsnprintf.c: New file.
7667         * lib/unistdio/u8-u8-vsprintf.c: New file.
7668         * lib/unistdio/u16-asnprintf.c: New file.
7669         * lib/unistdio/u16-asprintf.c: New file.
7670         * lib/unistdio/u16-printf-parse.c: New file.
7671         * lib/unistdio/u16-snprintf.c: New file.
7672         * lib/unistdio/u16-sprintf.c: New file.
7673         * lib/unistdio/u16-vasnprintf.c: New file.
7674         * lib/unistdio/u16-vasprintf.c: New file.
7675         * lib/unistdio/u16-vsnprintf.c: New file.
7676         * lib/unistdio/u16-vsprintf.c: New file.
7677         * lib/unistdio/u16-u16-asnprintf.c: New file.
7678         * lib/unistdio/u16-u16-asprintf.c: New file.
7679         * lib/unistdio/u16-u16-snprintf.c: New file.
7680         * lib/unistdio/u16-u16-sprintf.c: New file.
7681         * lib/unistdio/u16-u16-vasnprintf.c: New file.
7682         * lib/unistdio/u16-u16-vasprintf.c: New file.
7683         * lib/unistdio/u16-u16-vsnprintf.c: New file.
7684         * lib/unistdio/u16-u16-vsprintf.c: New file.
7685         * lib/unistdio/u32-asnprintf.c: New file.
7686         * lib/unistdio/u32-asprintf.c: New file.
7687         * lib/unistdio/u32-printf-parse.c: New file.
7688         * lib/unistdio/u32-snprintf.c: New file.
7689         * lib/unistdio/u32-sprintf.c: New file.
7690         * lib/unistdio/u32-vasnprintf.c: New file.
7691         * lib/unistdio/u32-vasprintf.c: New file.
7692         * lib/unistdio/u32-vsnprintf.c: New file.
7693         * lib/unistdio/u32-vsprintf.c: New file.
7694         * lib/unistdio/u32-u32-asnprintf.c: New file.
7695         * lib/unistdio/u32-u32-asprintf.c: New file.
7696         * lib/unistdio/u32-u32-snprintf.c: New file.
7697         * lib/unistdio/u32-u32-sprintf.c: New file.
7698         * lib/unistdio/u32-u32-vasnprintf.c: New file.
7699         * lib/unistdio/u32-u32-vasprintf.c: New file.
7700         * lib/unistdio/u32-u32-vsnprintf.c: New file.
7701         * lib/unistdio/u32-u32-vsprintf.c: New file.
7702         * tests/unistdio/test-ulc-asnprintf1.c: New file.
7703         * tests/unistdio/test-ulc-asnprintf1.h: New file.
7704         * tests/unistdio/test-ulc-printf1.h: New file.
7705         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
7706         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
7707         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
7708         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
7709         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
7710         * tests/unistdio/test-ulc-vasprintf1.c: New file.
7711         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
7712         * tests/unistdio/test-ulc-vsprintf1.c: New file.
7713         * tests/unistdio/test-u8-asnprintf1.c: New file.
7714         * tests/unistdio/test-u8-asnprintf1.h: New file.
7715         * tests/unistdio/test-u8-printf1.h: New file.
7716         * tests/unistdio/test-u8-vasnprintf1.c: New file.
7717         * tests/unistdio/test-u8-vasnprintf2.c: New file.
7718         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
7719         * tests/unistdio/test-u8-vasnprintf3.c: New file.
7720         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
7721         * tests/unistdio/test-u8-vasprintf1.c: New file.
7722         * tests/unistdio/test-u8-vsnprintf1.c: New file.
7723         * tests/unistdio/test-u8-vsprintf1.c: New file.
7724         * tests/unistdio/test-u16-asnprintf1.c: New file.
7725         * tests/unistdio/test-u16-asnprintf1.h: New file.
7726         * tests/unistdio/test-u16-printf1.h: New file.
7727         * tests/unistdio/test-u16-vasnprintf1.c: New file.
7728         * tests/unistdio/test-u16-vasnprintf2.c: New file.
7729         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
7730         * tests/unistdio/test-u16-vasnprintf3.c: New file.
7731         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
7732         * tests/unistdio/test-u16-vasprintf1.c: New file.
7733         * tests/unistdio/test-u16-vsnprintf1.c: New file.
7734         * tests/unistdio/test-u16-vsprintf1.c: New file.
7735         * tests/unistdio/test-u32-asnprintf1.c: New file.
7736         * tests/unistdio/test-u32-asnprintf1.h: New file.
7737         * tests/unistdio/test-u32-printf1.h: New file.
7738         * tests/unistdio/test-u32-vasnprintf1.c: New file.
7739         * tests/unistdio/test-u32-vasnprintf2.c: New file.
7740         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
7741         * tests/unistdio/test-u32-vasnprintf3.c: New file.
7742         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
7743         * tests/unistdio/test-u32-vasprintf1.c: New file.
7744         * tests/unistdio/test-u32-vsnprintf1.c: New file.
7745         * tests/unistdio/test-u32-vsprintf1.c: New file.
7746         * modules/unistdio/base: New file.
7747         * modules/unistdio/u-printf-args: New file.
7748         * modules/unistdio/ulc-asnprintf: New file.
7749         * modules/unistdio/ulc-asprintf: New file.
7750         * modules/unistdio/ulc-fprintf: New file.
7751         * modules/unistdio/ulc-printf-parse: New file.
7752         * modules/unistdio/ulc-snprintf: New file.
7753         * modules/unistdio/ulc-sprintf: New file.
7754         * modules/unistdio/ulc-vasnprintf: New file.
7755         * modules/unistdio/ulc-vasprintf: New file.
7756         * modules/unistdio/ulc-vfprintf: New file.
7757         * modules/unistdio/ulc-vsnprintf: New file.
7758         * modules/unistdio/ulc-vsprintf: New file.
7759         * modules/unistdio/u8-asnprintf: New file.
7760         * modules/unistdio/u8-asprintf: New file.
7761         * modules/unistdio/u8-printf-parse: New file.
7762         * modules/unistdio/u8-snprintf: New file.
7763         * modules/unistdio/u8-sprintf: New file.
7764         * modules/unistdio/u8-vasnprintf: New file.
7765         * modules/unistdio/u8-vasprintf: New file.
7766         * modules/unistdio/u8-vsnprintf: New file.
7767         * modules/unistdio/u8-vsprintf: New file.
7768         * modules/unistdio/u8-u8-asnprintf: New file.
7769         * modules/unistdio/u8-u8-asprintf: New file.
7770         * modules/unistdio/u8-u8-snprintf: New file.
7771         * modules/unistdio/u8-u8-sprintf: New file.
7772         * modules/unistdio/u8-u8-vasnprintf: New file.
7773         * modules/unistdio/u8-u8-vasprintf: New file.
7774         * modules/unistdio/u8-u8-vsnprintf: New file.
7775         * modules/unistdio/u8-u8-vsprintf: New file.
7776         * modules/unistdio/u16-asnprintf: New file.
7777         * modules/unistdio/u16-asprintf: New file.
7778         * modules/unistdio/u16-printf-parse: New file.
7779         * modules/unistdio/u16-snprintf: New file.
7780         * modules/unistdio/u16-sprintf: New file.
7781         * modules/unistdio/u16-vasnprintf: New file.
7782         * modules/unistdio/u16-vasprintf: New file.
7783         * modules/unistdio/u16-vsnprintf: New file.
7784         * modules/unistdio/u16-vsprintf: New file.
7785         * modules/unistdio/u16-u16-asnprintf: New file.
7786         * modules/unistdio/u16-u16-asprintf: New file.
7787         * modules/unistdio/u16-u16-snprintf: New file.
7788         * modules/unistdio/u16-u16-sprintf: New file.
7789         * modules/unistdio/u16-u16-vasnprintf: New file.
7790         * modules/unistdio/u16-u16-vasprintf: New file.
7791         * modules/unistdio/u16-u16-vsnprintf: New file.
7792         * modules/unistdio/u16-u16-vsprintf: New file.
7793         * modules/unistdio/u32-asnprintf: New file.
7794         * modules/unistdio/u32-asprintf: New file.
7795         * modules/unistdio/u32-printf-parse: New file.
7796         * modules/unistdio/u32-snprintf: New file.
7797         * modules/unistdio/u32-sprintf: New file.
7798         * modules/unistdio/u32-vasnprintf: New file.
7799         * modules/unistdio/u32-vasprintf: New file.
7800         * modules/unistdio/u32-vsnprintf: New file.
7801         * modules/unistdio/u32-vsprintf: New file.
7802         * modules/unistdio/u32-u32-asnprintf: New file.
7803         * modules/unistdio/u32-u32-asprintf: New file.
7804         * modules/unistdio/u32-u32-snprintf: New file.
7805         * modules/unistdio/u32-u32-sprintf: New file.
7806         * modules/unistdio/u32-u32-vasnprintf: New file.
7807         * modules/unistdio/u32-u32-vasprintf: New file.
7808         * modules/unistdio/u32-u32-vsnprintf: New file.
7809         * modules/unistdio/u32-u32-vsprintf: New file.
7810         * modules/unistdio/ulc-asnprintf-tests: New file.
7811         * modules/unistdio/ulc-vasnprintf-tests: New file.
7812         * modules/unistdio/ulc-vasprintf-tests: New file.
7813         * modules/unistdio/ulc-vsnprintf-tests: New file.
7814         * modules/unistdio/ulc-vsprintf-tests: New file.
7815         * modules/unistdio/u8-asnprintf-tests: New file.
7816         * modules/unistdio/u8-vasnprintf-tests: New file.
7817         * modules/unistdio/u8-vasprintf-tests: New file.
7818         * modules/unistdio/u8-vsnprintf-tests: New file.
7819         * modules/unistdio/u8-vsprintf-tests: New file.
7820         * modules/unistdio/u16-asnprintf-tests: New file.
7821         * modules/unistdio/u16-vasnprintf-tests: New file.
7822         * modules/unistdio/u16-vasprintf-tests: New file.
7823         * modules/unistdio/u16-vsnprintf-tests: New file.
7824         * modules/unistdio/u16-vsprintf-tests: New file.
7825         * modules/unistdio/u32-asnprintf-tests: New file.
7826         * modules/unistdio/u32-vasnprintf-tests: New file.
7827         * modules/unistdio/u32-vasprintf-tests: New file.
7828         * modules/unistdio/u32-vsnprintf-tests: New file.
7829         * modules/unistdio/u32-vsprintf-tests: New file.
7830         * MODULES.html.sh (Unicode string functions): Add the new modules.
7831
7832 2007-07-01  Bruno Haible  <bruno@clisp.org>
7833
7834         * lib/sprintf.c (sprintf): Limit the available length estimation,
7835         to avoid address wraparound.
7836         * lib/vsprintf.c (vsprintf): Likewise.
7837         * modules/sprintf-posix (Dependencies): Add stdint.
7838         * modules/vsprintf-posix (Dependencies): Likewise.
7839
7840 2007-07-01  Bruno Haible  <bruno@clisp.org>
7841
7842         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
7843         Windows PATH as well. Conservative double-quoting. Comments.
7844
7845 2007-07-01  Bruno Haible  <bruno@clisp.org>
7846             Eric Blake  <ebb9@byu.net>
7847             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7848
7849         * gnulib-tool (self_abspathname): Fix algorithm to cope with
7850         empty components in $PATH, denoting '.'.
7851
7852 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7853
7854         * gnulib-tool: Fix indentation.
7855         (func_create_megatestdir): Likewise.
7856         Report by Bruno Haible.
7857
7858 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7859
7860         Sync from Automake.
7861         * build-aux/gnupload: Fix shell portability issues with for loops.
7862         Report by Karl Berry.
7863
7864 2007-06-29  Simon Josefsson  <simon@josefsson.org>
7865
7866         * build-aux/maint.mk (POURL): Use translationproject.org.
7867
7868 2007-06-27  Simon Josefsson  <simon@josefsson.org>
7869             Bruno Haible  <bruno@clisp.org>
7870
7871         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
7872         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
7873         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
7874         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
7875         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
7876
7877 2007-06-27  Bruno Haible  <bruno@clisp.org>
7878
7879         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
7880         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
7881
7882 2007-06-26  Karl Berry  <karl@gnu.org>
7883
7884         * MODULES.html.sh: remove xreadlink-with-size.
7885
7886 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
7887
7888         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
7889         method that I hope also handles the double-include problem noted
7890         by Bruno Haible in
7891         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
7892
7893 2007-06-23  Bruno Haible  <bruno@clisp.org>
7894
7895         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
7896         Don't let the 'mostlyclean' target fail if the last subdirectory could
7897         not be removed.
7898         Reported by Karl Berry.
7899
7900 2007-06-23  Bruno Haible  <bruno@clisp.org>
7901
7902         * gnulib-tool (echo): Add a speedier workaround for ksh.
7903         * tests/test-echo.sh: Likewise.
7904
7905 2007-06-23  Bruno Haible  <bruno@clisp.org>
7906
7907         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
7908         * tests/test-echo.sh: Likewise.
7909
7910 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7911
7912         * gnulib-tool (IFS): Initialize early, so we don't set it to
7913         empty later.
7914         (self_abspathname): Rewrite algorithm to set it, reindent.
7915         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
7916         (func_create_megatestdir): Merge some sed scripts.
7917
7918 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
7919
7920         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
7921         exposed by Sun Studio 11 cc on Solaris 8.
7922
7923 2007-06-22  Bruno Haible  <bruno@clisp.org>
7924
7925         * gnulib-tool (echo): Ensure the echo primitive does not interpret
7926         backslashes.
7927         * tests/test-echo.sh: New file.
7928
7929 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7930
7931         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
7932         simplify `sed_replace_build_aux' scripts, they are portable but
7933         echoing them with `echo' is not.
7934         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
7935
7936 2007-06-21  Karl Berry  <karl@gnu.org>
7937
7938         * config/srclist.txt: guess we can't handle the licenses via
7939         srclist at the moment.
7940
7941 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
7942
7943         * MODULES.html.sh: Add include_next.
7944         * modules/include_next: New file.
7945
7946 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
7947
7948         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
7949         INCLUDE_NEXT.
7950         (gl_CHECK_NEXT_HEADERS): New macro.
7951         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
7952         the obsolescent gl_ABSOLUTE_HEADER.
7953         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
7954         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
7955         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
7956         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
7957         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
7958         * m4/math_h.m4 (gl_MATH_H): Likewise.
7959         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
7960         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
7961         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
7962         * m4/stdint.m4 (gl_STDINT_H): Likewise.
7963         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
7964         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
7965         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
7966         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
7967         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
7968         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
7969         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
7970         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
7971         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
7972         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
7973         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
7974         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
7975         * m4/inttypes.m4 (gl_INTTYPES_H): Define
7976         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
7977         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
7978         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
7979         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
7980         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
7981         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
7982         * lib/float_.h: Likewise.
7983         * lib/inttypes_.h: Likewise.
7984         * lib/math_.h: Likewise.
7985         * lib/search_.h: Likewise.
7986         * lib/signal_.h: Likewise.
7987         * lib/stdint_.h: Likewise.
7988         * lib/stdio_.h: Likewise.
7989         * lib/stdlib_.h: Likewise.
7990         * lib/string_.h: Likewise.
7991         * lib/sys_stat_.h: Likewise.
7992         * lib/sys_time_.h: Likewise.
7993         * lib/time_.h: Likewise.
7994         * lib/unistd_.h: Likewise.
7995         * lib/wchar_.h: Likewise.
7996         * lib/wctype_.h: Likewise.
7997         * lib/dirent_.h: Likewise.
7998         * lib/iconv_.h: Likewise.
7999         * lib/locale_.h: Likewise.
8000         * lib/netinet_in_.h: Likewise.
8001         * lib/sys_select_.h: Likewise.
8002         * lib/sys_socket_.h: Likewise.
8003         * lib/sysexits_.h: Likewise.
8004         * modules/fcntl (Depends-on): Depend on include_next, not
8005         absolute_header.
8006         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
8007         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
8008         * modules/fchdir: Likewise.
8009         * modules/float: Likewise.
8010         * modules/iconv_open: Likewise.
8011         * modules/inttypes: Likewise.
8012         * modules/locale: Likewise.
8013         * modules/math: Likewise.
8014         * modules/netinet_in: Likewise.
8015         * modules/search: Likewise.
8016         * modules/signal: Likewise.
8017         * modules/stdint: Likewise.
8018         * modules/stdio: Likewise.
8019         * modules/stdlib: Likewise.
8020         * modules/string: Likewise.
8021         * modules/sys_select: Likewise.
8022         * modules/sys_socket: Likewise.
8023         * modules/sys_stat: Likewise.
8024         * modules/sys_time: Likewise.
8025         * modules/sysexits: Likewise.
8026         * modules/time: Likewise.
8027         * modules/unistd: Likewise.
8028         * modules/wchar: Likewise.
8029         * modules/wctype: Likewise.
8030         * modules/sys_stat: Change maintainer to "all".
8031         * modules/unistd: Likewise.
8032
8033 2007-06-20  Karl Berry  <karl@gnu.org>
8034
8035         * config/srclist.txt: track www changes in license files.
8036
8037 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
8038
8039         * build-aux/bootstrap: Remove stray dot.
8040         Make sure build_aux settings are honored when linking
8041         gnulib_extra_files.
8042
8043 2007-06-19  Eric Blake  <ebb9@byu.net>
8044
8045         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
8046         Allow compilation on cygwin.
8047
8048 2007-06-19  Jim Meyering  <jim@meyering.net>
8049
8050         xreadlink-with-size: Remove module.  No longer used.
8051         Ex-callers now use xreadlink or mreadlink-with-size.
8052         * modules/xreadlink-with-size: Remove module.
8053         * lib/xreadlink-with-size.c: Remove file.
8054         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
8055         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
8056         just before the function definition *is* accurate.
8057
8058         Eliminate one way canonicalize_filename_mode could exit.
8059         * lib/canonicalize.c (canonicalize_filename_mode):
8060         Use mreadlink_with_size, not xreadlink_with_size.
8061
8062 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
8063
8064         Detect porting problems to FreeBSD/arm, which has time_t wider than
8065         long int.  Original problem reported for GNU diff by Xin Li in
8066         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
8067         * modules/getdate (Depends-on): Add intprops, verify.
8068         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
8069         is an integer type no wider than long int.
8070
8071 2007-06-18  Jim Meyering  <jim@meyering.net>
8072
8073         New module: mreadlink-with-size.
8074         * MODULES.html.sh: Add mreadlink-with-size.
8075         * modules/mreadlink-with-size: New module
8076         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
8077         not xreadlink-with-size.
8078         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
8079
8080 2007-06-16  Bruno Haible  <bruno@clisp.org>
8081
8082         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
8083         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
8084         Reported by Gary V. Vaughan <gary@gnu.org>.
8085
8086 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
8087
8088         Revamp lchown so that it lives in unistd.h where it belongs.
8089         * lib/lchown.h: Remove.
8090         * lib/dirchownmod.c: Don't include lib/lchown.h.
8091         * lib/fchownat.c: Likewise.
8092         * lib/openat.c: Likewise.
8093         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
8094         does not follow symlinks.
8095         (EOPNOTSUPP): Define if not defined.
8096         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
8097         is defined to 0.
8098         (lchown): New decl.
8099         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
8100         Do not check for lchown decl.
8101         Set REPLACE_LCHOWN.
8102         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
8103         REPLACE_LCHOWN.
8104         * modules/chown: Make it clear it follows symlinks.
8105         * modules/lchown: Make it clear it doesn't follow symlinks.
8106         (Files): Remove lib/lchown.h
8107         (Depends-on): Add unistd.
8108         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
8109         (Include): Include <unistd.h>, not "lchown.h".
8110         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
8111         REPLACE_LCHOWN.
8112
8113 2007-06-15  Jim Meyering  <jim@meyering.net>
8114
8115         Change license (GPL to LGPL) of fsusage and dependents.
8116         * modules/fsusage (License): Change to LGPL.
8117         * modules/full-read (License): Likewise.
8118         * modules/full-write (License): Likewise.
8119         * modules/safe-read (License): Likewise.
8120         * modules/safe-write (License): Likewise.
8121
8122 2007-06-14  Ben Pfaff  <blp@gnu.org>
8123
8124         Missing part of allocsa -> malloca transition.
8125         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
8126         gl_MALLOCA.
8127
8128 2007-06-12  Bruno Haible  <bruno@clisp.org>
8129
8130         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
8131         to ia64, x86_64, i386.
8132         Reported by Eric Blake.
8133
8134 2007-06-12  Bruno Haible  <bruno@clisp.org>
8135
8136         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
8137         cross-compiling to x86_64.
8138
8139 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
8140
8141         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
8142         glitch reported by Ralf Wildenhues in
8143         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
8144
8145         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
8146         Vin Shelton.
8147
8148 2007-06-11  Bruno Haible  <bruno@clisp.org>
8149
8150         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
8151         replacement string.
8152         Reported by Eric Blake.
8153
8154 2007-06-10  Bruno Haible  <bruno@clisp.org>
8155
8156         Prepare vasnprintf code for use with Unicode strings.
8157         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
8158         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
8159         TYPE_U32_STRING.
8160         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
8161         a_u32_string variants.
8162         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
8163         * lib/printf-args.c: Don't include config.h and the specification
8164         header if PRINTF_FETCHARGS is already defined.
8165         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
8166         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
8167         TYPE_U16_STRING, TYPE_U32_STRING.
8168         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
8169         u16_directive, u16_directives, u32_directive, u32_directives): New
8170         types.
8171         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
8172         New declarations.
8173         * lib/printf-parse.c: Don't include config.h and the specification
8174         header if PRINTF_PARSE is already defined. Eliminate the set of
8175         parameters for WIDE_CHAR_VERSION; the user of this file must provide
8176         them now. Include c-ctype.h.
8177         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
8178         directive and CHAR_T_ONLY_ASCII.
8179         * lib/vasnprintf.c: Don't include config.h and the specification header
8180         if VASNPRINTF is already defined.
8181         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
8182         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
8183         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
8184         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
8185         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
8186         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
8187         code accordingly.
8188         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
8189         pad_ourselves also in this case, with the 'c' and 's' directives, and
8190         with a different notion of "width".
8191         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
8192
8193 2007-06-10  Bruno Haible  <bruno@clisp.org>
8194
8195         * modules/unistr/u32-mbsnlen: New file.
8196         * lib/unistr/u32-mbsnlen.c: New file.
8197
8198         * modules/unistr/u16-mbsnlen: New file.
8199         * lib/unistr/u16-mbsnlen.c: New file.
8200
8201         * modules/unistr/u8-mbsnlen: New file.
8202         * lib/unistr/u8-mbsnlen.c: New file.
8203
8204         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
8205         declarations.
8206
8207 2007-06-10  Bruno Haible  <bruno@clisp.org>
8208
8209         * lib/string_.h (mbsnlen): New declaration.
8210         * lib/mbsnlen.c: New file.
8211         * m4/mbsnlen.m4: New file.
8212         * modules/mbsnlen: New file.
8213         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
8214         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
8215         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
8216
8217 2007-06-10  Bruno Haible  <bruno@clisp.org>
8218
8219         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
8220
8221 2007-06-10  Bruno Haible  <bruno@clisp.org>
8222
8223         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
8224         * lib/mbuiter.h: Likewise.
8225
8226 2007-06-10  Bruno Haible  <bruno@clisp.org>
8227
8228         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
8229         declaration.
8230
8231 2007-06-10  Karl Berry  <karl@gnu.org>
8232
8233         * config/srclist.txt: remove gettext entries, Bruno prefers
8234         to update individually.
8235
8236 2007-06-10  Bruno Haible  <bruno@clisp.org>
8237
8238         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
8239         'maxlen'. Ensure only length + width bytes are allocated, not
8240         length + 1 + width.
8241
8242 2007-06-09  Bruno Haible  <bruno@clisp.org>
8243
8244         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
8245         (CHAR_T): Remove macro.
8246         (VASNPRINTF): Update.
8247
8248 2007-06-09  Bruno Haible  <bruno@clisp.org>
8249
8250         * MODULES.html.sh (Unicode string functions): Add the new modules.
8251
8252         * modules/uniconv/u32-conv-to-enc: New file.
8253         * lib/uniconv/u32-conv-to-enc.c: New file.
8254         * modules/uniconv/u32-conv-to-enc-tests: New file.
8255         * tests/uniconv/test-u32-conv-to-enc.c: New file.
8256
8257         * modules/uniconv/u16-conv-to-enc: New file.
8258         * lib/uniconv/u16-conv-to-enc.c: New file.
8259         * lib/uniconv/u-conv-to-enc.h: New file.
8260         * modules/uniconv/u16-conv-to-enc-tests: New file.
8261         * tests/uniconv/test-u16-conv-to-enc.c: New file.
8262
8263         * modules/uniconv/u8-conv-to-enc: New file.
8264         * lib/uniconv/u8-conv-to-enc.c: New file.
8265         * modules/uniconv/u8-conv-to-enc-tests: New file.
8266         * tests/uniconv/test-u8-conv-to-enc.c: New file.
8267
8268         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
8269         u32_conv_to_encoding): New declarations.
8270
8271 2007-06-09  Bruno Haible  <bruno@clisp.org>
8272
8273         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
8274
8275 2007-06-09  Bruno Haible  <bruno@clisp.org>
8276
8277         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
8278         * modules/malloca: Renamed from modules/allocsa, updated.
8279         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
8280         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
8281         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
8282         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
8283         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
8284         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
8285         * modules/xmalloca: Renamed from modules/xallocsa, updated.
8286         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
8287         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
8288         * modules/c-strcasestr (Depends-on): Update.
8289         * lib/c-strcasestr.c: Update.
8290         * modules/c-strstr (Depends-on): Update.
8291         * lib/c-strstr.c: Update.
8292         * modules/canonicalize-lgpl (Depends-on): Update.
8293         * lib/canonicalize-lgpl.c: Update.
8294         * modules/clean-temp (Depends-on): Update.
8295         * lib/clean-temp.c: Update.
8296         * modules/csharpcomp (Depends-on): Update.
8297         * lib/csharpcomp.c: Update.
8298         * modules/csharpexec (Depends-on): Update.
8299         * lib/csharpexec.c: Update.
8300         * modules/javacomp (Depends-on): Update.
8301         * lib/javacomp.c: Update.
8302         * modules/javaexec (Depends-on): Update.
8303         * lib/javaexec.c: Update.
8304         * modules/mbscasestr (Depends-on): Update.
8305         * lib/mbscasestr.c: Update.
8306         * modules/mbsstr (Depends-on): Update.
8307         * lib/mbsstr.c: Update.
8308         * modules/setenv (Depends-on): Update.
8309         * lib/setenv.c: Update.
8310         * modules/strcasestr (Depends-on): Update.
8311         * lib/strcasestr.c: Update.
8312         * modules/striconveha (Depends-on): Update.
8313         * lib/striconveha.c: Update.
8314         * modules/relocatable-prog-wrapper (Files): Update.
8315         * lib/relocwrapper.c: Update.
8316         * build-aux/install-reloc: Update.
8317         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
8318
8319 2007-06-08  Bruno Haible  <bruno@clisp.org>
8320
8321         Port to uClibc.
8322         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
8323         * lib/fpurge.c (fpurge): Likewise.
8324         * lib/freading.c (freading): Likewise.
8325         * lib/fseeko.c (rpl_fseeko): Likewise.
8326         * lib/fseterr.c (fseterr): Likewise.
8327         * lib/fwriting.c (fwriting): Likewise.
8328         * tests/test-fflush.c (main): Avoid a failure on uClibc.
8329
8330 2007-06-08  Bruno Haible  <bruno@clisp.org>
8331
8332         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
8333         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
8334         * modules/gettext (Files): Add m4/intlmacosx.m4.
8335
8336 2007-06-07  Bruno Haible  <bruno@clisp.org>
8337
8338         * modules/localename-tests: New file.
8339         * tests/test-localename.c: New file.
8340
8341         New module 'localename'.
8342         * lib/localename.h: New file.
8343         * lib/localename.c: New file, from GNU gettext.
8344         * m4/localename.m4: New file.
8345         * modules/localename: New file.
8346
8347 2007-06-07  Bruno Haible  <bruno@clisp.org>
8348
8349         Work around the lack of <wchar.h> on some builds of uClibc.
8350         * doc/headers/wchar.texi: Update.
8351         * lib/wchar_.h: Include <wchar.h> only if it exists.
8352         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
8353         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
8354         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
8355         doesn't exist.
8356         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
8357         * modules/mbfile (Depends-on): Add wchar.
8358         * modules/mbiter (Depends-on): Likewise.
8359         * modules/mbuiter (Depends-on): Likewise.
8360         Reported by Simon Josefsson.
8361
8362 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
8363
8364         Work around problem reported by Steven M. Schweda in
8365         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
8366         Tru64 5.1B with the Compaq compiler environment installed declares
8367         an 'isblank' function but does not define it in the C library.
8368         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
8369         * lib/regex_internal.h (isblank): Likewise.
8370         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
8371         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
8372
8373 2007-06-05  Bruno Haible  <bruno@clisp.org>
8374
8375         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
8376         ia64.
8377         * modules/printf-safe: New file.
8378         * modules/fprintf-posix (Depends-on): Add printf-safe.
8379         * modules/printf-posix (Depends-on): Likewise.
8380         * modules/snprintf-posix (Depends-on): Likewise.
8381         * modules/sprintf-posix (Depends-on): Likewise.
8382         * modules/vasnprintf-posix (Depends-on): Likewise.
8383         * modules/vasprintf-posix (Depends-on): Likewise.
8384         * modules/vfprintf-posix (Depends-on): Likewise.
8385         * modules/vprintf-posix (Depends-on): Likewise.
8386         * modules/vsnprintf-posix (Depends-on): Likewise.
8387         * modules/vsprintf-posix (Depends-on): Likewise.
8388         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
8389         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
8390         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
8391         "no" on i386, x86_64, ia64.
8392         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
8393         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
8394         on i386, x86_64, ia64.
8395         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
8396         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
8397         on i386, x86_64, ia64.
8398         * tests/test-vasnprintf-posix.c: Include float.h.
8399         (LDBL80_WORDS): New macro.
8400         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
8401         on i386, x86_64, ia64.
8402         * tests/test-vasprintf-posix.c: Include float.h.
8403         (LDBL80_WORDS): New macro.
8404         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
8405         on i386, x86_64, ia64.
8406         * tests/test-snprintf-posix.c: Include float.h.
8407         * tests/test-sprintf-posix.c: Likewise.
8408         * tests/test-vsnprintf-posix.c: Likewise.
8409         * tests/test-vsprintf-posix.c: Likewise.
8410
8411 2007-06-05  Bruno Haible  <bruno@clisp.org>
8412
8413         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
8414         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
8415         non-IEEE numbers on i386, x86_64, ia64.
8416         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
8417         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
8418         * tests/test-isnanl.h: Include float.h.
8419         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
8420
8421 2007-06-05  Bruno Haible  <bruno@clisp.org>
8422
8423         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
8424         also the %a / %A. Handle the %a / %A code before this extra handling.
8425
8426 2007-06-05  Bruno Haible  <bruno@clisp.org>
8427
8428         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
8429         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
8430
8431 2007-06-05  Bruno Haible  <bruno@clisp.org>
8432
8433         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
8434         typo in variable name.
8435
8436 2007-06-05  Eric Blake  <ebb9@byu.net>
8437
8438         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
8439         Reported by Simon Josefsson.
8440
8441 2007-06-04  Bruno Haible  <bruno@clisp.org>
8442
8443         Avoid test failures on some PowerPC platforms.
8444         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
8445         Define differently for PowerPC.
8446         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
8447         Reported by Gary V. Vaughan <gary@gnu.org>.
8448
8449 2007-06-02  Bruno Haible  <bruno@clisp.org>
8450
8451         Fix test-stdint failure on FreeBSD/ia64.
8452         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
8453         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
8454         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
8455         * doc/headers/stdint.texi: Update.
8456
8457 2007-06-01  Bruno Haible  <bruno@clisp.org>
8458
8459         * tests/test-binary-io.c (main): Pass a third argument to open().
8460         Reported by Gary V. Vaughan <gary@gnu.org>.
8461
8462 2007-06-01  Bruno Haible  <bruno@clisp.org>
8463
8464         * doc/functions/frexpl.texi: Update for mingw.
8465
8466 2007-06-01  Bruno Haible  <bruno@clisp.org>
8467
8468         * tests/test-lseek.c (main): Disable test of errno for invalid third
8469         argument.
8470         * doc/functions/lseek.texi: Update.
8471         Reported by Gary V. Vaughan <gary@gnu.org>.
8472
8473 2007-05-28  Bruno Haible  <bruno@clisp.org>
8474
8475         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
8476
8477 2007-05-31  Eric Blake  <ebb9@byu.net>
8478
8479         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
8480         cross compiling.
8481
8482 2007-05-30  Eric Blake  <ebb9@byu.net>
8483         and Bruno Haible  <bruno@clisp.org>
8484
8485         Work around mingw test failures exposed by m4-1.4.9b.
8486         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
8487         * tests/test-unistd.c: Disable uid_t and git_t tests for the
8488         moment.
8489
8490 2007-05-30  Bruno Haible  <bruno@clisp.org>
8491
8492         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
8493         assuming that they are closed. Needed on HP-UX 11.
8494
8495 2007-05-29  Bruno Haible  <bruno@clisp.org>
8496
8497         Fix a problem with #include_next.
8498         * lib/dirent_.h: Split the double-inclusion guard.
8499         * lib/fcntl_.h: Likewise.
8500         * lib/float_.h: Likewise.
8501         * lib/iconv_.h: Likewise.
8502         * lib/inttypes_.h: Likewise.
8503         * lib/locale_.h: Likewise.
8504         * lib/math_.h: Likewise.
8505         * lib/netinet_in_.h: Likewise.
8506         * lib/search_.h: Likewise.
8507         * lib/signal_.h: Likewise.
8508         * lib/stdint_.h: Likewise.
8509         * lib/stdio_.h: Likewise.
8510         * lib/stdlib_.h: Likewise.
8511         * lib/string_.h: Likewise.
8512         * lib/sys_select_.h: Likewise.
8513         * lib/sys_socket_.h: Likewise.
8514         * lib/sys_stat_.h: Likewise.
8515         * lib/sys_time_.h: Likewise.
8516         * lib/sysexits_.h: Likewise.
8517         * lib/time_.h: Likewise.
8518         * lib/unistd_.h: Likewise.
8519         * lib/wchar_.h: Likewise.
8520         * lib/wctype_.h: Likewise.
8521
8522 2007-05-29  Bruno Haible  <bruno@clisp.org>
8523
8524         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
8525         for the moment.
8526
8527 2007-05-29  Bruno Haible  <bruno@clisp.org>
8528
8529         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
8530         invocation.
8531         Reported by Eric Blake.
8532
8533 2007-05-29  Bruno Haible  <bruno@clisp.org>
8534
8535         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
8536         compiling case.
8537
8538 2007-05-29  Eric Blake  <ebb9@byu.net>
8539             Bruno Haible  <bruno@clisp.org>
8540
8541         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
8542         cross compiles.
8543
8544 2007-05-28  Eric Blake  <ebb9@byu.net>
8545
8546         * modules/closein-tests (test_closein_LDADD): Support test on
8547         cygwin with libtool.
8548
8549 2007-05-28  Bruno Haible  <bruno@clisp.org>
8550
8551         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
8552         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
8553         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
8554         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
8555         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
8556         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
8557         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
8558         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
8559         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
8560
8561 2007-05-28  Eric Blake  <ebb9@byu.net>
8562
8563         Unconditionally include <config.h> in unit tests.
8564         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
8565         * tests/test-allocsa.c, tests/test-arcfour.c,
8566         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
8567         tests/test-array_list.c, tests/test-array_oset.c,
8568         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
8569         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
8570         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
8571         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
8572         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
8573         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
8574         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
8575         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
8576         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
8577         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
8578         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
8579         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
8580         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
8581         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
8582         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
8583         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
8584         test-md5.c, test-memmem.c, test-printf-posix.c,
8585         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
8586         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
8587         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
8588         test-strcasestr.c, test-striconv.c, test-striconveh.c,
8589         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
8590         test-vasnprintf-posix2.c, test-vasnprintf.c,
8591         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
8592         test-vfprintf-posix.c, test-vprintf-posix.c,
8593         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
8594         test-xvasprintf.c: Likewise.
8595
8596 2007-05-28  Bruno Haible  <bruno@clisp.org>
8597
8598         * gnulib-tool (func_import): Remember the --with-tests command-line
8599         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
8600         Reported by Eric Blake.
8601
8602 2007-05-28  Bruno Haible  <bruno@clisp.org>
8603
8604         * modules/ftell-tests: New file.
8605         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
8606         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
8607
8608         * lib/ftell.c: New file.
8609         * modules/ftell: New file.
8610         * m4/ftell.m4: New file.
8611         * doc/functions/ftell.texi: Update.
8612         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
8613         REPLACE_FTELL.
8614         * lib/stdio_.h (rpl_ftell): New declaration.
8615         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
8616         REPLACE_FTELL.
8617
8618 2007-05-28  Eric Blake  <ebb9@byu.net>
8619
8620         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
8621
8622 2007-05-28  Bruno Haible  <bruno@clisp.org>
8623
8624         * modules/fseek-tests: New file.
8625         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
8626         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
8627
8628         * lib/fseek.c: New file.
8629         * modules/fseek: New file.
8630         * m4/fseek.m4: New file.
8631         * doc/functions/fseek.texi: Update.
8632         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
8633         REPLACE_FSEEK.
8634         * lib/stdio_.h (rpl_fseek): New declaration.
8635         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
8636         REPLACE_FSEEK.
8637
8638 2007-05-28  Bruno Haible  <bruno@clisp.org>
8639
8640         * lib/stdio_.h (fflush): More comments.
8641
8642 2007-05-28  Bruno Haible  <bruno@clisp.org>
8643
8644         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
8645         runtime test.
8646
8647 2007-05-28  Eric Blake  <ebb9@byu.net>
8648
8649         Improve lseek module.
8650         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
8651         * lib/unistd_.h (lseek): Scale back link warning message.
8652         * tests/test-lseek.c: Beef up test.
8653         * tests/test-lseek.sh: Exercise more facets of lseek.
8654         Reported by Bruno Haible.
8655
8656 2007-05-28  Bruno Haible  <bruno@clisp.org>
8657
8658         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
8659         to define.
8660
8661 2007-05-27  Bruno Haible  <bruno@clisp.org>
8662
8663         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
8664
8665 2007-05-27  Bruno Haible  <bruno@clisp.org>
8666
8667         * modules/openmp: New file.
8668         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
8669         Noah Misch.
8670
8671 2007-05-26  Bruno Haible  <bruno@clisp.org>
8672
8673         * modules/chdir-long (Depends-on): Add fchdir.
8674         * modules/chdir-safer (Depends-on): Likewise.
8675         * modules/fts (Depends-on): Likewise.
8676         * modules/fts-lgpl (Depends-on): Likewise.
8677         * modules/openat (Depends-on): Likewise.
8678         * modules/savewd (Depends-on): Likewise.
8679
8680 2007-05-24  Eric Blake  <ebb9@byu.net>
8681
8682         Fix lseek on mingw.
8683         * modules/lseek: New module.
8684         * m4/lseek.m4: New file.
8685         * lib/lseek.c: New file.
8686         * modules/lseek-tests: New file.
8687         * tests/test-lseek.c: New file.
8688         * tests/test-lseek.sh: New file.
8689         * MODULES.html.sh: Document lseek module.
8690         * modules/fflush (Depends-on): Add lseek, fseeko.
8691         * modules/fseeko (Depends-on): Likewise.
8692         * modules/ftello (Depends-on): Likewise.
8693         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
8694         broken.
8695         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
8696         broken.
8697         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
8698         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
8699         * lib/ftello.c (rpl_ftello): Likewise.
8700         * tests/test-fseeko.c (main): Test this.
8701         * tests/test-fseeko.sh: Likewise.
8702         * tests/test-ftello.c (main): Likewise.
8703         * tests/test-ftello.sh: Likewise.
8704         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
8705         implies replacing fseek.
8706         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
8707         HAVE_FTELLO.
8708         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
8709         * modules/unistd (Makefile.am): Likewise.
8710         * lib/unistd_.h (lseek): Declare a replacement.
8711         * doc/functions/lseek.texi (lseek): Document this fix.
8712         * doc/functions/fseek.texi (fseek): Likewise.
8713         * doc/functions/ftell.texi (ftell): Likewise.
8714
8715 2007-05-24  Bruno Haible  <bruno@clisp.org>
8716
8717         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
8718         in the printed representation of a NaN.
8719         * tests/test-vasprintf-posix.c (test_function): Likewise.
8720         * tests/test-snprintf-posix.h (test_function): Likewise.
8721         * tests/test-sprintf-posix.h (test_function): Likewise.
8722         Reported by Eric Blake.
8723
8724 2007-05-23  Eric Blake  <ebb9@byu.net>
8725
8726         Fix fseeko/ftello on cygwin 1.5.24.
8727         * doc/functions/fseeko.texi (fseeko): Document the fix.
8728         * doc/functions/ftello.texi (ftello): Document the fix.
8729         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
8730         * doc/functions/stdout.text (stdout): New file.
8731         * doc/functions/stderr.text (stderr): New file.
8732         * doc/gnulib.texi (Function Substitutes): Use new files.
8733         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
8734         prior to 1.7.0.
8735         * tests/test-ftello.c (main): Likewise for ftello.
8736         * tests/test-fseeko.sh: New file.
8737         * tests/test-ftello.sh: New file.
8738         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
8739         with seekable stdin.
8740         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
8741         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
8742         (gl_REPLACE_FSEEKO): New macro.
8743         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
8744         * modules/fseeko (Files): Distribute fseeko.c.
8745         * modules/ftello (Files): Distribute ftello.c.
8746         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
8747         mode.
8748         * lib/ftello.c (rpl_ftello): New file.
8749         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
8750         fseeko, ftello.
8751         (gl_STDIN_LARGE_OFFSET): New macro.
8752         * modules/stdio (Makefile.am): Perform the replacement.
8753         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
8754
8755 2007-05-23  Bruno Haible  <bruno@clisp.org>
8756
8757         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
8758         GNULIB_POSIXCHECK is defined.
8759
8760 2007-05-21  Bruno Haible  <bruno@clisp.org>
8761
8762         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
8763         Check also the output for NaN arguments. When cross-compiling, guess
8764         no on IRIX.
8765         * lib/vasnprintf.c: Update comments.
8766         * tests/test-vasnprintf-posix.c (strisnan): New function.
8767         (test_function): Use it.
8768         * tests/test-vasprintf-posix.c (strisnan): New function.
8769         (test_function): Use it.
8770         * tests/test-snprintf-posix.h (strisnan): New function.
8771         (test_function): Use it.
8772         * tests/test-sprintf-posix.h (strisnan): New function.
8773         (test_function): Use it.
8774         Reported by Eric Blake.
8775
8776 2007-05-20  Bruno Haible  <bruno@clisp.org>
8777
8778         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
8779         numbers that fails on BeOS.
8780         * doc/functions/frexpl.texi: Update.
8781
8782 2007-05-20  Jim Meyering  <jim@meyering.net>
8783
8784         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
8785         forced upon us by glibc-2.6.
8786
8787 2007-05-20  Bruno Haible  <bruno@clisp.org>
8788
8789         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
8790         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
8791         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
8792         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
8793         NEED_PRINTF_INFINITE.
8794         (is_infinitel): New function.
8795         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
8796         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
8797         gl_PREREQ_VASNPRINTF_INFINITE.
8798         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
8799         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
8800         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
8801         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
8802         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
8803         gl_PREREQ_VASNPRINTF_INFINITE.
8804         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
8805         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
8806         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
8807         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
8808         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
8809         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
8810         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
8811         * doc/functions/fprintf.texi: Update.
8812         * doc/functions/printf.texi: Update.
8813         * doc/functions/snprintf.texi: Update.
8814         * doc/functions/sprintf.texi: Update.
8815         * doc/functions/vfprintf.texi: Update.
8816         * doc/functions/vprintf.texi: Update.
8817         * doc/functions/vsnprintf.texi: Update.
8818         * doc/functions/vsprintf.texi: Update.
8819
8820 2007-05-20  Bruno Haible  <bruno@clisp.org>
8821
8822         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
8823         was not found in libc.
8824         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
8825
8826 2007-05-20  Bruno Haible  <bruno@clisp.org>
8827
8828         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
8829         printed as "-nan" instead of "nan".
8830         * tests/test-vasprintf-posix.c (test_function): Likewise.
8831         * tests/test-snprintf-posix.h (test_function): Likewise.
8832         * tests/test-sprintf-posix.h (test_function): Likewise.
8833         Needed for HP-UX 11.
8834
8835 2007-05-20  Jim Meyering  <jim@meyering.net>
8836
8837         Fix buggy test for the fchownat-deref bug.
8838         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
8839         symlink required for the run-test.  Without it, this test would
8840         always declare that fchownat doesn't work, and client code would
8841         unnecessarily use the replacement function with fixed libc.
8842         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
8843         Reported by Greg Schafer.
8844
8845 2007-05-19  Bruno Haible  <bruno@clisp.org>
8846
8847         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
8848         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
8849         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
8850         Needed for IRIX 6.5 and Solaris 2.5.1.
8851
8852 2007-05-19  Bruno Haible  <bruno@clisp.org>
8853
8854         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
8855         (test_function): Skip tests involving -0.0 on platforms where
8856         -0.0 = 0.0.
8857         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
8858         (test_function): Skip tests involving -0.0 on platforms where
8859         -0.0 = 0.0.
8860         * tests/test-snprintf-posix.h (have_minus_zero): New function.
8861         (test_function): Skip tests involving -0.0 on platforms where
8862         -0.0 = 0.0.
8863         * tests/test-sprintf-posix.h (have_minus_zero): New function.
8864         (test_function): Skip tests involving -0.0 on platforms where
8865         -0.0 = 0.0.
8866         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
8867         tests.
8868         * tests/test-printf-posix.h (test_function): Likewise.
8869         * tests/test-printf-posix.output: Remove all -0.0 related results.
8870         Needed for IRIX 6.5.
8871
8872 2007-05-19  Bruno Haible  <bruno@clisp.org>
8873
8874         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
8875         printed as "nan0x7fffffff" instead of "nan".
8876         * tests/test-vasprintf-posix.c (test_function): Likewise.
8877         * tests/test-snprintf-posix.h (test_function): Likewise.
8878         * tests/test-sprintf-posix.h (test_function): Likewise.
8879         * tests/test-fprintf-posix.h (NaN): Remove macro.
8880         (test_function): Remove all NaN related tests.
8881         * tests/test-printf-posix.h (NaN): Remove macro.
8882         (test_function): Remove all NaN related tests.
8883         * tests/test-printf-posix.output: Remove all NaN related results.
8884         Needed for IRIX 6.5.
8885
8886 2007-05-19  Bruno Haible  <bruno@clisp.org>
8887
8888         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
8889         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
8890
8891 2007-05-19  Bruno Haible  <bruno@clisp.org>
8892
8893         * lib/float_.h: New file.
8894         * m4/float_h.m4: New file.
8895         * modules/float: New file.
8896         * modules/isnanl (Dependencies): Add float.
8897         * modules/isnanl-nolibm (Dependencies): Likewise.
8898         * modules/mathl (Dependencies): Likewise.
8899         * modules/printf-frexpl (Dependencies): Likewise.
8900         * modules/signbit (Dependencies): Likewise.
8901         * modules/vasnprintf (Dependencies): Likewise.
8902         * doc/headers/float.texi: Update.
8903
8904 2007-05-19  Jim Meyering  <jim@meyering.net>
8905
8906         * lib/utimens.c (gl_futimens): Rename from futimens,
8907         now that glibc-2.6 declares futimens.
8908         * lib/utimens.h: Likewise.
8909
8910 2007-05-19  Bruno Haible  <bruno@clisp.org>
8911
8912         Avoid test failures on mingw.
8913         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
8914         * tests/test-printf-posix.sh: Likewise.
8915         * tests/test-vfprintf-posix.sh: Likewise.
8916         * tests/test-vprintf-posix.sh: Likewise.
8917
8918 2007-05-19  Bruno Haible  <bruno@clisp.org>
8919
8920         Fix *printf result for NaN, Inf, -0.0 on mingw.
8921         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
8922         * lib/vasnprintf.c: Include math.h and isnan.h.
8923         (is_infinite_or_zero): New function.
8924         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
8925         values in the %f, %F, %e, %E, %g, %G directives.
8926         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
8927         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
8928         gl_PRINTF_INFINITE and test its result. Invoke
8929         gl_PREREQ_VASNPRINTF_INFINITE.
8930         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
8931         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
8932         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
8933         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
8934         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
8935         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
8936         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
8937         * doc/functions/fprintf.texi: Update.
8938         * doc/functions/printf.texi: Update.
8939         * doc/functions/snprintf.texi: Update.
8940         * doc/functions/sprintf.texi: Update.
8941         * doc/functions/vfprintf.texi: Update.
8942         * doc/functions/vprintf.texi: Update.
8943         * doc/functions/vsnprintf.texi: Update.
8944         * doc/functions/vsprintf.texi: Update.
8945
8946 2007-05-19  Bruno Haible  <bruno@clisp.org>
8947
8948         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
8949         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
8950         Instead of multiplying with 10^k, set extra_zeroes to k.
8951         (scale10_round_long_double): Remove function.
8952
8953 2007-05-18  Bruno Haible  <bruno@clisp.org>
8954
8955         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
8956         introduced on 2007-05-06.
8957
8958 2007-05-18  Bruno Haible  <bruno@clisp.org>
8959
8960         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
8961         %g directives.
8962         * tests/test-vasprintf-posix.c (test_function): Likewise.
8963         * tests/test-snprintf-posix.h (test_function): Likewise.
8964         * tests/test-sprintf-posix.h (test_function): Likewise.
8965
8966 2007-05-18  Bruno Haible  <bruno@clisp.org>
8967
8968         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
8969         (strmatch): New function.
8970         (test_function): Test the %f directive on numbers of various exponents.
8971         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
8972         (strmatch): New function.
8973         (test_function): Test the %f directive on numbers of various exponents.
8974         * tests/test-snprintf-posix.h (strmatch): New function.
8975         (test_function): Test the %f directive on numbers of various exponents.
8976         * tests/test-sprintf-posix.h (strmatch): New function.
8977         (test_function): Test the %f directive on numbers of various exponents.
8978         * tests/test-snprintf-posix.c (SIZEOF): New macro.
8979         * tests/test-sprintf-posix.c (SIZEOF): New macro.
8980         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
8981         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
8982
8983 2007-05-18  Bruno Haible  <bruno@clisp.org>
8984
8985         Add support for 'long double' number output.
8986         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
8987         * lib/vasnprintf.c: Include math.h and float+.h.
8988         (mp_limb_t): New type.
8989         (GMP_LIMB_BITS): New macro.
8990         (mp_twolimb_t): New type.
8991         (GMP_TWOLIMB_BITS): New macro.
8992         (mpn_t): New type.
8993         (multiply, divide, convert_to_decimal, decode_long_double,
8994         scale10_round_long_double, scale10_round_decimal_long_double,
8995         floorlog10l): New functions.
8996         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
8997         for the %f, %F, %e, %E, %g, %G directives.
8998         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
8999         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
9000         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
9001         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
9002         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
9003         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
9004         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
9005         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
9006         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
9007         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
9008         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
9009         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
9010         * modules/snprintf-posix (Depends-on): Likewise.
9011         * modules/sprintf-posix (Depends-on): Likewise.
9012         * modules/vasnprintf-posix (Depends-on): Likewise.
9013         * modules/vasprintf-posix (Depends-on): Likewise.
9014         * modules/vfprintf-posix (Depends-on): Likewise.
9015         * modules/vsnprintf-posix (Depends-on): Likewise.
9016         * modules/vsprintf-posix (Depends-on): Likewise.
9017         * modules/vasnprintf (Files): Add lib/float+.h.
9018         * doc/functions/fprintf.texi: Update.
9019         * doc/functions/printf.texi: Update.
9020         * doc/functions/snprintf.texi: Update.
9021         * doc/functions/sprintf.texi: Update.
9022         * doc/functions/vfprintf.texi: Update.
9023         * doc/functions/vprintf.texi: Update.
9024         * doc/functions/vsnprintf.texi: Update.
9025         * doc/functions/vsprintf.texi: Update.
9026
9027 2007-05-18  Bruno Haible  <bruno@clisp.org>
9028
9029         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
9030
9031 2007-05-18  Bruno Haible  <bruno@clisp.org>
9032
9033         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
9034         for printing 64-bit integers. Needed for mingw.
9035
9036 2007-05-18  Bruno Haible  <bruno@clisp.org>
9037
9038         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
9039         gl_FUNC_FREXPL_WORKS.
9040         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
9041
9042 2007-05-18  Bruno Haible  <bruno@clisp.org>
9043
9044         * modules/frexpl-nolibm-tests: New file.
9045
9046         * modules/frexpl-nolibm: New file.
9047         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
9048
9049 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
9050
9051         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
9052         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
9053         GCC 4.2, which otherwise issues a lot of warnings.
9054         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
9055         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
9056         Likewise.
9057         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
9058         * modules/iconv_open (iconv.h): Likewise.
9059         * modules/locale (locale.h): Likewise.
9060         * modules/netinet_in (netinet/in.h): Likewise.
9061         * modules/sys_select (sys_select.h): Likewise.
9062         * modules/sys_socket (sys/socket.h): Likewise.
9063         * modules/sys_stat (sys/stat.h): Likewise.
9064         * modules/sysexits (sysexits.h): Likewise.
9065         * modules/unistd (unistd.h): Likewise.
9066
9067 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9068
9069         * modules/closein-tests (Makefile.am): Distribute
9070         `test-closein.sh'.
9071
9072 2007-05-17  Bruno Haible  <bruno@clisp.org>
9073
9074         * tests/test-printf-posix.output: Renamed from
9075         tests/test-fprintf-posix.out.
9076         * modules/fprintf-posix-tests: Update.
9077         * modules/printf-posix-tests: Update.
9078         * modules/vfprintf-posix-tests: Update.
9079         * modules/vprintf-posix-tests: Update.
9080         * tests/test-fprintf-posix.sh: Update.
9081         * tests/test-printf-posix.sh: Update.
9082         * tests/test-vfprintf-posix.sh: Update.
9083         * tests/test-vprintf-posix.sh: Update.
9084         Reported by Ralf Wildenhues.
9085
9086 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
9087
9088         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
9089         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
9090         GCC 4.2, which otherwise issues a lot of warnings.
9091         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
9092         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
9093         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
9094         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
9095         it should no longer be needed.
9096         * lib/string_.h: Likewise.
9097         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
9098         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
9099         * modules/inttypes (inttypes.h): Likewise.
9100         * modules/math (math.h): Likewise.
9101         * modules/search (search.h): Likewise.
9102         * modules/signal (signal.h): Likewise.
9103         * modules/stdint (stdint.h): Likewise.
9104         * modules/stdio (stdio.h): Likewise.
9105         * modules/stdlib (stdlib.h): Likewise.
9106         * modules/string (string.h): Likewise.
9107         * modules/sys_time (sys/time.h): Likewise.
9108         * modules/time (time.h): Likewise.
9109         * modules/wchar (wchar.h): Likewise.
9110         * modules/wctype (wtype.h): Likewise.
9111
9112 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
9113
9114         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
9115
9116 2007-05-13  Bruno Haible  <bruno@clisp.org>
9117
9118         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
9119         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
9120         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
9121         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
9122         (gl_PREREQ_STRTOK_R): Don't require it here.
9123
9124 2007-05-13  Bruno Haible  <bruno@clisp.org>
9125
9126         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
9127         when used in C++ mode.
9128
9129 2007-05-12  Bruno Haible  <bruno@clisp.org>
9130
9131         * lib/linebuffer.h: Tweak doc.
9132         * lib/linebuffer.c: Likewise.
9133
9134 2007-05-12  James Youngman  <jay@gnu.org>
9135
9136         * lib/linebuffer.c (readlinebuffer_delim): New function,
9137         like readlinebuffer, but use a caller-specified delimiter.
9138         (readlinebuffer): Just call readlinebuffer_delim with '\n'
9139         as the delimiter.
9140         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
9141
9142 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
9143
9144         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
9145         * modules/openat (Files): Remove openat-die.c.
9146         (Depends-on): Add openat-die.
9147         * modules/openat-die: New module.
9148
9149 2007-05-06  Bruno Haible  <bruno@clisp.org>
9150
9151         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
9152         Update with info about Cygwin.
9153         * doc/functions/fprintf.texi: Update.
9154         * doc/functions/printf.texi: Update.
9155         * doc/functions/snprintf.texi: Update.
9156         * doc/functions/sprintf.texi: Update.
9157         * doc/functions/vfprintf.texi: Update.
9158         * doc/functions/vprintf.texi: Update.
9159         * doc/functions/vsnprintf.texi: Update.
9160         * doc/functions/vsprintf.texi: Update.
9161         Reported by Eric Blake.
9162
9163 2007-05-06  Bruno Haible  <bruno@clisp.org>
9164
9165         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
9166         padding ourselves for the floating-point directives.
9167         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
9168         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
9169         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
9170         gl_PRINTF_FLAG_ZERO and test its result. Invoke
9171         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
9172         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
9173         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
9174         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
9175         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
9176         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
9177         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
9178         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
9179         * tests/test-snprintf-posix.h (test_function): Also check the width
9180         and some flags in the %f directive.
9181         * tests/test-sprintf-posix.h (test_function): Likewise.
9182         * tests/test-vasnprintf-posix.c (test_function): Likewise.
9183         * tests/test-vasprintf-posix.c (test_function): Likewise.
9184         * doc/functions/fprintf.texi: Update.
9185         * doc/functions/printf.texi: Update.
9186         * doc/functions/snprintf.texi: Update.
9187         * doc/functions/sprintf.texi: Update.
9188         * doc/functions/vfprintf.texi: Update.
9189         * doc/functions/vprintf.texi: Update.
9190         * doc/functions/vsnprintf.texi: Update.
9191         * doc/functions/vsprintf.texi: Update.
9192
9193 2007-05-06  Bruno Haible  <bruno@clisp.org>
9194
9195         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
9196         pass the ' flag character to sprintf or snprintf.
9197         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
9198         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
9199         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
9200         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
9201         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
9202         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
9203         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
9204         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
9205         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
9206         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
9207         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
9208         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
9209         * tests/test-snprintf-posix.h (test_function): Also check the grouping
9210         flag.
9211         * tests/test-sprintf-posix.h (test_function): Likewise.
9212         * tests/test-vasnprintf-posix.c (test_function): Likewise.
9213         * tests/test-vasprintf-posix.c (test_function): Likewise.
9214         * doc/functions/fprintf.texi: Update.
9215         * doc/functions/printf.texi: Update.
9216         * doc/functions/snprintf.texi: Update.
9217         * doc/functions/sprintf.texi: Update.
9218         * doc/functions/vfprintf.texi: Update.
9219         * doc/functions/vprintf.texi: Update.
9220         * doc/functions/vsnprintf.texi: Update.
9221         * doc/functions/vsprintf.texi: Update.
9222
9223 2007-05-01  Bruno Haible  <bruno@clisp.org>
9224
9225         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
9226
9227 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
9228
9229         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
9230         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
9231
9232 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
9233
9234         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
9235         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
9236         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
9237
9238 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
9239
9240         * lib/argp-help.c (struct hol_entry): New member `ord'.
9241         (HOL_ENTRY_PTRCMP): Use ord for comparison
9242         (hol_sort): Initialize ord.
9243
9244 2007-05-01  Bruno Haible  <bruno@clisp.org>
9245
9246         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
9247         Reported by Eric Blake.
9248         * doc/gnulib.texi (Function Substitutes): Update.
9249
9250 2007-05-01  Bruno Haible  <bruno@clisp.org>
9251
9252         * doc/functions.texi: Remove file, now redundant through
9253         doc/functions/*.texi.
9254
9255 2007-05-01  Bruno Haible  <bruno@clisp.org>
9256
9257         * modules/argp (Depends-on): Add sleep.
9258
9259 2007-05-01  Bruno Haible  <bruno@clisp.org>
9260
9261         * modules/sleep-tests: New file.
9262         * tests/test-sleep.c: New file.
9263
9264         * modules/sleep: New file.
9265         * lib/sleep.c: New file.
9266         * m4/sleep.m4: New file.
9267         * lib/unistd_.h (sleep): New declaration.
9268         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
9269         HAVE_SLEEP.
9270         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
9271         * doc/functions/sleep.texi: Document the sleep module.
9272
9273 2007-05-01  Bruno Haible  <bruno@clisp.org>
9274
9275         * lib/sigprocmask.h: Remove file.
9276         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
9277         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
9278         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
9279         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
9280         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
9281         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
9282         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
9283         HAVE_SIGSET_T as a shell variable.
9284         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
9285         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
9286         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
9287         (Depends-on): Add signal. Remove verify.
9288         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
9289         (Include): Mention <signal.h> instead of sigprocmask.h.
9290         * NEWS: Mention the change.
9291         * lib/fatal-signal.c: Don't include sigprocmask.h.
9292
9293 2007-05-01  Bruno Haible  <bruno@clisp.org>
9294
9295         * modules/signal: New file.
9296         * lib/signal_.h: New file.
9297         * m4/signal_h.m4: New file.
9298
9299 2007-05-01  Bruno Haible  <bruno@clisp.org>
9300
9301         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
9302         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
9303         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
9304         HAVE_WCTYPE_CTMP_BUG into wctype.h.
9305
9306 2007-05-01  Bruno Haible  <bruno@clisp.org>
9307
9308         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
9309         configure time.
9310         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
9311         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
9312         * modules/sys_stat (Makefile.am): Substitute their values into
9313         sys/stat.h.
9314
9315 2007-05-01  Bruno Haible  <bruno@clisp.org>
9316
9317         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
9318         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
9319         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
9320
9321 2007-05-01  Bruno Haible  <bruno@clisp.org>
9322
9323         * doc/header/assert.texi: Undo last change: don't mention the gnulib
9324         'assert' module here.
9325
9326 2007-05-01  Bruno Haible  <bruno@clisp.org>
9327
9328         * doc/functions/*.texi: New files.
9329         * doc/functions/google-ranking.txt: New file.
9330         * doc/gnulib.texi (Function Substitutes): New chapter.
9331         (ctime, inet_ntoa): Remove sections.
9332         * doc/ctime.texi: Remove file.
9333         * doc/inet_ntoa.texi: Remove file.
9334         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
9335         dependencies.
9336         (%.info): New rule, specifying a --reference-limit.
9337
9338 2007-05-01  Bruno Haible  <bruno@clisp.org>
9339
9340         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
9341
9342 2007-05-01  Bruno Haible  <bruno@clisp.org>
9343
9344         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
9345         the portability of 'mkdir' to mingw systems.
9346
9347 2007-05-01  Bruno Haible  <bruno@clisp.org>
9348
9349         * doc/headers/google-ranking.txt: New file.
9350
9351 2007-04-30  Eric Blake  <ebb9@byu.net>
9352
9353         Prefer fseeko to fseek.
9354         * modules/getpass (Depends-on): Add fseeko.
9355         * lib/getpass.c (getpass): Use fseeko, not fseek.
9356
9357 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
9358
9359         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
9360         assumes the sorting is stable, while most qsort implementations
9361         are not.  Use argument addresses to ensure they never compare as
9362         equal.
9363
9364         * tests/test-argp-2.sh (usage-indent test): Fix output
9365         (func_compare): Restore diff options
9366         * tests/test-argp.c: Restore #include "progname.h"
9367
9368 2007-04-29  Bruno Haible  <bruno@clisp.org>
9369
9370         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
9371         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
9372         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
9373         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
9374         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
9375         (configure.ac): Define CHECK_SNPRINTF_POSIX.
9376         (TESTS, check_PROGRAMS): Add test-snprintf.
9377         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
9378         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
9379         (TESTS, check_PROGRAMS): Add test-vsnprintf.
9380         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
9381         assertions that fail on HP-UX, OSF/1, or IRIX.
9382         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
9383
9384 2007-04-29  Bruno Haible  <bruno@clisp.org>
9385
9386         * MODULES.html.sh (posix_functions): Remove 'contents'.
9387
9388 2007-04-29  Karl Berry  <karl@gnu.org>
9389
9390         * config/srclist.txt (gendocs_template_min): new entry.
9391
9392 2007-04-29  Bruno Haible  <bruno@clisp.org>
9393
9394         Work around fpurge bug on BSD systems.
9395         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
9396         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
9397         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
9398         fpurge to rpl_fpurge if the system already has this function.
9399         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
9400         the case where the system already has this function. Correct invariants
9401         on BSD systems.
9402         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
9403         BSD systems.
9404
9405 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
9406
9407         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
9408         proposed by Sven Verdoolaege.
9409
9410         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
9411         options.
9412         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
9413         (usage and help tests): Update
9414
9415 2007-04-29  Bruno Haible  <bruno@clisp.org>
9416
9417         * tests/test-fflush.c (main): Use a file of size 17, not 10.
9418         Print more information in case of failure. Disable a test on BeOS.
9419
9420 2007-04-29  Bruno Haible  <bruno@clisp.org>
9421
9422         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
9423         This helps debugging on systems on which no gdb is available.
9424
9425 2007-04-29  Bruno Haible  <bruno@clisp.org>
9426
9427         * lib/freading.h: Improve comments.
9428         * lib/fwriting.h: Likewise.
9429         * tests/test-freading.c (main): Don't check freading immediately after
9430         repositioning. Needed for glibc.
9431
9432 2007-04-29  Bruno Haible  <bruno@clisp.org>
9433
9434         * lib/freading.c (freading): Trivial simplification.
9435
9436 2007-04-28  Bruno Haible  <bruno@clisp.org>
9437
9438         * tests/test-fwriting.c (main): Also test the interaction between
9439         fflush and fwriting.
9440         * modules/fwriting-tests (Depends-on): Add fflush.
9441
9442         * tests/test-freading.c (main): Also test the interaction between
9443         fflush and freading.
9444         * modules/freading-tests (Depends-on): Add fflush.
9445
9446 2007-04-28  Bruno Haible  <bruno@clisp.org>
9447
9448         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
9449         fseeko and ftello.
9450         Suggested by Eric Blake.
9451
9452 2007-04-28  Jim Meyering  <jim@meyering.net>
9453
9454         Avoid false-negative in gl_STDINT_H's C99 conformance test.
9455         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
9456         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
9457
9458 2007-04-27  Eric Blake  <ebb9@byu.net>
9459
9460         * doc/headers/assert.texi (assert.h): Document assert module use.
9461
9462 2007-04-27  Bruno Haible  <bruno@clisp.org>
9463
9464         * doc/headers/*.texi: New files.
9465         * doc/gnulib.texi (Header File Substitutes): New chapter.
9466         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
9467         dependencies.
9468         (standards.info ,standards.html, standards.dvi): Update dependencies.
9469         (mostlyclean, clean): New targets.
9470
9471 2007-04-27  Bruno Haible  <bruno@clisp.org>
9472
9473         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
9474         * modules/sysexits (Files, Makefile.am): Update.
9475
9476         * lib/sys_socket_.h: Renamed from lib/socket_.h.
9477         * modules/sys_socket (Files, Makefile.am): Update.
9478
9479         * lib/sys_stat_.h: Renamed from lib/stat_.h.
9480         * modules/sys_stat (Files, Makefile.am): Update.
9481
9482 2007-04-27  Eric Blake  <ebb9@byu.net>
9483
9484         * lib/freading.h: Improve comments.
9485         * lib/fwriting.h: Likewise.
9486         * lib/fflush.c: Likewise.
9487
9488         Fix closein for mingw.
9489         * modules/closein-tests: Add tests for closein.
9490         * tests/test-closein.c: New file.
9491         * tests/test-closein.sh: Likewise.
9492         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
9493         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
9494
9495 2007-04-27  Bruno Haible  <bruno@clisp.org>
9496
9497         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
9498         version is < 6.
9499         * lib/math_.h [__DECC]: Likewise.
9500         * lib/stdio_.h [__DECC]: Likewise.
9501         * lib/stdlib_.h [__DECC]: Likewise.
9502         * lib/string_.h [__DECC]: Likewise.
9503         * lib/time_.h [__DECC]: Likewise.
9504         * lib/wchar_.h [__DECC]: Likewise.
9505         * lib/wctype_.h [__DECC]: Likewise.
9506
9507 2007-04-27  Bruno Haible  <bruno@clisp.org>
9508
9509         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
9510
9511 2007-04-27  Bruno Haible  <bruno@clisp.org>
9512
9513         * lib/fflush.c: Add comments.
9514         * modules/fpurge-tests (Depends-on): Add fflush.
9515         * modules/freadable-tests (Depends-on): Likewise.
9516         * modules/fwritable-tests (Depends-on): Likewise.
9517
9518 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
9519
9520         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
9521         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
9522         Report by Bruno Haible <bruno@clisp.org>.
9523
9524 2007-04-26  Eric Blake  <ebb9@byu.net>
9525
9526         Fix fflush on mingw.
9527         * modules/fflush (Depends-on): Add freading.
9528         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
9529         but unread data.
9530
9531 2007-04-26  Eric Blake  <ebb9@byu.net>
9532         and Bruno Haible  <bruno@clisp.org>
9533
9534         Implement freading and fwriting.
9535         * lib/freading.c: New file.
9536         * lib/freading.h: Likewise.
9537         * m4/freading.m4: Likewise.
9538         * modules/freading: Likewise.
9539         * modules/freading-tests: Likewise.
9540         * tests/test-freading.c: Likewise.
9541         * lib/fwriting.c: New file.
9542         * lib/fwriting.h: Likewise.
9543         * m4/fwriting.m4: Likewise.
9544         * modules/fwriting: Likewise.
9545         * modules/fwriting-tests: Likewise.
9546         * tests/test-fwriting.c: Likewise.
9547         * MODULES.html.sh (File stream based Input/Output): Mention them.
9548
9549 2007-04-26  Bruno Haible  <bruno@clisp.org>
9550
9551         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
9552         'long' when we assume it.
9553         Suggested by Eric Blake.
9554
9555 2007-04-26  Bruno Haible  <bruno@clisp.org>
9556
9557         Ensure fseeko, ftello are declared on glibc systems.
9558         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
9559         * modules/fseeko (configure.ac-early): Likewise.
9560         * modules/ftello (configure.ac-early): Likewise.
9561         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
9562         AC_FUNC_FSEEKO for this.
9563         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
9564         (gl_CHECK_FSEEKO): Remove macro.
9565
9566 2007-04-26  Bruno Haible  <bruno@clisp.org>
9567
9568         * tests/test-fflush.c (main): Also check the ftell result after
9569         fflush and fseek/fseeko.
9570         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
9571         file descriptor position cache in the stream.
9572         * lib/fseeko.c (rpl_fseeko): Likewise.
9573
9574 2007-04-26  Bruno Haible  <bruno@clisp.org>
9575
9576         * modules/fflush-tests (Depends-on): Add fseeko.
9577
9578 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
9579             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9580
9581         * lib/argz_.h: ensure error_t definition is obtained in same
9582         mechanism system argz.h would have.
9583         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
9584         argz facilities are known bad.  Err on the side of caution if
9585         cross-compiling.
9586
9587 2007-04-25  Eric Blake  <ebb9@byu.net>
9588
9589         * lib/fpurge.c (includes): Use stdlib.h for free.
9590         * tests/test-fflush.c (main): Also test fflush-fseeko.
9591
9592 2007-04-25  Bruno Haible  <bruno@clisp.org>
9593
9594         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
9595         * lib/fseeko.c: New file.
9596         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
9597         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
9598         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
9599         gl_FUNC_FSEEKO.
9600         (gl_FUNC_FSEEKO): Invoke it.
9601         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
9602         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
9603         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
9604
9605 2007-04-25  Bruno Haible  <bruno@clisp.org>
9606
9607         * modules/fflush (Depends-on): Add ftello.
9608
9609 2007-04-25  Bruno Haible  <bruno@clisp.org>
9610
9611         * modules/ftello-tests: New file.
9612         * tests/test-ftello.c: New file.
9613
9614         * modules/ftello: New file.
9615         * m4/ftello.m4: New file.
9616         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
9617         HAVE_FTELLO.
9618         * lib/stdio_.h (ftello): New declaration.
9619         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
9620         HAVE_FTELLO.
9621
9622 2007-04-25  Bruno Haible  <bruno@clisp.org>
9623
9624         * modules/fseeko-tests: New file.
9625         * tests/test-fseeko.c: New file.
9626
9627         * modules/fseeko: New file.
9628         * m4/fseeko.m4: New file.
9629         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
9630         HAVE_FSEEKO.
9631         * lib/stdio_.h (fseeko): New declaration.
9632         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
9633         HAVE_FSEEKO.
9634
9635 2007-04-25  Bruno Haible  <bruno@clisp.org>
9636
9637         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
9638
9639 2007-04-25  Bruno Haible  <bruno@clisp.org>
9640
9641         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
9642         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
9643         * tests/test-unistd.c: Likewise.
9644         * tests/test-fcntl.c: Likewise.
9645
9646 2007-04-23  Eric Blake  <ebb9@byu.net>
9647
9648         * lib/fflush.c: Fix missing include.
9649         Reported by Bruno Haible.
9650
9651 2007-04-23  Bruno Haible  <bruno@clisp.org>
9652
9653         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
9654         Reported by Eric Blake.
9655
9656 2007-04-23  Bruno Haible  <bruno@clisp.org>
9657
9658         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
9659
9660 2007-04-23  Bruno Haible  <bruno@clisp.org>
9661
9662         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
9663
9664 2007-04-23  Bruno Haible  <bruno@clisp.org>
9665
9666         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
9667         Needed on HP-UX 11.
9668
9669 2007-04-16  Eric Blake  <ebb9@byu.net>
9670
9671         Make fflush rely on fpurge.
9672         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
9673         open coding all variants.
9674         * modules/fflush (Depends-on): Add fpurge and unistd.
9675         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
9676         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
9677
9678         Fix --with-tests compilation on cygwin.
9679         * modules/argmatch-tests (Makefile.am): List gnulib library first
9680         in LDADD.
9681         * modules/argp-tests (Makefile.am): Likewise.
9682         * modules/array-list-tests (Makefile.am): Likewise.
9683         * modules/array-oset-tests (Makefile.am): Likewise.
9684         * modules/avltree-list-tests (Makefile.am): Likewise.
9685         * modules/avltree-oset-tests (Makefile.am): Likewise.
9686         * modules/avltreehash-list-tests (Makefile.am): Likewise.
9687         * modules/carray-list-tests (Makefile.am): Likewise.
9688         * modules/dirname-tests (Makefile.am): Likewise.
9689         * modules/frexp-tests (Makefile.am): Likewise.
9690         * modules/isnanl-tests (Makefile.am): Likewise.
9691         * modules/linked-list-tests (Makefile.am): Likewise.
9692         * modules/linkedhash-list-tests (Makefile.am): Likewise.
9693         * modules/lock-tests (Makefile.am): Likewise.
9694         * modules/rbtree-list-tests (Makefile.am): Likewise.
9695         * modules/rbtree-oset-tests (Makefile.am): Likewise.
9696         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
9697         * modules/tls-tests (Makefile.am): Likewise.
9698         * modules/tsearch-tests (Makefile.am): Likewise.
9699         * modules/xvasprintf-tests (Makefile.am): Likewise.
9700
9701         Fix fpurge for cygwin.
9702         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
9703         value.
9704         * modules/fpurge-tests (Depends-on): Clean up trash.
9705
9706 2007-04-16  Simon Josefsson  <simon@josefsson.org>
9707
9708         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
9709
9710         * m4/autobuild.m4: Re-indent.
9711
9712 2007-04-13  Bruno Haible  <bruno@clisp.org>
9713
9714         * modules/fpurge-tests: New file.
9715         * tests/test-fpurge.c: New file.
9716
9717         * modules/fpurge: New file.
9718         * lib/fpurge.h: New file.
9719         * lib/fpurge.c: New file.
9720         * m4/fpurge.m4: New file.
9721
9722 2007-04-13  Bruno Haible  <bruno@clisp.org>
9723
9724         * modules/fbufmode-tests: New file.
9725         * tests/test-fbufmode.c: New file.
9726
9727         * modules/fbufmode: New file.
9728         * lib/fbufmode.h: New file.
9729         * lib/fbufmode.c: New file.
9730         * m4/fbufmode.m4: New file.
9731
9732 2007-04-13  Bruno Haible  <bruno@clisp.org>
9733
9734         * modules/fwritable-tests: New file.
9735         * tests/test-fwritable.c: New file.
9736
9737         * modules/fwritable: New file.
9738         * lib/fwritable.h: New file.
9739         * lib/fwritable.c: New file.
9740         * m4/fwritable.m4: New file.
9741
9742 2007-04-13  Bruno Haible  <bruno@clisp.org>
9743
9744         * modules/freadable-tests: New file.
9745         * tests/test-freadable.c: New file.
9746
9747         * modules/freadable: New file.
9748         * lib/freadable.h: New file.
9749         * lib/freadable.c: New file.
9750         * m4/freadable.m4: New file.
9751
9752 2007-04-13  Bruno Haible  <bruno@clisp.org>
9753
9754         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
9755         MOSTLYCLEANFILES.
9756
9757 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
9758
9759         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
9760         gzip bootstrap.conf to avoid dragging in i18n machinery.
9761         (gnulib_tool_option): Use it.
9762
9763 2007-04-13  Bruno Haible  <bruno@clisp.org>
9764
9765         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
9766         %F directives.
9767         * tests/test-vasprintf-posix.c (test_function): Likewise.
9768         * tests/test-snprintf-posix.h (test_function): Likewise.
9769         * tests/test-sprintf-posix.h (test_function): Likewise.
9770         * tests/test-fprintf-posix.h (test_function): Likewise.
9771         * tests/test-printf-posix.h (test_function): Likewise.
9772         * tests/test-fprintf-posix.out: Likewise.
9773
9774 2007-04-13  Bruno Haible  <bruno@clisp.org>
9775
9776         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
9777         * modules/tls-tests (configure.ac): Likewise.
9778         Reported by Arto C. Nirkko <anirkko@insel.ch>.
9779
9780 2007-04-13  Bruno Haible  <bruno@clisp.org>
9781
9782         * lib/tls.c (glthread_tls_get): Fix return type.
9783         Patch by Arto C. Nirkko <anirkko@insel.ch>.
9784
9785 2007-04-12  Eric Blake  <ebb9@byu.net>
9786
9787         * modules/gettime (Depends-on): Remove gettime.
9788         Reported by Dmitry V. Levin.
9789
9790 2007-04-12  Bruno Haible  <bruno@clisp.org>
9791
9792         * modules/fflush (Include): Mention <stdio.h>.
9793         * modules/strtoimax (Include): Mention <inttypes.h>.
9794         * modules/strtoumax (Include): Likewise.
9795
9796 2007-04-12  Eric Blake  <ebb9@byu.net>
9797
9798         * .cvsignore: New file.
9799         * .gitignore: Likewise.
9800
9801 2007-04-12  Bruno Haible  <bruno@clisp.org>
9802
9803         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
9804         not before, since $(LDADD) often contains libgnu.a.
9805         * modules/striconv-tests (test_striconv_LDADD): Likewise.
9806         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
9807         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
9808         Needed on Cygwin.
9809
9810 2007-04-12  Eric Blake  <ebb9@byu.net>
9811
9812         Work around glibc's failure to flush stdin on fclose.
9813         * lib/closein.c (close_stdin): Flush stdin before closing.
9814
9815         Work around glibc's failure to reset seekable stdin on exit.
9816         * modules/closein: New module.
9817         * lib/closein.c: New file.
9818         * lib/closein.h: Likewise.
9819         * m4/closein.m4: Likewise.
9820         * MODULES.html.sh (File stream based Input/Output): Document it.
9821
9822 2007-04-12  Simon Josefsson  <simon@josefsson.org>
9823
9824         * gnulib-tool: Rename generated 'autobuild' script to
9825         'do-autobuild' in --create-megatestdir output.
9826
9827         * doc/gnulib.texi (Build robot for gnulib): Fix.
9828
9829 2007-04-12  Simon Josefsson  <simon@josefsson.org>
9830
9831         * modules/sysexits (Depends-on): Add absolute-header.
9832
9833 2007-04-12  Eric Blake  <ebb9@byu.net>
9834
9835         No need to preserve errno on success.
9836         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
9837         Reported by Bruno Haible.
9838
9839 2007-04-12  Simon Josefsson  <simon@josefsson.org>
9840
9841         * MODULES.html.sh (Support for maintaining and releasing
9842         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
9843
9844 2007-04-12  Simon Josefsson  <simon@josefsson.org>
9845
9846         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
9847
9848 2007-04-12  Simon Josefsson  <simon@josefsson.org>
9849
9850         * modules/autobuild: New module.
9851
9852         * m4/autobuild.m4: New file.
9853
9854 2007-04-11  Bruno Haible  <bruno@clisp.org>
9855
9856         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
9857         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
9858         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
9859         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
9860         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
9861         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
9862         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
9863         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
9864         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
9865         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
9866         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
9867         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
9868         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
9869         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
9870         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
9871         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
9872         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
9873         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
9874         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
9875         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
9876         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
9877         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
9878         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
9879         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
9880         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
9881         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
9882         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
9883         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
9884         Reported by Eric Blake.
9885
9886 2007-04-11  Bruno Haible  <bruno@clisp.org>
9887
9888         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
9889
9890 2007-04-10  Bruno Haible  <bruno@clisp.org>
9891
9892         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
9893         for NaN and Infinity. Needed on FreeBSD 6.1.
9894         * tests/test-vasnprintf-posix.c (test_function): Undo last change
9895         regarding results for "%010a" of Infinity and NaN.
9896         * tests/test-vasprintf-posix.c (test_function): Likewise.
9897         * tests/test-snprintf-posix.h (test_function): Likewise.
9898         * tests/test-sprintf-posix.h (test_function): Likewise.
9899         * tests/test-fprintf-posix.h (test_function): Likewise.
9900         * tests/test-printf-posix.h (test_function): Likewise.
9901         * tests/test-fprintf-posix.out: Likewise.
9902
9903 2007-04-10  Bruno Haible  <bruno@clisp.org>
9904
9905         * modules/locale-tests: New file.
9906         * tests/test-locale.c: New file.
9907
9908         * modules/locale: New file.
9909         * lib/locale_.h: New file.
9910         * m4/locale_h.m4: New file.
9911
9912 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
9913             Bruno Haible  <bruno@clisp.org>
9914
9915         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
9916         be determined, test for availability of the copysignf, copysign,
9917         copysignl functions.
9918         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
9919         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
9920         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
9921
9922 2007-04-09  Eric Blake  <ebb9@byu.net>
9923
9924         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
9925         * modules/stdio (Makefile.am): Support fflush.
9926         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
9927         * modules/fflush: New file.
9928         * lib/fflush.c: Likewise.
9929         * m4/fflush.m4: Likewise.
9930         * modules/fflush-tests: New test.
9931         * tests/test-fflush.c: Likewise.
9932         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
9933
9934 2007-04-06  Bruno Haible  <bruno@clisp.org>
9935
9936         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
9937         (VASNPRINTF): Use signbit for faster determination whether to print a
9938         minus sign.
9939         * modules/vasnprintf (Files): Remove lib/float+.h.
9940         * modules/fprintf-posix (Depends-on): Add signbit.
9941         * modules/snprintf-posix (Depends-on): Likewise.
9942         * modules/sprintf-posix (Depends-on): Likewise.
9943         * modules/vasnprintf-posix (Depends-on): Likewise.
9944         * modules/vasprintf-posix (Depends-on): Likewise.
9945         * modules/vfprintf-posix (Depends-on): Likewise.
9946         * modules/vsnprintf-posix (Depends-on): Likewise.
9947         * modules/vsprintf-posix (Depends-on): Likewise.
9948
9949 2007-04-06  Bruno Haible  <bruno@clisp.org>
9950
9951         * tests/test-frexp.c (main): Test also the sign bit of zero results.
9952         * tests/test-frexpl.c (main): Likewise.
9953         * tests/test-ldexpl.c (main): Likewise.
9954         * modules/frexp-tests (Depends-on): Add signbit.
9955         * modules/frexpl-tests (Depdends-on): Likewise.
9956         * modules/ldexpl-tests (Depdends-on): Likewise.
9957
9958 2007-04-06  Bruno Haible  <bruno@clisp.org>
9959
9960         * modules/signbit-tests: New file.
9961         * tests/test-signbit.c: New file.
9962
9963         * modules/signbit: New file.
9964         * lib/signbitf.c: New file.
9965         * lib/signbitd.c: New file.
9966         * lib/signbitl.c: New file.
9967         * m4/signbit.m4: New file.
9968         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
9969         (signbit): New macro.
9970         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
9971         REPLACE_SIGNBIT.
9972         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
9973         REPLACE_FREXPL into math.h.
9974
9975 2007-04-06  Bruno Haible  <bruno@clisp.org>
9976
9977         * modules/isnanf-nolibm-tests: New file.
9978         * tests/test-isnanf.c: New file.
9979
9980         * modules/isnanf-nolibm: New file.
9981         * lib/isnanf.h: New file.
9982         * lib/isnanf.c: New file.
9983         * lib/isnan.c: Consider the USE_FLOAT macro.
9984         * m4/isnanf.m4: New file.
9985
9986 2007-04-06  Bruno Haible  <bruno@clisp.org>
9987
9988         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
9989         (Link): New section.
9990
9991         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
9992
9993 2007-04-06  Bruno Haible  <bruno@clisp.org>
9994
9995         Assume the 'long double' type.
9996         * m4/longdouble.m4: Remove file.
9997         * config/srclist.txt: Don't mention longdouble.m4.
9998         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
9999         * lib/float+.h: Likewise.
10000         * lib/frexp.c: Likewise.
10001         * lib/printf-args.h: Likewise.
10002         * lib/printf-args.c: Likewise.
10003         * lib/printf-frexp.c: Likewise.
10004         * lib/printf-parse.c: Likewise.
10005         * lib/vasnprintf.c: Likewise.
10006         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
10007         * m4/intl.m4: Likewise.
10008         * m4/isnanl.m4: Likewise.
10009         * m4/printf.m4: Likewise.
10010         * m4/printf-frexpl.m4: Likewise.
10011         * m4/vasnprintf.m4: Likewise.
10012         * modules/allocsa (Files): Remove m4/longdouble.m4.
10013         * modules/gettext (Files): Likewise.
10014         * modules/relocatable-prog-wrapper (Files): Likewise.
10015         * modules/vasnprintf (Files): Likewise.
10016         * modules/isnanl (Files): Likewise.
10017         (Include): Simplify.
10018         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
10019         (Include): Simplify.
10020         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
10021         (Include): Simplify.
10022         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
10023         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
10024         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
10025         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
10026         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
10027         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
10028         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
10029         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
10030         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
10031         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
10032         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
10033         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
10034         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
10035         * tests/test-isnanl.c: Likewise.
10036         * tests/test-snprintf-posix.h: Likewise.
10037         * tests/test-sprintf-posix.h: Likewise.
10038         * tests/test-vasnprintf-posix.c: Likewise.
10039         * tests/test-vasnprintf-posix2.c: Likewise.
10040         * tests/test-vasprintf-posix.c: Likewise.
10041
10042 2007-04-06  Bruno Haible  <bruno@clisp.org>
10043
10044         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
10045         * lib/math_.h [__DECC]: Include the overridden include file through
10046         #include_next, outside the double-inclusion guard.
10047         * lib/stdio_.h [__DECC]: Likewise.
10048         * lib/stdlib_.h [__DECC]: Likewise.
10049         * lib/string_.h [__DECC]: Likewise.
10050         * lib/time_.h [__DECC]: Likewise.
10051         * lib/wchar_.h [__DECC]: Likewise.
10052         * lib/wctype_.h [__DECC]: Likewise.
10053         * lib/inttypes_.h [__DECC]: Likewise.
10054         Reported by Albert Chin <china@thewrittenword.com> in
10055         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
10056
10057 2007-04-04  Eric Blake  <ebb9@byu.net>
10058
10059         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
10060         1.5.x.
10061
10062 2007-04-04  Bruno Haible  <bruno@clisp.org>
10063
10064         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
10065         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
10066
10067 2007-04-04  Bruno Haible  <bruno@clisp.org>
10068
10069         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
10070         results for "%010a" of Infinity and NaN.
10071         * tests/test-vasprintf-posix.c (test_function): Likewise.
10072         * tests/test-snprintf-posix.h (test_function): Likewise.
10073         * tests/test-sprintf-posix.h (test_function): Likewise.
10074         * tests/test-fprintf-posix.h (test_function): Remove these tests.
10075         * tests/test-printf-posix.h (test_function): Likewise.
10076         * tests/test-fprintf-posix.out: Update.
10077         Needed for FreeBSD 6.1.
10078
10079 2007-04-04  Bruno Haible  <bruno@clisp.org>
10080
10081         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
10082         directly used by the gnulib modules nor by gnulib-tool.
10083
10084 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
10085
10086         * DEPENDENCIES: Give overall description of version dependency
10087         desirability.  Use more-typical names for apps.
10088         Add shell, coreutils, diffutils, grep, tar, gzip.
10089
10090 2007-04-04  Simon Josefsson  <simon@josefsson.org>
10091
10092         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
10093
10094 2007-04-04  Karl Berry  <karl@gnu.org>
10095
10096         * MODULES.html.sh (func_module): missing '.
10097
10098 2007-04-03  Bruno Haible  <bruno@clisp.org>
10099
10100         * modules/argmatch-tests (Makefile.am): New variable
10101         test_argmatch_LDADD.
10102         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
10103         * modules/array-list-tests (Makefile.am): New variable
10104         test_array_list_LDADD.
10105         * modules/array-oset-tests (Makefile.am): New variable
10106         test_array_oset_LDADD.
10107         * modules/avltree-list-tests (Makefile.am): New variable
10108         test_avltree_list_LDADD.
10109         * modules/avltree-oset-tests (Makefile.am): New variable
10110         test_avltree_oset_LDADD.
10111         * modules/avltreehash-list-tests (Makefile.am): New variable
10112         test_avltreehash_list_LDADD.
10113         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
10114         test_canonicalize_lgpl_LDADD.
10115         * modules/carray-list-tests (Makefile.am): New variable
10116         test_carray_list_LDADD.
10117         * modules/dirname-tests (Makefile.am): New variable
10118         test_dirname_LDADD.
10119         * modules/linked-list-tests (Makefile.am): New variable
10120         test_linked_list_LDADD.
10121         * modules/linkedhash-list-tests (Makefile.am): New variable
10122         test_linkedhash_list_LDADD.
10123         * modules/rbtree-list-tests (Makefile.am): New variable
10124         test_rbtree_list_LDADD.
10125         * modules/rbtree-oset-tests (Makefile.am): New variable
10126         test_rbtree_oset_LDADD.
10127         * modules/rbtreehash-list-tests (Makefile.am): New variable
10128         test_rbtreehash_list_LDADD.
10129         * modules/xvasprintf-tests (Makefile.am): New variable
10130         test_xvasprintf_LDADD.
10131         Reported by Eric Blake.
10132
10133 2007-04-03  Eric Blake  <ebb9@byu.net>
10134
10135         * DEPENDENCIES: Weaken m4 requirements.
10136
10137 2007-04-03  Bruno Haible  <bruno@clisp.org>
10138
10139         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
10140         * modules/isnanl-tests (configure.ac): Likewise.
10141
10142 2007-04-03  Ben Pfaff  <blp@gnu.org>
10143
10144         * modules/iconv_open: Add $(srcdir)/ to source directory
10145         references in Makefile fragments that call gperf, to fix VPATH
10146         builds.
10147
10148 2007-04-03  Bruno Haible  <bruno@clisp.org>
10149
10150         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
10151         * lib/ldexpl.c: Undo last change.
10152
10153 2007-04-03  Bruno Haible  <bruno@clisp.org>
10154
10155         * modules/printf-frexpl (Depends-on): Undo last change.
10156         (Files): Add m4/ldexpl.m4.
10157
10158 2007-04-03  Bruno Haible  <bruno@clisp.org>
10159
10160         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
10161         * modules/isnanl (Link): New section.
10162
10163         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
10164         * modules/frexp (Link): New section.
10165
10166         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
10167         * modules/frexpl (Link): New section.
10168
10169         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
10170         * modules/ldexpl (Link): New section.
10171
10172 2007-04-03  Bruno Haible  <bruno@clisp.org>
10173
10174         * modules/TEMPLATE-EXTENDED: New file.
10175         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
10176
10177 2007-04-03  Bruno Haible  <bruno@clisp.org>
10178
10179         * DEPENDENCIES: New file.
10180         Suggested by Simon Josefsson.
10181
10182 2007-04-03  Bruno Haible  <bruno@clisp.org>
10183
10184         * doc/gnulib.texi: Escape @.
10185
10186 2007-04-03  James Youngman  <jay@gnu.org>
10187         and Paul Eggert  <eggert@cs.ucla.edu>
10188
10189         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
10190         birthtime on all systems that have birthtime, not just those which
10191         use st_birthtimensec rather than st_birthtim.  Putting zero in
10192         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
10193         that the birth time is not available for files on an NFS mount.
10194
10195 2007-04-03  Simon Josefsson  <simon@josefsson.org>
10196
10197         * modules/memxor: Move back from crypto/, suggested by Bruno.
10198         * modules/crypto/hmac-sha1: Fix memxor dependency.
10199
10200         * modules/crypto/gc: Moved from ../.
10201
10202 2007-04-02  Eric Blake  <ebb9@byu.net>
10203
10204         * lib/ldexpl.c (includes): Avoid libm.
10205
10206         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
10207
10208 2007-04-02  Bruno Haible  <bruno@clisp.org>
10209
10210         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
10211         on IRIX.
10212
10213 2007-04-02  Bruno Haible  <bruno@clisp.org>
10214
10215         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
10216         x86 or x86_64 platforms running MacOS X.
10217         Reported by Ryan Schmidt <@ryandesign.com>.
10218
10219 2007-04-02  Bruno Haible  <bruno@clisp.org>
10220
10221         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
10222         i386.
10223
10224 2007-04-01  Simon Josefsson  <simon@josefsson.org>
10225
10226         * modules/crypto/arcfour: Moved from ../.
10227         * modules/crypto/arcfour-tests: Moved from ../.
10228         * modules/crypto/arctwo: Moved from ../.
10229         * modules/crypto/arctwo-tests: Moved from ../.
10230         * modules/crypto/des: Moved from ../.
10231         * modules/crypto/des-tests: Moved from ../.
10232         * modules/crypto/gc-arcfour: Moved from ../.
10233         * modules/crypto/gc-arcfour-tests: Moved from ../.
10234         * modules/crypto/gc-arctwo: Moved from ../.
10235         * modules/crypto/gc-arctwo-tests: Moved from ../.
10236         * modules/crypto/gc-des: Moved from ../.
10237         * modules/crypto/gc-des-tests: Moved from ../.
10238         * modules/crypto/gc-hmac-md5: Moved from ../.
10239         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
10240         * modules/crypto/gc-hmac-sha1: Moved from ../.
10241         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
10242         * modules/crypto/gc-md2: Moved from ../.
10243         * modules/crypto/gc-md2-tests: Moved from ../.
10244         * modules/crypto/gc-md4: Moved from ../.
10245         * modules/crypto/gc-md4-tests: Moved from ../.
10246         * modules/crypto/gc-md5: Moved from ../.
10247         * modules/crypto/gc-md5-tests: Moved from ../.
10248         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
10249         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
10250         * modules/crypto/gc-random: Moved from ../.
10251         * modules/crypto/gc-rijndael: Moved from ../.
10252         * modules/crypto/gc-rijndael-tests: Moved from ../.
10253         * modules/crypto/gc-sha1: Moved from ../.
10254         * modules/crypto/gc-sha1-tests: Moved from ../.
10255         * modules/crypto/gc-tests: Moved from ../.
10256         * modules/crypto/hmac-md5: Moved from ../.
10257         * modules/crypto/hmac-md5-tests: Moved from ../.
10258         * modules/crypto/hmac-sha1: Moved from ../.
10259         * modules/crypto/hmac-sha1-tests: Moved from ../.
10260         * modules/crypto/md2: Moved from ../.
10261         * modules/crypto/md2-tests: Moved from ../.
10262         * modules/crypto/md4: Moved from ../.
10263         * modules/crypto/md4-tests: Moved from ../.
10264         * modules/crypto/md5: Moved from ../.
10265         * modules/crypto/md5-tests: Moved from ../.
10266         * modules/crypto/memxor: Moved from ../.
10267         * modules/crypto/rijndael: Moved from ../.
10268         * modules/crypto/rijndael-tests: Moved from ../.
10269         * modules/crypto/sha1: Moved from ../.
10270
10271 2007-03-30  James Youngman  <jay@gnu.org>
10272
10273         * tests/test-stat-time.c (prepare_test): use chmod() rather than
10274         rename() to change the ctime of a file (because ctime is unaffected
10275         by rename on jfs2 on AIX 5.1).
10276         (main): Start by doing cleanup, in case a previous run failed leaving
10277         test files behind.
10278
10279 2007-03-31  Bruno Haible  <bruno@clisp.org>
10280
10281         Support old proprietary implementations of iconv.
10282         * modules/iconv_open: New file.
10283         * lib/iconv_.h: New file.
10284         * m4/iconv_h.m4: New file.
10285         * lib/iconv_open.c: New file.
10286         * lib/iconv_open-aix.gperf: New file.
10287         * lib/iconv_open-hpux.gperf: New file.
10288         * lib/iconv_open-irix.gperf: New file.
10289         * lib/iconv_open-osf.gperf: New file.
10290         * m4/iconv_open.m4: New file.
10291         * modules/linebreak (Depends-on): Add iconv_open.
10292         * modules/striconv (Depends-on): Likewise.
10293         * modules/striconveh (Depends-on): Likewise.
10294         * modules/unicodeio (Depends-on): Likewise.
10295         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
10296         (iconv_t)(-1).
10297         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
10298         conversion if cd is (iconv_t)(-1).
10299         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
10300         is not possible.
10301
10302 2007-03-31  Bruno Haible  <bruno@clisp.org>
10303
10304         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
10305         work on Solaris either. Protect also second use of "autodetect_jp".
10306
10307 2007-03-31  Bruno Haible  <bruno@clisp.org>
10308
10309         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
10310         the function is not present.
10311
10312 2007-03-31  Bruno Haible  <bruno@clisp.org>
10313
10314         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
10315         the function is not present.
10316
10317 2007-03-31  Bruno Haible  <bruno@clisp.org>
10318
10319         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
10320         a bug in HP-UX iconv_open().
10321
10322 2007-03-31  Bruno Haible  <bruno@clisp.org>
10323
10324         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
10325         (Mathematics <math.h>): New section, add fpieee.
10326         (Input/output <stdio.h>): Add fseterr.
10327         (Mathematics <math.h>): New section, add printf-frexp.
10328         (Container data structures): Add sublist.
10329         (Core language properties): Add fpucw, inline.
10330         (Functions for greatest-width integer types <inttypes.h>): Add
10331         imaxabs, imaxdiv, inttypes.
10332         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
10333         isnanl-nolibm, ldexp.
10334         (Mathematics <math.h>): New section, add printf-frexpl.
10335         (Support for systems lacking POSIX:2001): Add fprintf-posix,
10336         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
10337         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
10338         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
10339         (Unicode string functions): Add unistr/u*-mbtoucr.
10340         (Java): Add javacomp-script, javaexec-script.
10341         (C#): Add csharpcomp-script, csharpexec-script.
10342         (Support for building libraries and executables): Add havelib,
10343         relocatable-*.
10344         (Support for maintaining and releasing projects): Renamed from
10345         'Support for maintaining and release projects'. Add announce-gen.
10346
10347 2007-03-31  Bruno Haible  <bruno@clisp.org>
10348
10349         * README: Talk primarily about git.
10350         (git and CVS): Renamed from CVS.
10351         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
10352         gnulib is available through git.
10353         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
10354
10355 2007-03-30  Bruno Haible  <bruno@clisp.org>
10356
10357         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
10358         * lib/poll_.h: Likewise.
10359         * lib/stat_.h: Likewise.
10360         * lib/sys_time_.h: Likewise.
10361         * lib/sysexit_.h: Likewise.
10362         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
10363         * lib/stdbool_.h: Likewise.
10364         * lib/byteswap_.h: Add double-inclusion guard.
10365
10366 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
10367
10368         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
10369
10370 2007-03-30  Karl Berry  <karl@gnu.org>
10371
10372         * config/srclist-update: double space after USA in the license
10373         substitution, since that's how it's usually (?) written.
10374
10375 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
10376
10377         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
10378         reported by Bruno Haible.
10379
10380 2007-03-29  Bruno Haible  <bruno@clisp.org>
10381
10382         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
10383         a bug in AIX iconv().
10384
10385 2007-03-29  Bruno Haible  <bruno@clisp.org>
10386
10387         * modules/ldexpl-tests: New file.
10388         * tests/test-ldexpl.c: New file.
10389
10390 2007-03-29  Bruno Haible  <bruno@clisp.org>
10391
10392         * lib/ldexpl.c: Include fpucw.h.
10393         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
10394         multiplication.
10395         * modules/ldexpl (Depends-on): Add fpucw.
10396
10397 2007-03-29  Bruno Haible  <bruno@clisp.org>
10398
10399         * modules/ldexpl: New file.
10400         * m4/ldexpl.m4: New file.
10401         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
10402         set.
10403         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
10404         REPLACE_LDEXPL.
10405         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
10406         REPLACE_LDEXPL.
10407         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
10408         gl_FUNC_LDEXPL_WORKS.
10409         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
10410         * modules/mathl (Files): Remove lib/ldexpl.c.
10411         (Depends-on): Add ldexpl.
10412
10413 2007-03-29  Bruno Haible  <bruno@clisp.org>
10414
10415         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
10416
10417 2007-03-29  Bruno Haible  <bruno@clisp.org>
10418
10419         * tests/test-striconveh.c (main): Don't assume that a direct conversion
10420         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
10421         and possibly also HP-UX.
10422         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
10423         work on AIX, IRIX, HP-UX, OSF/1.
10424         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
10425         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
10426         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
10427         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
10428         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
10429         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
10430
10431 2007-03-29  Bruno Haible  <bruno@clisp.org>
10432
10433         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
10434
10435 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
10436
10437         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
10438         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
10439
10440 2007-03-29  Eric Blake  <ebb9@byu.net>
10441
10442         * lib/acl-internal.h: Remove redundant include.
10443         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
10444         Cygwin when a file is locked.
10445
10446 2007-03-29  Bruno Haible  <bruno@clisp.org>
10447
10448         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
10449         file.
10450         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
10451
10452 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
10453
10454         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
10455         try to remove a parent directory if the child couldn't be removed
10456         (except for the first rmdir, which could fail because the child
10457         doesn't exist).  Problem reported by Jeff Blaine in
10458         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
10459
10460 2007-03-28  Bruno Haible  <bruno@clisp.org>
10461
10462         * lib/striconveh.c (utf8conv_carefully): New function.
10463         (mem_cd_iconveh_internal): Invoke it.
10464
10465 2007-03-28  Bruno Haible  <bruno@clisp.org>
10466
10467         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
10468         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
10469         input.
10470         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
10471         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
10472         unistr/u8-uctomb.
10473
10474 2007-03-28  Bruno Haible  <bruno@clisp.org>
10475
10476         * modules/unistr/u8-mbtoucr: New file.
10477         * lib/unistr/u8-mbtoucr.c: New file.
10478         * modules/unistr/u16-mbtoucr: New file.
10479         * lib/unistr/u16-mbtoucr.c: New file.
10480         * modules/unistr/u16-mbtoucr: New file.
10481         * lib/unistr/u16-mbtoucr.c: New file.
10482         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
10483
10484 2007-03-27  Simon Josefsson  <simon@josefsson.org>
10485             Bruno Haible  <bruno@clisp.org>
10486
10487         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
10488         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
10489         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
10490
10491         * m4/stdio_h.m4: Add stubs for vasprintf too.
10492
10493         * modules/stdio: Support vasprintf in sed command.
10494
10495         * modules/vasprintf: Depend on stdio for prototypes.  Remove
10496         vasprintf.h.  Add stdio module indicator.
10497
10498         * lib/stdio_.h: Declare asprintf and vasprintf, based on
10499         vasprintf.h.
10500
10501         * lib/vasprintf.h: File removed.
10502
10503         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
10504         * lib/vasprintf.c: Ditto.
10505         * lib/xvasprintf.c: Ditto.
10506         * tests/test-vasprintf-posix.c: Ditto.
10507         * tests/test-vasprintf.c: Ditto.
10508
10509 2007-03-27  Bruno Haible  <bruno@clisp.org>
10510
10511         Make vasnprintf multithread-safe.
10512         * lib/vasnprintf.c (decimal_point_char): New function.
10513         (VASNPRINTF): Use it.
10514         Suggested by Simon Josefsson.
10515
10516 2007-03-27  Eric Blake  <ebb9@byu.net>
10517
10518         Support sub-second birthtime on cygwin.
10519         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
10520         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
10521         (get_stat_birthtime): Also work with st_birthtim.
10522
10523 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
10524
10525         * lib/stat-time.h (USE_BIRTHTIME): Remove.
10526         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
10527         (get_stat_birthtime_ns): Do not try to use "spare" fields.
10528         (get_stat_birthtime_ns): Simplify compile-time tests.
10529         (get_stat_birthtime): Change the API to look like
10530         get_stat_mtime etc., except return a negative tv_nsec on error.
10531         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
10532         Don't check for "spare" fields.
10533         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
10534         or for struct stat.st_birthtime, as these tests aren't used.
10535         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
10536
10537 2007-03-27  Bruno Haible  <bruno@clisp.org>
10538
10539         * lib/stat-time.h: Include <sys/stat.h>.
10540
10541 2007-03-27  James Youngman  <jay@gnu.org>
10542
10543         * lib/stat-time.h (get_stat_birthtime): New function for
10544           retrieving st_birthtime as provided by UFS2 (hence *BSD).
10545         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
10546           and its variants.
10547         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
10548         * modules/stat-time-test: New file.
10549         * tests/test-stat-time.c: New test, devised by Bruno Haible.
10550
10551 2007-03-26  Bruno Haible  <bruno@clisp.org>
10552
10553         Better support of signalling NaNs.
10554         * lib/atanl.c: Include isnanl.h.
10555         (atanl): Perform test for NaN at the beginning of the function and
10556         through a call to isnanl.
10557         * lib/cosl.c: Include isnanl.h.
10558         (cosl): Perform test for NaN at the beginning of the function and
10559         through a call to isnanl.
10560         * lib/ldexpl.c: Include isnanl.h.
10561         (ldexpl): Perform test for NaN through a call to isnanl.
10562         * lib/logl.c: Include isnanl.h.
10563         (logl): Perform test for NaN at the beginning of the function and
10564         through a call to isnanl.
10565         * lib/sinl.c: Include isnanl.h.
10566         (sinl): Perform test for NaN at the beginning of the function and
10567         through a call to isnanl.
10568         * lib/sqrtl.c: Include isnanl.h.
10569         (sqrtl): Perform test for NaN at the beginning of the function and
10570         through a call to isnanl.
10571         * lib/tanl.c: Include isnanl.h.
10572         (tanl): Perform test for NaN at the beginning of the function and
10573         through a call to isnanl.
10574         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
10575         * modules/mathl (Depends-on): Add isnanl.
10576
10577 2007-03-26  Eric Blake  <ebb9@byu.net>
10578
10579         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
10580         regression in logic sense of previous patch.
10581
10582 2007-03-26  Bruno Haible  <bruno@clisp.org>
10583
10584         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
10585         unportable shell command "if ! ...".
10586         Reported by Ralf Wildenhues.
10587
10588 2007-03-25  Bruno Haible  <bruno@clisp.org>
10589
10590         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
10591         <sysexits.h> file, and only add EX_CONFIG.
10592         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
10593         absolute file name and whether it is sufficient. Substitute also
10594         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
10595         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
10596         ABSOLUTE_SYSEXITS_H into sysexits.h.
10597
10598 2007-03-25  Bruno Haible  <bruno@clisp.org>
10599
10600         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
10601         hints is NULL.
10602
10603 2007-03-25  Bruno Haible  <bruno@clisp.org>
10604
10605         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
10606         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
10607
10608 2007-03-25  Bruno Haible  <bruno@clisp.org>
10609
10610         * lib/vasnprintf.c: Include langinfo.h.
10611         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
10612         multithread-safe.
10613         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
10614         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
10615         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
10616         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
10617         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
10618         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
10619         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
10620         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
10621         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
10622         Reported by Simon Josefsson.
10623
10624 2007-03-25  Bruno Haible  <bruno@clisp.org>
10625
10626         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
10627         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
10628         * modules/vasnprintf (Depends-on): Add stdint.
10629
10630 2007-03-25  Bruno Haible  <bruno@clisp.org>
10631
10632         * modules/fpieee: New file.
10633         * m4/fpieee.m4: New file.
10634         * modules/isnan-nolibm (Depends-on): Add fpieee.
10635         * modules/isnanl-nolibm (Depends-on): Add fpieee.
10636         * modules/isnanl (Depends-on): Add fpieee.
10637
10638 2007-03-25  Bruno Haible  <bruno@clisp.org>
10639
10640         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
10641
10642 2007-03-25  Bruno Haible  <bruno@clisp.org>
10643
10644         Avoid test failures on IRIX 6.5.
10645         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
10646         (main): Use it.
10647         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
10648         macros.
10649         (main): Use them.
10650
10651 2007-03-25  Bruno Haible  <bruno@clisp.org>
10652
10653         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
10654         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
10655         exists but doesn't work.
10656         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
10657         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
10658         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
10659         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
10660
10661 2007-03-25  Bruno Haible  <bruno@clisp.org>
10662
10663         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
10664         returns inf. Needed on IRIX 6.5.
10665
10666 2007-03-25  Bruno Haible  <bruno@clisp.org>
10667
10668         * tests/test-frexpl.c: Include isnanl-nolibm.h.
10669         (main): Use isnanl instead of x != x idiom.
10670         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
10671
10672         * tests/test-frexp.c: Include isnan.h.
10673         (main): Use isnan instead of x != x idiom.
10674         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
10675
10676 2007-03-25  Bruno Haible  <bruno@clisp.org>
10677
10678         * tests/test-frexp.c (NaN): New function/macro.
10679         (main): Use it instead of 0.0 / 0.0.
10680         * tests/test-isnan.c (NaN): New function/macro.
10681         (main): Use it instead of 0.0 / 0.0.
10682         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
10683         (test_function): Use it instead of 0.0 / 0.0.
10684         * tests/test-vasprintf-posix.c (NaN): New function/macro.
10685         (test_function): Use it instead of 0.0 / 0.0.
10686         * tests/test-snprintf-posix.h (NaN): New function/macro.
10687         (test_function): Use it instead of 0.0 / 0.0.
10688         * tests/test-sprintf-posix.h (NaN): New function/macro.
10689         (test_function): Use it instead of 0.0 / 0.0.
10690         * tests/test-fprintf-posix.h (NaN): New function/macro.
10691         (test_function): Use it instead of 0.0 / 0.0.
10692         * tests/test-printf-posix.h (NaN): New function/macro.
10693         (test_function): Use it instead of 0.0 / 0.0.
10694
10695         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
10696
10697 2007-03-25  Bruno Haible  <bruno@clisp.org>
10698
10699         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
10700
10701 2007-03-25  Bruno Haible  <bruno@clisp.org>
10702
10703         * lib/regexec.c (merge_state_with_log): Make static.
10704
10705 2007-03-25  Bruno Haible  <bruno@clisp.org>
10706
10707         * lib/trigl.c (kernel_rem_pio2): Make static.
10708
10709 2007-03-25  Bruno Haible  <bruno@clisp.org>
10710
10711         * lib/sincosl.c (sincosl_table): Make static.
10712
10713 2007-03-25  Bruno Haible  <bruno@clisp.org>
10714
10715         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
10716         if the compiler does not support C99.
10717
10718 2007-03-25  Bruno Haible  <bruno@clisp.org>
10719
10720         * modules/time (Makefile.am): Ensure all rule action lines start with a
10721         tab.
10722
10723 2007-03-24  Bruno Haible  <bruno@clisp.org>
10724
10725         * modules/tsearch-tests: New file.
10726         * tests/test-tsearch.sh: New file.
10727         * tests/test-tsearch.c: New file, mostly copied from glibc.
10728
10729         * modules/search-tests: New file.
10730         * tests/test-search.c: New file.
10731
10732         * modules/search: New file.
10733         * lib/search_.h: New file, incorporating lib/tsearch.h.
10734         * m4/search_h.m4: New file.
10735         * lib/tsearch.h: Remove file.
10736         * lib/tsearch.c: Include search.h instead of tsearch.h.
10737         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
10738         HAVE_TSEARCH.
10739         * modules/tsearch (Files): Remove lib/tsearch.h.
10740         (Depends-on): Add search.
10741         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
10742         (Include): Change tsearch.h into search.h.
10743
10744 2007-03-24  Bruno Haible  <bruno@clisp.org>
10745
10746         * modules/fpucw: New file.
10747         * lib/fpucw.h: New file.
10748         * lib/frexp.c: Include fpucw.h.
10749         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
10750         (FUNC): Use them.
10751         * lib/printf-frexp.c: Include fpucw.h.
10752         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
10753         (FUNC): Use them.
10754         * lib/vasnprintf.c: Include fpucw.h.
10755         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
10756         'long double' calculations.
10757         * tests/test-frexpl.c: Include fpucw.h.
10758         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
10759         * tests/test-printf-frexpl.c: Include fpucw.h.
10760         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
10761         * modules/frexpl (Depends-on): Add fpucw.
10762         * modules/printf-frexpl (Depends-on): Likewise.
10763         * modules/fprintf-posix (Depends-on): Likewise.
10764         * modules/snprintf-posix (Depends-on): Likewise.
10765         * modules/sprintf-posix (Depends-on): Likewise.
10766         * modules/vasnprintf-posix (Depends-on): Likewise.
10767         * modules/vasprintf-posix (Depends-on): Likewise.
10768         * modules/vfprintf-posix (Depends-on): Likewise.
10769         * modules/vsnprintf-posix (Depends-on): Likewise.
10770         * modules/vsprintf-posix (Depends-on): Likewise.
10771         * modules/frexpl-tests (Depends-on): Likewise.
10772         * modules/printf-frexpl-tests (Depends-on): Likewise.
10773
10774 2007-03-24  Bruno Haible  <bruno@clisp.org>
10775
10776         * lib/float+.h: New file.
10777         * lib/isnan.c: Include float+.h.
10778         (SIZE): New macro.
10779         (FUNC): Compare only SIZE bytes of the value.
10780         * lib/vasnprintf.c: Include float+.h.
10781         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
10782         SIZEOF_LDBL or SIZEOF_DBL bytes.
10783         * modules/isnan-nolibm (Files): Add lib/float+.h.
10784         * modules/isnanl-nolibm (Files): Add lib/float+.h.
10785         * modules/isnanl (Files): Add lib/float+.h.
10786         * modules/vasnprintf (Files): Add lib/float+.h.
10787
10788 2007-03-24  Bruno Haible  <bruno@clisp.org>
10789
10790         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
10791         include isnanl-nolibm.h.
10792
10793 2007-03-24  Bruno Haible  <bruno@clisp.org>
10794
10795         * tests/test-read-file.c (main): Don't produce spurious output for
10796         expected situations. Make the test fail if it encountered unexpected
10797         results.
10798
10799 2007-03-24  Bruno Haible  <bruno@clisp.org>
10800
10801         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
10802         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
10803
10804 2007-03-24  Bruno Haible  <bruno@clisp.org>
10805
10806         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
10807
10808 2007-03-24  Bruno Haible  <bruno@clisp.org>
10809
10810         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
10811         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
10812
10813         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
10814         * modules/utf8-ucs4: Turn into a symbolic link to module
10815         unistr/u8-mbtouc.
10816
10817         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
10818         utf8-ucs4-unsafe.
10819         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
10820         unistr/u8-mbtouc-unsafe.
10821
10822         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
10823         * modules/utf16-ucs4: Turn into a symbolic link to module
10824         unistr/u16-mbtouc.
10825
10826         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
10827         utf16-ucs4-unsafe.
10828         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
10829         unistr/u16-mbtouc-unsafe.
10830
10831         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
10832         * modules/ucs4-utf8: Turn into a symbolic link to module
10833         unistr/u8-ubtomb.
10834
10835         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
10836         * modules/ucs4-utf16: Turn into a symbolic link to module
10837         unistr/u16-ubtomb.
10838
10839 2007-03-24  Bruno Haible  <bruno@clisp.org>
10840
10841         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
10842         Enable the function only if HAVE_INLINE.
10843         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
10844         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
10845         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
10846         Enable the function only if HAVE_INLINE.
10847         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
10848         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
10849         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
10850         Enable the function only if HAVE_INLINE.
10851         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
10852         Enable the function only if HAVE_INLINE.
10853         * modules/utf8-ucs4: Update.
10854         * modules/utf8-ucs4-unsafe: Update.
10855         * modules/utf16-ucs4: Update.
10856         * modules/utf16-ucs4-unsafe: Update.
10857         * modules/ucs4-utf8: Update.
10858         * modules/ucs4-utf16: Update.
10859
10860 2007-03-24  Bruno Haible  <bruno@clisp.org>
10861
10862         * lib/utf8-ucs4.h: Remove file.
10863         * lib/utf8-ucs4-unsafe.h: Remove file.
10864         * lib/utf16-ucs4.h: Remove file.
10865         * lib/utf16-ucs4-unsafe.h: Remove file.
10866         * lib/ucs4-utf8.h: Remove file.
10867         * lib/ucs4-utf16.h: Remove file.
10868         * lib/unistr.h: Include their previous contents.
10869         * m4/utf-ucs4.m4: Remove file.
10870         * m4/ucs4-utf.m4: Remove file.
10871         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
10872         (Depends-on): Add unistr/base.
10873         (configure.ac): Remove gl_UTF_UCS4.
10874         (Makefile.am): Update.
10875         (Include): Change to unistr.h.
10876         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
10877         (Depends-on): Add unistr/base.
10878         (configure.ac): Remove gl_UTF_UCS4.
10879         (Makefile.am): Update.
10880         (Include): Change to unistr.h.
10881         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
10882         (Depends-on): Add unistr/base.
10883         (configure.ac): Remove gl_UTF_UCS4.
10884         (Makefile.am): Update.
10885         (Include): Change to unistr.h.
10886         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
10887         (Depends-on): Add unistr/base.
10888         (configure.ac): Remove gl_UTF_UCS4.
10889         (Makefile.am): Update.
10890         (Include): Change to unistr.h.
10891         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
10892         (Depends-on): Add unistr/base.
10893         (configure.ac): Remove gl_UCS4_UTF.
10894         (Makefile.am): Update.
10895         (Include): Change to unistr.h.
10896         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
10897         (Depends-on): Add unistr/base.
10898         (configure.ac): Remove gl_UCS4_UTF.
10899         (Makefile.am): Update.
10900         (Include): Change to unistr.h.
10901         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
10902         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
10903         utf8-ucs4-unsafe.h.
10904         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
10905         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
10906         utf16-ucs4-unsafe.h.
10907         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
10908         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
10909         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
10910         * lib/unistr/u8-strchr.c: Likewise.
10911         * lib/unistr/u8-strrchr.c: Likewise.
10912         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
10913         * lib/unistr/u16-strchr.c: Likewise.
10914         * lib/unistr/u16-strrchr.c: Likewise.
10915         * lib/striconveh.c: Update.
10916         * lib/linebreak.c: Update.
10917
10918 2007-03-24  Bruno Haible  <bruno@clisp.org>
10919
10920         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
10921         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
10922
10923 2007-03-22  Bruno Haible  <bruno@clisp.org>
10924
10925         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
10926
10927 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
10928
10929         * MODULES.html.sh (File system functions): New module write-any-file.
10930         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
10931         * m4/write-any-file.m4: New files.
10932
10933 2007-03-23  Eric Blake  <ebb9@byu.net>
10934
10935         * gnulib-tool: Rearrange space-tab sequences, since some editors
10936         like to eat them.
10937
10938 2007-03-23  Eric Blake  <ebb9@byu.net>
10939
10940         * lib/version-etc.c (version_etc_va): Update license wording to
10941         be more concise.  Recommended by Richard Stallman.
10942
10943 2007-03-22  Bruno Haible  <bruno@clisp.org>
10944
10945         * lib/poll.c (MSG_PEEK): New fallback definition.
10946
10947 2007-03-22  Bruno Haible  <bruno@clisp.org>
10948
10949         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
10950         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
10951         (main): Update.
10952         Fixes a compilation error on BeOS.
10953
10954 2007-03-22  Bruno Haible  <bruno@clisp.org>
10955
10956         * modules/frexpl-tests: New file.
10957         * tests/test-frexpl.c: New file.
10958
10959         * modules/frexpl: New file.
10960         * m4/frexpl.m4: New file.
10961         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
10962         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
10963         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
10964         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
10965         (Depends-on): Add frexpl. Remove isnanl-nolibm.
10966         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
10967
10968 2007-03-22  Bruno Haible  <bruno@clisp.org>
10969
10970         * lib/frexpl.c: Share code with lib/frexp.c.
10971         * modules/mathl (Files): Add lib/frexp.c.
10972         (Depends-on): Add isnanl-nolibm.
10973
10974 2007-03-22  Bruno Haible  <bruno@clisp.org>
10975
10976         * modules/printf-frexp (Files): Add m4/frexp.m4.
10977         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
10978         only if the found frexp function actually works.
10979
10980 2007-03-22  Bruno Haible  <bruno@clisp.org>
10981
10982         * lib/frexp.c: Remove older implementation that uses divisions.
10983
10984 2007-03-21  Bruno Haible  <bruno@clisp.org>
10985
10986         * modules/frexp-tests: New file.
10987         * tests/test-frexp.c: New file.
10988
10989         * modules/frexp: New file.
10990         * lib/frexp.c: New file.
10991         * m4/frexp.m4: New file.
10992         * lib/math_.h (frexp): New declaration.
10993         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
10994         REPLACE_FREXP.
10995         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
10996
10997 2007-03-21  Bruno Haible  <bruno@clisp.org>
10998
10999         * modules/isnanl-tests: New file.
11000         * tests/test-isnanl.c: New file.
11001
11002         * modules/isnanl: New file.
11003         * lib/isnanl.h: New file.
11004         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
11005         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
11006         gl_FUNC_ISNANL_WORKS.
11007         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
11008         New macros.
11009
11010 2007-03-21  Bruno Haible  <bruno@clisp.org>
11011
11012         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
11013         lib/isnanl.h.
11014         (Include): Update.
11015         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
11016         * lib/vasnprintf.c: Update.
11017         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
11018         tests/test-isnanl.h, remove tests/test-isnanl.c.
11019         (Makefile.am): Update.
11020         * tests/test-isnanl-nolibm.c: New file.
11021         * tests/test-isnanl.h: New file.
11022         * tests/test-isnanl.c: Remove file.
11023
11024 2007-03-21  Jim Meyering  <jim@meyering.net>
11025
11026         When trying to open ".", treat ESTALE like EACCES.
11027         * lib/savewd.c (savewd_save): Resort to forking not just upon
11028         failure with EACCES, but also when errno is ESTALE.
11029
11030 2007-03-20  Bruno Haible  <bruno@clisp.org>
11031
11032         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
11033         Needed on AIX 5.1. Reported by Matthew Woehlke.
11034
11035 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
11036
11037         Suggestions by Bruno Haible:
11038         * lib/acl-internal.h: Include "gettext.h" rather than rolling
11039         our own.
11040         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
11041         * modules/acl (Depends-on): Add gettext.
11042
11043 2007-03-19  Bruno Haible  <bruno@clisp.org>
11044
11045         * modules/iconvme: Remove file.
11046         * lib/iconvme.h: Remove file.
11047         * lib/iconvme.c: Remove file.
11048         * m4/iconvme.m4: Remove file.
11049
11050 2007-03-19  Bruno Haible  <bruno@clisp.org>
11051
11052         * doc/relocatable-maint.texi: Break long shell script line.
11053         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
11054
11055 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
11056
11057         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
11058         handle file_has_acl.
11059         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
11060         * lib/acl.c: Move header inclusions and related macro defns into
11061         lib/acl-internal.h.
11062         (S_ISLNK): Remove defn, since that's now done for us.
11063         (file_has_acl): Move to lib/file-has-acl.c.
11064         Call acl_trivial if available.  This is the crucial part of the fix.
11065         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
11066         shared within the library.  Rewrite a bit, partly to make it compatible
11067         with the GNU coding style.
11068         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
11069         Remove unnecessary double-quotes.
11070         Don't test for acl_to_text; the build will catch that.
11071         Replace acl_entries if it doesn't exist and it is needed.
11072         Check for -lsec and acl_trivial (as used on Solaris 10).
11073         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
11074         lib/file-has-acl.c.
11075         (Depends-on): Add sys_stat, for S_ISLNK.
11076
11077 2007-03-19  Ben Pfaff  <blp@gnu.org>
11078
11079         * doc/gnulib.texi: Fix typos.
11080         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
11081
11082 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
11083
11084         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
11085         If size is zero here, buf must be zero.
11086
11087 2007-03-19  Simon Josefsson  <simon@josefsson.org>
11088
11089         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
11090         <bruno@clisp.org>.
11091
11092 2007-03-18  Bruno Haible  <bruno@clisp.org>
11093
11094         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
11095         Suggested by Eric Blake.
11096
11097 2007-03-18  Ben Pfaff  <blp@gnu.org>
11098
11099         * doc/relocatable.texi: Recommend using as prefix a directory
11100         that does not exist and will never be created.  Based on
11101         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
11102         and others.
11103
11104 2007-03-17  Bruno Haible  <bruno@clisp.org>
11105
11106         * lib/fchownat.c: Include lchown.h.
11107
11108 2007-03-17  Bruno Haible  <bruno@clisp.org>
11109
11110         Fix endless loop when the given allocated size was > INT_MAX.
11111         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
11112         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
11113         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
11114         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
11115         * lib/sprintf.c (sprintf): Likewise.
11116
11117 2007-03-17  Bruno Haible  <bruno@clisp.org>
11118
11119         * tests/test-argp-2.sh (func_compare): Output a context diff.
11120
11121 2007-03-17  Bruno Haible  <bruno@clisp.org>
11122
11123         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
11124         locale's decimal-point character.
11125
11126 2007-03-17  Bruno Haible  <bruno@clisp.org>
11127
11128         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
11129         before comparing it. Needed because on some platforms (e.g. x86) a
11130         'long double' occupies less bytes than sizeof (long double).
11131
11132 2007-03-17  Bruno Haible  <bruno@clisp.org>
11133
11134         * tests/test-crc.c (main): Make printf statements 64-bit clean.
11135         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
11136         * tests/test-getaddrinfo.c (simple): Likewise.
11137         * tests/test-read-file.c (main): Likewise.
11138
11139 2007-03-17  Bruno Haible  <bruno@clisp.org>
11140
11141         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
11142
11143 2007-03-17  Bruno Haible  <bruno@clisp.org>
11144
11145         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
11146         unused variable.
11147
11148 2007-03-17  Bruno Haible  <bruno@clisp.org>
11149
11150         * tests/test-c-strcasecmp.c: Include c-strcase.h.
11151         * tests/test-c-strncasecmp.c: Likewise.
11152
11153 2007-03-17  Bruno Haible  <bruno@clisp.org>
11154
11155         * modules/stdlib (Depends-on): Add unistd.
11156         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
11157         Needed for MacOS X 10.3.
11158
11159 2007-03-17  Bruno Haible  <bruno@clisp.org>
11160
11161         * lib/unistr/u-strdup.h: Include <stdlib.h>.
11162
11163 2007-03-17  Bruno Haible  <bruno@clisp.org>
11164
11165         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
11166
11167 2007-03-17  Bruno Haible  <bruno@clisp.org>
11168
11169         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
11170         to reflect files copied from gnulib (with or without modifications).
11171         Suggested by Jim Meyering.
11172
11173 2007-03-17  Eric Blake  <ebb9@byu.net>
11174
11175         * NEWS: Document stdlib change from 2007-02-18.
11176
11177 2007-03-17  Jim Meyering  <jim@meyering.net>
11178
11179         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
11180         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
11181         someone uses a name containing shell meta-characters.
11182         Reported by Alfred M. Szmidt.
11183
11184         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
11185
11186 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
11187
11188         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
11189         and copy gettext configuration files only if configure.ac contains
11190         a use of AM_GNU_GETTEXT_VERSION.
11191
11192 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
11193
11194         * build-aux/bootstrap (gnulib_name): New variable.
11195         (gnulib_tool_options): Use it.
11196
11197 2007-03-13  Simon Josefsson  <simon@josefsson.org>
11198
11199         * tests/test-des.c: Use new namespace.
11200
11201 2007-03-15  Bruno Haible  <bruno@clisp.org>
11202
11203         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
11204         Reported by James Youngman <jay@gnu.org>.
11205
11206 2007-03-15  Bruno Haible  <bruno@clisp.org>
11207
11208         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
11209         declared prototype. Needed with cc on OSF/1 5.1.
11210
11211 2007-03-15  Bruno Haible  <bruno@clisp.org>
11212
11213         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
11214         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
11215         (struct gl_list_implementation): Add dispose_fn argument to the
11216         'create_empty', 'create' methods.
11217         (struct gl_list_impl_base): Add field 'dispose_fn'.
11218         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
11219         argument.
11220         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
11221         dispose_fn argument.
11222         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
11223         dispose_fn on the dropped values.
11224         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
11225         dispose_fn argument.
11226         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
11227         dropped values.
11228         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
11229         (gl_tree_remove_node): Call dispose_fn on the dropped value.
11230         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
11231         (gl_tree_remove_node): Call dispose_fn on the dropped value.
11232         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
11233         argument.
11234         (gl_tree_list_free): Call dispose_fn on the dropped values.
11235         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
11236         the dropped values.
11237         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
11238         Add dispose_fn argument.
11239         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
11240         Call dispose_fn on the dropped values.
11241         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
11242         Add dispose_fn argument.
11243         (gl_sublist_create): Initialize the 'dispose_fn' field.
11244         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
11245         * tests/test-array_list.c (main): Update.
11246         * tests/test-carray_list.c (main): Update.
11247         * tests/test-avltree_list.c (main): Update.
11248         * tests/test-rbtree_list.c (main): Update.
11249         * tests/test-avltreehash_list.c (main): Update.
11250         * tests/test-rbtreehash_list.c (main): Update.
11251         * tests/test-linked_list.c (main): Update.
11252         * tests/test-linkedhash_list.c (main): Update.
11253         * tests/test-array_oset.c (main): Update.
11254
11255 2007-03-15  Bruno Haible  <bruno@clisp.org>
11256
11257         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
11258         (gl_oset_create_empty): Add dispose_fn argument.
11259         (struct gl_oset_implementation): Add dispose_fn argument to
11260         'create_empty' method.
11261         (struct gl_oset_impl_base): Add dispose_fn field.
11262         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
11263         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
11264         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
11265         values.
11266         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
11267         (gl_tree_oset_free): Call dispose_fn on the dropped values.
11268         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
11269         dropped value.
11270         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
11271         dropped value.
11272         * tests/test-array_oset.c (main): Update.
11273         * tests/test-avltree_oset.c (main): Update.
11274         * tests/test-rbtree_oset.c (main): Update.
11275         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
11276
11277 2007-03-13  Bruno Haible  <bruno@clisp.org>
11278
11279         * tests/test-stdbool.c (i): Update after last patch.
11280
11281 2007-03-12  Bruno Haible  <bruno@clisp.org>
11282
11283         * lib/quotearg.c: Include <wctype.h> early, before the definition of
11284         the iswprint macro. Needed on Solaris 2.5.1.
11285
11286 2007-03-12  Bruno Haible  <bruno@clisp.org>
11287
11288         * tests/test-printf-frexp.c (main): Declare x as volatile.
11289
11290 2007-03-12  Simon Josefsson  <simon@josefsson.org>
11291
11292         * doc/gnulib.texi (Build robot for gnulib): New section.
11293
11294 2007-03-12  Jim Meyering  <jim@meyering.net>
11295
11296         * build-aux/bootstrap: New file.
11297         * build-aux/bootstrap.conf: New file, from coreutils.
11298
11299 2007-03-11  Bruno Haible  <bruno@clisp.org>
11300
11301         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
11302
11303 2007-03-12  Simon Josefsson  <simon@josefsson.org>
11304
11305         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
11306         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
11307         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
11308
11309 2007-03-11  Bruno Haible  <bruno@clisp.org>
11310
11311         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
11312         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
11313
11314 2007-03-11  Bruno Haible  <bruno@clisp.org>
11315
11316         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
11317         formula. Needed for SunPRO C 5.0.
11318
11319 2007-03-11  Bruno Haible  <bruno@clisp.org>
11320
11321         * modules/long-options (Depends-on): Add getopt.
11322
11323 2007-03-11  Bruno Haible  <bruno@clisp.org>
11324
11325         * modules/modechange (Depends-on): Add stdbool.
11326
11327 2007-03-11  Bruno Haible  <bruno@clisp.org>
11328
11329         * modules/i-ring (Depends-on): Add stdbool.
11330
11331 2007-03-11  Bruno Haible  <bruno@clisp.org>
11332
11333         * modules/gc-des (Depends-on): Add stdbool.
11334
11335 2007-03-11  Bruno Haible  <bruno@clisp.org>
11336
11337         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
11338
11339 2007-03-11  Bruno Haible  <bruno@clisp.org>
11340
11341         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
11342
11343 2007-03-11  Bruno Haible  <bruno@clisp.org>
11344
11345         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
11346
11347 2007-03-11  Bruno Haible  <bruno@clisp.org>
11348
11349         * lib/vasnprintf.c (sprintf): Undefine.
11350
11351 2007-03-11  Bruno Haible  <bruno@clisp.org>
11352
11353         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
11354         initializers in SunPRO C and Compaq C compilers.
11355
11356 2007-03-11  Bruno Haible  <bruno@clisp.org>
11357
11358         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
11359         decrementing code ANSI C compliant.
11360
11361 2007-03-11  Bruno Haible  <bruno@clisp.org>
11362
11363         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
11364         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
11365
11366 2007-03-11  Bruno Haible  <bruno@clisp.org>
11367
11368         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
11369         <stdbool.h> substitute doesn't pass.
11370
11371 2007-03-11  Bruno Haible  <bruno@clisp.org>
11372
11373         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
11374
11375 2007-03-11  Bruno Haible  <bruno@clisp.org>
11376
11377         * gnulib-tool (func_create_megatestdir): Create also an autobuild
11378         script, for submission to autobuild.josefsson.org.
11379
11380 2007-03-10  Bruno Haible  <bruno@clisp.org>
11381
11382         * modules/canonicalize-lgpl-tests: New file.
11383         * tests/test-canonicalize-lgpl.sh: New file.
11384         * tests/test-canonicalize-lgpl.c: New file.
11385
11386         * modules/c-strcase-tests: New file.
11387         * tests/test-c-strcase.sh: New file.
11388         * tests/test-c-strcasecmp.c: New file.
11389         * tests/test-c-strncasecmp.c: New file.
11390
11391         * modules/atexit-tests: New file.
11392         * tests/test-atexit.sh: New file.
11393         * tests/test-atexit.c: New file.
11394
11395 2007-03-10  Bruno Haible  <bruno@clisp.org>
11396
11397         * tests/test-binary-io.sh: Use temporary filenames that are not so
11398         likely to clash with those of other tests (in a parallel make).
11399         * tests/test-binary-io.c: Likewise.
11400
11401 2007-03-10  Bruno Haible  <bruno@clisp.org>
11402
11403         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
11404         fallback; use #error instead.
11405         Suggested by Simon Josefsson.
11406
11407 2007-03-10  Bruno Haible  <bruno@clisp.org>
11408
11409         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
11410         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
11411         first and the last.
11412
11413 2007-03-10  Bruno Haible  <bruno@clisp.org>
11414
11415         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
11416
11417 2007-03-10  Bruno Haible  <bruno@clisp.org>
11418
11419         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
11420         "make distcheck".
11421         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
11422         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
11423         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
11424
11425 2007-03-10  Bruno Haible  <bruno@clisp.org>
11426
11427         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
11428         variable.
11429         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
11430         variable.
11431
11432 2007-03-09  Eric Blake  <ebb9@byu.net>
11433         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
11434
11435         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
11436         types are not being provided by gnulib.
11437         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
11438         types are supported.
11439
11440 2007-03-10  Bruno Haible  <bruno@clisp.org>
11441
11442         * lib/stdio_.h (__attribute__): New macro.
11443         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
11444         vsprintf): Specify __attribute__ __format__ for GCC.
11445         Suggested by Eric Blake.
11446
11447 2007-03-09  Bruno Haible  <bruno@clisp.org>
11448
11449         * modules/printf-posix-tests: New file.
11450         * tests/test-printf-posix.sh: New file.
11451         * tests/test-printf-posix.c: New file.
11452
11453         * modules/printf-posix: New file.
11454         * lib/printf.c: New file.
11455         * m4/printf-posix-rpl.m4: New file.
11456         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
11457         REPLACE_PRINTF.
11458         * lib/stdio_.h (printf): New declaration.
11459         (format, __format__, ____printf____, ____scanf____, ____strftime____,
11460         ____strfmon____): New macros.
11461         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
11462         REPLACE_PRINTF.
11463
11464 2007-03-09  Bruno Haible  <bruno@clisp.org>
11465
11466         * tests/test-vasnprintf-posix2.sh: New file.
11467         * tests/test-vasnprintf-posix2.c: New file.
11468         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
11469         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
11470         (Makefile.am): Activate test-vasnprintf-posix2.sh.
11471
11472         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
11473         a locale dependent decimal point, rather than always '.'.
11474
11475 2007-03-09  Eric Blake  <ebb9@byu.net>
11476
11477         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
11478         spite of platforms like Tandem/NSK that define it to -1.
11479
11480 2007-03-08  Bruno Haible  <bruno@clisp.org>
11481
11482         * modules/vprintf-posix-tests: New file.
11483         * tests/test-vprintf-posix.sh: New file.
11484         * tests/test-vprintf-posix.c: New file.
11485         * tests/test-printf-posix.h: New file.
11486
11487         * modules/vprintf-posix: New file.
11488         * lib/vprintf.c: New file.
11489         * m4/vprintf-posix.m4: New file.
11490         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
11491         REPLACE_VPRINTF.
11492         * lib/stdio_.h (vprintf): New declaration.
11493         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
11494         REPLACE_VPRINTF.
11495
11496 2007-03-08  Bruno Haible  <bruno@clisp.org>
11497
11498         * modules/fprintf-posix-tests: New file.
11499         * tests/test-fprintf-posix.sh: New file.
11500         * tests/test-fprintf-posix.c: New file.
11501
11502         * modules/fprintf-posix: New file.
11503         * lib/fprintf.c: New file.
11504         * m4/fprintf-posix.m4: New file.
11505         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
11506         REPLACE_FPRINTF.
11507         * lib/stdio_.h (fprintf): New declaration.
11508         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
11509         REPLACE_FPRINTF.
11510
11511 2007-03-08  Bruno Haible  <bruno@clisp.org>
11512
11513         * modules/vfprintf-posix-tests: New file.
11514         * tests/test-vfprintf-posix.sh: New file.
11515         * tests/test-vfprintf-posix.c: New file.
11516         * tests/test-fprintf-posix.h: New file.
11517         * tests/test-fprintf-posix.out: New file.
11518
11519         * modules/vfprintf-posix: New file.
11520         * lib/vfprintf.c: New file.
11521         * m4/vfprintf-posix.m4: New file.
11522         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
11523         REPLACE_VFPRINTF.
11524         * lib/stdio_.h (vfprintf): New declaration.
11525         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
11526         REPLACE_VFPRINTF.
11527
11528 2007-03-08  Bruno Haible  <bruno@clisp.org>
11529
11530         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
11531
11532 2007-03-08  Bruno Haible  <bruno@clisp.org>
11533
11534         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
11535         instead of 'expr' invocations.
11536         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
11537         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
11538         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
11539         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
11540         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
11541         Suggested by Paul Eggert.
11542
11543 2007-03-08  Bruno Haible  <bruno@clisp.org>
11544
11545         * modules/fseterr-tests: New file.
11546         * tests/test-fseterr.c: New file.
11547
11548         * modules/fseterr: New file.
11549         * lib/fseterr.h: New file.
11550         * lib/fseterr.c: New file.
11551
11552 2007-03-08  Bruno Haible  <bruno@clisp.org>
11553
11554         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
11555         * lib/getopt_.h: Likewise.
11556         * lib/mbswidth.h: Likewise.
11557         * lib/setenv.h: Likewise.
11558         * lib/vasnprintf.h: Likewise.
11559         * lib/vasprintf.h: Likewise.
11560         * lib/verror.h: Likewise.
11561         * lib/xsetenv.h: Likewise.
11562         * lib/xvasprintf.h: Likewise.
11563
11564 2007-03-08  Jim Meyering  <jim@meyering.net>
11565
11566         * users.txt: Add parted.
11567
11568         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
11569
11570 2007-03-07  Bruno Haible  <bruno@clisp.org>
11571
11572         * m4/printf.m4: Make the shell script snippets copy&pastable.
11573
11574 2007-03-02  Bruno Haible  <bruno@clisp.org>
11575
11576         * lib/netinet_in_.h: New file.
11577         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
11578         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
11579         * modules/netinet_in (Files): Add lib/netinet_in_.h.
11580         (Depends-on): Add absolute-header.
11581         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
11582         into netinet/in.h.
11583
11584 2007-03-03  Bruno Haible  <bruno@clisp.org>
11585
11586         * lib/sys_select_.h: New file.
11587         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
11588         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
11589         * modules/sys_select (Files): Add lib/sys_select_.h.
11590         (Depends-on): Add absolute-header.
11591         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
11592         into sys/select.h.
11593
11594 2007-03-02  Bruno Haible  <bruno@clisp.org>
11595
11596         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
11597         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
11598         values.
11599         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
11600         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
11601         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
11602         * modules/sys_socket (Depends-on): Add absolute-header.
11603         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
11604         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
11605         (Include): Remove requirement of inclusion of <sys/types.h>.
11606
11607 2007-03-02  Bruno Haible  <bruno@clisp.org>
11608
11609         * lib/byteswap_.h (bswap_32): Fix formula.
11610
11611 2007-03-06  Bruno Haible  <bruno@clisp.org>
11612
11613         * modules/sprintf-posix-tests: New file.
11614         * tests/test-sprintf-posix.c: New file.
11615
11616         * modules/sprintf-posix: New file.
11617         * lib/sprintf.c: New file.
11618         * m4/sprintf-posix.m4: New file.
11619         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
11620         REPLACE_SPRINTF.
11621         * lib/stdio_.h (sprintf): New declaration.
11622         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
11623         REPLACE_SPRINTF.
11624
11625 2007-03-06  Bruno Haible  <bruno@clisp.org>
11626
11627         * modules/vsprintf-posix-tests: New file.
11628         * tests/test-vsprintf-posix.c: New file.
11629         * tests/test-sprintf-posix.h: New file.
11630
11631         * modules/vsprintf-posix: New file.
11632         * lib/vsprintf.c: New file.
11633         * m4/vsprintf-posix.m4: New file.
11634         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
11635         REPLACE_VSPRINTF.
11636         * lib/stdio_.h (vsprintf): New declaration.
11637         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
11638         REPLACE_VSPRINTF.
11639
11640 2007-03-06  Bruno Haible  <bruno@clisp.org>
11641
11642         * modules/vsnprintf (Depend-on): Remove minmax.
11643
11644 2007-03-06  Bruno Haible  <bruno@clisp.org>
11645
11646         * modules/snprintf-posix-tests: New file.
11647         * tests/test-snprintf-posix.c: New file.
11648
11649         * modules/snprintf-posix: New file.
11650         * m4/snprintf-posix.m4: New file.
11651         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
11652         gl_FUNC_SNPRINTF.
11653         (gl_FUNC_SNPRINTF): Invoke it.
11654         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
11655         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
11656         is set.
11657         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
11658
11659 2007-03-06  Bruno Haible  <bruno@clisp.org>
11660
11661         * modules/vsnprintf-posix-tests: New file.
11662         * tests/test-vsnprintf-posix.c: New file.
11663         * tests/test-snprintf-posix.h: New file.
11664
11665         * modules/vsnprintf-posix: New file.
11666         * m4/vsnprintf-posix.m4: New file.
11667         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
11668         gl_FUNC_VSNPRINTF.
11669         (gl_FUNC_VSNPRINTF): Invoke it.
11670         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
11671         * lib/stdio_.h (vsnprintf): Define as a replacement if
11672         REPLACE_VSNPRINTF is set.
11673         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
11674
11675 2007-03-06  Bruno Haible  <bruno@clisp.org>
11676
11677         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
11678         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
11679
11680 2007-03-06  Bruno Haible  <bruno@clisp.org>
11681
11682         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
11683         (asinl): Declare also if HAVE_DECL_ASINL is set.
11684         (atanl): Declare also if HAVE_DECL_ATANL is set.
11685         (ceill): Declare also if HAVE_DECL_CEILL is set.
11686         (cosl): Declare also if HAVE_DECL_COSL is set.
11687         (expl): Declare also if HAVE_DECL_EXPL is set.
11688         (floorl): Declare also if HAVE_DECL_FLOORL is set.
11689         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
11690         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
11691         (logl): Declare also if HAVE_DECL_LOGL is set.
11692         (sinl): Declare also if HAVE_DECL_SINL is set.
11693         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
11694         (tanl): Declare also if HAVE_DECL_TANL is set.
11695         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
11696         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
11697         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
11698         declaration of frexpl, ldexpl.
11699         * modules/printf-frexpl (Depends-on): Add math.
11700         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
11701
11702 2007-03-05  Bruno Haible  <bruno@clisp.org>
11703
11704         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
11705         frexpl and ldexpl are declared.
11706         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
11707
11708 2007-03-05  Bruno Haible  <bruno@clisp.org>
11709
11710         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
11711         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
11712
11713 2007-03-05  Bruno Haible  <bruno@clisp.org>
11714
11715         * lib/stdio_.h: Include <stddef.h>.
11716
11717 2007-03-05  Bruno Haible  <bruno@clisp.org>
11718
11719         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
11720
11721 2007-03-05  Bruno Haible  <bruno@clisp.org>
11722
11723         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
11724         NetBSD 4, from Ralf Wildenhues.
11725
11726 2007-03-04  Bruno Haible  <bruno@clisp.org>
11727
11728         * lib/vasprintf.h: Update #if logic for the case when the functions
11729         exist but are overridden.
11730
11731 2007-03-04  Bruno Haible  <bruno@clisp.org>
11732
11733         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
11734         implementations: glibc-2.4 and MacOS X 10.3.
11735         * tests/test-vasnprintf-posix.c (test_function): Test also the case
11736         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
11737         * tests/test-vasprintf-posix.c (test_function): Likewise.
11738
11739 2007-03-04  Bruno Haible  <bruno@clisp.org>
11740
11741         * modules/vasprintf-posix-tests: New file.
11742         * tests/test-vasprintf-posix.c: New file.
11743
11744         * modules/vasprintf-posix: New file.
11745         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
11746         defined.
11747         * m4/vasprintf-posix.m4: New file.
11748         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
11749         gl_FUNC_VASPRINTF.
11750         (gl_FUNC_VASPRINTF): Invoke it.
11751         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
11752         here.
11753         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
11754
11755 2007-03-04  Bruno Haible  <bruno@clisp.org>
11756
11757         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
11758         REPLACE_GETTIMEOFDAY.
11759         * modules/sys_time (Makefile.am): Likewise.
11760         * m4/sys_time_h.m4: Likewise.
11761         * m4/gettimeofday.m4: Likewise.
11762
11763 2007-03-04  Bruno Haible  <bruno@clisp.org>
11764
11765         * modules/vasnprintf-posix-tests: New file.
11766         * tests/test-vasnprintf-posix.c: New file.
11767
11768         * modules/vasnprintf-posix: New file.
11769         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
11770         printf-frexpl.h.
11771         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
11772         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
11773         REPLACE_VASNPRINTF is defined.
11774         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
11775         gl_FUNC_VASNPRINTF.
11776         (gl_FUNC_VASNPRINTF): Invoke it.
11777         * m4/vasnprintf-posix.m4: New file.
11778         * m4/printf.m4: New file.
11779
11780 2007-03-04  Bruno Haible  <bruno@clisp.org>
11781
11782         Compile progreloc.c only if --enable-relocatable is specified.
11783         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
11784         if --enable-relocatable was specified.
11785         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
11786         lib_SOURCES.
11787
11788 2007-03-04  Jim Meyering  <jim@meyering.net>
11789
11790         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
11791         Use it consistently, rather than enumerating errno constants.
11792
11793 2007-03-04  Bruno Haible  <bruno@clisp.org>
11794
11795         * modules/xvasprintf-tests: New file.
11796         * tests/test-xvasprintf.c: New file.
11797
11798         * modules/vasprintf-tests: New file.
11799         * tests/test-vasprintf.c: New file.
11800
11801         * modules/vasnprintf-tests: New file.
11802         * tests/test-vasnprintf.c: New file.
11803
11804         * modules/vsnprintf-tests: New file.
11805         * tests/test-vsnprintf.c: New file.
11806
11807         * modules/snprintf-tests: New file.
11808         * tests/test-snprintf.c: New file.
11809
11810 2007-03-04  Bruno Haible  <bruno@clisp.org>
11811
11812         Compile relocatable.c only if --enable-relocatable is specified.
11813         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
11814         gl_RELOCATABLE_LIBRARY.
11815         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
11816         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
11817         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
11818         gl_RELOCATABLE_LIBRARY.
11819         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
11820         (Makefile.am): Remove lib_SOURCES.
11821         * modules/relocatable-lib-lgpl (configure.ac): Invoke
11822         gl_RELOCATABLE_LIBRARY.
11823         (Makefile.am): Remove lib_SOURCES.
11824         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
11825         always.
11826         * modules/relocatable-prog-wrapper (configure.ac): Invoke
11827         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
11828
11829 2007-03-04  Bruno Haible  <bruno@clisp.org>
11830
11831         * modules/argmatch-tests: New file.
11832         * tests/test-argmatch.c: New file.
11833
11834         * tests/test-allocsa.c (main): Halve the number of loop runs.
11835
11836         * modules/alloca-opt-tests: New file.
11837         * tests/test-alloca-opt.c: New file.
11838
11839 2007-03-04  Jim Meyering  <jim@meyering.net>
11840
11841         Work around difference between Linux ACLs and Solaris 10 ZFS.
11842         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
11843         for EINVAL.
11844
11845 2007-03-03  Bruno Haible  <bruno@clisp.org>
11846
11847         * modules/relocatable-prog (Depends-on): Add back progreloc's
11848         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
11849
11850 2007-03-03  Bruno Haible  <bruno@clisp.org>
11851
11852         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
11853         * modules/relocatable-lib: New file.
11854
11855 2007-03-03  Bruno Haible  <bruno@clisp.org>
11856
11857         * modules/relocatable-prog: Renamed from modules/relocatable.
11858         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
11859
11860 2007-03-03  Bruno Haible  <bruno@clisp.org>
11861
11862         * modules/relocatable-script (Files): Add doc/relocatable.texi,
11863         m4/relocatable-lib.m4.
11864         (Depends-on): Remove 'relocatable'.
11865         (configure.ac): Add gl_RELOCATABLE_NOP.
11866
11867 2007-03-03  Bruno Haible  <bruno@clisp.org>
11868
11869         * modules/relocatable-prog-wrapper: New file.
11870         * modules/relocatable (Depends-on): Add it. Remove all other
11871         dependencies except progname.
11872         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
11873
11874         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
11875         (gl_FUNC_STRERROR): Nop.
11876         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
11877
11878         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
11879         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
11880
11881         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
11882         (gl_FUNC_READLINK): Update.
11883
11884         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
11885
11886 2007-03-03  Bruno Haible  <bruno@clisp.org>
11887
11888         * lib/xreadlink.c: Include <unistd.h> unconditionally.
11889         * modules/xreadlink (Depends-on): Add unistd.
11890         * modules/xreadlink-with-size (Depends-on): Likewise.
11891
11892 2007-03-03  Bruno Haible  <bruno@clisp.org>
11893
11894         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
11895         extracted from gt_FUNC_SETENV.
11896         (gt_FUNC_SETENV): Remove macro.
11897         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
11898         remove gt_FUNC_SETENV.
11899
11900 2007-03-03  Bruno Haible  <bruno@clisp.org>
11901
11902         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
11903         ENABLE_RELOCATABLE here.
11904         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
11905
11906 2007-03-03  Bruno Haible  <bruno@clisp.org>
11907
11908         * modules/rbtreehash-list-tests (Depends-on): Add progname.
11909         * tests/test-rbtreehash_list.c: Include progname.h.
11910         (main): Call set_program_name.
11911
11912         * modules/rbtree-oset-tests (Depends-on): Add progname.
11913         * tests/test-rbtree_oset.c: Include progname.h.
11914         (main): Call set_program_name.
11915
11916         * modules/rbtree-list-tests (Depends-on): Add progname.
11917         * tests/test-rbtree_list.c: Include progname.h.
11918         (main): Call set_program_name.
11919
11920         * modules/linked-list-tests (Depends-on): Add progname.
11921         * tests/test-linked_list.c: Include progname.h.
11922         (main): Call set_program_name.
11923
11924 2007-03-03  Bruno Haible  <bruno@clisp.org>
11925
11926         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
11927         All uses of __restrict changed to _Restrict_.
11928         * lib/glob_.h (__restrict): Remove macro.
11929
11930 2007-03-02  Bruno Haible  <bruno@clisp.org>
11931
11932         * modules/gettext (configure.ac): Require gettext infrastructure
11933         from version 0.16.1.
11934
11935 2007-03-02  Bruno Haible  <bruno@clisp.org>
11936
11937         * modules/linkedhash-list-tests (Depends-on): Add progname.
11938         * tests/test-linkedhash_list.c: Include progname.h.
11939         (main): Call set_program_name.
11940
11941         * modules/carray-list-tests (Depends-on): Add progname.
11942         * tests/test-carray_list.c: Include progname.h.
11943         (main): Call set_program_name.
11944
11945         * modules/avltreehash-list-tests (Depends-on): Add progname.
11946         * tests/test-avltreehash_list.c: Include progname.h.
11947         (main): Call set_program_name.
11948
11949         * modules/avltree-oset-tests (Depends-on): Add progname.
11950         * tests/test-avltree_oset.c: Include progname.h.
11951         (main): Call set_program_name.
11952
11953         * modules/avltree-list-tests (Depends-on): Add progname.
11954         * tests/test-avltree_list.c: Include progname.h.
11955         (main): Call set_program_name.
11956
11957         * modules/array-oset-tests (Depends-on): Add progname.
11958         * tests/test-array_oset.c: Include progname.h.
11959         (main): Call set_program_name.
11960
11961         * modules/array-list-tests (Depends-on): Add progname.
11962         * tests/test-array_list.c: Include progname.h.
11963         (main): Call set_program_name.
11964
11965         * modules/argp-tests (Depends-on): Add progname.
11966         * tests/test-argp.c: Include argp.h first. Include progname.h.
11967         (main): Call set_program_name.
11968
11969 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
11970
11971         * doc/gnulib-tool.texi (Initial import): Reword description of
11972         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
11973         limited effect even if defined after the first system include.
11974
11975 2007-03-01  Bruno Haible  <bruno@clisp.org>
11976
11977         * build-aux/config.libpath: Update to libtool-1.5.22.
11978         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
11979
11980 2007-03-01  Bruno Haible  <bruno@clisp.org>
11981
11982         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
11983         foo_CFLAGS.
11984         Reported by Ralf Wildenhues.
11985
11986 2007-03-01  Bruno Haible  <bruno@clisp.org>
11987
11988         * build-aux/install-reloc: Remove object files left over by some
11989         compilers.
11990         Reported by Ralf Wildenhues.
11991
11992 2007-03-01  Bruno Haible  <bruno@clisp.org>
11993
11994         * build-aux/install-reloc: Break long lines.
11995
11996 2007-03-01  Bruno Haible  <bruno@clisp.org>
11997
11998         * doc/relocatable.texi: Document that it may not work on OpenBSD.
11999         Reported by Ralf Wildenhues.
12000
12001 2007-03-01  Bruno Haible  <bruno@clisp.org>
12002
12003         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
12004         include ordering constraints.
12005
12006 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
12007
12008         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
12009         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
12010         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
12011         as another example.
12012         * lib/time_.h: Fix misspelling.
12013         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
12014         Require gl_HEADER_TIME_H_DEFAULTS.
12015         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
12016         * m4/time_r.m4 (gl_TIME_R): Likewise.
12017         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
12018
12019 2007-03-01  Bruno Haible  <bruno@clisp.org>
12020
12021         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
12022         * m4/utimens.m4 (gl_UTIMENS): Likewise.
12023
12024 2007-03-01  Jim Meyering  <jim@meyering.net>
12025
12026         * modules/xreadlink (Maintainer): Add my name.
12027         * modules/xreadlink-with-size (Depends-on): Alphabetize.
12028
12029 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
12030             Bruno Haible  <bruno@clisp.org>
12031
12032         * build-aux/install-reloc: Compile also c-ctype.c.
12033         * build-aux/relocatable.sh.in: New file.
12034         * doc/relocatable.texi: New file.
12035         * doc/relocatable-maint.texi: New file.
12036         * doc/gnulib.texi: Include relocatable-maint.texi.
12037         * lib/progreloc.c: Include unistd.h unconditionally.
12038         * lib/relocwrapper.c: Include unistd.h unconditionally.
12039         Include c-ctype.h.
12040         (add_dotbin): Use c_tolower.
12041         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
12042         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
12043         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
12044         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
12045         to m4/relocatable-lib.m4.
12046         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
12047         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
12048         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
12049         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
12050         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
12051         * modules/relocatable: New file.
12052         * modules/relocatable-lib: New file.
12053         * modules/relocatable-script: New file.
12054
12055 2007-02-28  Bruno Haible  <bruno@clisp.org>
12056
12057         Import --enable-relocatable infrastructure.
12058         * build-aux/config.libpath: New file, from GNU gettext.
12059         * build-aux/install-reloc: New file, from GNU gettext.
12060         * build-aux/reloc-ldflags: New file, from GNU gettext.
12061         * lib/relocatable.h: New file, from GNU gettext.
12062         * lib/relocatable.c: New file, from GNU gettext.
12063         * lib/relocwrapper.c: New file, from GNU gettext.
12064         * m4/relocatable.m4: New file, from GNU gettext.
12065
12066 2007-02-28  Bruno Haible  <bruno@clisp.org>
12067
12068         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
12069
12070         * modules/xreadlink: New file, from GNU gettext with modifications.
12071         * lib/xreadlink.c: New file, from GNU gettext.
12072         * lib/xreadlink.h: Add comments.
12073         (xreadlink): New declaration.
12074
12075         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
12076         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
12077         lib/xreadlink-with-size.c.
12078         (configure.ac): Remove gl_XREADLINK invocation.
12079         (Makefile.am): Augment lib_SOURCES.
12080         * m4/xreadlink.m4: Remove file.
12081         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
12082         (xreadlink_with_size): Renamed from xreadink.
12083         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
12084         * modules/canonicalize (Depends-on): Replace xreadlink with
12085         xreadlink-with-size.
12086         * lib/canonicalize.c (canonicalize_filename_mode): Update.
12087
12088 2007-02-25  Jim Meyering  <jim@meyering.net>
12089
12090         * build-aux/announce-gen: When complaining about excess arguments,
12091         list them.
12092
12093 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
12094
12095         * README: Document signed integer overflow situation more
12096         accurately.
12097
12098 2007-02-25  Bruno Haible  <bruno@clisp.org>
12099
12100         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
12101         'a' or 'A' conversion.
12102
12103 2007-02-25  Bruno Haible  <bruno@clisp.org>
12104
12105         * modules/filename: Renamed from modules/pathname.
12106         (Files): Replace lib/pathname.h with lib/filename.h. Replace
12107         lib/concatpath.c with lib/concat-filename.c.
12108         (Makefile.am): Update.
12109         (Include): Replace pathname.h with filename.h.
12110         * lib/filename.h: Renamed from lib/pathname.h.
12111         (concatenated_filename): Renamed from concatenated_pathname.
12112         * lib/concat-filename.c: Renamed from lib/concatpath.c.
12113         (concatenated_filename): Renamed from concatenated_pathname.
12114         * lib/findprog.c: Include filename.h instead of pathname.h.
12115         (find_in_path): Update.
12116         * lib/javacomp.c: Include filename.h instead of pathname.h.
12117         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
12118         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
12119         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
12120         is_oldgcj_14_13_usable, is_javac_usable): Update.
12121         * lib/javaexec.c: Include filename.h instead of pathname.h.
12122         (execute_java_class): Update.
12123         * modules/findprog: Update.
12124         * modules/javacomp: Update.
12125         * modules/javaexec: Update.
12126         * MODULES.html.sh (File system functions): Add 'filename', remove
12127         'pathname'.
12128
12129 2007-02-25  Bruno Haible  <bruno@clisp.org>
12130
12131         * modules/printf-frexpl-tests: New file.
12132         * tests/test-printf-frexpl.c: New file.
12133
12134         * modules/printf-frexpl: New file.
12135         * lib/printf-frexpl.h: New file.
12136         * lib/printf-frexpl.c: New file.
12137         * m4/printf-frexpl.m4: New file.
12138
12139 2007-02-25  Bruno Haible  <bruno@clisp.org>
12140
12141         * modules/printf-frexp-tests: New file.
12142         * tests/test-printf-frexp.c: New file.
12143
12144         * modules/printf-frexp: New file.
12145         * lib/printf-frexp.h: New file.
12146         * lib/printf-frexp.c: New file.
12147         * m4/printf-frexp.m4: New file.
12148
12149 2007-02-25  Bruno Haible  <bruno@clisp.org>
12150
12151         Assume automake >= 1.10 for the tests.
12152         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
12153         * modules/arctwo-tests: Likewise.
12154         * modules/argp-tests: Likewise.
12155         * modules/avltree-list-tests: Likewise.
12156         * modules/avltree-oset-tests: Likewise.
12157         * modules/avltreehash-list-tests: Likewise.
12158         * modules/carray-list-tests: Likewise.
12159         * modules/crc-tests: Likewise.
12160         * modules/des-tests: Likewise.
12161         * modules/gc-arcfour-tests: Likewise.
12162         * modules/gc-arctwo-tests: Likewise.
12163         * modules/gc-des-tests: Likewise.
12164         * modules/gc-hmac-md5-tests: Likewise.
12165         * modules/gc-hmac-sha1-tests: Likewise.
12166         * modules/gc-md2-tests: Likewise.
12167         * modules/gc-md4-tests: Likewise.
12168         * modules/gc-md5-tests: Likewise.
12169         * modules/gc-pbkdf2-sha1-tests: Likewise.
12170         * modules/gc-rijndael-tests: Likewise.
12171         * modules/gc-sha1-tests: Likewise.
12172         * modules/gc-tests: Likewise.
12173         * modules/getaddrinfo-tests: Likewise.
12174         * modules/hmac-md5-tests: Likewise.
12175         * modules/hmac-sha1-tests: Likewise.
12176         * modules/linked-list-tests: Likewise.
12177         * modules/linkedhash-list-tests: Likewise.
12178         * modules/lock-tests: Likewise.
12179         * modules/md2-tests: Likewise.
12180         * modules/md4-tests: Likewise.
12181         * modules/md5-tests: Likewise.
12182         * modules/rbtree-list-tests: Likewise.
12183         * modules/rbtree-oset-tests: Likewise.
12184         * modules/rbtreehash-list-tests: Likewise.
12185         * modules/read-file-tests: Likewise.
12186         * modules/rijndael-tests: Likewise.
12187         * modules/stdint-tests: Likewise.
12188         * modules/tls-tests: Likewise.
12189
12190 2007-02-24  Bruno Haible  <bruno@clisp.org>
12191
12192         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
12193         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
12194         function; instead check whether isnan with a double argument links.
12195         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
12196         function; instead check whether isnan with a 'long double' argument
12197         links.
12198         Reported by Eric Blake <ebb9@byu.net>.
12199
12200 2007-02-24  Bruno Haible  <bruno@clisp.org>
12201
12202         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
12203         defined.
12204         * lib/isnanl.c: Remove all code. Just include isnan.c.
12205         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
12206
12207 2007-02-25  Jim Meyering  <jim@meyering.net>
12208
12209         Avoid conflicting types for 'unsetenv' on FreeBSD.
12210         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
12211         conflicting with FreeBSD's (5.0 and 6.1) function declaration
12212         in stdlib.h.
12213
12214 2007-02-24  Bruno Haible  <bruno@clisp.org>
12215
12216         * modules/isnanl-nolibm-tests: New file.
12217         * tests/test-isnanl.c: New file.
12218
12219         * modules/isnanl-nolibm: New file.
12220         * lib/isnanl.h: New file.
12221         * lib/isnanl.c: New file.
12222         * m4/isnanl.m4: New file.
12223
12224 2007-02-24  Bruno Haible  <bruno@clisp.org>
12225
12226         * modules/isnan-nolibm-tests: New file.
12227         * tests/test-isnan.c: New file.
12228
12229         * modules/isnan-nolibm: New file.
12230         * lib/isnan.h: New file.
12231         * lib/isnan.c: New file.
12232         * m4/isnan.m4: New file.
12233
12234 2007-02-24  Bruno Haible  <bruno@clisp.org>
12235
12236         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
12237         assume that an exponent fits in 20 bits.
12238
12239 2007-02-24  Jim Meyering  <jim@meyering.net>
12240
12241         * m4/regex.m4: Update the description of the configure-time option,
12242         --without-included-regex, to state accurately what the defaults are,
12243         and perhaps to give people an idea why using this option is risky.
12244
12245 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
12246
12247         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
12248         loops on small arguments.  This attempts to avoid the problem
12249         Bruno Haible reported for AIX 4.3.2 in
12250         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
12251
12252 2007-02-23  Bruno Haible  <bruno@clisp.org>
12253
12254         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
12255         Needed for help2man.
12256
12257 2007-02-23  Karl Berry  <karl@gnu.org>
12258
12259         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
12260         exists, foo.h should be cvs-ignored, not committed.
12261
12262 2007-02-23  Eric Blake  <ebb9@byu.net>
12263
12264         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
12265         * lib/stat-time.h (includes): Likewise.
12266         * lib/utimecmp.c (includes): Likewise.
12267         * lib/utimens.h (includes): Likewise.
12268         * lib/getdate.y (includes): Also include "timespec.h" for use
12269         internal to the module.
12270         * modules/utimens (Depends-on): Revert yesterday's patch.
12271         * modules/nanosleep (Depends-on): Add missing dependency.
12272
12273 2007-02-22  Bruno Haible  <bruno@clisp.org>
12274
12275         * lib/glob.c: Don't include getlogin_r.h.
12276
12277 2007-02-22  Jim Meyering  <jim@meyering.net>
12278
12279         * modules/utimens (Depends-on): Add timespec, required for
12280         utimens.h's inclusion of timespec.h.
12281
12282 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
12283
12284         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
12285         long unreadable paths in GNU/Linux.  Problem reported by Andreas
12286         Schwab in
12287         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
12288         I'll try to think of a better way to fix the Solaris problem.
12289
12290         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
12291         like glibc; on Solaris 10, it fails with errno == EINVAL.
12292         POSIX says the behavior is unspecified if the first argument is NULL,
12293         so play it safe and never pass NULL to the system getcwd.
12294
12295 2007-02-21  Jim Meyering  <jim@meyering.net>
12296
12297         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
12298         of gettimeofday.  It would conflict with the one now always
12299         provided via sys_time_.h.  Reported by Matthew Woehlke, as
12300         an IRIX 6.5 build failure.
12301
12302 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
12303
12304         Minor fixups to port to Solaris 10 with Sun C 5.8.
12305         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
12306         * modules/getcwd (Depends-on): Add dirfd.
12307         * lib/putenv.c (putenv): #undef it.
12308         (rpl_putenv): New decl.
12309         (malloc, free): Include <stdlib.h> rather than prototyping separately.
12310
12311 2007-02-20  Bruno Haible  <bruno@clisp.org>
12312
12313         * modules/stdio-tests: New file.
12314         * tests/test-stdio.c: New file.
12315
12316         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
12317         (Depends-on): Add stdio.
12318         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
12319         (Include): Use <stdio.h> instead of vsnprintf.h.
12320         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
12321         HAVE_DECL_VSNPRINTF.
12322         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
12323
12324         * modules/snprintf (Files): Remove lib/snprintf.h.
12325         (Depends-on): Add stdio.
12326         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
12327         (Include): Use <stdio.h> instead of snprintf.h.
12328         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
12329         HAVE_DECL_SNPRINTF.
12330         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
12331         * lib/getaddrinfo.c: Likewise.
12332
12333         * modules/stdio: New file.
12334         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
12335         * lib/snprintf.h: Remove file.
12336         * lib/vsnprintf.h: Remove file.
12337         * lib/.cppi-disable: Remove snprintf.h.
12338         * m4/stdio_h.m4: New file.
12339         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
12340
12341 2007-02-20  Jim Meyering  <jim@meyering.net>
12342
12343         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
12344         used by e.g., mingw.  From Bruno Haible.
12345
12346 2007-02-19  Bruno Haible  <bruno@clisp.org>
12347
12348         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
12349         warnings.
12350         Reported by Ben Pfaff <blp@cs.stanford.edu>.
12351
12352 2007-02-19  Bruno Haible  <bruno@clisp.org>
12353
12354         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
12355         from mingw users.
12356
12357 2007-02-19  Bruno Haible  <bruno@clisp.org>
12358
12359         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
12360         warnings.
12361         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
12362
12363 2007-02-19  Jim Meyering  <jim@meyering.net>
12364
12365         Don't use FD after a successful "fdopendir (fd)".
12366         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
12367         Reset it by calling dirfd on the just-obtained DIR*.
12368
12369         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
12370         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
12371
12372 2007-02-18  Bruno Haible  <bruno@clisp.org>
12373
12374         * lib/readlink.c: Include <unistd.h>.
12375         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
12376         HAVE_READLINK.
12377         * modules/readlink (Depends-on): Add unistd.
12378         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
12379         (Include): Add <unistd.h>.
12380
12381         * lib/getlogin_r.h: Remove file.
12382         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
12383         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
12384         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
12385         HAVE_DECL_GETLOGIN_R.
12386         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
12387         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
12388         (Include): Use <unistd.h> instead of getlogin_r.h.
12389
12390         * lib/getcwd.h: Remove file.
12391         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
12392         * lib/xgetcwd.c: Likewise.
12393         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
12394         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
12395         * modules/getcwd (Files): Remove lib/getcwd.h.
12396         (Depends-on): Add unistd.
12397         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
12398         (Include): Use <unistd.h> instad of getcwd.h.
12399
12400         * lib/ftruncate.c: Include <unistd.h> first.
12401         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
12402         Set HAVE_FTRUNCATE.
12403         * modules/ftruncate (Depends-on): Add unistd.
12404         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
12405
12406         * lib/fchdir.c: Include <unistd.h> first.
12407         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
12408         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
12409         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
12410         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
12411         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
12412
12413         * lib/dup2.c: Include <unistd.h> first.
12414         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
12415         HAVE_DUP2.
12416         * modules/dup2 (Depends-on): Add unistd.
12417         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
12418
12419         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
12420         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
12421         REPLACE_CHOWN. Don't define chown as a macro here.
12422         * modules/chown (Depends-on): Add unistd.
12423         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
12424
12425         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
12426         Add definition for GL_LINK_WARNING.
12427         (chown, dup2): New declarations.
12428         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
12429         link warning.
12430         (ftruncate): New declaration.
12431         (getcwd): New declaration, taken from old getcwd.h.
12432         (getlogin_r): New declaration, taken from old getlogin_r.h.
12433         (readlink): New declaration.
12434         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
12435         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
12436         (gl_PREREQ_UNISTD): Remove macro.
12437         (gl_UNISTD_MODULE_INDICATOR): New macro.
12438         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
12439         many new variables. Don't set UNISTD_H.
12440         * modules/unistd (Description): Change.
12441         (Depends-on): Add link-warning.
12442         (configure.ac): Update.
12443         (Makefile.am): Create unistd.h always. Substitute many new variables
12444         into it.
12445
12446 2007-02-18  Bruno Haible  <bruno@clisp.org>
12447
12448         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
12449         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
12450         HAVE_GETSUBOPT.
12451         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
12452         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
12453         * lib/getsubopt.h: Remove file.
12454         * modules/getsubopt (Files): Remove lib/getsubopt.h.
12455         (Depends-on): Add stdlib.
12456         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
12457         (Includes): Use <stdlib.h> instead of getsubopt.h.
12458         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
12459         Set HAVE_GETSUBOPT.
12460         * lib/getsubopt.c: Don't include getsubopt.h.
12461
12462 2007-02-18  Bruno Haible  <bruno@clisp.org>
12463
12464         * modules/fchdir (Depends-on): Add dup2.
12465
12466 2007-02-18  Bruno Haible  <bruno@clisp.org>
12467
12468         * lib/stdlib_.h: Handle glibc's special invocation convention
12469         specially.
12470
12471 2007-02-18  Bruno Haible  <bruno@clisp.org>
12472
12473         * modules/stdlib-tests: New file.
12474         * tests/test-stdlib.c: New file.
12475
12476         * modules/mkstemp (Files): Remove lib/mkstemp.h.
12477         (Depends-on): Add stdlib.
12478         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
12479         (Includes): Use <stdlib.h> instead of mkstemp.h.
12480         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
12481         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
12482         * lib/mkstemp.c: Don't include mkstemp.h.
12483         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
12484         * lib/stdlib--.h: Don't include mkstemp.h.
12485
12486         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
12487         (Depends-on): Add stdlib.
12488         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
12489         (Includes): Use <stdlib.h> instead of mkdtemp.h.
12490         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
12491         HAVE_MKDTEMP.
12492         * lib/mkdtemp.c: Don't include mkdtemp.h.
12493         * lib/clean-temp.c: Don't include mkdtemp.h.
12494
12495         * modules/exit (Files): Remove lib/exit.h.
12496         (Depends-on): Add stdlib.
12497         (Makefile.am): Remove lib_SOURCES.
12498         (Include): Use <stdlib.h> instead of exit.h.
12499         * lib/argmatch.c: Don't include exit.h.
12500         * lib/execute.c: Likewise.
12501         * lib/pagealign_alloc.c: Likewise.
12502         * lib/pipe.c: Likewise.
12503         * lib/wait-process.c: Likewise.
12504         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
12505         * lib/exitfail.c: Likewise.
12506         * lib/savewd.c: Likewise.
12507         * lib/xsetenv.c: Likewise.
12508
12509         * modules/stdlib: New file.
12510         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
12511         and extra comments about mkstemp().
12512         * lib/exit.h: Remove file.
12513         * lib/mkdtemp.h: Remove file.
12514         * lib/mkstemp.h: Remove file.
12515         * m4/stdlib_h.m4: New file.
12516         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
12517
12518 2007-02-18  Bruno Haible  <bruno@clisp.org>
12519
12520         * modules/math-tests: New file.
12521         * tests/test-math.c: New file.
12522
12523         * modules/math: New file.
12524         * modules/mathl (Files): Remove lib/mathl.h.
12525         (Depends-on): Add math.
12526         (Makefile.am): Don't mention mathl.h.
12527         (Include): Use <math.h> instead of mathl.h.
12528         * lib/math_.h: New file.
12529         * lib/mathl.h: Remove file.
12530         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
12531         mathl.h.
12532         * lib/asinl.c: Likewise.
12533         * lib/atanl.c: Likewise.
12534         * lib/ceill.c: Likewise.
12535         * lib/cosl.c: Likewise.
12536         * lib/expl.c: Likewise.
12537         * lib/floorl.c: Likewise.
12538         * lib/frexpl.c: Likewise.
12539         * lib/ldexpl.c: Likewise.
12540         * lib/logl.c: Likewise.
12541         * lib/sincosl.c: Likewise.
12542         * lib/sinl.c: Likewise.
12543         * lib/sqrtl.c: Likewise.
12544         * lib/tanl.c: Likewise.
12545         * lib/trigl.c: Likewise.
12546         * m4/math_h.m4: New file.
12547         * MODULES.html.sh (Mathematics): Add math.
12548
12549 2007-02-17  Bruno Haible  <bruno@clisp.org>
12550
12551         * modules/wctype-tests: New file.
12552         * tests/test-wctype.c: New file.
12553
12554         * modules/wchar-tests: New file.
12555         * tests/test-wchar.c: New file.
12556
12557         * modules/unistd-tests: New file.
12558         * tests/test-unistd.c: New file.
12559
12560         * modules/time-tests: New file.
12561         * tests/test-time.c: New file.
12562
12563         * modules/sysexits-tests: New file.
12564         * tests/test-sysexits.c: New file.
12565
12566         * modules/sys_time-tests: New file.
12567         * tests/test-sys_time.c: New file.
12568
12569         * modules/sys_stat-tests: New file.
12570         * tests/test-sys_stat.c: New file.
12571
12572         * modules/sys_socket-tests: New file.
12573         * tests/test-sys_socket.c: New file.
12574
12575         * modules/sys_select-tests: New file.
12576         * tests/test-sys_select.c: New file.
12577
12578         * modules/string-tests: New file.
12579         * tests/test-string.c: New file.
12580
12581         * modules/stdbool-tests: New file.
12582         * tests/test-stdbool.c: New file.
12583
12584         * modules/netinet_in-tests: New file.
12585         * tests/test-netinet_in.c: New file.
12586
12587         * modules/inttypes-tests: New file.
12588         * tests/test-inttypes.c: New file.
12589
12590         * modules/fcntl-tests: New file.
12591         * tests/test-fcntl.c: New file.
12592
12593         * modules/byteswap-tests: New file.
12594         * tests/test-byteswap.c: New file.
12595
12596         * modules/arpa_inet-tests: New file.
12597         * tests/test-arpa_inet.c: New file.
12598
12599 2007-02-17  Bruno Haible  <bruno@clisp.org>
12600
12601         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
12602         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
12603         if the corresponding module is not enabled. Emit link warnings if
12604         the function is used nevertheless.
12605         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
12606         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
12607         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
12608         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
12609         * modules/inttypes (Depends-on): Add link-warning.
12610         (Makefile.am): Copy the contents of build-aux/link-warning.h into
12611         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
12612         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
12613         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
12614         * modules/imaxdiv (configure.ac): Likewise.
12615         * modules/strtoimax (configure.ac): Likewise.
12616         * modules/strtoumax (configure.ac): Likewise.
12617
12618 2007-02-17  Bruno Haible  <bruno@clisp.org>
12619
12620         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
12621         gl_STRING_MODULE_INDICATOR_DEFAULTS.
12622         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
12623         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
12624
12625 2007-02-17  Bruno Haible  <bruno@clisp.org>
12626
12627         * modules/link-warning: New file.
12628         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
12629         * lib/string_.h (GL_LINK_WARNING): Remove definition.
12630         * modules/string (Depends-on): Add link-warning.
12631         (Makefile.am): Copy the contents of build-aux/link-warning.h into
12632         string.h.
12633         * MODULES.html.sh (Support for building libraries and executables): Add
12634         link-warning.
12635
12636 2007-02-17  Bruno Haible  <bruno@clisp.org>
12637
12638         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
12639         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
12640         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
12641         long lines.
12642
12643 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
12644             Bruno Haible  <bruno@clisp.org>
12645
12646         * modules/tmpfile: New file.
12647         * lib/tmpfile.c: New file.
12648         * m4/tmpfile.m4: New file.
12649         * MODULES.html.sh (func_all_modules): New section "Input/output".
12650
12651 2007-02-15  Bruno Haible  <bruno@clisp.org>
12652
12653         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
12654         (supports_delete_on_close): New function.
12655         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
12656
12657 2007-02-14  Bruno Haible  <bruno@clisp.org>
12658
12659         * modules/mbspcasecmp-tests: New file.
12660         * tests/test-mbspcasecmp.sh: New file.
12661         * tests/test-mbspcasecmp.c: New file.
12662
12663         New module mbspcasecmp.
12664         * modules/mbspcasecmp: New file.
12665         * lib/mbspcasecmp.c: New file.
12666         * lib/string_.h (strncasecmp): Change warning message.
12667         (mbspcasecmp): New declaration.
12668         * m4/mbspcasecmp.m4: New file.
12669         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
12670         GNULIB_MBSPCASECMP.
12671         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
12672         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
12673
12674 2007-02-14  Bruno Haible  <bruno@clisp.org>
12675
12676         * modules/mbsncasecmp-tests: New file.
12677         * tests/test-mbsncasecmp.sh: New file.
12678         * tests/test-mbsncasecmp.c: New file.
12679
12680         New module mbsncasecmp.
12681         * modules/mbsncasecmp: New file.
12682         * lib/mbsncasecmp.c: New file.
12683         * lib/string_.h (mbsncasecmp): New declaration.
12684         * m4/mbsncasecmp.m4: New file.
12685         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
12686         GNULIB_MBSNCASECMP.
12687         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
12688         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
12689
12690 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
12691
12692         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
12693         Verify that it doesn't overlap with our flags.
12694         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
12695         do not have the desired effect in multibyte locales; instead, use
12696         mbscasecmp.
12697         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
12698         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
12699         we don't require GNU fnmatch ourselves (if our users require it, they
12700         should do so explicitly).
12701
12702         Fix regex code so it doesn't rely on strcasecmp.
12703         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
12704         Otherwise, include gnulib's langinfo.h.
12705         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
12706         undesirable behavior in non-C locales.  Instead, rely on localecharset.
12707         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
12708         * modules/regex (FILES): Remove m4/codeset.m4.
12709         (Depends-on): Add localcharset.  Remove strcase.
12710
12711 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12712
12713         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
12714         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
12715
12716 2007-02-13  Bruno Haible  <bruno@clisp.org>
12717
12718         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
12719         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12720
12721 2007-02-12  Bruno Haible  <bruno@clisp.org>
12722
12723         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
12724         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
12725         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
12726         time warning rather than a link error.
12727
12728 2007-02-12  Bruno Haible  <bruno@clisp.org>
12729
12730         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
12731         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
12732         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12733
12734 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
12735
12736         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
12737         args, not 2.
12738
12739 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
12740
12741         New module 'time', so that apps can include <time.h> as per
12742         POSIX and GNU instead of separate include files like time_r.h
12743         and timegm.h.  This implementation tries out a simpler approach
12744         for replacing decls in standard include files (as compared to
12745         the string module), somewhat as an experiment.
12746
12747         * config/srclist.txt: Comment out mktime.c for now.
12748         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
12749         since it doesn't apply any more.  Use generic wording instead.
12750         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
12751         'time'.
12752         * lib/time_.h, m4/time_h.m4, modules/time: New files.
12753         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
12754         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
12755         Don't include <sys/types.h>; no longer needed since we assume C89.
12756         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
12757         * lib/strftime.c: Likewise.
12758         * lib/time_r.c: Likewise.
12759         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
12760         * lib/nanosleep.c: Include <time.h> first, to check interface.
12761         * lib/strptime.c: Likewise.
12762         * lib/time_r.c: Likewise.
12763         * lib/timegm.c: Likewise.
12764         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
12765         needed.
12766         * lib/timegm.c: Don't include timegm.h; no longer needed.
12767         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
12768         time.h now handles any problems in that area.
12769         (struct timespec, nanosleep): Remove; time.h now arranges for these.
12770         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
12771         that time.h defines struct timespec.
12772         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
12773         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
12774         handles that.
12775         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
12776         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
12777         needed.  Set REPLACE_LOCALTIME.
12778         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
12779         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
12780         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
12781         nanosleep; time_h.m4 now does that.  Don't require
12782         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
12783         module handles this now.
12784         * modules/getdate (Depends-on): Remove timespec.  Add time.
12785         * modules/nanosleep (Depends-on): Likewise.
12786         * modules/stat-time (Depends-on): Likewise.
12787         * modules/nanosleep (Include): Include time.h, not timespec.h.
12788         * modules/strptime (Files): Remove lib/strptime.h.
12789         (Depends-on): Add extensions, time.
12790         (Include): Include time.h, not strptime.h.
12791         * modules/time_r (Files): Remove lib/time_r.h.
12792         (Depends-on): Add time.
12793         (Include): Include time.h, not time_r.h.
12794         * modules/timegm: Likewise.
12795         * modules/timespec (Description): Now does timespec-related decls
12796         of our own, instead of struct timespec itself.
12797         (Depends-on): Add time; remove extensions.
12798         (Maintainer): Add self.
12799         * modules/utimecmp (Depends-on): Add time; remove timespec.
12800         * modules/utimens (Depends-on): Likewise.
12801         * modules/xnanosleep (Depends-on): Likewise.
12802
12803 2007-02-11  Bruno Haible  <bruno@clisp.org>
12804
12805         * lib/c-strstr.c: Include allocsa.h.
12806         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
12807         * lib/c-strcasestr.c: Include allocsa.h.
12808         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
12809         * lib/strcasestr.c: Include allocsa.h.
12810         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
12811         * lib/mbsstr.c: Include allocsa.h.
12812         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
12813         allocsa/freesa instead of malloc/free.
12814         * lib/mbscasestr.c: Include allocsa.h.
12815         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
12816         allocsa/freesa instead of malloc/free.
12817         * modules/c-strstr (Depends-on): Add allocsa.
12818         * modules/c-strcasestr (Depends-on): Likewise.
12819         * modules/strcasestr (Depends-on): Likewise.
12820         * modules/mbsstr (Depends-on): Likewise.
12821         * modules/mbscasestr (Depends-on): Likewise.
12822
12823 2007-02-11  Bruno Haible  <bruno@clisp.org>
12824
12825         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
12826
12827         * modules/mbsspn-tests: New file.
12828         * tests/test-mbsspn.sh: New file.
12829         * tests/test-mbsspn.c: New file.
12830
12831 2007-02-11  Bruno Haible  <bruno@clisp.org>
12832
12833         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
12834
12835         * modules/mbspbrk-tests: New file.
12836         * tests/test-mbspbrk.sh: New file.
12837         * tests/test-mbspbrk.c: New file.
12838
12839 2007-02-11  Bruno Haible  <bruno@clisp.org>
12840
12841         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
12842         unneeded cast.
12843
12844         * modules/mbscspn-tests: New file.
12845         * tests/test-mbscspn.sh: New file.
12846         * tests/test-mbscspn.c: New file.
12847
12848 2007-02-11  Bruno Haible  <bruno@clisp.org>
12849
12850         * modules/mbscasecmp-tests: New file.
12851         * tests/test-mbscasecmp.sh: New file.
12852         * tests/test-mbscasecmp.c: New file.
12853
12854 2007-02-11  Bruno Haible  <bruno@clisp.org>
12855
12856         Ensure O(n) worst-case complexity of mbscasestr.
12857         * lib/mbscasestr.c: Include stdbool.h.
12858         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
12859         functions.
12860         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
12861         the bookkeeping indicates that it's worth it.
12862         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
12863
12864         * modules/mbscasestr-tests: New file.
12865         * tests/test-mbscasestr1.c: New file.
12866         * tests/test-mbscasestr2.sh: New file.
12867         * tests/test-mbscasestr2.c: New file.
12868         * tests/test-mbscasestr3.sh: New file.
12869         * tests/test-mbscasestr3.c: New file.
12870         * tests/test-mbscasestr4.sh: New file.
12871         * tests/test-mbscasestr4.c: New file.
12872         * m4/locale-tr.m4: New file.
12873
12874 2007-02-11  Bruno Haible  <bruno@clisp.org>
12875
12876         Ensure O(n) worst-case complexity of mbsstr.
12877         * lib/mbsstr.c: Include stdbool.h.
12878         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
12879         functions.
12880         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
12881         bookkeeping indicates that it's worth it.
12882         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
12883
12884         * modules/mbsstr-tests: New file.
12885         * tests/test-mbsstr1.c: New file.
12886         * tests/test-mbsstr2.sh: New file.
12887         * tests/test-mbsstr2.c: New file.
12888         * tests/test-mbsstr3.sh: New file.
12889         * tests/test-mbsstr3.c: New file.
12890         * m4/locale-fr.m4: New file.
12891
12892 2007-02-11  Bruno Haible  <bruno@clisp.org>
12893
12894         * lib/mbsrchr.c (mbsrchr): Fix bug.
12895
12896         * modules/mbsrchr-tests: New file.
12897         * tests/test-mbsrchr.sh: New file.
12898         * tests/test-mbsrchr.c: New file.
12899
12900 2007-02-11  Bruno Haible  <bruno@clisp.org>
12901
12902         * lib/mbschr.c (mbschr): Fix bug.
12903
12904         * modules/mbschr-tests: New file.
12905         * tests/test-mbschr.sh: New file.
12906         * tests/test-mbschr.c: New file.
12907         * m4/locale-zh.m4: New file.
12908
12909 2007-02-11  Bruno Haible  <bruno@clisp.org>
12910
12911         Support for copying multibyte string iterators.
12912         * lib/mbiter.h: Include <string.h>.
12913         (mbiter_multi_copy): New function.
12914         (mbi_copy): New macro.
12915         * lib/mbuiter.h: Include <string.h>.
12916         (mbuiter_multi_copy): New function.
12917         (mbui_copy): New macro.
12918
12919 2007-02-11  Bruno Haible  <bruno@clisp.org>
12920
12921         New module mbslen.
12922         * modules/mbslen: New file.
12923         * lib/mbslen.c: New file.
12924         * lib/string_.h (mbslen): New declaration.
12925         * m4/mbslen.m4: New file.
12926         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
12927         GNULIB_MBSLEN.
12928         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
12929         * MODULES.html.sh (Internationalization functions): Add mbslen.
12930
12931 2007-02-11  Bruno Haible  <bruno@clisp.org>
12932
12933         Ensure O(n) worst-case complexity of strcasestr substitute.
12934         * lib/strcasestr.c: Include stdbool.h.
12935         (knuth_morris_pratt): New function.
12936         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
12937         bookkeeping indicates that it's worth it.
12938         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
12939
12940         * modules/strcasestr-tests: New file.
12941         * tests/test-strcasestr.c: New file.
12942
12943 2007-02-11  Bruno Haible  <bruno@clisp.org>
12944
12945         Ensure O(n) worst-case complexity of c_strcasestr.
12946         * lib/c-strcasestr.c: Include stdbool.h, string.h.
12947         (knuth_morris_pratt): New function.
12948         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
12949         the bookkeeping indicates that it's worth it.
12950         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
12951
12952         * modules/c-strcasestr-tests: New file.
12953         * tests/test-c-strcasestr.c: New file.
12954
12955 2007-02-11  Bruno Haible  <bruno@clisp.org>
12956
12957         Ensure O(n) worst-case complexity of c_strstr.
12958         * lib/c-strstr.c: Include stdbool.h, string.h.
12959         (knuth_morris_pratt): New function.
12960         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
12961         bookkeeping indicates that it's worth it.
12962         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
12963
12964         * lib/c-strstr.c: Complete rewrite for maintainability.
12965
12966         * modules/c-strstr-tests: New file.
12967         * tests/test-c-strstr.c: New file.
12968
12969 2007-02-11  Bruno Haible  <bruno@clisp.org>
12970
12971         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
12972         5.2.1 and earlier, whereby \055 was treated just like the range
12973         delimiter '-'.
12974         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
12975
12976 2007-02-08  Bruno Haible  <bruno@clisp.org>
12977
12978         * modules/regex (Depends-on): Add stdbool.
12979         Reported by Dalibor Topic <robilad@kaffe.org>.
12980
12981 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
12982
12983         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
12984         Prefer returning from main to exiting from it.
12985         Remove unnecessary parens after sizeof.
12986
12987 2007-02-05  Bruno Haible  <bruno@clisp.org>
12988
12989         New module mbssep.
12990         * modules/mbssep: New file.
12991         * lib/mbssep.c: New file.
12992         * lib/string_.h (strsep): Add a conditional link warning.
12993         (mbssep): New declaration.
12994         * m4/mbssep.m4: New file.
12995         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
12996         GNULIB_MBSSEP.
12997         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
12998         * MODULES.html.sh (Internationalization functions): Add mbssep.
12999
13000 2007-02-05  Bruno Haible  <bruno@clisp.org>
13001
13002         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
13003         Optimize search in case of 1 delimiter.
13004
13005 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
13006
13007         * lib/acl.h: Include sys/types.h before sys/acl.h.
13008
13009 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
13010
13011         Merge upstream fix for glibc bugzilla #3957:
13012
13013         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
13014
13015         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
13016         bit for RE_HAT_LISTS_NOT_NEWLINE.
13017         (build_charclass_op): Remove bogus comment.
13018
13019 2007-02-05  Simon Josefsson  <simon@josefsson.org>
13020
13021         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
13022
13023 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
13024
13025         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
13026         * lib/memmem.c [!defined _LIBC]: Include config.h.
13027
13028 2007-02-04  Bruno Haible  <bruno@clisp.org>
13029
13030         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
13031         warning message.
13032
13033 2007-02-04  Bruno Haible  <bruno@clisp.org>
13034
13035         New module mbstok_r.
13036         * modules/mbstok_r: New file.
13037         * lib/mbstok_r.c: New file.
13038         * lib/string_.h (strtok_r): Change argument names to match the
13039         comments. Add a conditional link warning.
13040         (mbstok_r): New declaration.
13041         * m4/mbstok_r.m4: New file.
13042         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
13043         GNULIB_MBSTOK_R.
13044         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
13045         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
13046
13047 2007-02-04  Bruno Haible  <bruno@clisp.org>
13048
13049         New module mbsspn.
13050         * modules/mbsspn: New file.
13051         * lib/mbsspn.c: New file.
13052         * lib/string_.h (strspn): Add a conditional link warning.
13053         (mbsspn): New declaration.
13054         * m4/mbsspn.m4: New file.
13055         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
13056         GNULIB_MBSSPN.
13057         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
13058         * MODULES.html.sh (Internationalization functions): Add mbsspn.
13059
13060 2007-02-04  Bruno Haible  <bruno@clisp.org>
13061
13062         New module mbspbrk.
13063         * modules/mbspbrk: New file.
13064         * lib/mbspbrk.c: New file.
13065         * lib/string_.h (strpbrk): Add a conditional link warning.
13066         (mbspbrk): New declaration.
13067         * m4/mbspbrk.m4: New file.
13068         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
13069         GNULIB_MBSPBRK.
13070         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
13071         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
13072
13073 2007-02-04  Bruno Haible  <bruno@clisp.org>
13074
13075         New module mbscspn.
13076         * modules/mbscspn: New file.
13077         * lib/mbscspn.c: New file.
13078         * lib/string_.h (strcspn): Add a conditional link warning.
13079         (mbscspn): New declaration.
13080         * m4/mbscspn.m4: New file.
13081         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
13082         GNULIB_MBSCSPN.
13083         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
13084         * MODULES.html.sh (Internationalization functions): Add mbscspn.
13085
13086 2007-02-04  Bruno Haible  <bruno@clisp.org>
13087
13088         New module mbscasestr, reduced goal of strcasestr.
13089         * modules/mbscasestr: New file.
13090         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
13091         (mbscasestr): Renamed from strcasestr.
13092         * lib/strcasestr.c: Don't include mbuiter.h.
13093         (strcasestr): Remove support for multibyte locales.
13094         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
13095         Change the conditional link warning.
13096         (mbscasestr): New declaration.
13097         * m4/mbscasestr.m4: New file.
13098         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
13099         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
13100         REPLACE_STRCASESTR.
13101         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
13102         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
13103         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
13104         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
13105         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
13106         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
13107         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
13108         (Depends-on): Remove mbuiter.
13109         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
13110
13111 2007-02-04  Bruno Haible  <bruno@clisp.org>
13112
13113         Simplify handling of strncasecmp.
13114         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
13115         the conditional link warning.
13116         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
13117         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
13118         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
13119         * modules/strcase (configure.ac): Don't invoke
13120         gl_STRING_MODULE_INDICATOR.
13121         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
13122
13123 2007-02-04  Bruno Haible  <bruno@clisp.org>
13124
13125         New module mbscasecmp, reduced goal of strcasecmp.
13126         * modules/mbscasecmp: New file.
13127         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
13128         (mbscasecmp): Renamed from strcasecmp.
13129         * lib/strcasecmp.c: Don't include mbuiter.h.
13130         (strcasecmp): Remove support for multibyte locales.
13131         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
13132         Change the conditional link warning.
13133         (mbscasecmp): New declaration.
13134         * m4/mbscasecmp.m4: New file.
13135         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
13136         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
13137         REPLACE_STRCASECMP.
13138         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
13139         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
13140         GNULIB_MBSCASECMP.
13141         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
13142         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
13143         * modules/strcase (Files): Remove m4/mbrtowc.m4.
13144         (Depends-on): Remove mbuiter.
13145         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
13146
13147 2007-02-04  Bruno Haible  <bruno@clisp.org>
13148
13149         New module mbsstr. Remove module strstr.
13150         * modules/mbsstr: New file.
13151         * modules/strstr: Remove file.
13152         * lib/mbsstr.c: Renamed from lib/strstr.c.
13153         (mbsstr): Renamed from strstr.
13154         * lib/string_.h (strstr): Remove declaration. Change the conditional
13155         link warning.
13156         (mbsstr): New declaration.
13157         * m4/mbsstr.m4: New file.
13158         * m4/strstr.m4: Remove file.
13159         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
13160         REPLACE_STRSTR.
13161         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
13162         Don't initialize GNULIB_STRSTR.
13163         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
13164         substitute GNULIB_STRSTR and REPLACE_STRSTR.
13165         * MODULES.html.sh (Internationalization functions): Add mbsstr.
13166         (Support for systems lacking ANSI C 89): Remove strstr.
13167
13168 2007-02-04  Bruno Haible  <bruno@clisp.org>
13169
13170         New module mbsrchr.
13171         * modules/mbsrchr: New file.
13172         * lib/mbsrchr.c: New file.
13173         * lib/string_.h (strrchr): Add a conditional link warning.
13174         (mbsrchr): New declaration.
13175         * m4/mbsrchr.m4: New file.
13176         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
13177         GNULIB_MBSRCHR.
13178         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
13179         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
13180
13181 2007-02-04  Bruno Haible  <bruno@clisp.org>
13182
13183         New module mbschr.
13184         * modules/mbschr: New file.
13185         * lib/mbschr.c: New file.
13186         * lib/string_.h (strchr): Add a conditional link warning.
13187         (mbschr): New declaration.
13188         * m4/mbschr.m4: New file.
13189         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
13190         GNULIB_MBSCHR.
13191         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
13192         * MODULES.html.sh (Internationalization functions): Add mbschr.
13193
13194 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
13195
13196         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
13197
13198         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
13199
13200 2007-02-04  Bruno Haible  <bruno@clisp.org>
13201
13202         New module description section 'configure.ac-early'.
13203         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
13204         (func_get_autoconf_early_snippet): New function.
13205         (func_import, func_create_testdir): Use it. Remove special cases for
13206         modules 'extensions' and 'lock'.
13207         * modules/extensions (configure.ac-early): Require
13208         gl_USE_SYSTEM_EXTENSIONS.
13209         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
13210
13211 2007-02-04  Bruno Haible  <bruno@clisp.org>
13212
13213         Make use of gcj-4.3's -fsource and -ftarget option.
13214         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
13215         and if so try the options -fsource and -ftarget.
13216         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
13217         source_version, ftarget_option, target_version arguments.
13218         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
13219         (is_envjavac_oldgcj_14_14_usable): Renamed from
13220         is_envjavac_gcj_14_14_usable.
13221         (is_envjavac_oldgcj_14_13_usable): Renamed from
13222         is_envjavac_gcj_14_13_usable.
13223         (is_gcj_present): Update.
13224         (is_gcj_43, is_gcj43_usable): New functions.
13225         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
13226         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
13227         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
13228         try the options -fsource and -ftarget.
13229
13230 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
13231
13232         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
13233         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
13234         larger value.
13235
13236 2007-02-03  Jim Meyering  <jim@meyering.net>
13237
13238         Give tools a better chance to allocate space for very large buffers.
13239         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
13240
13241         Make pwd and readlink work also when run with an unreadable parent dir
13242         on systems with openat support.
13243         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
13244         provided getcwd function, even when we have openat support.
13245         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
13246
13247 2007-02-02  Bruno Haible  <bruno@clisp.org>
13248
13249         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
13250         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
13251         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
13252         portability problems if one of these functions is only used on specific
13253         platforms.
13254         Reported by Paul Eggert.
13255
13256 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
13257
13258         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
13259         is causing more trouble than it's curing.
13260         * lib/regex_internal.h (__mempcpy): Remove.
13261         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
13262         (and make the code a tad smaller to boot).
13263         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
13264
13265 2007-02-02  Jim Meyering  <jim@meyering.net>
13266
13267         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
13268         section, not in the Makefile.am: one.
13269
13270 2007-02-02  Eric Blake  <ebb9@byu.net>
13271
13272         * lib/strchrnul.c: Always include config.h first.
13273
13274         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
13275         gnulib strstr is not necessary here.
13276
13277 2007-02-02  Simon Josefsson  <simon@josefsson.org>
13278
13279         * m4/socklen.m4: Fix typo.
13280
13281 2007-02-02  Eric Blake  <ebb9@byu.net>
13282
13283         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
13284         * modules/netinet_in (Makefile.am): Likewise.
13285
13286 2007-02-01  Bruno Haible  <bruno@clisp.org>
13287
13288         * lib/string_.h (GL_LINK_WARNING): New macro.
13289         (strcasecmp, strstr, strcasestr): If provided by the system,
13290         conditionally define as a macro that leads to a warning instead of to
13291         an error.
13292         (strncasecmp): Conditionally define as a macro that leads to a warning.
13293
13294 2007-02-01  Karl Berry  <karl@gnu.org>
13295
13296         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
13297
13298 2007-02-01  Bruno Haible  <bruno@clisp.org>
13299
13300         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
13301         renamings.
13302
13303 2007-02-01  Eric Blake  <ebb9@byu.net>
13304
13305         * modules/regex (Depends-on): Revert dependence on mempcpy.
13306         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
13307         module's definition of mempcpy.
13308         Reported by Paul Eggert.
13309
13310 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
13311
13312         * lib/string_.h: If the gnulib module XYZ is not present, undefine
13313         the symbol XYZ before redefining it.  This fixes a problem with
13314         programs that don't use XYZ, when compiled on systems that define
13315         XYZ to something else.
13316
13317 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
13318
13319         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
13320         occurs when "mkdir -m foo" creates a setgid directory that is (1)
13321         writeable to group or other and (2) is intended to have a special
13322         mode bit that is set or cleared.  In such a case, the directory
13323         should be neither group- nor other-writeable until the special
13324         mode bits are right.
13325
13326 2007-01-31  Eric Blake  <ebb9@byu.net>
13327
13328         * modules/mountlist (Depends-on): Add strstr.
13329
13330         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
13331         bug.
13332         * modules/string (Makefile.am): Remove redundant replacement.
13333         * modules/regex (Depends-on): Add mempcpy.
13334
13335 2007-01-31  Bruno Haible  <bruno@clisp.org>
13336
13337         New module description field 'Link'.
13338         * gnulib-tool (func_usage): Document --extract-link-directive.
13339         (sed_extract_prog): Recognize 'Link' directive.
13340         (func_get_link_directive): New function.
13341         (func_import): Show summary of link directives.
13342         Handle --extract-link-directive option.
13343         * modules/acl (Link): New section.
13344         * modules/clock-time (Link): New section.
13345         * modules/euidaccess (Link): New section.
13346         * modules/gettext (Link): New section.
13347         * modules/iconv (Link): New section.
13348         * modules/lock (Link): New section.
13349         * modules/nanosleep (Link): New section.
13350         * modules/readline (Link): New section.
13351
13352 2007-01-27  Bruno Haible  <bruno@clisp.org>
13353
13354         Enforce the use of gnulib modules for unportable <string.h> functions.
13355         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
13356         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
13357         (gl_HEADER_STRING_H_BODY): Require it.
13358         * lib/string_.h: If the gnulib module XYZ is not present, redefine
13359         the symbol XYZ to one that gives a link error.
13360         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
13361         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
13362         * modules/mempcpy (configure.ac): Likewise.
13363         * modules/memrchr (configure.ac): Likewise.
13364         * modules/stpcpy (configure.ac): Likewise.
13365         * modules/stpncpy (configure.ac): Likewise.
13366         * modules/strcase (configure.ac): Likewise.
13367         * modules/strcasestr (configure.ac): Likewise.
13368         * modules/strchrnul (configure.ac): Likewise.
13369         * modules/strdup (configure.ac): Likewise.
13370         * modules/strndup (configure.ac): Likewise.
13371         * modules/strnlen (configure.ac): Likewise.
13372         * modules/strpbrk (configure.ac): Likewise.
13373         * modules/strsep (configure.ac): Likewise.
13374         * modules/strstr (configure.ac): Likewise.
13375         * modules/strtok_r (configure.ac): Likewise.
13376
13377 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
13378
13379         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
13380
13381 2007-01-30  Jim Meyering  <jim@meyering.net>
13382
13383         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
13384
13385 2007-01-29  Bruno Haible  <bruno@clisp.org>
13386
13387         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
13388         * lib/execute.c: Likewise.
13389         * lib/pipe.c: Likewise.
13390         * lib/printf-args.h: Likewise.
13391         * lib/printf-args.c: Likewise.
13392         * lib/printf-parse.c: Likewise.
13393         * lib/vasnprintf.c: Likewise.
13394
13395 2007-01-29  Eric Blake  <ebb9@byu.net>
13396
13397         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
13398         declaration.
13399
13400 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
13401
13402         * lib/strptime.h (strptime): Use 'restrict' for args where
13403         POSIX requires this.
13404         * lib/strptime.c (strptime): Likewise.
13405         Change license notice from LGPL to GPL, since gnulib-tool will
13406         change this as needed.
13407         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
13408         defined.
13409         Include "strptime.h" first, to check interface.
13410         Do not #undef _LIBC and _NL_CURRENT.
13411         Do not include <stdlib.h>; no longer needed.
13412         Include "time_r.h" and declare ptime_locale_status
13413         only if _LIBC is not defined.
13414         (__P): Remove unused macro.
13415         (match_string): Bring back glibc version, but use it only if _LIBC
13416         is defined.
13417         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
13418         Remove unnecessary assertion and abort() call.
13419         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
13420         * m4/strptime.m4: Fix serial number comment.
13421         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
13422         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
13423         (Depends-on): Add time_r.
13424
13425 2007-01-29  Bruno Haible  <bruno@clisp.org>
13426
13427         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
13428         strptime.
13429         * modules/strptime (Depends-on): Add stdbool.
13430         * lib/strptime.h: Include <time.h> always. Add comments.
13431
13432 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
13433
13434         * modules/strptime: New file.
13435         * lib/strptime.h: New file.
13436         * lib/strptime.c: New file.
13437         * m4/strptime.m4: New file.
13438
13439 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
13440
13441         * MODULES.html.sh: New module mpsort.
13442         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
13443
13444         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
13445         a circularity problem with HP-UX ia64 reported by Bob Proulx in
13446         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
13447         All uses changed.
13448         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
13449         All uses changed.
13450         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
13451         to _Restrict_.
13452         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
13453         the parameter matches the prototype.
13454
13455 2007-01-28  Jim Meyering  <jim@meyering.net>
13456
13457         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
13458         sys/time.h here, reverting that part of the previous patch:
13459         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
13460
13461 2007-01-28  Bruno Haible  <bruno@clisp.org>
13462
13463         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
13464         value of $(SYS_TIME_H).
13465         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
13466         remove it conditionally, too. [added by Jim Meyering]
13467         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
13468         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
13469         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
13470         GETTIMEOFDAY_REPLACEMENT to 1.
13471
13472 2007-01-28  Bruno Haible  <bruno@clisp.org>
13473
13474         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
13475         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
13476         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
13477         Set UNISTD_H instead of UNISTD_H2.
13478         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
13479
13480 2007-01-28  Bruno Haible  <bruno@clisp.org>
13481
13482         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
13483         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
13484
13485 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13486
13487         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
13488         (func_create_testdir): Ensure C locale for `grep' and `tr'
13489         character ranges.
13490         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
13491         ACLOCAL_AMFLAGS parsing state machine.
13492
13493 2007-01-27  Bruno Haible  <bruno@clisp.org>
13494
13495         * modules/unistr/base: Update.
13496
13497 2007-01-27  Bruno Haible  <bruno@clisp.org>
13498
13499         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
13500         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
13501         * modules/unistr/u32-mbtouc-unsafe: Renamed from
13502         modules/unistr/u32-mbtouc.
13503         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
13504         * lib/unistr.h: Update.
13505         * lib/linebreak.c: Update.
13506         * modules/unistr/u32-mbtouc: Renamed from
13507         modules/unistr/u32-mbtouc-safe.
13508         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
13509         * lib/unistr.h: Update.
13510         * lib/unistr/u32-to-u8.c: Update.
13511         * lib/unistr/u32-to-u16.c: Update.
13512
13513 2007-01-27  Bruno Haible  <bruno@clisp.org>
13514
13515         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
13516         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
13517         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
13518         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
13519         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
13520         * modules/unistr/u16-mbtouc-unsafe: Renamed from
13521         modules/unistr/u16-mbtouc.
13522         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
13523         * lib/unistr.h: Update.
13524         * lib/linebreak.c: Update.
13525         * modules/linebreak: Update.
13526         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
13527         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
13528         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
13529         * modules/unistr/u16-mbtouc: Renamed from
13530         modules/unistr/u16-mbtouc-safe.
13531         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
13532         * lib/unistr.h: Update.
13533         * lib/unistr/u16-to-u8.c: Update.
13534         * modules/unistr/u16-to-u8: Update.
13535         * lib/unistr/u16-to-u32.c: Update.
13536         * modules/unistr/u16-to-u32: Update.
13537
13538 2007-01-27  Bruno Haible  <bruno@clisp.org>
13539
13540         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
13541         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
13542         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
13543         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
13544         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
13545         * modules/unistr/u8-mbtouc-unsafe: Renamed from
13546         modules/unistr/u8-mbtouc.
13547         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
13548         * lib/unistr.h: Update.
13549         * lib/striconveh.c: Update.
13550         * modules/striconveh: Update.
13551         * lib/linebreak.c: Update.
13552         * modules/linebreak: Update.
13553         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
13554         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
13555         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
13556         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
13557         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
13558         * lib/unistr.h: Update.
13559         * lib/striconveh.c: Update.
13560         * modules/striconveh: Update.
13561         * lib/unistr/u8-to-u16.c: Update.
13562         * modules/unistr/u8-to-u16: Update.
13563         * lib/unistr/u8-to-u32.c: Update.
13564         * modules/unistr/u8-to-u32: Update.
13565
13566 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13567
13568         Sync from Libtool.
13569         * lib/argz.c: Do not include strings.h nor memory.h, include
13570         string.h unconditionally.  Patch by Simon Josefsson.
13571
13572 2007-01-27  Bruno Haible  <bruno@clisp.org>
13573
13574         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
13575         from gl_HEADER_STRING_H_BODY.
13576         (gl_HEADER_STRING_H_BODY): Require it.
13577         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
13578         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
13579         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
13580         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
13581         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
13582         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
13583         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
13584         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
13585         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
13586         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
13587         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
13588         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
13589         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
13590         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
13591         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
13592
13593 2007-01-27  Bruno Haible  <bruno@clisp.org>
13594
13595         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
13596         check_PROGRAMS into noinst_PROGRAMS.
13597         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
13598         check_PROGRAMS in this case.
13599         (func_import): Set for_test to false.
13600         (func_create_testdir): Set for_test to true.
13601
13602 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
13603             Bruno Haible  <bruno@clisp.org>
13604
13605         * modules/strcasestr (Files): Remove lib/strcasestr.h.
13606         (Depends-on): Add string.
13607         (Includes): Use <string.h> instead of strcasestr.h.
13608         * modules/string (Makefile.am): Also substitute the value of
13609         REPLACE_STRCASESTR.
13610         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
13611         assume strcasestr is declared in <string.h> not <strings.h>. Also
13612         set REPLACE_STRCASESTR.
13613         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
13614         REPLACE_STRCASESTR.
13615         * lib/strcasestr.h: Remove file.
13616         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
13617         * lib/string_.h (strcasestr): New declaration.
13618
13619 2007-01-27  Bruno Haible  <bruno@clisp.org>
13620
13621         * lib/string_.h: Use 'extern'.
13622
13623 2007-01-27  Jim Meyering  <jim@meyering.net>
13624
13625         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
13626         of set-but-not-used local, "q".
13627
13628         * lib/mempcpy.c: Include <config.h> before <string.h>.
13629         This fixes a compilation error on HP-UX, due to the system's
13630         "restrict"-using mempcpy prototype.
13631
13632 2007-01-26  Bruno Haible  <bruno@clisp.org>
13633
13634         Small optimization.
13635         * lib/javacomp.c: Include c-strstr.h.
13636          (is_envjavac_gcj): Use c_strstr instead of strstr.
13637         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
13638
13639 2007-01-26  Bruno Haible  <bruno@clisp.org>
13640
13641         * MODULES.html.sh (Unicode string functions): Add the new modules.
13642
13643         * modules/uniconv/u32-strconv-to-locale: New file.
13644         * lib/uniconv/u32-strconv-to-locale.c: New file.
13645
13646         * modules/uniconv/u16-strconv-to-locale: New file.
13647         * lib/uniconv/u16-strconv-to-locale.c: New file.
13648
13649         * modules/uniconv/u8-strconv-to-locale: New file.
13650         * lib/uniconv/u8-strconv-to-locale.c: New file.
13651
13652         * modules/uniconv/u32-strconv-from-locale: New file.
13653         * lib/uniconv/u32-strconv-from-locale.c: New file.
13654
13655         * modules/uniconv/u16-strconv-from-locale: New file.
13656         * lib/uniconv/u16-strconv-from-locale.c: New file.
13657
13658         * modules/uniconv/u8-strconv-from-locale: New file.
13659         * lib/uniconv/u8-strconv-from-locale.c: New file.
13660
13661         * modules/uniconv/u32-strconv-to-enc: New file.
13662         * lib/uniconv/u32-strconv-to-enc.c: New file.
13663         * modules/uniconv/u32-strconv-to-enc-tests: New file.
13664         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
13665
13666         * modules/uniconv/u16-strconv-to-enc: New file.
13667         * lib/uniconv/u16-strconv-to-enc.c: New file.
13668         * lib/uniconv/u-strconv-to-enc.h: New file.
13669         * modules/uniconv/u16-strconv-to-enc-tests: New file.
13670         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
13671
13672         * modules/uniconv/u8-strconv-to-enc: New file.
13673         * lib/uniconv/u8-strconv-to-enc.c: New file.
13674         * modules/uniconv/u8-strconv-to-enc-tests: New file.
13675         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
13676
13677         * modules/uniconv/u32-strconv-from-enc: New file.
13678         * lib/uniconv/u32-strconv-from-enc.c: New file.
13679         * modules/uniconv/u32-strconv-from-enc-tests: New file.
13680         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
13681
13682         * modules/uniconv/u16-strconv-from-enc: New file.
13683         * lib/uniconv/u16-strconv-from-enc.c: New file.
13684         * modules/uniconv/u16-strconv-from-enc-tests: New file.
13685         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
13686
13687         * modules/uniconv/u8-strconv-from-enc: New file.
13688         * lib/uniconv/u8-strconv-from-enc.c: New file.
13689         * lib/uniconv/u-strconv-from-enc.h: New file.
13690         * modules/uniconv/u8-strconv-from-enc-tests: New file.
13691         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
13692
13693         * modules/uniconv/u32-conv-from-enc: New file.
13694         * lib/uniconv/u32-conv-from-enc.c: New file.
13695         * modules/uniconv/u32-conv-from-enc-tests: New file.
13696         * tests/uniconv/test-u32-conv-from-enc.c: New file.
13697
13698         * modules/uniconv/u16-conv-from-enc: New file.
13699         * lib/uniconv/u16-conv-from-enc.c: New file.
13700         * lib/uniconv/u-conv-from-enc.h: New file.
13701         * modules/uniconv/u16-conv-from-enc-tests: New file.
13702         * tests/uniconv/test-u16-conv-from-enc.c: New file.
13703
13704         * modules/uniconv/u8-conv-from-enc: New file.
13705         * lib/uniconv/u8-conv-from-enc.c: New file.
13706         * modules/uniconv/u8-conv-from-enc-tests: New file.
13707         * tests/uniconv/test-u8-conv-from-enc.c: New file.
13708
13709         * modules/uniconv/base: New file.
13710         * lib/uniconv.h: New file.
13711
13712 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
13713
13714         * doc/gnulib-tool.texi (Initial import): Update to match current
13715         behavior with strdup module.
13716         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
13717         * lib/memmem.h: Remove; all uses removed.  This is now done
13718         by <string.h>.
13719         * lib/mempcpy.h: Likewise.
13720         * lib/memrchr.h: Likewise.
13721         * lib/stpcpy.h: Likewise.
13722         * lib/stpncpy.h: Likewise.
13723         * lib/strcase.h: Likewise.
13724         * lib/strchrnul.h: Likewise.
13725         * lib/strdup.h: Likewise.
13726         * lib/strndup.h: Likewise.
13727         * lib/strnlen.h: Likewise.
13728         * lib/strpbrk.h: Likewise.
13729         * lib/strsep.h: Likewise.
13730         * lib/strstr.h: Likewise.
13731         * lib/strtok_r.h: Likewise.
13732         * lib/string_.h: New file.
13733         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
13734         Rely on <string.h> instead.
13735         * lib/canon-host.c: Likewise.
13736         * lib/chdir-long.c: Likewise.
13737         * lib/concatpath.c: Likewise.
13738         * lib/exclude.c: Likewise.
13739         * lib/fchdir.c: Likewise.
13740         * lib/getaddrinfo.c: Likewise.
13741         * lib/getcwd.c: Likewise.
13742         * lib/getsubopt.c: Likewise.
13743         * lib/glob.c: Likewise.
13744         * lib/hard-locale.c: Likewise.
13745         * lib/iconvme.c: Likewise.
13746         * lib/javacomp.c: Likewise.
13747         * lib/mempcpy.c: Likewise.
13748         * lib/memrchr.c: Likewise.
13749         * lib/regex_internal.h: Likewise.
13750         * lib/stpncpy.c: Likewise.
13751         * lib/strcasecmp.c: Likewise.
13752         * lib/strchrnul.c: Likewise.
13753         * lib/strdup.c: Likewise.
13754         * lib/striconv.c: Likewise.
13755         * lib/striconveh.c: Likewise.
13756         * lib/striconveha.c: Likewise.
13757         * lib/strncasecmp.c: Likewise.
13758         * lib/strndup.c: Likewise.
13759         * lib/strnlen.c: Likewise.
13760         * lib/strsep.c: Likewise.
13761         * lib/strstr.c: Likewise.
13762         * lib/strtok_r.c: Likewise.
13763         * lib/userspec.c: Likewise.
13764         * lib/w32spawn.h: Likewise.
13765         * lib/xstrndup.c: Likewise.
13766         * lib/mountlist.c (strstr): Remove decl.
13767         * m4/string_h.m4: New file.
13768         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
13769         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
13770         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
13771         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
13772         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
13773         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
13774         Set REPLACE_STRCASECMP if necessary.
13775         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
13776         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
13777         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
13778         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
13779         HAVE_DECL_STRDUP if necessary.
13780         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
13781         since gl_FUNC_STRNDUP does that now.
13782         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
13783         Check for decl here...
13784         (gl_PREREQ_STRNLEN): ... not here.
13785         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
13786         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
13787         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
13788         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
13789         necessary.
13790         * modules/string: New file.
13791         * modules/memmem (Files): Remove special-purpose include file.
13792         (Depends-on): Add string.
13793         (Include): Include <string.h>, not the removed file.
13794         * modules/mempcpy: Likewise.
13795         * modules/memrchr: Likewise.
13796         * modules/stpcpy: Likewise.
13797         * modules/stpncpy: Likewise.
13798         * modules/strcase: Likewise.
13799         * modules/strchrnul: Likewise.
13800         * modules/strdup: Likewise.
13801         * modules/strndup: Likewise.
13802         * modules/strnlen: Likewise.
13803         * modules/strpbrk: Likewise.
13804         * modules/strsep: Likewise.
13805         * modules/strstr: Likewise.
13806         * modules/strtok_r: Likewise.
13807         * tests/test-dirname.c: Don't include "strdup.h", since
13808         <string.h> now suffices.
13809         * tests/test-memmem.c: Don't include "memmem.h", since
13810         <string.h> now suffices.
13811
13812 2007-01-25  Bruno Haible  <bruno@clisp.org>
13813
13814         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
13815         *resultp is 0.
13816
13817         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
13818         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
13819         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
13820         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
13821
13822         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
13823         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
13824         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
13825         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
13826         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
13827         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
13828
13829 2007-01-24  Bruno Haible  <bruno@clisp.org>
13830
13831         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
13832         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
13833         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
13834         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
13835         gl_FUNC_FTS_CORE.
13836         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
13837         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
13838         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
13839         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
13840         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
13841         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
13842         gl_FUNC_FCHOWNAT.
13843         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
13844         gl_FUNC_STRFTIME.
13845         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
13846         Reported by Ralf Wildenhues.
13847
13848 2007-01-24  Bruno Haible  <bruno@clisp.org>
13849
13850         Drop AC_REQUIRE calls that are redundant with the module dependencies.
13851         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
13852         gl_GETADDRINFO.
13853         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
13854         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
13855         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
13856
13857 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
13858
13859         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
13860         Don't use 'exit'; just return from 'main'.
13861         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
13862
13863         * lib/fnmatch_.h: Readjust white space and comments to match
13864         glibc, to avoid spurious diffs.
13865
13866 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
13867
13868         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
13869         2004-12-01 change by Jakub Jelinek, since this code won't compile
13870         if !LIBC.  Problem reported by Bob Proulx.
13871
13872 2007-01-23  Bruno Haible  <bruno@clisp.org>
13873
13874         * lib/striconveh.c: Include c-strcaseeq.h.
13875         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
13876         * modules/striconveh (Depends-on): Add c-strcaseeq.
13877
13878 2007-01-23  Bruno Haible  <bruno@clisp.org>
13879
13880         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
13881
13882         * modules/c-strcaseeq: New file.
13883         * lib/c-strcaseeq.h: New file.
13884
13885         * modules/streq: New file.
13886         * lib/streq.h: New file.
13887
13888 2007-01-23  Bruno Haible  <bruno@clisp.org>
13889
13890         * modules/striconveha-tests: New file.
13891         * tests/test-striconveha.c: New file.
13892
13893         * lib/striconveha.h: Include <stdbool.h>.
13894         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
13895         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
13896         (mem_iconveha_notranslit): Renamed from mem_iconveha.
13897         (mem_iconveha): New function.
13898         (str_iconveha_notranslit): Renamed from str_iconveha.
13899         (str_iconveha): New function.
13900         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
13901         c-strcase.
13902
13903 2007-01-23  Bruno Haible  <bruno@clisp.org>
13904
13905         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
13906         encodings without forgiving before trying any encoding with handler.
13907         (str_iconveha): Try all encodings without forgiving before trying any
13908         encoding with handler.
13909
13910 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
13911
13912         Import the following changes from libc.
13913
13914         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
13915
13916         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
13917
13918         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
13919
13920         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
13921         normal_bracket label.
13922
13923         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
13924
13925         [BZ #361]
13926         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
13927         to normal_bracket after fetching the next character.
13928
13929 2007-01-22  Bruno Haible  <bruno@clisp.org>
13930
13931         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
13932         argument.
13933         * lib/striconveh.c (iconv_carefully_1): New function.
13934         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
13935         argument.
13936         (str_cd_iconveh): Update.
13937         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
13938         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
13939         * tests/test-striconveh.c (MAGIC): New macro.
13940         (new_offsets): New function.
13941         (main): Test call with and without offsets.
13942
13943 2007-01-22  Bruno Haible  <bruno@clisp.org>
13944
13945         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
13946         * modules/sys_select (Makefile.am): Likewise.
13947         * modules/sys_socket (Makefile.am): Likewise.
13948         * modules/sys_time (Makefile.am): Likewise.
13949
13950 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
13951
13952         * modules/gettimeofday (License): Change from GPL to LGPL, since
13953         gettimeofday is a library function.
13954
13955 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13956
13957         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
13958
13959 2007-01-21  Bruno Haible  <bruno@clisp.org>
13960
13961         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
13962
13963 2007-01-21  Bruno Haible  <bruno@clisp.org>
13964
13965         * modules/striconveha: New file.
13966         * lib/striconveha.h: New file.
13967         * lib/striconveha.c: New file.
13968         * MODULES.html.sh (Internationalization functions): Add striconveha.
13969         * lib/striconv.c (str_iconv): Optimize the case of an empty input
13970         string.
13971         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
13972
13973 2007-01-21  Bruno Haible  <bruno@clisp.org>
13974
13975         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
13976         * lib/striconveh.c (str_iconveh): Likewise.
13977
13978 2007-01-21  Bruno Haible  <bruno@clisp.org>
13979
13980         * lib/striconveh.h (mem_iconveh): New declaration.
13981         * lib/striconveh.c (mem_iconveh): New function.
13982         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
13983
13984 2007-01-21  Bruno Haible  <bruno@clisp.org>
13985
13986         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
13987
13988         * lib/striconveh.h (mem_cd_iconveh): Change specification.
13989         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
13990         original result buffer.
13991         (str_cd_iconveh): Update.
13992         * tests/test-striconveh.c (main): Update.
13993
13994         * lib/striconv.h (mem_cd_iconv): Change specification.
13995         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
13996         result buffer.
13997         (str_cd_iconv): Update.
13998         * tests/test-striconv.c (main): Update.
13999
14000 2007-01-21  Bruno Haible  <bruno@clisp.org>
14001
14002         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
14003
14004 2007-01-20  Jim Meyering  <jim@meyering.net>
14005
14006         * lib/userspec.c (parse_with_separator): If a user or group string
14007         starts with "+", skip the corresponding name-to-ID look-up, since
14008         such a look-up must fail: user and group names may not include "+".
14009
14010 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
14011
14012         * lib/poll.c: Include sys/time.h and time.h unconditionally,
14013         since we now assume the sys_time module.
14014         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
14015         check for sys/time.h; no longer needed.
14016         * modules/poll (Depends-on): Depend on sys_time.
14017
14018 2007-01-18  Bruno Haible  <bruno@clisp.org>
14019
14020         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
14021         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
14022
14023         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
14024         gettimeofday.
14025
14026         * tests/test-gettimeofday.c: Include <time.h>.
14027         (dummy): Remove variable.
14028
14029         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
14030         gl_HEADER_SYS_TIME_H.
14031         (gl_HEADER_SYS_TIME_H): New macro.
14032
14033         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
14034         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
14035         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
14036         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
14037         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
14038         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
14039         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
14040         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
14041         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
14042         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
14043         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
14044
14045         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
14046         last change; it caused a compilation error when cross-compiling to
14047         Cygwin.
14048
14049 2007-01-18  Jim Meyering  <jim@meyering.net>
14050
14051         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
14052         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
14053         than the race-prone "test -d sys || mkdir sys".
14054         (configure.ac): Use AC_PROG_MKDIR_P.
14055         * modules/sys_select: Likewise.
14056         * modules/sys_socket: Likewise.
14057         * modules/sys_time: Likewise.
14058
14059 2007-01-18  Eric Blake  <ebb9@byu.net>
14060
14061         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
14062         replace gettimeofday.
14063         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
14064         name, to avoid infinite recursion.
14065
14066 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
14067
14068         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
14069         module sys_time.
14070         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
14071         assume timespec.h defines struct timeval.
14072         * lib/settime.c: Likewise.
14073         * lib/utimens.c: Likewise.
14074         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
14075         since we now assume the gettimeofday module.
14076         * lib/tempname.c (__gen_tempname): Likewise.
14077         * lib/gettimeofday.h: Remove.
14078         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
14079         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
14080         Include <time.h>, for 'time()'.
14081         (localtime_buffer_addr): Also use this workaround if
14082         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
14083         to simplify the uses.  All uses changed.
14084         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
14085         that #undef is inside {}, and 'const' follows type name consistently.
14086         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
14087         (gettimeofday): Do not use the maximum possible value for
14088         tv->tv_usec, since that might break usages other than ls.c.
14089         Instead, we'll leave ls.c alone.  This undoes today's patch
14090         by Bruno.  Add a compile-time warning for 1s-clock resolution;
14091         we've never observed the problem but might as well keep the
14092         canary.
14093         * lib/nanosleep.c: Include timespec.h first, for interface check.
14094         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
14095         now assume the sys_time module.
14096         * lib/tempname.c: Likewise.
14097         * lib/timespec.h: Likewise.
14098         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
14099         needed.
14100         * lib/strftime.c: Likewise.
14101         * lib/timespec.h: Likewise.
14102         * lib/posixtm.c: Include posixtm.h first, for interface check.
14103         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
14104         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
14105         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
14106         * lib/sys_time_.h: New file.
14107         * lib/timespec.h (struct timespec): Use long int, not long.
14108         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
14109         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
14110         Remove obsolescent call to AC_HEADER_TIME.
14111         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
14112         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
14113         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
14114         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
14115         Likewise.
14116         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
14117         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
14118         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
14119         into the sys_time module.  Check for gettimeofday just once.
14120         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
14121         for gettimeofday signature to just check the signature.  Merely
14122         compile it, since linking doesn't test signature.  Improve test for
14123         whether gettimeofday.o is actually needed.
14124         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
14125         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
14126         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
14127         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
14128         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
14129         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
14130         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
14131         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
14132         than worrying about sys/time.h.
14133         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
14134         Don't bother worrying about TIME_WITH_SYS_TIME.
14135         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
14136         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
14137         * m4/sys_time_h.m4: New file.
14138         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
14139         Don't include sys/time.h.  Return from main rather than exiting.
14140         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
14141         all uses changed.
14142         * modules/gethrxtime (Depends-on): Add sys_time.
14143         * modules/gettime (Depends-on): Likewise.
14144         * modules/gettimeofday (Depends-on): Likewise.
14145         * modules/nanosleep (Depends-on): Likewise.
14146         * modules/settime (Depends-on): Likewise.
14147         * modules/tempname (Depends-on): Likewise.
14148         * modules/utimens (Depends-on): Likewise.
14149         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
14150         (Include:) Change back to <sys/time.h>.
14151         (Maintainer:) Add self.
14152         * modules/sys_time: New file.
14153         * modules/tempname (Depends-on): Add gettimeofday.
14154         * tests/test-gettimeofday.c: Include <sys/time.h>
14155         rather than gettimeofday.h.
14156
14157 2007-01-17  Bruno Haible  <bruno@clisp.org>
14158
14159         * gnulib-tool (func_get_license): Revert last patch. Instead, let
14160         the license default to GPL.
14161         (func_create_testdir): Don't complain if a module is LGPL and its
14162         tests module depends on GPLed modules.
14163
14164 2007-01-17  Bruno Haible  <bruno@clisp.org>
14165
14166         * lib/gettimeofday.c (gettimeofday): Add code for the case
14167         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
14168         maximum possible value for tv->tv_usec, rather than the minimum one.
14169
14170 2005-10-08  Martin Lambers  <marlam@marlam.de>
14171 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
14172 2007-01-16  Bruno Haible  <bruno@clisp.org>
14173
14174         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
14175         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
14176         gl_FUNC_GETTIMEOFDAY.
14177         (Include): Add gettimeofday.h.
14178         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
14179         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
14180         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
14181         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
14182         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
14183         * lib/gettimeofday.h: New file.
14184         * lib/gettimeofday.c: Include <sys/timeb.h>.
14185         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
14186         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
14187         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
14188         fall back on time().
14189
14190         * tests/test-gettimeofday.c: New file.
14191         * modules/gettimeofday-tests: New file.
14192
14193 2007-01-16  Eric Blake  <ebb9@byu.net>
14194
14195         * modules/fnmatch (Depends-on): Depend on wchar.
14196         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
14197         * m4/fnmatch.m4: Likewise.
14198         * modules/mbchar (Makefile.am): Assume <wchar.h>.
14199         * m4/mbchar.m4: Likewise.
14200         * modules/mbswidth (Depends-on): Depend on wchar.
14201         * lib/mbswidth.c: Assume <wchar.h>.
14202         * m4/mbswidth.m4: Likewise.
14203         * modules/quotearg (Depends-on): Depend on wchar.
14204         * lib/quotearg.c: Assume <wchar.h>.
14205         * m4/quotearg.m4: Likewise.
14206         * modules/regex (Depends-on): Depend on wchar.
14207         * lib/regex_internal.h: Assume <wchar.h>.
14208         * m4/regex.m4: Likewise.
14209         * modules/stdint (Depends-on): Depend on wchar.
14210         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
14211         * m4/stdint.m4: Likewise.
14212         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
14213         * modules/strftime (Depends-on): Depend on wchar.
14214         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
14215         * modules/strtol (Depends-on): Depend on wchar.
14216         * lib/strtol.c: Assume <wchar.h>.
14217         * modules/wcwidth (Depends-on): Depend on wchar.
14218         * lib/wcwidth.h: Assume <wchar.h>.
14219         * m4/wcwidth.m4: Likewise.
14220
14221 2007-01-16  Bruno Haible  <bruno@clisp.org>
14222
14223         * modules/csharpexec-script: New, created from...
14224         * modules/csharpexec: ... this.
14225
14226 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
14227
14228         * modules/javaexec-script: New, created from...
14229         * modules/javaexec: ... this.
14230
14231 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
14232
14233         * modules/poll (Dependencies): Add sys_select.
14234
14235 2007-01-15  Jim Meyering  <jim@meyering.net>
14236
14237         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
14238         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
14239         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
14240         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
14241
14242 2007-01-15  Bruno Haible  <bruno@clisp.org>
14243
14244         * modules/striconveh: New file.
14245         * lib/striconveh.h: New file.
14246         * lib/striconveh.c: New file.
14247         * MODULES.html.sh (Internationalization functions): Add striconveh.
14248
14249         * modules/striconveh-tests: New file.
14250         * tests/test-striconveh.c: New file.
14251
14252 2007-01-15  Bruno Haible  <bruno@clisp.org>
14253
14254         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
14255         not from GNU libiconv or GNU libc.
14256
14257 2007-01-15  Bruno Haible  <bruno@clisp.org>
14258
14259         * doc/gnulib-intro.texi (Copyright): Explain the different license
14260         terms for module descriptions, autoconf macros, tests, documentation.
14261
14262 2007-01-14  Bruno Haible  <bruno@clisp.org>
14263
14264         * modules/striconv-tests: New file.
14265         * tests/test-striconv.c: New file.
14266
14267 2007-01-14  Bruno Haible  <bruno@clisp.org>
14268
14269         * modules/iconv-tests: New file.
14270         * tests/test-iconv.c: New file.
14271
14272 2007-01-14  Bruno Haible  <bruno@clisp.org>
14273
14274         * gnulib-tool (func_get_license): For test modules, use the license of
14275         the main module.
14276
14277 2007-01-14  Bruno Haible  <bruno@clisp.org>
14278
14279         * modules/iconv (Include): Clarify that <iconv.h> can only be included
14280         if iconv is found to exist.
14281
14282 2007-01-14  Bruno Haible  <bruno@clisp.org>
14283
14284         * modules/c-ctype-tests: New file.
14285         * tests/test-c-ctype.c: New file.
14286
14287 2007-01-14  Bruno Haible  <bruno@clisp.org>
14288
14289         * modules/binary-io-tests: New file.
14290         * tests/test-binary-io.sh: New file.
14291         * tests/test-binary-io.c: New file.
14292
14293 2007-01-14  Bruno Haible  <bruno@clisp.org>
14294
14295         * modules/array-oset-tests: New file.
14296         * tests/test-array_oset.c: New file.
14297
14298 2007-01-14  Bruno Haible  <bruno@clisp.org>
14299
14300         * modules/array-list-tests: New file.
14301         * tests/test-array_list.c: New file.
14302
14303 2007-01-14  Bruno Haible  <bruno@clisp.org>
14304
14305         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
14306         and make.
14307         Reported by Simon Josefsson in
14308         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
14309
14310 2007-01-14  Bruno Haible  <bruno@clisp.org>
14311
14312         * modules/allocsa-tests: New file.
14313         * tests/test-allocsa.c: New file.
14314
14315 2007-01-14  Bruno Haible  <bruno@clisp.org>
14316
14317         * modules/fchdir (Depends-on): Add absolute-header.
14318         * modules/unistd (Depends-on): Likewise.
14319
14320 2006-12-30  Bruno Haible  <bruno@clisp.org>
14321
14322         * modules/fchdir: New file.
14323         * modules/unistd (Files): Add lib/unistd_.h.
14324         (Makefile.am): Generate unistd.h from unistd_.h.
14325         * lib/fchdir.c: New file.
14326         * lib/dirent_.h: New file.
14327         * lib/unistd_.h: New file.
14328         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
14329         * m4/fchdir.m4: New file.
14330         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
14331         (gl_HEADER_UNISTD): Invoke it.
14332         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
14333         function.
14334         * lib/backupfile.c (opendir, closedir): Undefine.
14335         * lib/chown.c (open, close): Undefine.
14336         * lib/clean-temp.c (open, close): Undefine.
14337         * lib/copy-file.c (open, close): Undefine.
14338         * lib/execute.c (open, close): Undefine.
14339         * lib/fsusage.c (open, close): Undefine.
14340         * lib/gc-gnulib.c (open, close): Undefine.
14341         * lib/getcwd.c (opendir, closedir): Undefine.
14342         * lib/glob.c (opendir, closedir): Undefine.
14343         * lib/javacomp.c (open, close): Undefine.
14344         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
14345         * lib/openat-proc.c (open, close): Undefine.
14346         * lib/pagealign_alloc.c (open, close): Undefine.
14347         * lib/pipe.c (open, close): Undefine.
14348         * lib/progreloc.c (open, close): Undefine.
14349         * lib/savedir.c (opendir, closedir): Undefine.
14350         * lib/utime.c (open, close): Undefine.
14351         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
14352
14353 2007-01-10  Bruno Haible  <bruno@clisp.org>
14354
14355         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
14356
14357 2007-01-12  Eric Blake  <ebb9@byu.net>
14358
14359         Provide a robust <wchar.h>.  Further simplifications are now
14360         possible in other modules, but not included here.
14361         * modules/wchar: New module.
14362         * m4/wchar.m4: New file.
14363         * lib/wchar_.h: Likewise.
14364         * modules/mbchar (Depends-on): Depend on wchar, as the first use
14365         of the new module.
14366         * MODULES.html.sh (Extended multibyte and wide character utilities):
14367         New section.
14368
14369 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
14370
14371         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
14372         to a reasonable default for memory allocation.
14373         (xreadlink): Don't allocate a huge buffer, to work around a buggy
14374         file system that reports garbage st_size values for symlinks.
14375         Problem reported by Liyang Hu.
14376
14377 2007-01-11  Simon Josefsson  <simon@josefsson.org>
14378
14379         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
14380         Emacs .#* auto-save files).
14381
14382 2007-01-11  Bruno Haible  <bruno@clisp.org>
14383
14384         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
14385         directory.
14386
14387 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
14388
14389         Use @...@ consistently in lib/wctype_.h.
14390         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
14391         on it being set to 1 or 0.
14392         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
14393         go back to AC_SUBSTing it.
14394         * modules/wctype (Makefile.am): Undo previous change.
14395
14396 2007-01-10  Eric Blake  <ebb9@byu.net>
14397
14398         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
14399         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
14400         * modules/wctype (Makefile.am): Likewise.
14401         Reported by Chris McGuire.
14402
14403 2007-01-10  Jim Meyering  <jim@meyering.net>
14404
14405         fts.c: a small readability/maintainability improvement
14406         * lib/fts.c (fts_read): Make this code slightly more readable and
14407         maintainable by hoisting the "sp->fts_cur = p" assignments to
14408         immediately follow the statements that set P.  Derived from
14409         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
14410
14411 2007-01-10  Eric Blake  <ebb9@byu.net>
14412
14413         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
14414         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
14415         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
14416         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
14417         Reported by Chris McGuire.
14418
14419 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14420
14421         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
14422         in sed script.
14423
14424 2007-01-09  Bruno Haible  <bruno@clisp.org>
14425
14426         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
14427         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
14428         variables.
14429         (func_module): Use them.
14430
14431 2007-01-09  Bruno Haible  <bruno@clisp.org>
14432
14433         * modules/unistr/base: New file.
14434         * lib/unistr.h: New file.
14435
14436         * modules/unistr/u8-to-u16: New file.
14437         * lib/unistr/u8-to-u16.c: New file.
14438
14439         * modules/unistr/u8-to-u32: New file.
14440         * lib/unistr/u8-to-u32.c: New file.
14441
14442         * modules/unistr/u16-to-u8: New file.
14443         * lib/unistr/u16-to-u8.c: New file.
14444
14445         * modules/unistr/u16-to-u32: New file.
14446         * lib/unistr/u16-to-u32.c: New file.
14447
14448         * modules/unistr/u32-to-u8: New file.
14449         * lib/unistr/u32-to-u8.c: New file.
14450
14451         * modules/unistr/u32-to-u16: New file.
14452         * lib/unistr/u32-to-u16.c: New file.
14453
14454         * modules/unistr/u8-check: New file.
14455         * modules/unistr/u16-check: New file.
14456         * modules/unistr/u32-check: New file.
14457         * lib/unistr/u8-check.c: New file.
14458         * lib/unistr/u16-check.c: New file.
14459         * lib/unistr/u32-check.c: New file.
14460
14461         * modules/unistr/u8-chr: New file.
14462         * modules/unistr/u16-chr: New file.
14463         * modules/unistr/u32-chr: New file.
14464         * lib/unistr/u8-chr.c: New file.
14465         * lib/unistr/u16-chr.c: New file.
14466         * lib/unistr/u32-chr.c: New file.
14467
14468         * modules/unistr/u8-cmp: New file.
14469         * modules/unistr/u16-cmp: New file.
14470         * modules/unistr/u32-cmp: New file.
14471         * lib/unistr/u8-cmp.c: New file.
14472         * lib/unistr/u16-cmp.c: New file.
14473         * lib/unistr/u32-cmp.c: New file.
14474
14475         * modules/unistr/u8-cpy: New file.
14476         * modules/unistr/u16-cpy: New file.
14477         * modules/unistr/u32-cpy: New file.
14478         * lib/unistr/u8-cpy.c: New file.
14479         * lib/unistr/u16-cpy.c: New file.
14480         * lib/unistr/u32-cpy.c: New file.
14481         * lib/unistr/u-cpy.h: New file.
14482
14483         * modules/unistr/u8-cpy-alloc: New file.
14484         * modules/unistr/u16-cpy-alloc: New file.
14485         * modules/unistr/u32-cpy-alloc: New file.
14486         * lib/unistr/u8-cpy-alloc.c: New file.
14487         * lib/unistr/u16-cpy-alloc.c: New file.
14488         * lib/unistr/u32-cpy-alloc.c: New file.
14489         * lib/unistr/u-cpy-alloc.h: New file.
14490
14491         * modules/unistr/u8-endswith: New file.
14492         * modules/unistr/u16-endswith: New file.
14493         * modules/unistr/u32-endswith: New file.
14494         * lib/unistr/u8-endswith.c: New file.
14495         * lib/unistr/u16-endswith.c: New file.
14496         * lib/unistr/u32-endswith.c: New file.
14497         * lib/unistr/u-endswith.h: New file.
14498
14499         * modules/unistr/u8-mblen: New file.
14500         * modules/unistr/u16-mblen: New file.
14501         * modules/unistr/u32-mblen: New file.
14502         * lib/unistr/u8-mblen.c: New file.
14503         * lib/unistr/u16-mblen.c: New file.
14504         * lib/unistr/u32-mblen.c: New file.
14505
14506         * modules/unistr/u8-mbtouc: New file.
14507         * modules/unistr/u16-mbtouc: New file.
14508         * modules/unistr/u32-mbtouc: New file.
14509         * lib/unistr/u8-mbtouc.c: New file.
14510         * lib/unistr/u16-mbtouc.c: New file.
14511         * lib/unistr/u32-mbtouc.c: New file.
14512
14513         * modules/unistr/u8-mbtouc-safe: New file.
14514         * modules/unistr/u16-mbtouc-safe: New file.
14515         * modules/unistr/u32-mbtouc-safe: New file.
14516         * lib/unistr/u8-mbtouc-safe.c: New file.
14517         * lib/unistr/u16-mbtouc-safe.c: New file.
14518         * lib/unistr/u32-mbtouc-safe.c: New file.
14519
14520         * modules/unistr/u8-move: New file.
14521         * modules/unistr/u16-move: New file.
14522         * modules/unistr/u32-move: New file.
14523         * lib/unistr/u8-move.c: New file.
14524         * lib/unistr/u16-move.c: New file.
14525         * lib/unistr/u32-move.c: New file.
14526         * lib/unistr/u-move.h: New file.
14527
14528         * modules/unistr/u8-next: New file.
14529         * modules/unistr/u16-next: New file.
14530         * modules/unistr/u32-next: New file.
14531         * lib/unistr/u8-next.c: New file.
14532         * lib/unistr/u16-next.c: New file.
14533         * lib/unistr/u32-next.c: New file.
14534
14535         * modules/unistr/u8-prev: New file.
14536         * modules/unistr/u16-prev: New file.
14537         * modules/unistr/u32-prev: New file.
14538         * lib/unistr/u8-prev.c: New file.
14539         * lib/unistr/u16-prev.c: New file.
14540         * lib/unistr/u32-prev.c: New file.
14541
14542         * modules/unistr/u8-set: New file.
14543         * modules/unistr/u16-set: New file.
14544         * modules/unistr/u32-set: New file.
14545         * lib/unistr/u8-set.c: New file.
14546         * lib/unistr/u16-set.c: New file.
14547         * lib/unistr/u32-set.c: New file.
14548         * lib/unistr/u-set.h: New file.
14549
14550         * modules/unistr/u8-startswith: New file.
14551         * modules/unistr/u16-startswith: New file.
14552         * modules/unistr/u32-startswith: New file.
14553         * lib/unistr/u8-startswith.c: New file.
14554         * lib/unistr/u16-startswith.c: New file.
14555         * lib/unistr/u32-startswith.c: New file.
14556         * lib/unistr/u-startswith.h: New file.
14557
14558         * modules/unistr/u8-stpcpy: New file.
14559         * modules/unistr/u16-stpcpy: New file.
14560         * modules/unistr/u32-stpcpy: New file.
14561         * lib/unistr/u8-stpcpy.c: New file.
14562         * lib/unistr/u16-stpcpy.c: New file.
14563         * lib/unistr/u32-stpcpy.c: New file.
14564         * lib/unistr/u-stpcpy.h: New file.
14565
14566         * modules/unistr/u8-stpncpy: New file.
14567         * modules/unistr/u16-stpncpy: New file.
14568         * modules/unistr/u32-stpncpy: New file.
14569         * lib/unistr/u8-stpncpy.c: New file.
14570         * lib/unistr/u16-stpncpy.c: New file.
14571         * lib/unistr/u32-stpncpy.c: New file.
14572         * lib/unistr/u-stpncpy.h: New file.
14573
14574         * modules/unistr/u8-strcat: New file.
14575         * modules/unistr/u16-strcat: New file.
14576         * modules/unistr/u32-strcat: New file.
14577         * lib/unistr/u8-strcat.c: New file.
14578         * lib/unistr/u16-strcat.c: New file.
14579         * lib/unistr/u32-strcat.c: New file.
14580         * lib/unistr/u-strcat.h: New file.
14581
14582         * modules/unistr/u8-strchr: New file.
14583         * modules/unistr/u16-strchr: New file.
14584         * modules/unistr/u32-strchr: New file.
14585         * lib/unistr/u8-strchr.c: New file.
14586         * lib/unistr/u16-strchr.c: New file.
14587         * lib/unistr/u32-strchr.c: New file.
14588
14589         * modules/unistr/u8-strcmp: New file.
14590         * modules/unistr/u16-strcmp: New file.
14591         * modules/unistr/u32-strcmp: New file.
14592         * lib/unistr/u8-strcmp.c: New file.
14593         * lib/unistr/u16-strcmp.c: New file.
14594         * lib/unistr/u32-strcmp.c: New file.
14595
14596         * modules/unistr/u8-strcpy: New file.
14597         * modules/unistr/u16-strcpy: New file.
14598         * modules/unistr/u32-strcpy: New file.
14599         * lib/unistr/u8-strcpy.c: New file.
14600         * lib/unistr/u16-strcpy.c: New file.
14601         * lib/unistr/u32-strcpy.c: New file.
14602         * lib/unistr/u-strcpy.h: New file.
14603
14604         * modules/unistr/u8-strcspn: New file.
14605         * modules/unistr/u16-strcspn: New file.
14606         * modules/unistr/u32-strcspn: New file.
14607         * lib/unistr/u8-strcspn.c: New file.
14608         * lib/unistr/u16-strcspn.c: New file.
14609         * lib/unistr/u32-strcspn.c: New file.
14610         * lib/unistr/u-strcspn.h: New file.
14611
14612         * modules/unistr/u8-strdup: New file.
14613         * modules/unistr/u16-strdup: New file.
14614         * modules/unistr/u32-strdup: New file.
14615         * lib/unistr/u8-strdup.c: New file.
14616         * lib/unistr/u16-strdup.c: New file.
14617         * lib/unistr/u32-strdup.c: New file.
14618         * lib/unistr/u-strdup.h: New file.
14619
14620         * modules/unistr/u8-strlen: New file.
14621         * modules/unistr/u16-strlen: New file.
14622         * modules/unistr/u32-strlen: New file.
14623         * lib/unistr/u8-strlen.c: New file.
14624         * lib/unistr/u16-strlen.c: New file.
14625         * lib/unistr/u32-strlen.c: New file.
14626         * lib/unistr/u-strlen.h: New file.
14627
14628         * modules/unistr/u8-strmblen: New file.
14629         * modules/unistr/u16-strmblen: New file.
14630         * modules/unistr/u32-strmblen: New file.
14631         * lib/unistr/u8-strmblen.c: New file.
14632         * lib/unistr/u16-strmblen.c: New file.
14633         * lib/unistr/u32-strmblen.c: New file.
14634
14635         * modules/unistr/u8-strmbtouc: New file.
14636         * modules/unistr/u16-strmbtouc: New file.
14637         * modules/unistr/u32-strmbtouc: New file.
14638         * lib/unistr/u8-strmbtouc.c: New file.
14639         * lib/unistr/u16-strmbtouc.c: New file.
14640         * lib/unistr/u32-strmbtouc.c: New file.
14641
14642         * modules/unistr/u8-strncat: New file.
14643         * modules/unistr/u16-strncat: New file.
14644         * modules/unistr/u32-strncat: New file.
14645         * lib/unistr/u8-strncat.c: New file.
14646         * lib/unistr/u16-strncat.c: New file.
14647         * lib/unistr/u32-strncat.c: New file.
14648         * lib/unistr/u-strncat.h: New file.
14649
14650         * modules/unistr/u8-strncmp: New file.
14651         * modules/unistr/u16-strncmp: New file.
14652         * modules/unistr/u32-strncmp: New file.
14653         * lib/unistr/u8-strncmp.c: New file.
14654         * lib/unistr/u16-strncmp.c: New file.
14655         * lib/unistr/u32-strncmp.c: New file.
14656
14657         * modules/unistr/u8-strncpy: New file.
14658         * modules/unistr/u16-strncpy: New file.
14659         * modules/unistr/u32-strncpy: New file.
14660         * lib/unistr/u8-strncpy.c: New file.
14661         * lib/unistr/u16-strncpy.c: New file.
14662         * lib/unistr/u32-strncpy.c: New file.
14663         * lib/unistr/u-strncpy.h: New file.
14664
14665         * modules/unistr/u8-strnlen: New file.
14666         * modules/unistr/u16-strnlen: New file.
14667         * modules/unistr/u32-strnlen: New file.
14668         * lib/unistr/u8-strnlen.c: New file.
14669         * lib/unistr/u16-strnlen.c: New file.
14670         * lib/unistr/u32-strnlen.c: New file.
14671         * lib/unistr/u-strnlen.h: New file.
14672
14673         * modules/unistr/u8-strpbrk: New file.
14674         * modules/unistr/u16-strpbrk: New file.
14675         * modules/unistr/u32-strpbrk: New file.
14676         * lib/unistr/u8-strpbrk.c: New file.
14677         * lib/unistr/u16-strpbrk.c: New file.
14678         * lib/unistr/u32-strpbrk.c: New file.
14679         * lib/unistr/u-strpbrk.h: New file.
14680
14681         * modules/unistr/u8-strrchr: New file.
14682         * modules/unistr/u16-strrchr: New file.
14683         * modules/unistr/u32-strrchr: New file.
14684         * lib/unistr/u8-strrchr.c: New file.
14685         * lib/unistr/u16-strrchr.c: New file.
14686         * lib/unistr/u32-strrchr.c: New file.
14687
14688         * modules/unistr/u8-strspn: New file.
14689         * modules/unistr/u16-strspn: New file.
14690         * modules/unistr/u32-strspn: New file.
14691         * lib/unistr/u8-strspn.c: New file.
14692         * lib/unistr/u16-strspn.c: New file.
14693         * lib/unistr/u32-strspn.c: New file.
14694         * lib/unistr/u-strspn.h: New file.
14695
14696         * modules/unistr/u8-strstr: New file.
14697         * modules/unistr/u16-strstr: New file.
14698         * modules/unistr/u32-strstr: New file.
14699         * lib/unistr/u8-strstr.c: New file.
14700         * lib/unistr/u16-strstr.c: New file.
14701         * lib/unistr/u32-strstr.c: New file.
14702         * lib/unistr/u-strstr.h: New file.
14703
14704         * modules/unistr/u8-strtok: New file.
14705         * modules/unistr/u16-strtok: New file.
14706         * modules/unistr/u32-strtok: New file.
14707         * lib/unistr/u8-strtok.c: New file.
14708         * lib/unistr/u16-strtok.c: New file.
14709         * lib/unistr/u32-strtok.c: New file.
14710         * lib/unistr/u-strtok.h: New file.
14711
14712         * modules/unistr/u8-uctomb: New file.
14713         * modules/unistr/u16-uctomb: New file.
14714         * modules/unistr/u32-uctomb: New file.
14715         * lib/unistr/u8-uctomb.c: New file.
14716         * lib/unistr/u16-uctomb.c: New file.
14717         * lib/unistr/u32-uctomb.c: New file.
14718
14719         * MODULES.html.sh (Unicode string functions): Add the new modules.
14720
14721 2007-01-08  Bruno Haible  <bruno@clisp.org>
14722
14723         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
14724         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
14725         subdirectories.
14726
14727 2007-01-08  Karl Berry  <karl@gnu.org>
14728
14729         * doc/error.texi: mention that main() fns must set program_name
14730         when progname is used.
14731
14732 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
14733
14734         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
14735         WCTYPE_H is empty, for the benefit of builds from non-distclean
14736         directories.  Problem reported by Eric Blake in
14737         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
14738
14739 2007-01-08  Bruno Haible  <bruno@clisp.org>
14740
14741         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
14742         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
14743         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
14744         PROVIDE_CANONICALIZE_FILENAME_MODE.
14745         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
14746
14747 2007-01-08  Bruno Haible  <bruno@clisp.org>
14748
14749         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
14750         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
14751         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
14752         * lib/fts.c: Likewise.
14753         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
14754
14755 2006-12-25  Bruno Haible  <bruno@clisp.org>
14756
14757         * modules/utf8-ucs4-safe: New file.
14758         * lib/utf8-ucs4-safe.h: New file.
14759         * lib/unistr/utf8-ucs4-safe.c: New file.
14760
14761         * modules/utf16-ucs4-safe: New file.
14762         * lib/utf16-ucs4-safe.h: New file.
14763         * lib/unistr/utf16-ucs4-safe.c: New file.
14764
14765         * MODULES.html.sh (Unicode string functions): Add the new modules.
14766
14767 2007-01-08  Bruno Haible  <bruno@clisp.org>
14768
14769         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
14770         (Depends-on): Add unitypes.
14771         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
14772         (u8_mbtouc_aux): Move out to separate file.
14773         (u8_mbtouc): Use ucs4_t, uint8_t types.
14774         * lib/unistr/utf8-ucs4.c: New file.
14775
14776         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
14777         (Depends-on): Add unitypes.
14778         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
14779         (u16_mbtouc_aux): Move out to separate file.
14780         (u16_mbtouc): Use ucs4_t, uint16_t types.
14781         * lib/unistr/utf16-ucs4.c: New file.
14782
14783         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
14784         (Depends-on): Add unitypes.
14785         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
14786         (u8_uctomb_aux): Move out to separate file.
14787         (u8_uctomb): Use ucs4_t, uint8_t types.
14788         * lib/unistr/ucs4-utf8.c: New file.
14789
14790         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
14791         (Depends-on): Add unitypes.
14792         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
14793         (u16_uctomb_aux): Move out to separate file.
14794         (u16_uctomb): Use ucs4_t, uint16_t types.
14795         * lib/unistr/ucs4-utf16.c: New file.
14796
14797 2006-12-25  Bruno Haible  <bruno@clisp.org>
14798
14799         * modules/unitypes: New file.
14800         * lib/unitypes.h: New file.
14801         * MODULES.html.sh (func_all_modules): New section "Unicode string
14802         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
14803         this section. Add unitypes.
14804
14805 2007-01-08  Bruno Haible  <bruno@clisp.org>
14806
14807         Avoid variable names that conflict with those from libtool.
14808         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
14809         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
14810         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
14811         library_names_spec to acl_library_names_spec, hardcode_* to
14812         acl_hardcode_*.
14813         Reported by Ralf Wildenhues.
14814
14815 2007-01-08  Bruno Haible  <bruno@clisp.org>
14816
14817         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
14818         definition.
14819         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
14820         definition.
14821         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
14822         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
14823         definition.
14824         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
14825         definition.
14826         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
14827         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
14828         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
14829         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
14830         definition.
14831         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
14832         definition.
14833         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
14834         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
14835         GC_USE_<algorithm>.
14836         * lib/gc-libgcrypt.c: Likewise.
14837         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
14838         * modules/gc-arctwo (configure.ac): Likewise.
14839         * modules/gc-des (configure.ac): Likewise.
14840         * modules/gc-hmac-md5 (configure.ac): Likewise.
14841         * modules/gc-hmac-sha1 (configure.ac): Likewise.
14842         * modules/gc-md2 (configure.ac): Likewise.
14843         * modules/gc-md4 (configure.ac): Likewise.
14844         * modules/gc-md5 (configure.ac): Likewise.
14845         * modules/gc-random (configure.ac): Likewise.
14846         * modules/gc-rijndael (configure.ac): Likewise.
14847         * modules/gc-sha1 (configure.ac): Likewise.
14848
14849 2007-01-08  Bruno Haible  <bruno@clisp.org>
14850
14851         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
14852         macro definition.
14853         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
14854         definition.
14855         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
14856         definition.
14857         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
14858         * modules/fcntl-safer (configure.ac): Likewise.
14859         * modules/fopen-safer (configure.ac): Likewise.
14860         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
14861         GNULIB_FWRITEERROR macro definition.
14862
14863 2007-01-08  Bruno Haible  <bruno@clisp.org>
14864
14865         * m4/gnulib-common.m4: New file.
14866         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
14867         (func_get_filelist): Add m4/gnulib-common.m4.
14868
14869 2007-01-08  Bruno Haible  <bruno@clisp.org>
14870
14871         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
14872         command.
14873
14874 2007-01-08  Jim Meyering  <jim@meyering.net>
14875
14876         Use a more robust test for a "can't happen" condition.
14877         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
14878         narrowed the st_size value.  Presuming the "can't happen" condition
14879         is true, that narrowing could conceivably convert an invalid st_size
14880         value into a valid one.  Instead, use a change based on Matthew
14881         Woehlke's original patch.
14882
14883         Slight readability improvement: use an assert-like macro
14884         in place of literal "abort ()" uses.
14885         * lib/fts.c (fts_assert): Define.
14886         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
14887         Use this macro instead of a bare 'abort'.
14888
14889 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
14890
14891         Don't worry about using IRIX 5.3's wctype.h broken definitions;
14892         simply work around them.
14893         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
14894         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
14895         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
14896         declaring.
14897         Don't bother to define as macros, since the standard doesn't require it.
14898         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
14899         longer worry about IRIX 5.3.
14900         (HAVE_WCTYPE_CTMP_BUG): Remove.
14901
14902 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
14903
14904         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
14905         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
14906         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
14907         Problems reported by Georg Schwarz for IRIX 5.3.
14908
14909         * gnulib-tool (autoconf_minversion): Take the maximum version number
14910         found, not the minimum.  Problem reported by James Youngman.
14911
14912 2007-01-03  Karl Berry  <karl@gnu.org>
14913
14914         * doc/error.texi: new file, explaining interaction with progname.
14915         * doc/gnulib.texi: include it.  Update copyright.
14916
14917 2007-01-03  Simon Josefsson  <simon@josefsson.org>
14918
14919         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
14920         AC_CANONICAL_HOST, to improve autobuild outputs.
14921
14922 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
14923             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
14924
14925         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
14926         sockets, server sockets, and other file descriptors.  Count errors
14927         to compute the return value.  Reorder the code a bit to be easier
14928         to follow.  Don't set event bits that were not requested (except
14929         POLLERR and POLLHUP).
14930
14931 2007-01-01  Bruno Haible  <bruno@clisp.org>
14932
14933         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
14934
14935 2007-01-03  Jim Meyering  <jim@meyering.net>
14936
14937         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
14938
14939 2007-01-02  Bruno Haible  <bruno@clisp.org>
14940
14941         * modules/settime (Include): Require timespec.h.
14942         * modules/nanosleep (Include): Likewise.
14943
14944 2007-01-01  Bruno Haible  <bruno@clisp.org>
14945
14946         * gnulib-tool (func_emit_copyright_notice): Bump year.
14947         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
14948
14949 2007-01-01  Bruno Haible  <bruno@clisp.org>
14950
14951         Improve support for OpenBSD.
14952         * build-aux/config.rpath (libname_spec): Export.
14953         (library_names_spec): New variable. Export.
14954         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
14955         library_names_spec from the config.rpath output. Locate shared library
14956         through the name pattern in library_names_spec.
14957
14958 2007-01-01  Eric Blake  <ebb9@byu.net>
14959
14960         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
14961
14962 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
14963
14964         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
14965         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
14966         assume the C locale, and avoid an "eval" that could cause trouble.
14967         Problem with SORT reported by Bob Proulx.
14968
14969         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
14970         Define.  Trivial patch from Henning Nielsen Lund, originally
14971         sent to bug-grep@gnu.org today.
14972
14973 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
14974
14975         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
14976         struct stat.  Problem reported by Henning Nielsen Lund.
14977         * lib/acl.c: Include acl.h first, to check interface.  Don't
14978         bother to include sys/types.h and sys/stat.h again.
14979
14980 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
14981
14982         Import the following change from libc; problem reported by
14983         Sven Verdoolaege.
14984
14985         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
14986
14987         [BZ #1373]
14988         * lib/argp.h: Remove __NTH for __argp_usage inline function.
14989
14990 2006-12-28  Jim Meyering  <jim@meyering.net>
14991
14992         * build-aux/announce-gen: Do not assume that the package
14993         builds any of tar.gz, tar.bz2, and .xdelta files.
14994         Suggestion from Simon Josefsson.
14995
14996 2006-12-28  Simon Josefsson  <simon@josefsson.org>
14997
14998         * modules/announce-gen: New file.
14999
15000 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
15001
15002         * lib/mbchar.h: Just include <wctype.h>; the wctype module
15003         handles its gotchas now.
15004         * lib/mbswidth.c: Likewise.
15005         * lib/wcwidth.h: Likewise.
15006         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
15007         and iswcntrl; the wctype module does this stuff now.
15008         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
15009         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
15010         * modules/mbchar (Depends-on): Add wctype.
15011         * modules/mbswidth (Depends-on): Likewise.
15012         * modules/wcwidth (Depends-on): Likewise.
15013
15014 2006-12-27  Eric Blake  <ebb9@byu.net>
15015
15016         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
15017         module uses more than what <wctype.h> is required to provide.
15018
15019 2006-12-26  Eric Blake  <ebb9@byu.net>
15020
15021         * gnulib-tool (sed_extract_prog): Avoid space-tab.
15022
15023 2006-12-26  Eric Blake  <ebb9@byu.net>
15024
15025         * modules/absolute-header: New module.
15026         * modules/fcntl (Depends-on): Depend on it.
15027         * modules/inttypes (Depends-on): Likewise.
15028         * modules/stdint (Depends-on): Likewise.
15029         * modules/sys_stat (Depends-on): Likewise.
15030         * modules/wctype (Depends-on): Likewise.
15031         * MODULES.html.sh (Support for building libraries and
15032         executables): Document it.
15033
15034 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
15035
15036         * gnulib-tool (SED): Remove, undoing previous change.
15037         The problem was that it broke coreutils on Solaris, because
15038         "sed --posix" leaked into a makefile.
15039         (sed): New alias, if 'alias' and GNU sed.
15040
15041 2006-12-24  Jim Meyering  <jim@meyering.net>
15042
15043         Work around an fchownat bug in glibc-2.4:
15044         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
15045         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
15046         in spite of the -P option.
15047         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
15048         New macros.
15049         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
15050         * modules/openat (Files): Add lib/fchownat.c.
15051         * lib/openat.c (fchownat): Don't define here.  Move to...
15052         * lib/fchownat.c: ...this new file.
15053
15054 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
15055
15056         Fix bug reported by Bruno Haible in
15057         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
15058         where quotearg.c didn't compile on Mac OS X 10.2 because it
15059         lacks <wchar.h> and wint_t.
15060         * lib/wctype_.h (__wctype_wint_t): New type.
15061         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
15062         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
15063         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
15064         Arg is now of type __wctype_wint_t, not wint_t.
15065         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
15066         substitute HAVE_WINT_T.
15067         * modules/wctype (Files): Add m4/wint_t.m4.
15068         (wctype.h): Substitute HAVE_WINT_T.
15069
15070 2006-12-23  Bruno Haible  <bruno@clisp.org>
15071
15072         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
15073
15074 2006-12-23  Bruno Haible  <bruno@clisp.org>
15075
15076         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
15077         S_ISLNK.
15078         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
15079         mingw.
15080
15081 2006-12-22  Bruno Haible  <bruno@clisp.org>
15082
15083         * lib/copy-file.c: Include acl.h.
15084         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
15085         Close the file descriptors only after being done with copy_acl.
15086         * modules/copy-file (Depends-on): Add acl.
15087
15088 2006-12-22  Bruno Haible  <bruno@clisp.org>
15089
15090         * gnulib-tool (SED): New variable.
15091         Use $SED instead of sed everywhere.
15092
15093 2006-12-22  Bruno Haible  <bruno@clisp.org>
15094
15095         * modules/no-c++: New file.
15096         * m4/no-c++.m4: New file.
15097         * MODULES.html.sh (Support for building libraries and executables):
15098         Add no-c++.
15099
15100 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
15101
15102         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
15103         Include <limits.h>, and use its INT_MAX to rewrite the
15104         j loop so that it does not overflow 'int'.  Problem reported by
15105         Ralf Wildenhues in
15106         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
15107         Play it safe by shifting left by 1 rather than multiplying by 2,
15108         as GCC is less likely to optimize this away when the value
15109         is signed (when it assumes overflow leads to undefined behavior).
15110         Also, don't assume time_t uses two's complement.
15111
15112 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
15113
15114         * MODULES.html.sh: New module wctype.
15115         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
15116         * lib/fnmatch.c: Don't bother to include <wchar.h> before
15117         <wctype.h>, since the new wctype module should fix this.
15118         * lib/quotearg.c: Include <wctype.h> unconditionally, since
15119         the wctype module should arrange for it.
15120         * lib/regex_internal.h: Likewise.
15121         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
15122         since the wctype module should handle this now.
15123         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
15124         * modules/fnmatch (Depends-on): Add wctype.
15125         * modules/quotearg (Depends-on): Likewise.
15126         * modules/regex (Depends-on): Likewise.
15127
15128 2006-12-19  Bruno Haible  <bruno@clisp.org>
15129
15130         * lib/strdup.h [C++]: Wrap definitions in extern "C".
15131         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
15132
15133 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15134
15135         * modules/savewd (Depends-on): Fix dependency on fcntl.
15136
15137 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
15138
15139         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
15140         conforms to C99, rather than relying on the user's environment
15141         setting of STDINT_H.
15142
15143 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
15144         and Eric Blake  <ebb9@byu.net>
15145
15146         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
15147         This is more consistent with the other defines here.
15148         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
15149         Port to z/OS.  Problem reported by Paul Gilmartin.
15150         Change local vars to use gl_ prefix rather than ac_.
15151         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
15152         with other defines.
15153         * modules/double-slash-root: New module.
15154         * modules/dirname (Files): Remove m4/double-slash-root.m4.
15155         (Depends-on): Add double-slash-root.
15156         * MODULES.html.sh (File system functions): Mention new module.
15157
15158 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
15159
15160         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
15161         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
15162         This is for the benefit of gzip, which doesn't do i18n.
15163
15164 2006-12-12  Jim Meyering  <jim@meyering.net>
15165
15166         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
15167         Reported by Andreas Schwab <schwab@suse.de>.
15168
15169 2006-12-12  Bruno Haible  <bruno@clisp.org>
15170
15171         Merge these changes.
15172         2006-09-05  Bruno Haible  <bruno@clisp.org>
15173         * lib/iconvme.c (iconv_string): No need to save and restore errno when
15174         iconv_alloc succeeded.
15175         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
15176         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
15177         test for " && dest " at the end - dest is always != NULL there. Call
15178         iconv with 4xNULL arguments initially, to reset the state. Call iconv
15179         with 2xNULL arguments, also to flush the state storage. Handle the
15180         IRIX iconv behaviour. Realloc the final result, to throw away unused
15181         memory.
15182
15183 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
15184
15185         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
15186         and fchmodat unconditionally, since glibc 2.4 has them.
15187         Problem reported by Arkadiusz Miskiewicz.
15188
15189 2006-12-10  Bruno Haible  <bruno@clisp.org>
15190
15191         * gnulib-tool (func_import): Show the include files only for those
15192         modules that are copied and specified.
15193         Reported by Karl Berry.
15194
15195 2006-12-08  Jim Meyering  <jim@meyering.net>
15196
15197         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
15198         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
15199
15200         * build-aux/announce-gen: Add two new options, both optional:
15201         --bootstrap-tools=TOOL_LIST
15202               a comma-separated list of tools, e.g.,
15203               autoconf,automake,bison,gnulib
15204         --gnulib-snapshot-date=DATE
15205               if gnulib is in the bootstrap tool list,
15206               then report this as the snapshot date.
15207               If not specified, use the current date/time.
15208               If you specify a date here, be sure it's UTC.
15209
15210 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15211
15212         * tests/test-argp-2.sh: Fix test to match actual output.
15213         (func_compare): Fix sed script to be portable.
15214
15215 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
15216
15217         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
15218         workaround for this case.  It is not autoconfigured now; offhand
15219         it's hard to see how to autoconfigure it.
15220
15221 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
15222
15223         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
15224         a directory that is about to be chowned.  Such a directory's
15225         initial file permissions should permit the owner only and this
15226         should not be changed until after the chown, since the group and
15227         other bits would be incorrect if they granted permission before
15228         the chown.
15229
15230         Fix porting problem for iswctype reported by Georg Schwarz in:
15231         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
15232         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
15233         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
15234         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
15235         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
15236
15237 2006-12-03  Jim Meyering  <jim@meyering.net>
15238
15239         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
15240         p->fts_statp may not yet be defined.
15241         (fts_read): Instead, set it in the caller, once p->fts_statp is
15242         sure to be defined, and corresponds to a top-level directory.
15243         This bug made du -x fail.  Here's the coreutils test case:
15244         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
15245         Reported by Mike Frysinger.
15246
15247 2006-12-01  Jim Meyering  <jim@meyering.net>
15248
15249         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
15250         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
15251         Reported by Simon Josefsson.
15252
15253 2006-11-30  Jim Meyering  <jim@meyering.net>
15254
15255         * m4/warning.m4: Use the all-permissive copyright notice
15256         recommended by RMS (rather than LGPL).
15257         * m4/vararrays.m4: Likewise.
15258         * m4/flexmember.m4: Likewise.
15259
15260 2006-11-29  Bruno Haible  <bruno@clisp.org>
15261
15262         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
15263         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
15264         using +=.
15265         Reported by Simon Josefsson <simon@josefsson.org>.
15266
15267 2006-11-28  James Youngman <jay@gnu.org>
15268
15269         * README: Advise users that they might find the bug-gnulib@gnu.org
15270         and autotools-announce@gnu.org mailing lists useful.
15271
15272 2006-11-28  Bruno Haible  <bruno@clisp.org>
15273
15274         * m4/ptrdiff_max.m4: Remove file.
15275
15276 2006-11-21  Bruno Haible  <bruno@clisp.org>
15277
15278         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
15279         _AC_COMPUTE_INT.
15280         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
15281         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
15282         _AC_COMPUTE_INT.
15283         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
15284         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
15285         _AC_COMPUTE_INT.
15286         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
15287
15288 2006-11-28  Jim Meyering  <jim@meyering.net>
15289
15290         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
15291         warning from "gcc -Wshadow" about shadowing the builtin.
15292
15293 2006-11-27  Bruno Haible  <bruno@clisp.org>
15294
15295         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
15296         _AC_COMPUTE_INT.
15297         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
15298
15299 2006-11-27  Bruno Haible  <bruno@clisp.org>
15300             Paul Eggert  <eggert@cs.ucla.edu>
15301
15302         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
15303
15304 2006-11-26  Bruno Haible  <bruno@clisp.org>
15305
15306         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
15307         noinst_LTLIBRARIES.
15308
15309 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
15310             Bruno Haible  <bruno@clisp.org>
15311
15312         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
15313         if compiling with "gcc -ansi".
15314
15315 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
15316
15317         Fix some incompatibilities with gcc -ansi -pedantic.
15318         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
15319         if compiling pedantically with GCC, unless it's C99 or later.
15320         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
15321         it mishandles gcc -ansi -pedantic as well.
15322         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
15323         if gcc -pedantic.
15324         * lib/regexec.c (check_node_accept_bytes): Don't use auto
15325         initializers for struct if -pedantic, unless it's C99 or later.
15326
15327 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
15328
15329         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
15330         Don't close an fd more than once. Identical atimes indicate
15331         success, not failure.
15332
15333 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
15334
15335         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
15336
15337 2006-11-23  Jim Meyering  <jim@meyering.net>
15338
15339         * build-aux/announce-gen: New file.  From coreutils.
15340
15341 2006-11-22  Jim Meyering  <jim@meyering.net>
15342
15343         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
15344         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
15345         (fts_read): Use a temporary to narrow the overused st_size member
15346         before using it in a switch statement.  Reported by Matthew Woehlke.
15347
15348         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
15349         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
15350
15351 2006-11-20  Bruno Haible  <bruno@clisp.org>
15352
15353         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
15354         changequote instead of pairs of brackets.
15355         Reported by Andreas Schwab <schwab@suse.de>.
15356
15357 2006-11-21  Jim Meyering  <jim@meyering.net>
15358
15359         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
15360         so as to remain compatible with older compilers.
15361         Patch from Michael Deutschmann.
15362
15363 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
15364
15365         * MODULES.html.sh (File system functions): Add openat.
15366
15367         * lib/openat.h (rpl_fstatat): New macro, if
15368         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
15369         (fstatat): Define to rpl_fstatat under the same conditions,
15370         unless COMPILING_FSTATAT.
15371         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
15372         seems to have the bug.
15373         * lib/fstatat.c: New file.
15374         * modules/openat (Files): Add it.
15375
15376 2006-11-20  Bruno Haible  <bruno@clisp.org>
15377
15378         * Makefile: New file.
15379
15380 2006-11-20  Jim Meyering  <jim@meyering.net>
15381
15382         The beginnings of syntax-related checks for gnulib.
15383         * lib/Makefile: New file.
15384         * lib/t-idcache: New script.  Ensure that the two halves of
15385         idcache.c stay in sync.
15386
15387         * lib/idcache.c: Adjust comments in user- and group- portions to
15388         be more accurate, and to be consistent with one another.
15389
15390 2006-11-20  Jim Meyering  <jim@meyering.net>
15391
15392         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
15393         continue using the flexible array member (thus, this module performs
15394         half as many malloc calls), with the addition that...
15395         (getgroup, getuser): Consistently record a non-match via an empty
15396         "name" string, and map an empty string match to a NULL return value.
15397         * modules/idcache (Depends-on): Re-add flexmember.
15398
15399         * lib/idcache.c (getuser): Remove all uses of the register keyword.
15400         (getuidbyname, getgroup, getgidbyname): Likewise.
15401
15402         Use cleaner syntax: NULL rather than 0.
15403         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
15404
15405 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
15406
15407         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
15408         It mishandled the case where the group was missing.
15409         Problem reported by Greg Schafer.
15410         * modules/idcache: Likewise.
15411
15412 2006-11-18  Jim Meyering  <jim@meyering.net>
15413
15414         * check-module (%exempt_header): Add exception for some
15415         conditionally-included headers.
15416
15417         * modules/i-ring (Depends-on): Add verify.
15418         (License): Change to LGPL.
15419
15420 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
15421
15422         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
15423         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
15424         and inttostr.h.  Use snprintf rather than uinttostr, so that
15425         LGPLed code doesn't depend on GPLed.
15426
15427 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
15428
15429         * modules/inline (License): Change from GPL to LGPL.
15430
15431 2006-11-17  Jim Meyering  <jim@meyering.net>
15432
15433         * modules/d-type (License): Switch to LGPL.
15434
15435 2006-11-15  Bruno Haible  <bruno@clisp.org>
15436
15437         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
15438
15439 2006-11-15  Eric Blake  <ebb9@byu.net>
15440
15441         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
15442         the module dependency.
15443
15444 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
15445             Bruno Haible  <bruno@clisp.org>
15446
15447         * gnulib-tool (func_create_testdir): Add license consistency check.
15448
15449 2006-11-15  Eric Blake  <ebb9@byu.net>
15450
15451         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
15452         random "(cached)" in configure output.
15453
15454 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15455
15456         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
15457         test for conforming inttypes.h is both announced and cached.
15458
15459         * MODULES.html.sh (seen_modules, seen_files): New variables.
15460         (func_module): Rewrite to use a few less gnulib-tool and sed
15461         invocations.  Avoid a couple of quadratic algorithms for ...
15462         (missed_modules, missed_files): ... these, with ...
15463         (func_append, func_tmpdir): ... these new functions, from
15464         gnulib-tool.  Analogously, install traps for cleanup.
15465
15466         * tests/test-gc.c (main): Remove unused variables.
15467         * tests/test-read-file.c: Include stdlib.h, for 'free'.
15468
15469 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
15470
15471         * modules/inttostr (License): Change to LGPL.
15472
15473 2006-11-14  Eric Blake  <ebb9@byu.net>
15474
15475         * modules/tempname (License): Change to LGPL.
15476
15477 2006-11-14  Eric Blake  <ebb9@byu.net>
15478
15479         * doc/functions.texi (Function Portability): *printf functions on
15480         Cygwin now understand all POSIX size specifiers.
15481
15482 2006-11-14  Bruno Haible  <bruno@clisp.org>
15483
15484         * modules/c-ctype (License): Change to LGPL.
15485
15486 2006-11-12  Bruno Haible  <bruno@clisp.org>
15487
15488         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
15489         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
15490         for GNOME libraries, for which the include files are installed in
15491         subdirectories of $prefix/include.
15492
15493 2006-11-12  Bruno Haible  <bruno@clisp.org>
15494
15495         * m4/lib-link.m4: Require at least autoconf-2.54.
15496         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
15497         name to underscores for the --with option.
15498
15499 2006-11-13  Bruno Haible  <bruno@clisp.org>
15500
15501         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
15502         the tests directory.
15503         Reported by Ralf Wildenhues.
15504
15505 2006-11-13  Bruno Haible  <bruno@clisp.org>
15506
15507         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
15508         (func_emit_initmacro_end): Undo the override here.
15509         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
15510         Works around the famous automake error in coreutils.
15511
15512 2006-11-13  Eric Blake  <ebb9@byu.net>
15513
15514         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
15515         element, not its node.
15516
15517 2006-11-12  Bruno Haible  <bruno@clisp.org>
15518
15519         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
15520         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
15521
15522 2006-11-12  Bruno Haible  <bruno@clisp.org>
15523
15524         * gnulib-tool: New option --local-symlink.
15525         (func_usage): Document it.
15526         (lsymbolic): New variable.
15527         (func_import, func_create_testdir): If --symlink was not specified,
15528         test whether --local-symlink was specified and the file comes from
15529         the local_gnulib_dir.
15530
15531 2006-11-12  Bruno Haible  <bruno@clisp.org>
15532
15533         * gnulib-tool (func_ln): New function.
15534         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
15535
15536 2006-11-12  Bruno Haible  <bruno@clisp.org>
15537
15538         Finish support for source files in subdirectories.
15539         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
15540         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
15541         AUTOMAKE_OPTIONS.
15542         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
15543
15544 2006-11-12  Bruno Haible  <bruno@clisp.org>
15545
15546         * gnulib-tool (func_get_automake_snippet): Synthesize also an
15547         EXTRA_lib_SOURCES augmentation.
15548         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
15549
15550 2006-11-12  Jim Meyering  <jim@meyering.net>
15551
15552         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
15553         file descriptors.  This also averts a failure on systems with
15554         native openat support when a traversed directory lacks "x" access.
15555         * lib/fts_.h: Include "i-ring.h"
15556         (struct FTS) [fts_fd_ring]: New member.
15557         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
15558         (FCHDIR): Add parentheses.
15559         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
15560         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
15561         When descending, rather than simply closing the previous
15562         fts_cwd_fd value, push that file descriptor onto the ring.
15563         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
15564         (fts_open): Initialize the new fd_ring member.
15565         (fts_close): Clear the ring.
15566         (fts_safe_changedir): When possible, use our new fd_ring to skip
15567         the diropen and fstat and dev/ino comparison that would normally
15568         accompany a virtual `chdir ("..")'.
15569
15570         * modules/fts (Depends-on): Add i-ring.
15571         * modules/i-ring: New module.
15572         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
15573         * m4/i-ring.m4: New file.
15574
15575 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15576
15577         * gnulib-tool (func_create_testdir): Fix replacement of
15578         `build-aux' in configure.ac.  Run autotools in gltests
15579         subdirectory.
15580         (func_create_testdir, func_create_megatestdir, test): There is
15581         no need for '--force' in most autotool invocations in a new
15582         tree.  Actually fail the whole test if any of the tools, or the
15583         configure or make stages fail.
15584
15585         Sync from Automake.
15586         * build-aux/gnupload: Revert last change.  Add pointer to upload
15587         instructions of the GNU Maintenance Instructions.
15588         Suggestion by Karl Berry.
15589
15590 2006-11-10  Jim Meyering  <jim@meyering.net>
15591
15592         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
15593
15594 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
15595
15596         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
15597         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
15598         (bind_textdomain_codeset) [! ENABLE_NLS]:
15599         Evaluate all the arguments.  That way, callers get compatible behavior
15600         if the arguments have side effects.  Also, it avoids some GCC
15601         diagnostics in some cases; Joel E. Denny reported problems when Bison
15602         was configured with --enable-gcc-warnigs.
15603
15604 2006-11-10  Jim Meyering  <jim@meyering.net>
15605
15606         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
15607         relevant options in CFLAGS (like -O, -fno-inline) are taken into
15608         account.
15609
15610 2006-11-10  Jim Meyering  <jim@meyering.net>
15611
15612         * modules/inline: New file/module.
15613         * modules/xalloc (Files): Remove m4/inline.m4.
15614         (Depends-on): Add inline, instead.
15615         * modules/oset: Likewise.
15616         * modules/list: Likewise.
15617
15618 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
15619
15620         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
15621         Problem reported by Matthew Woehlke.
15622
15623 2006-11-09  Bruno Haible  <bruno@clisp.org>
15624
15625         * lib/tempname.c (gen_tempname): Remove variant that invokes
15626         __gen_tempname.
15627         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
15628         __gen_tempname.
15629
15630 2006-11-08  Bruno Haible  <bruno@clisp.org>
15631
15632         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
15633         to 'yes' instead of 'cross-compiling'.
15634
15635 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
15636
15637         * lib/quotearg.h (quotearg_free): New decl.
15638         * lib/quotearg.c (quotearg_free): New function.
15639         (slot0, nslots, slotvec0, slotvec):
15640         Now file-scope so that quotearg_free can get at them.
15641
15642 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15643
15644         Sync from Automake.
15645         * build-aux/gnupload: Add missing 'gnu' to example URL.
15646         Report by Karl Berry.
15647
15648 2006-11-08  Bruno Haible  <bruno@clisp.org>
15649
15650         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
15651         Suggested by Paul Eggert.
15652
15653 2006-11-08  Jim Meyering  <jim@meyering.net>
15654
15655         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
15656         It's already included if !_LIBC.
15657         (fts_safe_changedir): Add a comment.
15658
15659 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
15660
15661         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
15662         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
15663         Matthew Woehlke.
15664
15665         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
15666         definitions up, to avoid colliding with change below.
15667         (static_inline) [HAVE_INLINE]: New macro.
15668         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
15669         Provide extern decls when !HAVE_INLINE.  Do not define unless
15670         static_inline is defined, either by us or by xmalloc.c.  Use
15671         static_inline rather than static inline.
15672         (XCALLOC): Optimize sizeof(T) = 1 case.
15673         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
15674
15675 2006-11-07  Bruno Haible  <bruno@clisp.org>
15676
15677         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
15678         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
15679         AC_C_INLINE.
15680         * modules/xalloc (Files): Add m4/inline.m4.
15681
15682 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15683
15684         * README: Fix typo.
15685         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
15686         (Miscellanous Notes): ...from this.
15687
15688 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
15689
15690         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
15691         Mention that offsetof should be used instead of sizeof.
15692         From Bruno Haible.
15693
15694 2006-11-07  Bruno Haible  <bruno@clisp.org>
15695
15696         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
15697
15698 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
15699
15700         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
15701         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
15702         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
15703         (gl_tree_add_before, gl_tree_add_after):
15704         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
15705         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
15706         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
15707         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
15708         (gl_linked_add_after, gl_linked_add_at): Likewise.
15709         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
15710         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
15711         (gl_tree_add_before, gl_tree_add_after): Likewise.
15712         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
15713         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
15714         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
15715
15716 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15717
15718         * lib/gl_oset.h: Use C comment style, not C++ comment style.
15719
15720 2006-11-06  Bruno Haible  <bruno@clisp.org>
15721
15722         * m4/inline.m4: New file.
15723         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
15724         * modules/list (Files): Add m4/inline.m4.
15725         * modules/oset (Files): Likewise.
15726
15727 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
15728
15729         * lib/idcache.c: Include <stddef.h>, for offsetof.
15730         (struct userid.name): Change from char * to a flexible array member.
15731         All uses changed.
15732         * modules/idcache (Depends-on): Add flexmember.
15733
15734         * MODULES.html.sh (Core language properties): New module flexmember.
15735         * modules/flexmember, m4/flexmember.m4: New files.
15736
15737         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
15738         inline functions that are identical with the old xnmalloc_inline,
15739         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
15740         that we can avoid some unnecessary integer multiplications and
15741         divisions in the common case where the element size is known at
15742         compile time.
15743         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
15744         needed.
15745         (xnboundedmalloc): Remove.
15746         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
15747         arguments, for consistency with rest of this header.
15748         (xcharalloc): Rewrite using XNMALLOC.
15749         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
15750         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
15751         versions have been moved to lib/xalloc.h and renamed to be the
15752         non-*_inline versions.
15753         (xmalloc, xrealloc): Implement without reference to the xnmalloc
15754         and xnrealloc functions, since those functions are now inline and
15755         now call us.
15756         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
15757         renaming described above.
15758         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
15759         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
15760         captures the dependency in AC_C_INLINE.
15761
15762         New module canonicalize-lgpl, proposed by Charles Wilson in
15763         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
15764         with a few small changes afterwards.
15765         * MODULES.html.sh (File system functions): New module
15766         canonicalize-lgpl.
15767         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
15768         and canonicalize_file_name.
15769         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
15770         * modules/canonicalize-lgpl: New files.
15771
15772 2006-11-05  Bruno Haible  <bruno@clisp.org>
15773
15774         * gnulib-tool (func_import, func_create_testdir): Create directories
15775         also for files in subdirectories of lib/.
15776
15777 2006-11-05  Bruno Haible  <bruno@clisp.org>
15778
15779         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
15780         ANSI C compliant.
15781
15782 2006-11-03  Bruno Haible  <bruno@clisp.org>
15783
15784         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
15785         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
15786         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
15787         (xnboundedmalloc): New inline function.
15788         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
15789         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
15790         xmalloc.
15791         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
15792         xmalloc.
15793         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
15794         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
15795         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
15796         xmalloc.
15797         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
15798         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
15799         xmalloc.
15800         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
15801         gl_tree_add_after): Use XMALLOC instead of xmalloc.
15802         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
15803         xmalloc.
15804         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
15805         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
15806         gl_tree_add_after): Use XMALLOC instead of xmalloc.
15807         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
15808         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
15809         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
15810         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
15811
15812 2006-11-03  Bruno Haible  <bruno@clisp.org>
15813
15814         * lib/c-ctype.h [C++]: Define functions without name mangling.
15815         * lib/fwriteerror.h [C++]: Likewise.
15816         * lib/gcd.h [C++]: Likewise.
15817         * lib/linebreak.h [C++]: Likewise.
15818
15819 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
15820
15821         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
15822         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
15823         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
15824         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
15825         Check for functions and headers just once.
15826         Check for declaration of canonicalize_file_name.
15827         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
15828
15829 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
15830
15831         * gnulib-tool (func_import): Fix typo in actioncmd.
15832
15833 2006-11-02  Bruno Haible  <bruno@clisp.org>
15834
15835         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
15836         newline sequence in the Makefile.am snippet as a space, like "make"
15837         does.
15838         Reported by Roger Persson <perrog@gmail.com>.
15839
15840 2006-11-01  Bruno Haible  <bruno@clisp.org>
15841
15842         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
15843         already declared in <string.h>.
15844         * lib/strcase.h (strncasecmp): Don't declare it if yes.
15845
15846 2006-11-01  Bruno Haible  <bruno@clisp.org>
15847
15848         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
15849         * lib/strcase.h: Include <string.h>.
15850         (strcasecmp): Define to rpl_strcasecmp here.
15851
15852 2006-11-01  Bruno Haible  <bruno@clisp.org>
15853
15854         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
15855
15856 2006-11-01  Eric Blake  <ebb9@byu.net>
15857
15858         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
15859
15860         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
15861
15862 2006-10-29  Bruno Haible  <bruno@clisp.org>
15863
15864         Make it compile in C++ mode.
15865         * lib/full-write.c (full_rw): Add a cast.
15866
15867 2006-11-01  Bruno Haible  <bruno@clisp.org>
15868
15869         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
15870         be POSIX compliant.
15871         Reported by Roger Persson <perrog@gmail.com>.
15872
15873 2006-11-01  Eric Blake  <ebb9@byu.net>
15874
15875         * lib/getopt_.h: Fix comments.
15876
15877 2006-10-31  Eric Blake  <ebb9@byu.net>
15878
15879         * modules/tmpdir (Depends-on): Add sys_stat.
15880         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
15881         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
15882         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
15883         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
15884         tempname.
15885
15886 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
15887
15888         Avoid some C++ diagnostics reported by Bruno Haible.
15889         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
15890         xmalloc.
15891         (quotearg_alloc): Use xcharalloc rather than xmalloc.
15892         (struct slotvec): Move to top level.
15893         (quotearg_n_options): Rewrite to avoid xmalloc.
15894         * lib/xalloc.h (xcharalloc): New function.
15895         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
15896         [defined __cplusplus]: Add function template that provides result
15897         type propagation.  This part of the change is from Bruno Haible.
15898
15899 2006-10-29  Bruno Haible  <bruno@clisp.org>
15900
15901         Make it compile in C++ mode.
15902         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
15903         * lib/strnlen1.c (strnlen1): Cast memchr result.
15904         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
15905         * lib/clean-temp.c (string_equals, string_hash): Add casts.
15906         (create_temp_dir): Rename local variable 'template'.
15907         (compile_csharp_using_sscli): Add cast.
15908         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
15909         * lib/findprog.c (find_in_path): Likewise.
15910         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
15911         * lib/wait-process.c (register_slave_subprocess): Likewise.
15912
15913 2006-10-22  Bruno Haible  <bruno@clisp.org>
15914
15915         * modules/tsearch: New file.
15916         * lib/tsearch.h: New file.
15917         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
15918         * m4/tsearch.m4: New file.
15919         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
15920
15921 2006-10-29  Eric Blake  <ebb9@byu.net>
15922
15923         * lib/arcfour.c: Assume config.h.
15924         * lib/arctwo.c: Likewise.
15925         * lib/base64.c: Likewise.
15926         * lib/check-version.c: Likewise.
15927         * lib/crc.c: Likewise.
15928         * lib/des.c: Likewise.
15929         * lib/gc-gnulib.c: Likewise.
15930         * lib/gc-libgcrypt.c: Likewise.
15931         * lib/gc-pbkdf2-sha1.c: Likewise.
15932         * lib/getaddrinfo.c: Likewise.
15933         * lib/getdelim.c: Likewise.
15934         * lib/getline.c: Likewise.
15935         * lib/hmac-md5.c: Likewise.
15936         * lib/hmac-sha1.c: Likewise.
15937         * lib/iconvme.c: Likewise.
15938         * lib/md2.c: Likewise.
15939         * lib/md4.c: Likewise.
15940         * lib/memxor.c: Likewise.
15941         * lib/read-file.c: Likewise.
15942         * lib/readline.c: Likewise.
15943         * lib/rijndael-alg-fst.c: Likewise.
15944         * lib/rijndael-api-fst.c: Likewise.
15945         * lib/xgetdomainname.c: Likewise.
15946
15947 2006-10-28  Eric Blake  <ebb9@byu.net>
15948
15949         * lib/xstrndup.c: Assume config.h.
15950
15951 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
15952
15953         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
15954         stat-macros.h is now for our own macros, whereas stat_h is for
15955         macros in the <sys/stat.h> name space.
15956         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
15957         (STAT_MACROS_H): Remove.
15958         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
15959         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
15960         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
15961         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
15962         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
15963         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
15964         Move these macros to ...
15965         * lib/stat_.h: here.  Don't include stat-macros.h.
15966         * lib/canonicalize.c: Don't include stat-macros.h.
15967         * lib/chown.c: Likewise.
15968         * lib/euidaccess.c: Likewise.
15969         * lib/file-type.c: Likewise.
15970         * lib/filemode.c: Likewise.
15971         * lib/glob.c: Likewise.
15972         * lib/isapipe.c: Likewise.
15973         * lib/lchown.c: Likewise.
15974         * lib/lstat.c: Likewise.
15975         * lib/mkdir-p.c: Likewise.
15976         * lib/rmdir.c: Likewise.
15977         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
15978         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
15979         unless mkdir isn't declared, to speed up 'configure'.
15980         Always create sys/stat.h, since it's unlikely any real sys/stat.h
15981         would define all the S_* symbols.
15982         * modules/canonicalize (Depends-on):
15983         Depend on sys_stat, not stat-macros.
15984         * modules/chown: Likewise.
15985         * modules/euidaccess: Likewise.
15986         * modules/filemode: Likewise.
15987         * modules/file-type: Likewise.
15988         * modules/glob: Likewise.
15989         * modules/isapipe: Likewise.
15990         * modules/lchown: Likewise.
15991         * modules/lstat: Likewise.
15992         * modules/mkancesdirs: Likewise.
15993         * modules/rmdir: Likewise.
15994         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
15995         * modules/modechange: Likewise.
15996         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
15997         (configure.ac): Remove gl_STAT_MACROS.
15998         * modules/sys_stat (Depends-on): Remove stat-macros.
15999
16000 2006-10-27  Bruno Haible  <bruno@clisp.org>
16001
16002         * m4/signed.m4: Remove file.
16003         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
16004         invocation.
16005         * modules/vasnprintf (Files): Remove m4/signed.m4.
16006
16007 2006-10-27  Bruno Haible  <bruno@clisp.org>
16008
16009         Update to GNU gettext 0.16.
16010         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
16011         m4/inttypes-h.m4, m4/signed.m4.
16012         * m4/gettext.m4: Update to GNU gettext 0.16.
16013         * m4/intl.m4: New file, from GNU gettext.
16014         * m4/intldir.m4: New file, from GNU gettext.
16015         * config/srclist.txt: Update
16016
16017 2006-10-27  Eric Blake  <ebb9@byu.net>
16018
16019         * MODULES.html.sh: Document tempname.
16020         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
16021         dependencies.
16022         (Files): Move lib/tempname.c...
16023         * modules/tempname: ...to this new module.
16024         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
16025         (gl_PREREQ_TEMPNAME): Move...
16026         * m4/tempname.m4: ...to this new file.
16027         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
16028         * modules/sys_stat (Depends-on): Add stat-macros.
16029         * lib/stat_.h (includes): Pick up stat macros.
16030         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
16031         if stat macros are broken.
16032         * lib/tempname.c (includes): No need to include "stat-macros.h".
16033         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
16034         (direxists, __path_search) [!_LIBC]: Don't compile these in
16035         gnulib; the tmpdir module covers that.
16036         * lib/tempname.h: New file.
16037
16038 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
16039
16040         * COPYING: Explain how gnulib-tool converts licence headers.
16041         Almost all wording by Eric Blake.
16042
16043 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
16044
16045         * lib/mbchar.h (is_basic_table): Make read-only.
16046         * lib/mbchar.c (is_basic_table): Likewise.
16047         Reported by John Darrington.
16048
16049 2006-10-25  Bruno Haible  <bruno@clisp.org>
16050
16051         * lib/progname.h (set_program_name): Undefine before defining.
16052
16053 2006-10-25  Bruno Haible  <bruno@clisp.org>
16054
16055         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
16056         false for non-gcc C++ compilers.
16057         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
16058
16059 2006-10-24  Bruno Haible  <bruno@clisp.org>
16060
16061         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
16062         iconv implementations like Irix iconv.
16063
16064 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
16065
16066         * modules/vararrays: New file.
16067         * m4/vararrays.m4: New file, taken from diffutils.
16068         * MODULES.html.sh: New module vararrays.
16069
16070 2006-10-24  Karl Berry  <karl@gnu.org>
16071
16072         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
16073         Don't call GNU Unix.
16074
16075 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16076
16077         * users.txt: Add Libtool.
16078
16079         Sync from Libtool:
16080
16081         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
16082
16083         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
16084         to gnulib's policy of including config.h unconditionally.
16085
16086 2006-10-24  Bruno Haible  <bruno@clisp.org>
16087
16088         * modules/wcwidth (Files): Add m4/wint_t.m4.
16089         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
16090         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
16091
16092 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
16093
16094         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
16095         to pacify GCC with some -W flags enabled.  Problem reported by
16096         Bruno Haible.
16097
16098 2006-10-24  Jim Meyering  <jim@meyering.net>
16099
16100         * MODULES.html.sh: Remove uinttostr.  It's not a module.
16101         Reported by Karl Berry.
16102
16103 2006-10-23  Bruno Haible  <bruno@clisp.org>
16104
16105         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
16106
16107 2006-10-24  Bruno Haible  <bruno@clisp.org>
16108
16109         * lib/gl_list.h: Use C comment style, not C++ comment style.
16110
16111 2006-10-23  Eric Blake  <ebb9@byu.net>
16112
16113         * lib/getaddrinfo.c (includes): Add missing include.
16114
16115 2006-10-23  Bruno Haible  <bruno@clisp.org>
16116             Paul Eggert  <eggert@cs.ucla.edu>
16117
16118         Ability to rename obstack_free.
16119         * lib/obstack.h (__obstack_free): New macro. Declare instead of
16120         obstack_free.
16121         (obstack_free): Invoke the __obstack_free macro.
16122         * lib/obstack.c (obstack_free): Use __obstack_free macro.
16123
16124 2006-10-23  Bruno Haible  <bruno@clisp.org>
16125             Paul Eggert  <eggert@cs.ucla.edu>
16126
16127         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
16128         __argc, __argv from the declaration. (They are defined as macros on
16129         mingw.)
16130
16131 2006-10-22  Bruno Haible  <bruno@clisp.org>
16132
16133         * doc/gnulib-intro.texi: New file.
16134         * doc/gnulib.texi: Include it.
16135
16136 2006-10-21  Bruno Haible  <bruno@clisp.org>
16137
16138         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
16139         "Introduction", "Miscellanous Notes", "Particular Modules".
16140
16141 2006-10-21  Bruno Haible  <bruno@clisp.org>
16142
16143         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
16144         Change mostlyclean-local rule to avoid sh syntax error from bash
16145         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
16146
16147 2006-10-23  Jim Meyering  <jim@meyering.net>
16148
16149         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
16150         in place of snprintf.
16151
16152         * modules/inttostr (Files): Add lib/uinttostr.c.
16153         * lib/uinttostr.c (inttostr): New file/function.
16154         * lib/inttostr.h (uinttostr): Declare.
16155         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
16156         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
16157         Add uinttostr.
16158         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
16159
16160 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
16161
16162         * lib/canonicalize.c (ELOOP): Define if not already defined.
16163         Problem reported by Bruno Haible in
16164         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
16165
16166 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
16167
16168         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
16169         Problem reported by Perry Smith and Ville Laurikari.
16170
16171         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
16172         uses.
16173
16174 2006-10-19  Bruno Haible  <bruno@clisp.org>
16175
16176         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
16177         for mingw.
16178
16179 2006-10-19  Bruno Haible  <bruno@clisp.org>
16180
16181         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
16182         Needed for mingw.
16183
16184 2006-10-19  Bruno Haible  <bruno@clisp.org>
16185
16186         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
16187
16188 2006-10-19  Bruno Haible  <bruno@clisp.org>
16189
16190         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
16191         it.
16192
16193 2006-10-19  Bruno Haible  <bruno@clisp.org>
16194
16195         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
16196         invocation.
16197
16198 2006-10-19  Bruno Haible  <bruno@clisp.org>
16199
16200         * gnulib-tool (func_create_testdir): Don't include ftruncate and
16201         mountlist by default.
16202
16203 2006-10-16  Bruno Haible  <bruno@clisp.org>
16204
16205         * lib/c-strstr.c: Include c-strstr.h.
16206
16207 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
16208
16209         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
16210         in a slash.
16211
16212 2006-10-18  Bruno Haible  <bruno@clisp.org>
16213
16214         * lib/lock.h [C++]: Wrap definitions in extern "C".
16215
16216 2006-10-18  Bruno Haible  <bruno@clisp.org>
16217
16218         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
16219         gl_LIBOBJS list.
16220
16221 2006-10-18  Bruno Haible  <bruno@clisp.org>
16222
16223         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
16224
16225 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
16226
16227         * lib/xstrtol.h: Include gettext.h.
16228         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
16229         Problem reported by Eric Blake.
16230         * modules/xstrtol (Depends-on): Add gettext-h.
16231
16232 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
16233
16234         * lib/strftime.c (advance): New macro.
16235         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
16236         incomplete type, so you can't add 0 to it.  Problem and patch
16237         reported by Eelco Dolstra for dietlibc.
16238
16239 2006-10-18  Jim Meyering  <jim@meyering.net>
16240
16241         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
16242         type for a local, and rename it: s/up/user_proc/.
16243
16244 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
16245
16246         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
16247         READ_UTMP_USER_PROCESS.
16248         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
16249
16250 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
16251
16252         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
16253         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
16254
16255 2006-10-17  Eric Blake  <ebb9@byu.net>
16256
16257         * lib/sigprocmask.c (sigprocmask): Fix typo.
16258
16259         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
16260
16261         * modules/clean-temp (Makefile.am): Don't add to make output...
16262         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
16263         config.h.
16264
16265 2006-10-17  Bruno Haible  <bruno@clisp.org>
16266
16267         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
16268         differently if DEFAULT_TEXT_DOMAIN is set.
16269
16270 2006-10-16  Bruno Haible  <bruno@clisp.org>
16271
16272         * lib/clean-temp.c: Include fwriteerror.h.
16273
16274 2006-10-16  Bruno Haible  <bruno@clisp.org>
16275
16276         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
16277
16278 2006-10-16  Bruno Haible  <bruno@clisp.org>
16279
16280         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
16281         * lib/sigprocmask.h: Include <sys/types.h>.
16282         (sigset_t): Use the system's definition if present.
16283
16284 2006-10-17  Eric Blake  <ebb9@byu.net>
16285
16286         * lib/xvasprintf.c (includes): Assume config.h.
16287         * lib/xasprintf.c (includes): Likewise.
16288
16289 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
16290
16291         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
16292         at least as wide as intmax_t.
16293
16294 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
16295
16296         (Imported from Automake.)
16297         * build-aux/gnupload: Update to version 1.1 of directive file.
16298
16299 2006-10-16  Eric Blake  <ebb9@byu.net>
16300
16301         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
16302         match Automake 1.10a.
16303
16304 2006-10-14  Bruno Haible  <bruno@clisp.org>
16305
16306         * modules/sigprocmask: New file.
16307         * lib/sigprocmask.h: New file.
16308         * lib/sigprocmask.c: New file.
16309         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
16310         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
16311         request sigprocmask.o.
16312         (gl_PREREQ_SIGPROCMASK): New macro.
16313         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
16314         (Depends-on): Add sigprocmask.
16315         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
16316         gt_SIGNALBLOCKING. Test for 'raise' only once.
16317         * lib/fatal-signal.c: Include sigprocmask.h.
16318         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
16319         unblock_fatal_signals): Define always.
16320         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
16321         sigprocmask.
16322
16323 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
16324
16325         Sync from Automake.
16326         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
16327         which incorrectly sets the mode of an existing destination
16328         directory.  In some cases the unpatched install-sh could do the
16329         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
16330         system.  We hope this is rare in practice, but it's clearly worth
16331         fixing.  Problem reported by Alex Unleashed in
16332         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
16333         Also, don't bother to check for -m bugs unless we're using -m;
16334         suggested by Stepan Kasal.
16335
16336 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16337
16338         Sync from Automake.
16339         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
16340         `-c' flag, so they appear at the same position as in %FASTDEP%
16341         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
16342         which ignores unknown options only after the first non-option.
16343         Bug report against M4 by Nelson H. F. Beebe.
16344
16345 2006-10-13  Jim Meyering  <jim@meyering.net>
16346
16347         Fix a bug in yesterday's change.
16348         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
16349         p->fts_statp->st_dev would be used uninitialized.
16350         Ensures that we always call fts_stat on the very first entry.
16351         Miklos Szeredi reported that find -xdev stopped working.
16352
16353 2006-10-12  Bruno Haible  <bruno@clisp.org>
16354
16355         * gnulib-tool (func_get_automake_snippet): Append an automatically
16356         computed EXTRA_DIST augmentation.
16357         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
16358         * modules/alloca-opt (Makefile.am): Likewise.
16359         * modules/allocsa (Makefile.am): Likewise.
16360         * modules/arcfour (Makefile.am): Likewise.
16361         * modules/arctwo (Makefile.am): Likewise.
16362         * modules/argmatch (Makefile.am): Likewise.
16363         * modules/argz (Makefile.am): Likewise.
16364         * modules/atexit (Makefile.am): Likewise.
16365         * modules/backupfile (Makefile.am): Likewise.
16366         * modules/byteswap (Makefile.am): Likewise.
16367         * modules/c-strtod (Makefile.am): Likewise.
16368         * modules/c-strtold (Makefile.am): Likewise.
16369         * modules/calloc (Makefile.am): Likewise.
16370         * modules/canon-host (Makefile.am): Likewise.
16371         * modules/canonicalize (Makefile.am): Likewise.
16372         * modules/chdir-long (Makefile.am): Likewise.
16373         * modules/chdir-safer (Makefile.am): Likewise.
16374         * modules/check-version (Makefile.am): Likewise.
16375         * modules/chown (Makefile.am): Likewise.
16376         * modules/cloexec (Makefile.am): Likewise.
16377         * modules/close-stream (Makefile.am): Likewise.
16378         * modules/closeout (Makefile.am): Likewise.
16379         * modules/crc (Makefile.am): Likewise.
16380         * modules/csharpexec (Makefile.am): Likewise.
16381         * modules/cycle-check (Makefile.am): Likewise.
16382         * modules/des (Makefile.am): Likewise.
16383         * modules/dev-ino (Makefile.am): Likewise.
16384         * modules/dirfd (Makefile.am): Likewise.
16385         * modules/dirname (Makefile.am): Likewise.
16386         * modules/dup2 (Makefile.am): Likewise.
16387         * modules/eealloc (Makefile.am): Likewise.
16388         * modules/error (Makefile.am): Likewise.
16389         * modules/euidaccess (Makefile.am): Likewise.
16390         * modules/exclude (Makefile.am): Likewise.
16391         * modules/exitfail (Makefile.am): Likewise.
16392         * modules/fcntl-safer (Makefile.am): Likewise.
16393         * modules/fcntl (Makefile.am): Likewise.
16394         * modules/file-type (Makefile.am): Likewise.
16395         * modules/fileblocks (Makefile.am): Likewise.
16396         * modules/filemode (Makefile.am): Likewise.
16397         * modules/filenamecat (Makefile.am): Likewise.
16398         * modules/fnmatch (Makefile.am): Likewise.
16399         * modules/fopen-safer (Makefile.am): Likewise.
16400         * modules/fpending (Makefile.am): Likewise.
16401         * modules/fprintftime (Makefile.am): Likewise.
16402         * modules/free (Makefile.am): Likewise.
16403         * modules/fsusage (Makefile.am): Likewise.
16404         * modules/ftruncate (Makefile.am): Likewise.
16405         * modules/fts (Makefile.am): Likewise.
16406         * modules/gc-arcfour (Makefile.am): Likewise.
16407         * modules/gc-des (Makefile.am): Likewise.
16408         * modules/gc-hmac-md5 (Makefile.am): Likewise.
16409         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
16410         * modules/gc-md4 (Makefile.am): Likewise.
16411         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
16412         * modules/gc-sha1 (Makefile.am): Likewise.
16413         * modules/gc (Makefile.am): Likewise.
16414         * modules/getaddrinfo (Makefile.am): Likewise.
16415         * modules/getcwd (Makefile.am): Likewise.
16416         * modules/getdelim (Makefile.am): Likewise.
16417         * modules/getdomainname (Makefile.am): Likewise.
16418         * modules/getgroups (Makefile.am): Likewise.
16419         * modules/gethostname (Makefile.am): Likewise.
16420         * modules/gethrxtime (Makefile.am): Likewise.
16421         * modules/getline (Makefile.am): Likewise.
16422         * modules/getloadavg (Makefile.am): Likewise.
16423         * modules/getlogin_r (Makefile.am): Likewise.
16424         * modules/getndelim2 (Makefile.am): Likewise.
16425         * modules/getopt (Makefile.am): Likewise.
16426         * modules/getpagesize (Makefile.am): Likewise.
16427         * modules/getpass-gnu (Makefile.am): Likewise.
16428         * modules/getpass (Makefile.am): Likewise.
16429         * modules/getsubopt (Makefile.am): Likewise.
16430         * modules/gettime (Makefile.am): Likewise.
16431         * modules/gettimeofday (Makefile.am): Likewise.
16432         * modules/getugroups (Makefile.am): Likewise.
16433         * modules/getusershell (Makefile.am): Likewise.
16434         * modules/glob (Makefile.am): Likewise.
16435         * modules/group-member (Makefile.am): Likewise.
16436         * modules/hard-locale (Makefile.am): Likewise.
16437         * modules/hash (Makefile.am): Likewise.
16438         * modules/hmac-md5 (Makefile.am): Likewise.
16439         * modules/hmac-sha1 (Makefile.am): Likewise.
16440         * modules/human (Makefile.am): Likewise.
16441         * modules/idcache (Makefile.am): Likewise.
16442         * modules/imaxabs (Makefile.am): Likewise.
16443         * modules/imaxdiv (Makefile.am): Likewise.
16444         * modules/inet_ntop (Makefile.am): Likewise.
16445         * modules/inet_pton (Makefile.am): Likewise.
16446         * modules/intprops (Makefile.am): Likewise.
16447         * modules/inttostr (Makefile.am): Likewise.
16448         * modules/inttypes (Makefile.am): Likewise.
16449         * modules/isapipe (Makefile.am): Likewise.
16450         * modules/javaversion (Makefile.am): Likewise.
16451         * modules/lchmod (Makefile.am): Likewise.
16452         * modules/lchown (Makefile.am): Likewise.
16453         * modules/localcharset (Makefile.am): Likewise.
16454         * modules/long-options (Makefile.am): Likewise.
16455         * modules/lstat (Makefile.am): Likewise.
16456         * modules/malloc (Makefile.am): Likewise.
16457         * modules/mathl (Makefile.am): Likewise.
16458         * modules/mbchar (Makefile.am): Likewise.
16459         * modules/md2 (Makefile.am): Likewise.
16460         * modules/md4 (Makefile.am): Likewise.
16461         * modules/md5 (Makefile.am): Likewise.
16462         * modules/memcasecmp (Makefile.am): Likewise.
16463         * modules/memchr (Makefile.am): Likewise.
16464         * modules/memcmp (Makefile.am): Likewise.
16465         * modules/memcoll (Makefile.am): Likewise.
16466         * modules/memcpy (Makefile.am): Likewise.
16467         * modules/memmem (Makefile.am): Likewise.
16468         * modules/memmove (Makefile.am): Likewise.
16469         * modules/mempcpy (Makefile.am): Likewise.
16470         * modules/memrchr (Makefile.am): Likewise.
16471         * modules/memset (Makefile.am): Likewise.
16472         * modules/memxor (Makefile.am): Likewise.
16473         * modules/mkancesdirs (Makefile.am): Likewise.
16474         * modules/mkdir-p (Makefile.am): Likewise.
16475         * modules/mkdir (Makefile.am): Likewise.
16476         * modules/mkdtemp (Makefile.am): Likewise.
16477         * modules/mkstemp (Makefile.am): Likewise.
16478         * modules/mktime (Makefile.am): Likewise.
16479         * modules/modechange (Makefile.am): Likewise.
16480         * modules/mountlist (Makefile.am): Likewise.
16481         * modules/nanosleep (Makefile.am): Likewise.
16482         * modules/obstack (Makefile.am): Likewise.
16483         * modules/openat (Makefile.am): Likewise.
16484         * modules/pagealign_alloc (Makefile.am): Likewise.
16485         * modules/pathmax (Makefile.am): Likewise.
16486         * modules/physmem (Makefile.am): Likewise.
16487         * modules/poll (Makefile.am): Likewise.
16488         * modules/posixtm (Makefile.am): Likewise.
16489         * modules/posixver (Makefile.am): Likewise.
16490         * modules/putenv (Makefile.am): Likewise.
16491         * modules/quote (Makefile.am): Likewise.
16492         * modules/quotearg (Makefile.am): Likewise.
16493         * modules/raise (Makefile.am): Likewise.
16494         * modules/read-file (Makefile.am): Likewise.
16495         * modules/readline (Makefile.am): Likewise.
16496         * modules/readlink (Makefile.am): Likewise.
16497         * modules/readtokens (Makefile.am): Likewise.
16498         * modules/readutmp (Makefile.am): Likewise.
16499         * modules/realloc (Makefile.am): Likewise.
16500         * modules/regex (Makefile.am): Likewise.
16501         * modules/rename-dest-slash (Makefile.am): Likewise.
16502         * modules/rename (Makefile.am): Likewise.
16503         * modules/rijndael (Makefile.am): Likewise.
16504         * modules/rmdir (Makefile.am): Likewise.
16505         * modules/rpmatch (Makefile.am): Likewise.
16506         * modules/safe-read (Makefile.am): Likewise.
16507         * modules/safe-write (Makefile.am): Likewise.
16508         * modules/same-inode (Makefile.am): Likewise.
16509         * modules/same (Makefile.am): Likewise.
16510         * modules/save-cwd (Makefile.am): Likewise.
16511         * modules/savedir (Makefile.am): Likewise.
16512         * modules/setenv (Makefile.am): Likewise.
16513         * modules/settime (Makefile.am): Likewise.
16514         * modules/sha1 (Makefile.am): Likewise.
16515         * modules/sig2str (Makefile.am): Likewise.
16516         * modules/snprintf (Makefile.am): Likewise.
16517         * modules/stat-macros (Makefile.am): Likewise.
16518         * modules/stat-time (Makefile.am): Likewise.
16519         * modules/stdbool (Makefile.am): Likewise.
16520         * modules/stdint (Makefile.am): Likewise.
16521         * modules/stdlib-safer (Makefile.am): Likewise.
16522         * modules/stpcpy (Makefile.am): Likewise.
16523         * modules/stpncpy (Makefile.am): Likewise.
16524         * modules/strcase (Makefile.am): Likewise.
16525         * modules/strcasestr (Makefile.am): Likewise.
16526         * modules/strchrnul (Makefile.am): Likewise.
16527         * modules/strcspn (Makefile.am): Likewise.
16528         * modules/strdup (Makefile.am): Likewise.
16529         * modules/strerror (Makefile.am): Likewise.
16530         * modules/strftime (Makefile.am): Likewise.
16531         * modules/strndup (Makefile.am): Likewise.
16532         * modules/strnlen (Makefile.am): Likewise.
16533         * modules/strpbrk (Makefile.am): Likewise.
16534         * modules/strsep (Makefile.am): Likewise.
16535         * modules/strstr (Makefile.am): Likewise.
16536         * modules/strtod (Makefile.am): Likewise.
16537         * modules/strtoimax (Makefile.am): Likewise.
16538         * modules/strtok_r (Makefile.am): Likewise.
16539         * modules/strtol (Makefile.am): Likewise.
16540         * modules/strtoll (Makefile.am): Likewise.
16541         * modules/strtoul (Makefile.am): Likewise.
16542         * modules/strtoull (Makefile.am): Likewise.
16543         * modules/strtoumax (Makefile.am): Likewise.
16544         * modules/strverscmp (Makefile.am): Likewise.
16545         * modules/sys_socket (Makefile.am): Likewise.
16546         * modules/sys_stat (Makefile.am): Likewise.
16547         * modules/sysexits (Makefile.am): Likewise.
16548         * modules/time_r (Makefile.am): Likewise.
16549         * modules/timegm (Makefile.am): Likewise.
16550         * modules/timespec (Makefile.am): Likewise.
16551         * modules/tmpfile-safer (Makefile.am): Likewise.
16552         * modules/trim (Makefile.am): Likewise.
16553         * modules/unistd-safer (Makefile.am): Likewise.
16554         * modules/unlinkdir (Makefile.am): Likewise.
16555         * modules/unlocked-io (Makefile.am): Likewise.
16556         * modules/userspec (Makefile.am): Likewise.
16557         * modules/utime (Makefile.am): Likewise.
16558         * modules/utimecmp (Makefile.am): Likewise.
16559         * modules/utimens (Makefile.am): Likewise.
16560         * modules/vasnprintf (Makefile.am): Likewise.
16561         * modules/vasprintf (Makefile.am): Likewise.
16562         * modules/vsnprintf (Makefile.am): Likewise.
16563         * modules/xalloc (Makefile.am): Likewise.
16564         * modules/xgetcwd (Makefile.am): Likewise.
16565         * modules/xnanosleep (Makefile.am): Likewise.
16566         * modules/xreadlink (Makefile.am): Likewise.
16567         * modules/xstrtod (Makefile.am): Likewise.
16568         * modules/xstrtol (Makefile.am): Likewise.
16569         * modules/xstrtold (Makefile.am): Likewise.
16570         * modules/yesno (Makefile.am): Likewise.
16571         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
16572
16573 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
16574
16575         * modules/error (Makefile.am): Distribute files through
16576         EXTRA_DIST, not lib_SOURCES.
16577
16578 2006-10-12  Eric Blake  <ebb9@byu.net>
16579
16580         * modules/error (Makefile.am): Distribute files in /lib.
16581         * modules/obstack (Makefile.am): Likewise.
16582
16583 2006-10-12  Bruno Haible  <bruno@clisp.org>
16584
16585         * modules/acl (Makefile.am): Distribute all files in lib/ through
16586         EXTRA_DIST.
16587         * modules/arcfour (Makefile.am): Likewise.
16588         * modules/arctwo (Makefile.am): Likewise.
16589         * modules/argmatch (Makefile.am): Likewise.
16590         * modules/argz (Makefile.am): Likewise.
16591         * modules/atexit (Makefile.am): Likewise.
16592         * modules/backupfile (Makefile.am): Likewise.
16593         * modules/c-strtod (Makefile.am): Likewise.
16594         * modules/c-strtold (Makefile.am): Likewise.
16595         * modules/calloc (Makefile.am): Likewise.
16596         * modules/canon-host (Makefile.am): Likewise.
16597         * modules/canonicalize (Makefile.am): Likewise.
16598         * modules/chdir-long (Makefile.am): Likewise.
16599         * modules/chdir-safer (Makefile.am): Likewise.
16600         * modules/check-version (Makefile.am): Likewise.
16601         * modules/chown (Makefile.am): Likewise.
16602         * modules/cloexec (Makefile.am): Likewise.
16603         * modules/close-stream (Makefile.am): Likewise.
16604         * modules/closeout (Makefile.am): Likewise.
16605         * modules/crc (Makefile.am): Likewise.
16606         * modules/cycle-check (Makefile.am): Likewise.
16607         * modules/des (Makefile.am): Likewise.
16608         * modules/dirfd (Makefile.am): Likewise.
16609         * modules/dirname (Makefile.am): Likewise.
16610         * modules/dup2 (Makefile.am): Likewise.
16611         * modules/euidaccess (Makefile.am): Likewise.
16612         * modules/exclude (Makefile.am): Likewise.
16613         * modules/exitfail (Makefile.am): Likewise.
16614         * modules/fcntl-safer (Makefile.am): Likewise.
16615         * modules/file-type (Makefile.am): Likewise.
16616         * modules/fileblocks (Makefile.am): Likewise.
16617         * modules/filemode (Makefile.am): Likewise.
16618         * modules/filenamecat (Makefile.am): Likewise.
16619         * modules/fnmatch (Makefile.am): Likewise.
16620         * modules/fopen-safer (Makefile.am): Likewise.
16621         * modules/fpending (Makefile.am): Likewise.
16622         * modules/fprintftime (Makefile.am): Likewise.
16623         * modules/free (Makefile.am): Likewise.
16624         * modules/fsusage (Makefile.am): Likewise.
16625         * modules/ftruncate (Makefile.am): Likewise.
16626         * modules/fts (Makefile.am): Likewise.
16627         * modules/gc (Makefile.am): Likewise.
16628         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
16629         * modules/getaddrinfo (Makefile.am): Likewise.
16630         * modules/getcwd (Makefile.am): Likewise.
16631         * modules/getdelim (Makefile.am): Likewise.
16632         * modules/getdomainname (Makefile.am): Likewise.
16633         * modules/getgroups (Makefile.am): Likewise.
16634         * modules/gethostname (Makefile.am): Likewise.
16635         * modules/gethrxtime (Makefile.am): Likewise.
16636         * modules/getline (Makefile.am): Likewise.
16637         * modules/getloadavg (Makefile.am): Likewise.
16638         * modules/getlogin_r (Makefile.am): Likewise.
16639         * modules/getopt (Makefile.am): Likewise.
16640         * modules/getpass (Makefile.am): Likewise.
16641         * modules/getpass-gnu (Makefile.am): Likewise.
16642         * modules/getsubopt (Makefile.am): Likewise.
16643         * modules/gettime (Makefile.am): Likewise.
16644         * modules/gettimeofday (Makefile.am): Likewise.
16645         * modules/getugroups (Makefile.am): Likewise.
16646         * modules/getusershell (Makefile.am): Likewise.
16647         * modules/glob (Makefile.am): Likewise.
16648         * modules/group-member (Makefile.am): Likewise.
16649         * modules/hard-locale (Makefile.am): Likewise.
16650         * modules/hash (Makefile.am): Likewise.
16651         * modules/hmac-md5 (Makefile.am): Likewise.
16652         * modules/hmac-sha1 (Makefile.am): Likewise.
16653         * modules/human (Makefile.am): Likewise.
16654         * modules/idcache (Makefile.am): Likewise.
16655         * modules/imaxabs (Makefile.am): Likewise.
16656         * modules/imaxdiv (Makefile.am): Likewise.
16657         * modules/inet_ntop (Makefile.am): Likewise.
16658         * modules/inet_pton (Makefile.am): Likewise.
16659         * modules/inttostr (Makefile.am): Likewise.
16660         * modules/isapipe (Makefile.am): Likewise.
16661         * modules/lchown (Makefile.am): Likewise.
16662         * modules/long-options (Makefile.am): Likewise.
16663         * modules/lstat (Makefile.am): Likewise.
16664         * modules/malloc (Makefile.am): Likewise.
16665         * modules/mathl (Makefile.am): Likewise.
16666         * modules/mbchar (Makefile.am): Likewise.
16667         * modules/md2 (Makefile.am): Likewise.
16668         * modules/md4 (Makefile.am): Likewise.
16669         * modules/md5 (Makefile.am): Likewise.
16670         * modules/memcasecmp (Makefile.am): Likewise.
16671         * modules/memchr (Makefile.am): Likewise.
16672         * modules/memcmp (Makefile.am): Likewise.
16673         * modules/memcoll (Makefile.am): Likewise.
16674         * modules/memcpy (Makefile.am): Likewise.
16675         * modules/memmem (Makefile.am): Likewise.
16676         * modules/memmove (Makefile.am): Likewise.
16677         * modules/mempcpy (Makefile.am): Likewise.
16678         * modules/memrchr (Makefile.am): Likewise.
16679         * modules/memset (Makefile.am): Likewise.
16680         * modules/memxor (Makefile.am): Likewise.
16681         * modules/mkancesdirs (Makefile.am): Likewise.
16682         * modules/mkdir (Makefile.am): Likewise.
16683         * modules/mkdir-p (Makefile.am): Likewise.
16684         * modules/mkdtemp (Makefile.am): Likewise.
16685         * modules/mkstemp (Makefile.am): Likewise.
16686         * modules/mktime (Makefile.am): Likewise.
16687         * modules/modechange (Makefile.am): Likewise.
16688         * modules/mountlist (Makefile.am): Likewise.
16689         * modules/nanosleep (Makefile.am): Likewise.
16690         * modules/openat (Makefile.am): Likewise.
16691         * modules/pagealign_alloc (Makefile.am): Likewise.
16692         * modules/physmem (Makefile.am): Likewise.
16693         * modules/poll (Makefile.am): Likewise.
16694         * modules/posixtm (Makefile.am): Likewise.
16695         * modules/posixver (Makefile.am): Likewise.
16696         * modules/putenv (Makefile.am): Likewise.
16697         * modules/quote (Makefile.am): Likewise.
16698         * modules/quotearg (Makefile.am): Likewise.
16699         * modules/raise (Makefile.am): Likewise.
16700         * modules/read-file (Makefile.am): Likewise.
16701         * modules/readline (Makefile.am): Likewise.
16702         * modules/readlink (Makefile.am): Likewise.
16703         * modules/readtokens (Makefile.am): Likewise.
16704         * modules/readutmp (Makefile.am): Likewise.
16705         * modules/realloc (Makefile.am): Likewise.
16706         * modules/regex (Makefile.am): Likewise.
16707         * modules/rename (Makefile.am): Likewise.
16708         * modules/rename-dest-slash (Makefile.am): Likewise.
16709         * modules/rijndael (Makefile.am): Likewise.
16710         * modules/rmdir (Makefile.am): Likewise.
16711         * modules/rpmatch (Makefile.am): Likewise.
16712         * modules/safe-read (Makefile.am): Likewise.
16713         * modules/safe-write (Makefile.am): Likewise.
16714         * modules/same (Makefile.am): Likewise.
16715         * modules/save-cwd (Makefile.am): Likewise.
16716         * modules/savedir (Makefile.am): Likewise.
16717         * modules/setenv (Makefile.am): Likewise.
16718         * modules/settime (Makefile.am): Likewise.
16719         * modules/sha1 (Makefile.am): Likewise.
16720         * modules/sig2str (Makefile.am): Likewise.
16721         * modules/snprintf (Makefile.am): Likewise.
16722         * modules/stdlib-safer (Makefile.am): Likewise.
16723         * modules/stpcpy (Makefile.am): Likewise.
16724         * modules/stpncpy (Makefile.am): Likewise.
16725         * modules/strcase (Makefile.am): Likewise.
16726         * modules/strcasestr (Makefile.am): Likewise.
16727         * modules/strchrnul (Makefile.am): Likewise.
16728         * modules/strcspn (Makefile.am): Likewise.
16729         * modules/strdup (Makefile.am): Likewise.
16730         * modules/strerror (Makefile.am): Likewise.
16731         * modules/strftime (Makefile.am): Likewise.
16732         * modules/strndup (Makefile.am): Likewise.
16733         * modules/strnlen (Makefile.am): Likewise.
16734         * modules/strpbrk (Makefile.am): Likewise.
16735         * modules/strsep (Makefile.am): Likewise.
16736         * modules/strstr (Makefile.am): Likewise.
16737         * modules/strtod (Makefile.am): Likewise.
16738         * modules/strtoimax (Makefile.am): Likewise.
16739         * modules/strtok_r (Makefile.am): Likewise.
16740         * modules/strtol (Makefile.am): Likewise.
16741         * modules/strtoll (Makefile.am): Likewise.
16742         * modules/strtoul (Makefile.am): Likewise.
16743         * modules/strtoull (Makefile.am): Likewise.
16744         * modules/strtoumax (Makefile.am): Likewise.
16745         * modules/strverscmp (Makefile.am): Likewise.
16746         * modules/time_r (Makefile.am): Likewise.
16747         * modules/timegm (Makefile.am): Likewise.
16748         * modules/tmpfile-safer (Makefile.am): Likewise.
16749         * modules/unistd-safer (Makefile.am): Likewise.
16750         * modules/unlinkdir (Makefile.am): Likewise.
16751         * modules/userspec (Makefile.am): Likewise.
16752         * modules/utime (Makefile.am): Likewise.
16753         * modules/utimecmp (Makefile.am): Likewise.
16754         * modules/utimens (Makefile.am): Likewise.
16755         * modules/vasnprintf (Makefile.am): Likewise.
16756         * modules/vasprintf (Makefile.am): Likewise.
16757         * modules/vsnprintf (Makefile.am): Likewise.
16758         * modules/xalloc (Makefile.am): Likewise.
16759         * modules/xgetcwd (Makefile.am): Likewise.
16760         * modules/xnanosleep (Makefile.am): Likewise.
16761         * modules/xreadlink (Makefile.am): Likewise.
16762         * modules/xstrtod (Makefile.am): Likewise.
16763         * modules/xstrtol (Makefile.am): Likewise.
16764         * modules/xstrtold (Makefile.am): Likewise.
16765         * modules/yesno (Makefile.am): Likewise.
16766
16767 2006-10-12  Jim Meyering  <jim@meyering.net>
16768
16769         * m4/getloadavg.m4: Revert the change below.
16770
16771         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
16772         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
16773         fail with a symlink, which is what coreutils' ./bootstrap now
16774         creates by default.
16775
16776 2006-10-12  Bruno Haible  <bruno@clisp.org>
16777
16778         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
16779         mingw.
16780         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
16781         MSVC and mingw explicitly.
16782
16783 2006-10-11  Simon Josefsson  <jas@extundo.com>
16784             Bruno Haible  <bruno@clisp.org>
16785
16786         Add support for multiple gnulib-tool invocations in the scope of a
16787         single configure.ac file.
16788         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
16789         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
16790         with the same contents as the _LIBADD variable.
16791         (func_emit_initmacro_start, func_emit_initmacro_end,
16792         func_emit_initmacro_done): New functions.
16793         (func_import, func_create_testdir): Invoke them. Allow the identifiers
16794         gl_LIBOBJS and gl_LTLIBOBJS.
16795
16796 2006-10-11  Bruno Haible  <bruno@clisp.org>
16797
16798         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
16799         (func_create_testdir): Don't create po/Makefile.am, don't invoke
16800         autoreconf. Instead, invoke autopoint explicitly but move back the
16801         *.m4 files from gnulib.
16802
16803 2006-10-11  Bruno Haible  <bruno@clisp.org>
16804
16805         * gnulib-tool (func_usage): Make module names after --create-testdir
16806         optional.
16807         (func_create_testdir): If no module was specified, use nearly all
16808         modules.
16809
16810 2006-10-12  Jim Meyering  <jim@meyering.net>
16811
16812         Big performance improvement for fts-based tools that use FTS_NOSTAT.
16813         Avoid spurious inode-mismatch problems on non-POSIX file systems.
16814         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
16815         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
16816         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
16817         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
16818         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
16819         (fts_set_stat_required): New function.
16820         (fts_open): Defer the calls to fts_stat, if possible or requested.
16821         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
16822         into fts_stat itself.
16823         (fts_read): Perform any required (deferred) fts_stat call.
16824         (fts_build): Likewise, for the directory we're about to open and read.
16825         In the readdir loop, carefully decide whether each entry will require
16826         an eventual call to fts_stat, using dirent.d_type info if available.
16827         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
16828         a command line argument into this function.  Update all callers.
16829         Map a return value of FTS_DOT to FTS_D for a command line argument.
16830         * modules/fts (Depends-on): Add d-type.  Alphabetize.
16831         Thanks to Miklos Szeredi for his tenacity and for the initial
16832         bug report about "find" failing on a FUSE-based file system.
16833
16834         * lib/fts.c (fts_open): Use consistent indentation.
16835
16836 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
16837
16838         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
16839         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
16840         reported by Jim Meyering.  All uses of cache variables renamed
16841         to match Autoconf's.
16842         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
16843         the other one.
16844
16845         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
16846         Fix misspelling in diagnostic.
16847
16848 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
16849
16850         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
16851         defined.  Problem reported by Matthew Woehlke.
16852
16853         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
16854         Add support for Tandem NonStop R series.
16855         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
16856         Use new macro.
16857
16858         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
16859         (has_trailing_slash): Omit size arg; all callers changed.
16860         Omit 'inline', since it doesn't help performance and we'd
16861         need to configure it.
16862         Don't count //, ///, etc. as having a trailing slash.
16863         As a side effect, this removes a C99ism reported by Matthew Woehlke.
16864         (rpl_rename_dest_slash): On failure, use rename's errno rather
16865         than (in some cases) an incorrect or junk errno.
16866         Simplify code by removing need to compute length; this does
16867         cause it to make two passes instead of one over the file name,
16868         but it's worth it.
16869
16870         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
16871         change, since Autoconf's version may no longer be appropriate now
16872         that we are using CVS Autoconf's version.  Add support for Tandem.
16873
16874 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
16875             Bruno Haible  <bruno@clisp.org>
16876
16877         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
16878         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
16879         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
16880         gl_AC_TYPE_LONG_LONG.
16881
16882         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
16883         instead of HAVE_LONG_LONG.
16884         * lib/printf-args.c (printf_fetchargs): Likewise.
16885         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
16886         * lib/vasnprintf.c (VASNPRINTF): Likewise.
16887         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
16888         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
16889         gl_AC_TYPE_LONG_LONG.
16890
16891 2006-10-11  Bruno Haible  <bruno@clisp.org>
16892
16893         * m4/longlong.m4: Add comments.
16894         * m4/ulonglong.m4: Likewise.
16895
16896 2006-10-10  Bruno Haible  <bruno@clisp.org>
16897
16898         Make it possible to #define stpcpy, strdup to aliases.
16899         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
16900         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
16901
16902 2006-10-10  Bruno Haible  <bruno@clisp.org>
16903
16904         Make it possible to #define gcd to an alias.
16905         * lib/gcd.c: Include config.h.
16906
16907 2006-10-10  Bruno Haible  <bruno@clisp.org>
16908
16909         Make it possible to #define c_isascii to an alias.
16910         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
16911         defined. Undefine the macros before defining them, to avoid gcc
16912         warnings.
16913         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
16914         define NO_C_CTYPE_MACROS early.
16915
16916 2006-10-10  Bruno Haible  <bruno@clisp.org>
16917
16918         Make it possible to #define set_program_name to an alias.
16919         * lib/progname.c: Don't undefine set_program_name; instead, undefine
16920         ENABLE_RELOCATABLE early.
16921
16922 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
16923
16924         Port to Tandem NSK OSS, which has 64-bit signed int but at most
16925         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
16926         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
16927         More generally, don't assume that 64-bit signed int is available
16928         if unsigned int is, and vice versa.
16929         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
16930         unsigned symbols, not on their signed counterparts.
16931         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
16932         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
16933         (UINT64_C, UINTMAX_C):
16934         Likewise.
16935         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
16936         unsigned counterparts.
16937         (Have_long_long, Unsigned): New macros.
16938         (Int): Renamed from INT.
16939         (strtoimax): Use the new macros.
16940         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
16941         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
16942         * modules/inttypes (inttypes.h): Substitute
16943         HAVE_UNSIGNED_LONG_LONG_INT.
16944         * modules/stdint (stdint.h): Likewise.
16945         (Files): Add m4/ulonglong.m4.
16946
16947 2006-10-10  Bruno Haible  <bruno@clisp.org>
16948
16949         Fix a gcc -Wshadow warning.
16950         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
16951         to 'bucket'.
16952         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
16953         gl_linked_indexof_from_to): Likewise.
16954         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
16955         Likewise.
16956         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
16957         Likewise.
16958         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
16959         Reported by Eric Blake.
16960
16961 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
16962
16963         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
16964         for NetBSD.  Problem reported by Bruno Haible.
16965
16966 2006-10-09  Jim Meyering  <jim@meyering.net>
16967
16968         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
16969         Patch from Bruno Haible.
16970
16971 2006-10-09  Jim Meyering  <jim@meyering.net>
16972
16973         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
16974         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
16975         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
16976
16977 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
16978
16979         Don't include <config.h> twice; this doesn't work in some cases,
16980         e.g., when config.h has "#define intmax_t long long int" and
16981         we include <config.h>, <inttypes.h>, <config.h> in that order.
16982         Problem reported by Matthew Woehlke in:
16983         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
16984         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
16985         * lib/fts-cycle.c: Don't include config.h.
16986         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
16987         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
16988         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
16989         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
16990         inttypes.h.
16991         * lib/xstrtoumax.c: Likewise.
16992         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
16993         __strtol and the like, so that this module is more like its siblings.
16994         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
16995         Remove; no longer needed now that we assume gnulib inttypes.h.
16996
16997 2006-10-08  Bruno Haible  <bruno@clisp.org>
16998
16999         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
17000         option.
17001
17002 2006-10-07  Jim Meyering  <jim@meyering.net>
17003
17004         * modules/inttypes (inttypes.h): Revert what seems to have been
17005         an inadvertent part of today's change: use "|", not "/" in the
17006         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
17007
17008 2006-10-07  Bruno Haible  <bruno@clisp.org>
17009
17010         * modules/sublist: New file.
17011
17012 2006-10-07  Bruno Haible  <bruno@clisp.org>
17013
17014         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
17015         * modules/argz (argz.h): Likewise.
17016         * modules/arpa_inet (arpa/inet.h): Likewise.
17017         * modules/byteswap (byteswap.h): Likewise.
17018         * modules/configmake (configmake.h): Likewise.
17019         * modules/fcntl (fcntl.h): Likewise.
17020         * modules/fnmatch (fnmatch.h): Likewise.
17021         * modules/getopt (getopt.h): Likewise.
17022         * modules/glob (glob.h): Likewise.
17023         * modules/inttypes (inttypes.h): Likewise.
17024         * modules/netinet_in (netinet/in.h): Likewise.
17025         * modules/poll (poll.h): Likewise.
17026         * modules/stdbool (stdbool.h): Likewise.
17027         * modules/stdint (stdint.h): Likewise.
17028         * modules/sys_select (sys/select.h): Likewise.
17029         * modules/sys_socket (sys/socket.h): Likewise.
17030         * modules/sys_stat (sys/stat.h): Likewise.
17031         * modules/sysexits (sysexits.h): Likewise.
17032         * modules/unistd (unistd.h): Likewise.
17033         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
17034         Add a "DO NOT EDIT" comment to the generated file.
17035         (func_import): Likewise for gnulib-comp.m4.
17036
17037 2006-10-07  Bruno Haible  <bruno@clisp.org>
17038
17039         * lib/gl_sublist.h: New file.
17040         * lib/gl_sublist.c: New file.
17041
17042 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
17043
17044         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
17045         name (relative to the original working directory) and the file
17046         name component (relative to the temporary working directory).  All
17047         callers changed.
17048         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
17049         * lib/mkdir-p.c (make_dir_parents): Likewise.
17050         * lib/mkdir-p.h (make_dir_parents): Likewise.
17051
17052 2006-10-06  Eric Blake  <ebb9@byu.net>
17053
17054         Define several macros for use by the clean-temp module.
17055         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
17056         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
17057         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
17058
17059         * lib/clean-temp.h (close_stream_temp): New declaration.
17060         * lib/clean-temp.c (includes): Pull in headers according to what
17061         other modules are in use.
17062         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
17063
17064 2006-10-06  Bruno Haible  <bruno@clisp.org>
17065
17066         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
17067         instead of fopen, fwriteerror.
17068
17069 2006-10-06  Bruno Haible  <bruno@clisp.org>
17070
17071         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
17072         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
17073         int.
17074         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
17075         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
17076         Return an error indicator.
17077         Suggested by Eric Blake.
17078
17079 2006-10-06  Bruno Haible  <bruno@clisp.org>
17080
17081         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
17082         Reported by Eric Blake.
17083
17084 2006-10-06  Bruno Haible  <bruno@clisp.org>
17085
17086         * modules/closeout (Description): Mention stderr too.
17087
17088 2006-10-06  Bruno Haible  <bruno@clisp.org>
17089         and Paul Eggert  <eggert@cs.ucla.edu>
17090
17091         * lib/closeout.c (close_stdout): Also close stderr.
17092         * lib/closeout.h: Update comment.
17093
17094 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
17095
17096         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
17097         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
17098         * lib/dirchownmod.c: Include lchown.h.
17099         * lib/lchown.c: Don't include files that lchown.h now includes.
17100         Don't declare chown, since lchown.h now does that.
17101         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
17102         (lchown): Define to rpl_chown if lchown is declared but
17103         does not exist.  Declare using a prototype if lchown is not
17104         declared.  Add a copyright notice.
17105         * lib/mkstemp.h: Include <unistd.h>.
17106         * lib/openat.c: Include lchown.h.
17107
17108         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
17109         we now test for that separately.
17110         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
17111         rather than O_NOFOLLOW, when testing whether it's possible to
17112         avoid a race condition reliably.
17113         * lib/savewd.c (savewd_chdir): Likewise.
17114
17115         Remove macros that are no longer needed now that stdint.h is
17116         reliable.
17117         * lib/fsusage.c (UINTMAX_MAX): Remove.
17118         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
17119         * lib/utimecmp.c (SIZE_MAX): Remove.
17120
17121         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
17122
17123         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
17124         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
17125         O_NOATIME works.
17126
17127 2006-10-05  Bruno Haible  <bruno@clisp.org>
17128
17129         * lib/gl_list.h (gl_sortedlist_search_from_to,
17130         gl_sortedlist_indexof_from_to): New declarations.
17131         (gl_list_implementation): New fields sortedlist_search_from_to,
17132         sortedlist_indexof_from_to.
17133         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
17134         inline functions.
17135         * lib/gl_list.c (gl_sortedlist_search_from_to,
17136         gl_sortedlist_indexof_from_to): New functions.
17137         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
17138         function.
17139         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
17140         (gl_array_sortedlist_search_from_to): New function.
17141         (gl_array_list_implementation): Update.
17142         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
17143         function.
17144         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
17145         (gl_carray_sortedlist_search_from_to): New function.
17146         (gl_carray_list_implementation): Update.
17147         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
17148         gl_linked_sortedlist_indexof_from_to): New functions.
17149         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
17150         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
17151         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
17152         gl_tree_sortedlist_indexof_from_to): New functions.
17153         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
17154         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
17155         Update.
17156         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
17157         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
17158         Update.
17159
17160 2006-10-05  Bruno Haible  <bruno@clisp.org>
17161
17162         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
17163         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
17164         (struct gl_list_implementation): Add fields search_from_to,
17165         indexof_from_to. Remove fields search, indexof.
17166         (gl_list_search): Use the search_from_to method.
17167         (gl_list_search_from, gl_list_search_from_to): New functions.
17168         (gl_list_indexof): Use the indexof_from_to method.
17169         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
17170         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
17171         (gl_list_search_from, gl_list_search_from_to): New functions.
17172         (gl_list_indexof): Use the indexof_from_to method.
17173         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
17174         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
17175         gl_array_indexof. Add start_index, end_index arguments.
17176         (gl_array_search_from_to): Renamed from gl_array_search. Add
17177         start_index, end_index arguments.
17178         (gl_array_remove, gl_array_list_implementation): Update.
17179         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
17180         gl_carray_indexof. Add start_index, end_index arguments.
17181         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
17182         start_index, end_index arguments.
17183         (gl_carray_remove, gl_carray_list_implementation): Update.
17184         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
17185         gl_linked_search. Add start_index, end_index arguments.
17186         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
17187         start_index, end_index arguments.
17188         (gl_linked_remove): Update.
17189         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
17190         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
17191         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
17192         field to 'size_t'.
17193         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
17194         gl_tree_search. Add start_index, end_index arguments.
17195         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
17196         start_index, end_index arguments.
17197         (gl_tree_remove): Update.
17198         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
17199         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
17200         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
17201         function.
17202         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
17203         gl_tree_search. Add start_index, end_index arguments.
17204         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
17205         start_index, end_index arguments.
17206         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
17207         Update.
17208         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
17209
17210 2006-10-05  Bruno Haible  <bruno@clisp.org>
17211
17212         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
17213
17214         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
17215         fwriteerror_temp): New declarations.
17216         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
17217         (descriptors): New variable.
17218         (cleanup): First, close the descriptors.
17219         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
17220         fclose_temp, fwriteerror_temp): New functions.
17221
17222 2006-10-04  Jim Meyering  <jim@meyering.net>
17223
17224         * lib/fts.c (fts_open): Tiny comment change.
17225
17226 2006-10-04  Bruno Haible  <bruno@clisp.org>
17227
17228         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
17229         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
17230         gl_LOCK_BODY.
17231         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
17232         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
17233         gl_LOCK_EARLY_BODY.
17234         (gl_LOCK): Require gl_LOCK_BODY.
17235
17236 2006-10-04  Bruno Haible  <bruno@clisp.org>
17237
17238         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
17239         (gl_oset_search_atleast): New declaration.
17240         (struct gl_oset_implementation): Add field 'search_atleast'.
17241         (gl_oset_search_atleast): New inline function.
17242         * lib/gl_oset.c (gl_oset_search_atleast): New function.
17243         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
17244         (gl_array_oset_implementation): Update.
17245         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
17246         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
17247         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
17248
17249 2006-10-04  Bruno Haible  <bruno@clisp.org>
17250
17251         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
17252
17253 2006-10-03  Bruno Haible  <bruno@clisp.org>
17254
17255         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
17256         from gl_avltreehash_list_implementation.
17257
17258 2006-10-03  Bruno Haible  <bruno@clisp.org>
17259
17260         * lib/gl_oset.c (gl_oset_add): Fix return type.
17261
17262 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
17263
17264         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
17265
17266 2006-10-02  Eric Blake  <ebb9@byu.net>
17267
17268         * modules/strnlen (Depends-on): Add extensions.
17269
17270 2006-10-02  Eric Blake  <ebb9@byu.net>
17271
17272         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
17273         definition in 2.60+.
17274
17275 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
17276
17277         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
17278         checks.
17279
17280 2006-10-02  Bruno Haible  <bruno@clisp.org>
17281
17282         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
17283         to the AUTOMAKE_OPTIONS.
17284         Reported by Jim Meyering.
17285
17286 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
17287
17288         Work around bug in Solaris 10 /proc file system:
17289         /proc/self/fd/NNN/.. isn't the parent directory of
17290         the directory whose file descriptor is NNN.  This needs to
17291         be worked around at run time, not compile time, since a
17292         program might be built on Solaris 8, where things work, and
17293         run on Solaris 10.
17294         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
17295         to use the following interface instead:
17296         (OPENAT_BUFFER_SIZE): New macro.
17297         (openat_proc_name): New function.
17298         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
17299         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
17300         Likewise.
17301         * lib/openat-proc.c: New file.
17302         * modules/openat (Files): Add lib/openat-proc.c.
17303         (Depends-on): Add same-inode, stdbool.
17304         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
17305
17306 2006-09-29  Bruno Haible  <bruno@clisp.org>
17307
17308         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
17309         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
17310         argument. Set stdout_closed before testing for ferror, not after.
17311         (fwriteerror, fwriteerror_no_ebadf): New functions.
17312
17313 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17314
17315         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
17316
17317 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
17318
17319         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
17320         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
17321
17322 2006-09-28  Jim Meyering  <jim@meyering.net>
17323
17324         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
17325         Include <unistd.h>.
17326
17327 2006-09-28  Bruno Haible  <bruno@clisp.org>
17328
17329         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
17330         * modules/linkedhash-list (Depends-on): Likewise.
17331         * modules/rbtreehash-list (Depends-on): Likewise.
17332
17333 2006-09-28  Bruno Haible  <bruno@clisp.org>
17334
17335         * lib/strndup.h: Simplify the redefinition of strndup.
17336         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
17337         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
17338
17339 2006-09-28  Bruno Haible  <bruno@clisp.org>
17340
17341         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
17342         * lib/gl_linkedhash_list.c: Likewise.
17343         * lib/gl_rbtreehash_list.c: Likewise.
17344
17345 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
17346
17347         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
17348         getaddrinfo.
17349
17350         * lib/__fpending.h: Don't include <stdio_ext.h> unless
17351         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
17352         it causes <stdio_ext.h> to cause a compile-time error.
17353         Problem reported by Nelson H. F. Beebe.
17354         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
17355         of HAVE_DECL___PENDING.
17356
17357         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
17358         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
17359         declaration.
17360
17361 2006-09-27  Jim Meyering  <jim@meyering.net>
17362
17363         This file could end up with a definition for a function
17364         named __strndup, rather than rpl_strndup on a system with
17365         incomplete weak_alias support.
17366         * lib/strndup.c (strndup): Rename from __strndup.
17367         Remove #defines that used to map __strndup to strndup.
17368         Don't use K&R prototypes.
17369         Remove LIBC-related code, since this file is not sync'd with glibc.
17370         * lib/strndup.h: Revamp, accordingly.
17371         * m4/strndup.m4: Modernize.
17372
17373 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
17374
17375         * modules/savewd (Depends-on): Add 'raise'.
17376         * lib/savewd.c: Include <signal.h>, for 'raise'.
17377
17378 2006-09-26  Jim Meyering  <jim@meyering.net>
17379
17380         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
17381         when we detect Darwin 8.7.0's acl_get_file bug.
17382         Rearrange to perform the new (below) run-test while $LIBS
17383         contains any acl-related library.  Set USE_ACL at the end.
17384         (gl_ACL_GET_FILE): New function.
17385
17386 2006-09-26  Eric Blake  <ebb9@byu.net>
17387
17388         * lib/verror.c: Include <config.h> unconditionally.
17389
17390 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
17391
17392         * modules/clock-time (Maintainer): Add self.
17393         * modules/getlogin_r (Depends-on): Add extensions.
17394
17395 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17396
17397         * modules/clock-time: New module.
17398         * modules/nanosleep (Depends-on): Add clock-time.
17399         * modules/gethrxtime (Depends-on): Likewise.
17400         * modules/gettime (Depends-on): Likewise.
17401         * modules/settime (Depends-on): Likewise.
17402
17403         * modules/fts-lgpl: Depend on openat.
17404         * modules/mkancesdirs: Depend on savewd.
17405         * modules/mkdir-p: Likewise.
17406
17407 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17408
17409         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
17410
17411         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
17412         `gl_have_arbitrary_file_name_length_limit' to
17413         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
17414         actually works between configure runs.
17415
17416 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17417             Bruno Haible  <bruno@clisp.org>
17418
17419         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
17420
17421 2006-09-25  Jim Meyering  <jim@meyering.net>
17422
17423         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
17424         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
17425
17426 2006-09-25  Eric Blake  <ebb9@byu.net>
17427
17428         * gnulib-tool (func_import, func_create_testdir): Fix typos in
17429         exec's in 2006-09-18 patch when shuffling fds.
17430
17431 2006-09-25  Bruno Haible  <bruno@clisp.org>
17432
17433         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
17434         Reported by Jim Meyering.
17435
17436 2006-09-24  Jim Meyering  <jim@meyering.net>
17437
17438         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
17439         compare a pointer against a literal "0".  That caused failures with
17440         at least HP-UX's hpcc.
17441
17442 2006-09-22  Simon Josefsson  <jas@extundo.com>
17443
17444         * modules/gc-sha1:
17445         * modules/gc-md4:
17446         * modules/gc-hmac-sha1:
17447         * modules/gc-hmac-md5:
17448         * modules/gc-des:
17449         * modules/gc-arcfour: Distribute more files.
17450
17451 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17452
17453         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
17454         (gl_linked_iterator_from_to): Initialize struct completely.
17455         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
17456         (gl_tree_iterator_from_to): Likewise
17457         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
17458         * lib/gl_array_list.c [lint] (gl_array_iterator)
17459         (gl_array_iterator_from_to): Likewise.
17460         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
17461         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
17462         (gl_carray_iterator_from_to): Likewise.
17463
17464         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
17465         * lib/md4.c (md4_process_block): Remove unused variable.
17466         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
17467         parentheses for clarity.
17468
17469 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17470
17471         * modules/bison-i18n (Depends-on): Add gettext.
17472
17473 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17474
17475         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
17476         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
17477         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
17478         also add missing comma that caused broken test.
17479         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
17480         stdlib.h, for `abort'.
17481         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
17482         variables.
17483         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
17484         include unistd.h if present, for `rmdir'.
17485         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
17486         variables.
17487         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
17488         in the process include standard headers for prototypes.
17489         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
17490         gets declared on GNU/Linux.
17491         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
17492         unistd.h, for `rmdir'.
17493         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
17494
17495         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
17496         always true.
17497         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
17498
17499         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
17500
17501 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17502
17503         * gnulib-tool (func_version): Create output all at once.  This
17504         may help avoid triggering unnecessary SIGPIPEs, and at any
17505         rate it doesn't hurt.
17506
17507 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17508             Bruno Haible  <bruno@clisp.org>
17509
17510         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
17511         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
17512         * m4/signed.m4 (bh_C_SIGNED): Likewise.
17513
17514         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
17515         (gl_FUNC_VASPRINTF): Invoke it.
17516
17517 2006-09-22  Bruno Haible  <bruno@clisp.org>
17518
17519         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
17520         getloadavg.c as first argument.
17521
17522 2006-09-22  Bruno Haible  <bruno@clisp.org>
17523
17524         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
17525         at the beginning of the gl_INIT macro.
17526         * modules/getloadavg (configure.ac): Pass $gl_source_base to
17527         gl_GETLOADAVG.
17528
17529 2006-09-22  Bruno Haible  <bruno@clisp.org>
17530
17531         * gnulib-tool (func_create_megatestdir): Don't include the config-h
17532         module.
17533         Suggested by Ralf Wildenhues.
17534
17535 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
17536
17537         Import this patch from libc:
17538
17539         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
17540
17541         * lib/regex_internal.c (re_string_reconstruct): Handle
17542         offset < pstr->valid_raw_len && pstr->offsets_needed case.
17543         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
17544         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
17545         re_string_context_at.
17546
17547         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
17548         now requires it.
17549         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
17550         gl_REGEX now does it for us.
17551         (gl_REGEX): Add test taken from
17552         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
17553
17554         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
17555         Check that large offsets work.  Modernize Autoconf usages.
17556         Prefer "yes" to mean a good thing rather than a bad.
17557         Don't put "#define mkstemp" in config.h, as this might interfere
17558         with standard system headers that "#define mkstemp mkstemp64".
17559
17560         * modules/mkstemp (Depends-on): Add extensions, so that
17561         mkstemp is visible on some platforms.
17562         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
17563         (Include): Change to "mkstemp.h" from <stdlib.h>.
17564         (Files): Add mkstemp.h.
17565
17566         * lib/mkstemp.h: New file, since some standard headers
17567         #define mkstemp.
17568         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
17569         Include "mkstemp.h".
17570         Make the _LIBC code resemble glibc original more,
17571         e.g., use K&R style.
17572         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
17573         (mkstemp): Remove, since mkstemp.h does this for us.
17574         * lib/stdlib--.h: Include mkstemp.h.
17575
17576         Import this patch from libc:
17577
17578         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
17579
17580         * lib/tempname.c (__gen_tempname): Change attempts_min
17581         into a macro.  Use preprocessor to decide how to initialize
17582         attempts [Coverity CID 67].
17583
17584 2006-09-20  Bruno Haible  <bruno@clisp.org>
17585
17586         * lib/mkdtemp.c: Import from libc.
17587         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
17588                 * sysdeps/posix/tempname.c (__gen_tempname): Change
17589                 attempts_min into a macro.  Use preprocessor to decide how to
17590                 initialize attempts [Coverity CID 67].
17591         2001-11-27  Paul Eggert  <eggert@twinsun.com>
17592                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
17593                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
17594
17595 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17596
17597         * gnulib-tool (func_exit): New function, to allow to pass the
17598         exit status portably through the trap.  Use everywhere.
17599         (--help, --version): Signal a write error.
17600         (trap): catch SIGPIPE, for write errors.
17601         Exit at the end of the trap, with the correct exit status.
17602
17603 2006-09-19  Karl Berry  <karl@gnu.org>
17604
17605         * doc/gnulib.texi: note about the license texinfo files.
17606
17607 2006-09-19  Eric Blake  <ebb9@byu.net>
17608
17609         * gnulib-tool: Avoid space-tab.
17610
17611 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
17612
17613         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
17614         that prevented coreutils 6.1 from building.  Problem reported
17615         by Petter Reinholdtsen.
17616
17617 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
17618
17619         * gnulib-tool (avoidlist): Fix typo that broke options like
17620         --avoid=lock that are used by coreutils bootstrap.
17621
17622 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
17623
17624         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
17625         more systematically.
17626
17627 2006-09-18  Jim Meyering  <jim@meyering.net>
17628
17629         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
17630
17631 2006-09-18  Bruno Haible  <bruno@clisp.org>
17632
17633         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
17634
17635 2006-09-18  Bruno Haible  <bruno@clisp.org>
17636
17637         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
17638         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
17639         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
17640         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
17641         * m4/gettext.m4: Require autoconf >= 2.52.
17642         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
17643         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
17644         of gl_cv_header_inttypes_h.
17645
17646 2006-09-18  Bruno Haible  <bruno@clisp.org>
17647
17648         * lib/javaversion.c: Include configmake.h.
17649
17650 2006-09-18  Bruno Haible  <bruno@clisp.org>
17651
17652         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
17653         avoid that the while loops be executed in a subshell.
17654
17655 2006-09-18  Bruno Haible  <bruno@clisp.org>
17656
17657         * MODULES.html.sh (func_module): Break long lines.
17658         Suggested by Bruce Korb <bkorb@gnu.org>.
17659
17660 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17661
17662         Speed up by a factor of 1.12.
17663         * gnulib-tool (nl): New variable.
17664         (func_import): Rewrite include directive extraction to only read each
17665         directive once.
17666
17667 2006-09-17  Bruno Haible  <bruno@clisp.org>
17668
17669         * modules/javaversion (Makefile.am): Remove DEFS setting.
17670         (Depends-on): Add configmake, for PKGDATADIR definition.
17671
17672 2006-09-17  Bruno Haible  <bruno@clisp.org>
17673
17674         * gnulib-tool (func_create_testdir): Rewrite all files at once.
17675
17676 2006-09-17  Bruno Haible  <bruno@clisp.org>
17677
17678         * gnulib-tool (func_append): New function, stolen from libtool.m4.
17679         (func_modules_transitive_closure, func_modules_add_dummy,
17680         func_modules_to_filelist, func_import, func_create_testdir,
17681         func_create_megatestdir, ...): Use it wherever possible.
17682         Suggested by Ralf Wildenhues.
17683
17684 2006-09-16  Karl Berry  <karl@gnu.org>
17685
17686         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
17687         to avoid sectioning errors.
17688         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
17689         [ifinfo]: blank line after @center-ed titles.
17690         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
17691         Spell FSF address consistently with others.
17692         (These changes approved by rms.)
17693
17694 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17695
17696         Speed up by a factor of 1.61.
17697         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
17698         already checked module names again.
17699
17700 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17701
17702         Speed up by a factor of 1.13.
17703         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
17704         for new_files, and the input to func_add_or_update.
17705
17706 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17707
17708         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
17709         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
17710
17711 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
17712
17713         * modules/mkancesdirs (Depends-on): Add fcntl.
17714         * modules/savewd: New file.
17715         * MODULES.html.sh (File system functions): Add savewd.
17716
17717         * modules/configmake (Makefile.am): Add support for the
17718         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
17719
17720 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
17721
17722         * m4/savewd.m4: New file.
17723
17724 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
17725
17726         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
17727         (dirchownmod): New arg FD.  All callers changed.
17728         Use FD rather than opening the directory ourself, as opening is
17729         now the caller's responsibility.
17730         * lib/dirchownmod.h: Likewise.
17731         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
17732         hosts that require <sys/types.h> before <sys/stat.h>.  Include
17733         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
17734         (test_dir): Remove.
17735         (mkancesdirs): Return length of prefix of FILE that has already
17736         been made, or -2 if there is a child doing the work.  Redo
17737         algorithm so that it is O(N) rather than O(N**2).  Optimize away
17738         ".", and treat ".." specially since it might stray back into
17739         already-created areas.  Use a subprocess if necessary.  New arg
17740         WD; all users changed.  MAKE_DIR function should now return 1
17741         if it creates a directory that is not readable.  Return -2 if
17742         a child process is spun off.
17743         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
17744         Adjust signature to match code.
17745         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
17746         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
17747         all users changed.
17748         * lib/savewd.c, lib/savewd.h: New files.
17749
17750 2006-09-15  Jim Meyering  <jim@meyering.net>
17751
17752         * modules/rename-dest-slash: New module.
17753         * MODULES.html.sh (posix_compat): Add it here.
17754
17755         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
17756
17757 2006-09-15  Jim Meyering  <jim@meyering.net>
17758
17759         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
17760         file.
17761
17762         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
17763
17764 2006-09-15  Jim Meyering  <jim@meyering.net>
17765
17766         * lib/rename-dest-slash.c (has_trailing_slash): Use
17767         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
17768         (rpl_rename_dest_slash): Perform the cheaper trailing slash
17769         test before testing whether SRC is a directory.
17770         Suggestions from Bruno Haible.
17771
17772         Avoid a warning about an unused variable.
17773         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
17774         into the #ifdef block where it's used.
17775
17776         * lib/rename-dest-slash.c: New file.
17777
17778 2006-09-14  Bruno Haible  <bruno@clisp.org>
17779
17780         * lib/allocsa.c: Include <config.h> unconditionally.
17781         * lib/asnprintf.c: Likewise.
17782         * lib/asprintf.c: Likewise.
17783         * lib/c-strcasecmp.c: Likewise.
17784         * lib/c-strcasestr.c: Likewise.
17785         * lib/c-strncasecmp.c: Likewise.
17786         * lib/c-strstr.c: Likewise.
17787         * lib/classpath.c: Likewise.
17788         * lib/clean-temp.c: Likewise.
17789         * lib/concatpath.c: Likewise.
17790         * lib/copy-file.c: Likewise.
17791         * lib/csharpcomp.c: Likewise.
17792         * lib/csharpexec.c: Likewise.
17793         * lib/execute.c: Likewise.
17794         * lib/fatal-signal.c: Likewise.
17795         * lib/findprog.c: Likewise.
17796         * lib/fwriteerror.c: Likewise.
17797         * lib/gl_array_list.c: Likewise.
17798         * lib/gl_array_oset.c: Likewise.
17799         * lib/gl_avltree_list.c: Likewise.
17800         * lib/gl_avltree_oset.c: Likewise.
17801         * lib/gl_avltreehash_list.c: Likewise.
17802         * lib/gl_carray_list.c: Likewise.
17803         * lib/gl_linked_list.c: Likewise.
17804         * lib/gl_linkedhash_list.c: Likewise.
17805         * lib/gl_list.c: Likewise.
17806         * lib/gl_oset.c: Likewise.
17807         * lib/gl_rbtree_list.c: Likewise.
17808         * lib/gl_rbtree_oset.c: Likewise.
17809         * lib/gl_rbtreehash_list.c: Likewise.
17810         * lib/imaxabs.c: Likewise.
17811         * lib/imaxdiv.c: Likewise.
17812         * lib/javacomp.c: Likewise.
17813         * lib/javaexec.c: Likewise.
17814         * lib/javaversion.c: Likewise.
17815         * lib/linebreak.c: Likewise.
17816         * lib/localcharset.c: Likewise.
17817         * lib/lock.c: Likewise.
17818         * lib/mbchar.c: Likewise.
17819         * lib/mbswidth.c: Likewise.
17820         * lib/mkdtemp.c: Likewise.
17821         * lib/pipe.c: Likewise.
17822         * lib/printf-args.c: Likewise.
17823         * lib/printf-parse.c: Likewise.
17824         * lib/progname.c: Likewise.
17825         * lib/progreloc.c: Likewise.
17826         * lib/readlink.c: Likewise.
17827         * lib/sh-quote.c: Likewise.
17828         * lib/stpcpy.c: Likewise.
17829         * lib/stpncpy.c: Likewise.
17830         * lib/strcasecmp.c: Likewise.
17831         * lib/strcasestr.c: Likewise.
17832         * lib/strcspn.c: Likewise.
17833         * lib/striconv.c: Likewise.
17834         * lib/strncasecmp.c: Likewise.
17835         * lib/strnlen1.c: Likewise.
17836         * lib/strstr.c: Likewise.
17837         * lib/strtok_r.c: Likewise.
17838         * lib/tls.c: Likewise.
17839         * lib/tmpdir.c: Likewise.
17840         * lib/unicodeio.c: Likewise.
17841         * lib/unsetenv.c: Likewise.
17842         * lib/vasnprintf.c: Likewise.
17843         * lib/vasprintf.c: Likewise.
17844         * lib/wait-process.c: Likewise.
17845         * lib/xallocsa.c: Likewise.
17846         * lib/xsetenv.c: Likewise.
17847         * lib/xstriconv.c: Likewise.
17848
17849 2006-09-13  Simon Josefsson  <jas@extundo.com>
17850
17851         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
17852         that internally, suggested by Ralf Wildenhues
17853         <Ralf.Wildenhues@gmx.de>.
17854
17855 2006-09-13  Simon Josefsson  <jas@extundo.com>
17856
17857         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
17858         @LIBOBJS@.
17859         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17860
17861 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
17862
17863         * lib/_fpending.c: Include <config.h> unconditionally, since we no
17864         longer worry about uses that don't define HAVE_CONFIG_H.
17865         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
17866         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
17867         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
17868         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
17869         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
17870         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
17871         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
17872         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
17873         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
17874         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
17875         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
17876         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
17877         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
17878         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
17879         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
17880         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
17881         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
17882         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
17883         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
17884         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
17885         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
17886         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
17887         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
17888         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
17889         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
17890         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
17891         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
17892         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
17893         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
17894         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
17895         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
17896         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
17897         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
17898         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
17899         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
17900         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
17901         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
17902         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
17903         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
17904         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
17905         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
17906         Likewise.
17907
17908 2006-09-13  Eric Blake  <ebb9@byu.net>
17909
17910         * lib/getopt.c: Fix typo in last commit.
17911
17912 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
17913
17914         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
17915         dgettext.
17916
17917 2006-09-12  Jim Meyering  <jim@meyering.net>
17918
17919         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
17920         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
17921         Reported by Nelson H. F. Beebe.
17922
17923 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
17924
17925         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
17926         program_invocation_name and program_invocation_short_name are
17927         initialized.
17928         * lib/argp-namefrob.h: Move declarations of program_invocation_name
17929         and program_invocation_short_name to argp.h, so they are visible
17930         to user programs.
17931         * lib/argp.h: Likewise
17932
17933 2006-09-10  Bruno Haible  <bruno@clisp.org>
17934
17935         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
17936         m4/inttypes_h.m4, m4/uintmax_t.m4.
17937
17938 2006-09-10  Bruno Haible  <bruno@clisp.org>
17939
17940         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
17941         gl_AC_TYPE_UINTMAX_T.
17942
17943 2006-09-10  Bruno Haible  <bruno@clisp.org>
17944
17945         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
17946
17947 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
17948
17949         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
17950         convention.  Text proposed by Bruno Haible.
17951         (struct argp_option): Document the use of N_() wrappers.
17952
17953         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
17954         '\v', and translate the two parts separately, instead of feeding
17955         the whole string to gettext.  This allows to exclude
17956         '\v' from the strings visible to the translator by writing doc
17957         strings as N_("..") "\v" N_("..").
17958
17959 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
17960
17961         * config/srclist.txt: Undo latest change; the bug was fixed.
17962
17963 2006-09-09  Bruno Haible  <bruno@clisp.org>
17964
17965         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
17966         assignments if building a library without libtool.
17967         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
17968         in func_emit_lib_Makefile_am.
17969         (func_import): When building a static library libfoo.a, arrange to
17970         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
17971         (func_create_testdir): Likewise.
17972         * modules/gc (configure.ac, Makefile.am): If building statically,
17973         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
17974         * modules/iconvme (configure.ac, Makefile.am): Likewise.
17975         * modules/striconv (configure.ac, Makefile.am): Likewise.
17976         Based on a suggestion by Ralf Wildenhues.
17977
17978 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
17979
17980         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
17981         Check for unistd.h too, since Autoconf doesn't assume POSIX.
17982         Also:
17983
17984         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
17985         Add year_2050_test to catch glibc bug 2821
17986         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
17987
17988         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
17989         Prefer #ifdef to #if.
17990
17991         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
17992         Return from 'main' instead of calling 'exit'.
17993
17994 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
17995
17996         * lib/mktime.c (guess_time_tm): Fix bug where mktime
17997         returned the maximum time_t value rather than (time_t) -1.
17998         Problem originally reported by William Bardwell
17999         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
18000
18001         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
18002         Moved to here ...
18003         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
18004         ... from here.
18005
18006 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
18007
18008         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
18009         2821 is fixed.
18010
18011 2006-09-08  Jim Meyering  <jim@meyering.net>
18012
18013         Don't make generated files read-only.  That would bother too many
18014         people.  However, do retain the ability to work when targets are
18015         read-only: remove the destination and temporary files before writing
18016         them (when generated via sed or echo), or by using the -f option for
18017         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
18018         * modules/alloca-opt, modules/argz, modules/arpa_inet:
18019         * modules/byteswap, modules/configmake, modules/fcntl:
18020         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
18021         * modules/localcharset, modules/netinet_in, modules/poll:
18022         * modules/stdbool, modules/stdint, modules/sys_select:
18023         * modules/sys_socket, modules/sys_stat, modules/sysexits:
18024
18025 2006-09-08  Jim Meyering  <jim@meyering.net>
18026
18027         Avoid new build failure on FreeBSD 6.0.
18028         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
18029         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
18030         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
18031
18032 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18033
18034         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
18035
18036 2006-09-07  Jim Meyering  <jim@meyering.net>
18037
18038         Fix global typo in last change: use chmod u-w, not chmod u-x.
18039         Spotted by Paul Eggert and Bruce Korb.
18040         * modules/alloca-opt, modules/argz, modules/arpa_inet:
18041         * modules/byteswap, modules/configmake, modules/fcntl:
18042         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
18043         * modules/localcharset, modules/netinet_in, modules/poll:
18044         * modules/stdbool, modules/stdint, modules/sys_select:
18045         * modules/sys_socket, modules/sys_stat, modules/sysexits:
18046
18047 2006-09-06  Jim Meyering  <jim@meyering.net>
18048
18049         Make generated files be read-only.
18050         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
18051         Ensure that each generated file is now read-only.
18052         * modules/argz: Likewise.
18053         * modules/arpa_inet: Likewise.
18054         * modules/byteswap: Likewise.
18055         * modules/configmake: Likewise.
18056         * modules/fcntl: Likewise.
18057         * modules/fnmatch: Likewise.
18058         * modules/getopt: Likewise.
18059         * modules/glob: Likewise.
18060         * modules/inttypes: Likewise.
18061         * modules/netinet_in: Likewise.
18062         * modules/poll: Likewise.
18063         * modules/stdbool: Likewise.
18064         * modules/stdint: Likewise.
18065         * modules/sys_select: Likewise.
18066         * modules/sys_socket: Likewise.
18067         * modules/sys_stat: Likewise.
18068         * modules/sysexits: Likewise.
18069         * modules/localcharset: Same as above, but continue using temporary
18070         file named "t-$@" (why different?) rather than the "$@-t" used
18071         everywhere else.
18072
18073         * modules/sysexits (Makefile.am): Replace literal occurrences
18074         of "sysexit.h" more readable, and more consistent, "$@".
18075
18076 2006-09-06  Bruno Haible  <bruno@clisp.org>
18077
18078         * modules/striconv: New file.
18079         * modules/xstriconv: New file.
18080         * MODULES.html.sh (Internationalization functions): Add striconv,
18081         xstriconv.
18082
18083 2006-09-06  Bruno Haible  <bruno@clisp.org>
18084
18085         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
18086         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
18087         not using libtool correctly.
18088
18089 2006-09-06  Bruno Haible  <bruno@clisp.org>
18090
18091         * lib/striconv.h: New file.
18092         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
18093         iconvstring.c.
18094         * lib/xstriconv.h: New file.
18095         * lib/xstriconv.c: New file.
18096
18097 2006-09-06  Bruno Haible  <bruno@clisp.org>
18098
18099         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
18100         lib_..._LDFLAGS.
18101
18102 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18103
18104         * lib/argz_.h: Sync from Libtool.
18105
18106         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
18107                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18108
18109         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
18110
18111 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
18112
18113         * modules/trim: New file.
18114
18115 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
18116
18117         * lib/trim.h: New file.
18118         * lib/trim.c: New file.
18119
18120 2006-09-05  Bruno Haible  <bruno@clisp.org>
18121
18122         * MODULES.html.sh (String handling): Add trim.
18123
18124 2006-09-04  Karl Berry  <karl@gnu.org>
18125
18126         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
18127         until next release.
18128
18129 2006-09-03  Bruno Haible  <bruno@clisp.org>
18130
18131         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
18132         correctly.
18133
18134 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
18135
18136         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
18137         not gl_GETLOADAVG.  Omit unneeded semicolons.
18138         Problems reported by Ralf Wildenhues in
18139         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
18140         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
18141         at the end, which is the usual gnulib style.
18142
18143         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
18144         of doing all the work ourselves.
18145         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
18146         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
18147
18148 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
18149
18150         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
18151         Problem reported by Ralf Wildenhues in
18152         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
18153
18154         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
18155         HAVE_STRUCT_STATFS_F_FSTYPENAME.
18156
18157 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
18158
18159         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
18160         yesterday's patch by changing test -n to test -z.
18161
18162 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
18163
18164         * modules/getloadavg (Files): Add m4/getloadavg.m4.
18165         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
18166         the former is now obsolescent.
18167
18168         * modules/chdir-long (Depends-on): Add fcntl.
18169
18170 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
18171
18172         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
18173         obsolescent, and programs should use gnulib instead.
18174         * m4/getloadavg.m4: New file, with contents taken from Autoconf
18175         but with prefixes changed.
18176
18177 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
18178
18179         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
18180         or stdbool.h, because they might not exist while configuring.
18181
18182         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
18183         Don't include unistd.h or limits.h; not needed, since chdir-long.h
18184         does that for us.
18185         (O_DIRECTORY): Remove.
18186
18187 2006-08-31  Eric Blake  <ebb9@byu.net>
18188
18189         * gnulib-tool: Don't let emacs change spaces to TAB.
18190
18191 2006-08-31  Bruno Haible  <bruno@clisp.org>
18192
18193         * gnulib-tool: When calling func_import more than once, do it in a
18194         subshell.
18195         Reported by Eric Blake <ebb9@byu.net>.
18196
18197 2006-08-31  Bruno Haible  <bruno@clisp.org>
18198
18199         * gnulib-tool (nl): Remove variable.
18200         (sed_transform_lib_file): Use more robust test for config-h module.
18201         (func_import): Fix typo in 2006-08-25 patch.
18202
18203 2006-08-31  Bruno Haible  <bruno@clisp.org>
18204
18205         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
18206         specified, augment Makefile.am variables instead of assigning them.
18207
18208 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
18209
18210         Work around a bug in both the Linux and SunOS 64-bit kernels:
18211         nanosleep mishandles sleeps for longer than 2**31 seconds.
18212         Problem reported by Frank v Waveren in
18213         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
18214         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
18215         Check for nanosleep bug.
18216         (LIB_NANOSLEEP): Append clock_gettime library if needed.
18217
18218 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
18219
18220         Work around a bug in both the Linux and SunOS 64-bit kernels:
18221         nanosleep mishandles sleeps for longer than 2**31 seconds.
18222         Problem reported by Frank v Waveren in
18223         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
18224         * lib/nanosleep.c (BILLION): New constant.
18225         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
18226         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
18227         implementation.
18228
18229 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
18230
18231         * modules/nanosleep (Depends-on): Add gettime.
18232
18233 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
18234         and Simon Josefsson  <jas@extundo.com>
18235         and Oskar Liljeblad  <oskar@osk.mine.nu>
18236
18237         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
18238         * gnulib-tool (func_import): New license type 'unmodifiable license
18239         text'.
18240         * modules/fdl: Use it.  Longer description.
18241         * module/gpl, module/lgpl: New files.
18242
18243 2006-08-30  Jim Meyering  <jim@meyering.net>
18244
18245         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
18246         shadowing the parameter.
18247
18248 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18249
18250         Sync from Libtool:
18251
18252         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18253
18254         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
18255         sharing with gnulib.  Report by Eric Blake.
18256
18257 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
18258
18259         * modules/isapipe: New file.
18260         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
18261
18262 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
18263
18264         * modules/configmake (Makefile.am): Add a comment, and omit
18265         the CONFIGMAKE_ prefix from generated macro names.  Suggested
18266         by Bruno Haible.
18267
18268 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
18269
18270         * m4/isapipe.m4: New file.
18271
18272 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
18273
18274         * lib/isapipe.c, lib/isapipe.h: New files.
18275
18276 2006-08-29  Jim Meyering  <jim@meyering.net>
18277
18278         * modules/configmake (Makefile.am): Make configmake.h depend on
18279         Makefile.  Otherwise, a stale configmake.h could hang around.
18280
18281 2006-08-29  Eric Blake  <ebb9@byu.net>
18282
18283         * lib/error.c (error_at_line, print_errno_message): Match libc, after
18284         resolution of upstream bug 3044.
18285
18286 2006-08-29  Bruno Haible  <bruno@clisp.org>
18287
18288         * modules/localcharset (Depends-on): Add configmake.
18289         (Makefile.am): Remove setting of LIBDIR through DEFS.
18290
18291 2006-08-29  Bruno Haible  <bruno@clisp.org>
18292
18293         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
18294         defined.
18295
18296 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
18297
18298         * modules/fcntl: New file.
18299         * modules/chdir-safer (Depends-on): Add fcntl.
18300         * modules/fts: Likewise.
18301         * modules/mkdir-p: Likewise.
18302
18303         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
18304         This undoes the most recent change, since we're now addressing the
18305         problem in a different way.
18306
18307         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
18308         into output, since the output might be called Makefile.am even
18309         if $makefile_name is something different.
18310         (func_import): Use $makefile_am rather than
18311         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
18312         empty.
18313
18314         * modules/inttypes (Files): Add m4/inttypes-h.m4.
18315
18316 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
18317
18318         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
18319         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
18320         recent change to stdint.m4, since we're now addressing the problem in a
18321         different way.
18322
18323 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
18324
18325         * m4/fcntl_h.m4: New file.
18326
18327 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
18328
18329         * lib/fcntl_.h: New file.
18330         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
18331         the fcntl module.
18332         * lib/dirchownmod.c: Likewise.
18333         * lib/fts.c: Likewise.
18334
18335         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
18336         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
18337         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
18338         just before including <inttypes.h>, to avoid circular inclusion.
18339
18340 2006-08-28  Jim Meyering  <jim@meyering.net>
18341
18342         * doc/visibility.texi: Actually read and correct the grammar of the
18343         sentence affected by yesterday's change.
18344
18345 2006-08-28  Eric Blake  <ebb9@byu.net>
18346
18347         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
18348         needs wrapper.
18349
18350 2006-08-28  Eric Blake  <ebb9@byu.net>
18351
18352         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
18353
18354 2006-08-28  Eric Blake  <ebb9@byu.net>
18355
18356         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
18357
18358 2006-08-28  Bruno Haible  <bruno@clisp.org>
18359
18360         * modules/c-strstr: New file, from GNU gettext.
18361         * MODULES.html.sh (String handling): Add c-strstr.
18362
18363 2006-08-28  Bruno Haible  <bruno@clisp.org>
18364
18365         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
18366         macros.
18367         Reported by Eric Blake.
18368
18369 2006-08-28  Bruno Haible  <bruno@clisp.org>
18370
18371         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
18372         (VASNPRINTF): Return a string of length > INT_MAX without failing.
18373         * lib/vasprintf.c: Include errno.h, limits.h.
18374         (EOVERFLOW): New fallback definition.
18375         (vasprintf): Test here whether the string length is > INT_MAX.
18376         * lib/vsnprintf.c: Include errno.h, limits.h.
18377         (EOVERFLOW): New fallback definition.
18378         (vsnprintf): Fix bug when generated string was too long for the buffer.
18379         Test here whether the string length is > INT_MAX.
18380
18381 2006-08-28  Bruno Haible  <bruno@clisp.org>
18382
18383         * lib/inttypes_.h (SCNX*): Remove definitions.
18384         Reported by Eric Blake.
18385
18386 2006-08-28  Bruno Haible  <bruno@clisp.org>
18387
18388         * lib/c-strstr.h: New file, from GNU gettext.
18389         * lib/c-strstr.c: New file, from GNU gettext.
18390
18391 2006-08-28  Bruno Haible  <bruno@clisp.org>
18392
18393         * gnulib-tool: Reorder some statements.
18394
18395 2006-08-28  Bruno Haible  <bruno@clisp.org>
18396
18397         * gnulib-tool: New option --makefile-name.
18398         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
18399         $makefile_name.
18400         (func_import): Write $makefile_name to the cache file, and read it from
18401         there unless explicitly specified. Use $makefile_name as file name
18402         instead of Makefile.am. Adjust the recommendations accordingly.
18403
18404 2006-08-28  Bruno Haible  <bruno@clisp.org>
18405
18406         * gnulib-tool (func_verify_module): Check against misapplying patch.
18407
18408 2006-08-28  Bruno Haible  <bruno@clisp.org>
18409
18410         * gnulib-tool (func_relativize, func_relconcat): New functions.
18411         Give an error if --local-dir is given with --update.
18412         Remove trailing slashes from $local_gnulib_dir.
18413         (func_import): Store the relativized $local_gnulib_dir in
18414         gnulib-cache.m4, and read it from there if not specified explicitly.
18415
18416 2006-08-28  Bruno Haible  <bruno@clisp.org>
18417
18418         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
18419         is the current directory. Respect also $local_gnulib_dir.
18420
18421 2006-08-28  Bruno Haible  <bruno@clisp.org>
18422             Simon Josefsson  <jas@extundo.com>
18423
18424         BeOS portability.
18425         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
18426
18427 2006-08-27  Jim Meyering  <jim@meyering.net>
18428
18429         * doc/visibility.texi: Remove duplicate word: "pointer".
18430
18431 2006-08-26  Bruno Haible  <bruno@clisp.org>
18432
18433         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
18434         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
18435         (Makefile.am): Create inttypes.h from inttypes_.h.
18436         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
18437
18438         * modules/imaxabs: New file.
18439
18440         * modules/imaxdiv: New file.
18441
18442 2006-08-26  Bruno Haible  <bruno@clisp.org>
18443
18444         * m4/inttypes.m4: New file.
18445         * m4/_inttypes_h.m4: Remove file.
18446         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
18447         PRI_MACROS_BROKEN.
18448         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
18449
18450         * m4/imaxabs.m4: New file.
18451
18452         * m4/imaxdiv.m4: New file.
18453
18454 2006-08-26  Bruno Haible  <bruno@clisp.org>
18455
18456         * lib/inttypes_.h: New file.
18457         * lib/inttypes.h: Remove file.
18458         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
18459
18460         * lib/imaxabs.c: New file.
18461
18462         * lib/imaxdiv.c: New file.
18463
18464 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
18465
18466         New config-h module, so that "make" output needn't be cluttered
18467         by -DHAVE_CONFIG_H.
18468         * MODULES.html.sh (Support for building libraries and executables):
18469         Add config-h.
18470         * modules/config-h: New file.
18471         * gnulib-tool (nl, sed_transform_lib_file): New vars.
18472         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
18473         the config-h module is used.
18474
18475         New configmake module, so that "make" output needn't be cluttered
18476         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
18477         * MODULES.html.sh (Support for building libraries and executables):
18478         Add configmake.
18479         * modules/configmake: New file.
18480
18481 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
18482
18483         * m4/config-h.m4: New file.
18484
18485 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
18486
18487         * config/srclist.txt: Add elisp-comp.
18488
18489 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
18490
18491         * MODULES.html.sh (Support for building libraries and executables):
18492         Add elisp-comp.
18493         * build-aux/elisp-comp: New file.
18494         * modules/elisp-comp: New file.
18495
18496 2006-08-24  Bruno Haible  <bruno@clisp.org>
18497
18498         * gnulib-tool (func_create_testdir): Use non-default values of
18499         sourcebase and m4base.
18500
18501 2006-08-24  Bruno Haible  <bruno@clisp.org>
18502
18503         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
18504         HTML structure.
18505
18506 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
18507
18508         * modules/openat (Depends-on): Add lchown.
18509
18510 2006-08-23  Bruno Haible  <bruno@clisp.org>
18511
18512         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
18513         of gl_LOCK_EARLY instead of gl_LOCK.
18514
18515 2006-08-23  Bruno Haible  <bruno@clisp.org>
18516
18517         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
18518         on OSF/1 to no.
18519         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
18520
18521 2006-08-23  Bruno Haible  <bruno@clisp.org>
18522
18523         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
18524         as unusable.
18525
18526         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
18527         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
18528         (gl_LOCK): New macro.
18529
18530 2006-08-22  Simon Josefsson  <jas@extundo.com>
18531
18532         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
18533         to md5 module.
18534
18535 2006-08-22  Simon Josefsson  <jas@extundo.com>
18536
18537         * MODULES.html.sh: Add "Support for maintaining and release
18538         projects".
18539
18540         * build-aux/gnupload: New file, from coreutils.
18541
18542 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
18543
18544         Avoid the need for AC_LIBSOURCES in m4 macros.
18545         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
18546         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
18547         * modules/check-version (EXTRA_DIST): Add check-version.h.
18548         * modules/crc (EXTRA_DIST): Add crc.h.
18549         * modules/des (EXTRA_DIST): Add des.h.
18550         * modules/gc (EXTRA_DIST): Add gc.h.
18551         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
18552         * modules/getline (EXTRA_DIST): Add getline.h.
18553         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
18554         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
18555         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
18556         * modules/md2 (EXTRA_DIST): Add md2.h.
18557         * modules/md4 (EXTRA_DIST): Add md4.h.
18558         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
18559         * modules/read-file (EXTRA_DIST): Add read-file.h.
18560         * modules/readline (EXTRA_DIST): Add readline.h.
18561         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
18562         rijndael-api-fst.h.
18563
18564 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
18565
18566         * m4/rijndael.m4 (gl_ARCFOUR):
18567         * m4/arctwo.m4 (gl_ARCTWO):
18568         * m4/check-version.m4 (gl_CHECK_VERSION):
18569         * m4/crc.m4 (gl_CRC):
18570         * m4/des.m4 (gl_DES):
18571         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
18572         * m4/gc.m4 (gl_GC):
18573         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
18574         * m4/getline.m4 (gl_FUNC_GETLINE):
18575         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
18576         * m4/hmac-md5.m4 (gl_HMAC_MD5):
18577         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
18578         * m4/md2.m4 (gl_MD2):
18579         * m4/md4.m4 (gl_MD4):
18580         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
18581         * m4/read-file.m4 (gl_FUNC_READ_FILE):
18582         * m4/readline.m4 (gl_FUNC_READLINE):
18583         * m4/rijndael.m4 (gl_RIJNDAEL):
18584         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
18585         to get the necessary .h files and whatnot.
18586
18587 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
18588
18589         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
18590         gnulib rather than the other way around.
18591         * config/srclistvars.sh (COREUTILS): Remove.
18592
18593 2006-08-22  Jim Meyering  <jim@meyering.net>
18594
18595         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
18596
18597         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
18598
18599 2006-08-22  Eric Blake  <ebb9@byu.net>
18600
18601         * modules/regexprops-generic: New file.
18602         * MODULES.html.sh (Support for building documentation): List it.
18603
18604 2006-08-22  Eric Blake  <ebb9@byu.net>
18605
18606         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
18607         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
18608         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
18609         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
18610
18611 2006-08-22  Bruno Haible  <bruno@clisp.org>
18612
18613         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
18614         and lib_LTLIBRARIES like the other lib_* variables.
18615
18616 2006-08-22  Bruno Haible  <bruno@clisp.org>
18617
18618         * build-aux/x-to-1.in: New file, from GNU gettext.
18619
18620 2006-08-22  Bruno Haible  <bruno@clisp.org>
18621
18622         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
18623         <utmpx.h> exists.
18624
18625 2006-08-22  Bruno Haible  <bruno@clisp.org>
18626
18627         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
18628         <utmpx.h> exists.
18629
18630 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
18631
18632         BeOS portability.
18633         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
18634         exist.
18635         Problem reported by Bruno Haible.
18636
18637 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
18638
18639         Avoid the need for AC_LIBSOURCES in m4 macros.
18640         * modules/acl (EXTRA_DIST): Add acl.h.
18641         * modules/argmatch (Files): Add m4/argmatch.m4.
18642         (configure.ac): Add gl_ARGMATCH.
18643         (EXTRA_DIST): Renamed from lib_SOURCES, for
18644         consistency with the other modules.  Remove argmatch.c.
18645         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
18646         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
18647         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
18648         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
18649         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
18650         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
18651         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
18652         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
18653         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
18654         * modules/closeout (EXTRA_DIST): Add closeout.h.
18655         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
18656         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
18657         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
18658         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
18659         dirname.h; remove basename.c and stripslash.c.
18660         * modules/exclude (EXTRA_DIST): Add exclude.h.
18661         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
18662         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
18663         * modules/file-type (EXTRA_DIST): Add file-type.h.
18664         * modules/filemode (EXTRA_DIST): Add filemode.h.
18665         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
18666         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
18667         * modules/fpending (EXTRA_DIST): Add __fpending.h.
18668         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
18669         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
18670         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
18671         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
18672         * modules/getdate (EXTRA_DIST): Add getdate.c.
18673         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
18674         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
18675         * modules/getpass (EXTRA_DIST): Add getpass.h.
18676         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
18677         * modules/group-member (EXTRA_DIST): Add group-member.h.
18678         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
18679         * modules/hash (EXTRA_DIST): Add hash.h.
18680         * modules/human (EXTRA_DIST): Add human.h.
18681         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
18682         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
18683         * modules/lchown (EXTRA_DIST): Add lchown.h.
18684         * modules/long-options (EXTRA_DIST): Add long-options.h.
18685         * modules/lstat (EXTRA_DIST): Add lstat.h.
18686         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
18687         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
18688         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
18689         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
18690         * modules/memxor (EXTRA_DIST): Add memxor.h.
18691         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
18692         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
18693         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
18694         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
18695         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
18696         * modules/physmem (EXTRA_DIST): Add physmem.h.
18697         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
18698         * modules/posixver (EXTRA_DIST): Add posixver.h.
18699         * modules/quote (EXTRA_DIST): Add quote.h.
18700         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
18701         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
18702         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
18703         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
18704         regex_internal.h regexec.c.
18705         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
18706         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
18707         * modules/same (EXTRA_DIST): Add same.h.
18708         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
18709         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
18710         * modules/savedir (EXTRA_DIST): Add savedir.h.
18711         * modules/sha1 (EXTRA_DIST): Add sha1.h.
18712         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
18713         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
18714         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
18715         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
18716         * modules/strdup (EXTRA_DIST): Add strdup.h.
18717         * modules/strftime (EXTRA_DIST): Add strftime.h.
18718         * modules/strndup (EXTRA_DIST): Add strndup.h.
18719         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
18720         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
18721         * modules/time_r (EXTRA_DIST): Add time_r.h.
18722         * modules/timespec (EXTRA_DIST): Add timespec.h.
18723         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
18724         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
18725         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
18726         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
18727         * modules/userspec (EXTRA_DIST): Add userspec.h.
18728         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
18729         * modules/utimens (EXTRA_DIST): Add utimens.h.
18730         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
18731         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
18732         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
18733         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
18734         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
18735         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
18736         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
18737         * modules/yesno (EXTRA_DIST): Add yesno.h.
18738
18739 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
18740
18741         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
18742
18743         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
18744         * m4/dev-ino.m4, same-inode.m4: Remove.
18745
18746         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
18747         * m4/acl.m4 (AC_FUNC_ACL):
18748         * m4/backupfile.m4 (gl_BACKUPFILE):
18749         * m4/c-strtod.m4 (gl_C99_STRTOLD):
18750         * m4/canon-host.m4 (gl_CANON_HOST):
18751         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
18752         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
18753         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
18754         * m4/cloexec.m4 (gl_CLOEXEC):
18755         * m4/close-stream.m4 (gl_CLOSE_STREAM):
18756         * m4/closeout.m4 (gl_CLOSEOUT):
18757         * m4/dirfd.m4 (gl_FUNC_DIRFD):
18758         * m4/dirname.m4 (gl_DIRNAME):
18759         * m4/exclude.m4 (gl_EXCLUDE):
18760         * m4/exitfail.m4 (gl_EXITFAIL):
18761         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
18762         * m4/file-type.m4 (gl_FILE_TYPE):
18763         * m4/filemode.m4 (gl_FILEMODE):
18764         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
18765         * m4/fpending.m4 (gl_FUNC_FPENDING):
18766         * m4/fprintftime.m4 (gl_FPRINTFTIME):
18767         * m4/fts.m4 (gl_FUNC_FTS):
18768         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
18769         * m4/getdate.m4 (gl_GETDATE):
18770         * m4/gethrxtime.m4 (gl_GETHRXTIME):
18771         * m4/getpagesize.m4 (gl_GETPAGESIZE):
18772         * m4/getpass.m4 (gl_FUNC_GETPASS):
18773         * m4/gettime.m4 (gl_GETTIME):
18774         * m4/getugroups.m4 (gl_GETUGROUPS):
18775         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
18776         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
18777         * m4/hard-locale.m4 (gl_HARD_LOCALE):
18778         * m4/hash.m4 (gl_HASH):
18779         * m4/idcache.m4 (gl_IDCACHE):
18780         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
18781         * m4/lchown.m4 (gl_FUNC_LCHOWN):
18782         * m4/long-options.m4 (gl_LONG_OPTIONS):
18783         * m4/lstat.m4 (gl_FUNC_LSTAT):
18784         * m4/md5.m4 (gl_MD5):
18785         * m4/memcasecmp.m4 (gl_MEMCASECMP):
18786         * m4/memcoll.m4 (gl_MEMCOLL):
18787         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
18788         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
18789         * m4/memxor.m4 (gl_MEMXOR):
18790         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
18791         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
18792         * m4/modechange.m4 (gl_MODECHANGE):
18793         * m4/mountlist.m4 (gl_MOUNTLIST):
18794         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
18795         * m4/openat.m4 (gl_FUNC_OPENAT):
18796         * m4/pathmax.m4 (gl_PATHMAX):
18797         * m4/physmem.m4 (gl_PHYSMEM):
18798         * m4/posixtm.m4 (gl_POSIXTM):
18799         * m4/posixver.m4 (gl_POSIXVER):
18800         * m4/quote.m4 (gl_QUOTE):
18801         * m4/quotearg.m4 (gl_QUOTEARG):
18802         * m4/readtokens.m4 (gl_READTOKENS):
18803         * m4/readutmp.m4 (gl_READUTMP):
18804         * m4/regex.m4 (gl_REGEX):
18805         * m4/safe-read.m4 (gl_SAFE_READ):
18806         * m4/safe-write.m4 (gl_SAFE_WRITE):
18807         * m4/same.m4 (gl_SAME):
18808         * m4/save-cwd.m4 (gl_SAVE_CWD):
18809         * m4/savedir.m4 (gl_SAVEDIR):
18810         * m4/settime.m4 (gl_SETTIME):
18811         * m4/sha1.m4 (gl_SHA1):
18812         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
18813         * m4/stat-macros.m4 (gl_STAT_MACROS):
18814         * m4/stat-time.m4 (gl_STAT_TIME):
18815         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
18816         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
18817         * m4/strdup.m4 (gl_FUNC_STRDUP):
18818         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
18819         * m4/strndup.m4 (gl_FUNC_STRNDUP):
18820         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
18821         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
18822         * m4/time_r.m4 (gl_TIME_R):
18823         * m4/timespec.m4 (gl_TIMESPEC):
18824         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
18825         * m4/unlinkdir.m4 (gl_UNLINKDIR):
18826         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
18827         * m4/userspec.m4 (gl_USERSPEC):
18828         * m4/utimecmp.m4 (gl_UTIMECMP):
18829         * m4/utimens.m4 (gl_UTIMENS):
18830         * m4/xalloc.m4 (gl_XALLOC):
18831         * m4/xgetcwd.m4 (gl_XGETCWD):
18832         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
18833         * m4/xreadlink.m4 (gl_XREADLINK):
18834         * m4/xstrtod.m4 (gl_XSTRTOD):
18835         * m4/yesno.m4 (gl_YESNO):
18836         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
18837         to get the necessary .h files and whatnot.
18838
18839 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
18840             Bruno Haible  <bruno@clisp.org>
18841
18842         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
18843         /bin/sh understanding of '!' conditional negation.
18844
18845 2006-08-21  Jim Meyering  <jim@meyering.net>
18846
18847         * modules/openat (Depends-on): Really alphabetize.
18848
18849         * modules/acl (Depends-on): Add error and quote.
18850
18851         * check-module (find_included_lib_files): Add at-func.c to the
18852         ok-to-include-more-than-once white list.
18853
18854         * modules/openat (Depends-on): Add lstat.  Alphabetize.
18855
18856 2006-08-21  Bruno Haible  <bruno@clisp.org>
18857
18858         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
18859         Emit a pkgdata_DATA variable only if some snippets add contents to it.
18860         Reported by Martin Lambers <marlam@marlam.de>.
18861
18862 2006-08-21  Bruno Haible  <bruno@clisp.org>
18863
18864         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
18865         specify an installation location, don't emit a noinst_LIBRARIES or
18866         noinst_LTLIBRARIES assignment.
18867
18868 2006-08-21  Bruno Haible  <bruno@clisp.org>
18869
18870         BeOS portability.
18871         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
18872         BeOS has mbrtowc() but no <wctype.h>.
18873
18874 2006-08-21  Bruno Haible  <bruno@clisp.org>
18875
18876         BeOS portability.
18877         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
18878         exist.
18879
18880 2006-08-21  Bruno Haible  <bruno@clisp.org>
18881
18882         BeOS portability.
18883         * lib/mbchar.h: Include <wctype.h> only if it exists.
18884
18885 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
18886
18887         Remove files that are no longer needed by their respective modules.
18888         * m4/obstack.m4: Remove.
18889         * m4/strerror_r.m4: Remove.
18890         * m4/uint32_t.m4: Remove.
18891         * m4/uintptr_t.m4: Remove.
18892         * m4/ullong_max.m4: Remove.
18893         * m4/xstrtoimax.m4: Remove.
18894         * m4/xstrtoumax.m4: Remove.
18895
18896         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
18897         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
18898         dependencies now capture this.
18899
18900         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
18901         Do not use AC_LIBSOURCES, since gnulib modules now do this.
18902         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
18903         * m4/human.m4 (gl_HUMAN): Likewise.
18904         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
18905         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
18906
18907         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
18908
18909         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
18910         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
18911         stdint.
18912         * m4/human.m4 (gl_HUMAN): Likewise.
18913         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
18914         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
18915         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
18916         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
18917         * m4/xstrtol (gl_XSTRTOL): Likewise.
18918
18919         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
18920         AC_TYPE_LONG_LONG_INT.
18921         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
18922         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
18923         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
18924         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
18925
18926         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
18927         on stdbool.
18928
18929         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
18930         (gl_PREREQ_XSTRTOUL): Remove.
18931
18932         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
18933
18934         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
18935         mode.
18936
18937 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
18938
18939         Add and change modules to make it easier for coreutils to use
18940         gnulib-tool.
18941         * modules/backupfile (Files): Remove m4/d-ino.m4.
18942         (Depends-on): Add d-ino.
18943         * modules/cycle-check (Depends-on): Add stdint.
18944         (lib_SOURCES): Add cycle-check.h.
18945         * modules/d-ino: New module.
18946         * modules/d-type: New module.
18947         * modules/error (Files): Remove m4/strerror_r.m4.
18948         * modules/filemode (Files): Add m4/st_dm_mode.m4.
18949         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
18950         m4/inttypes_h.m4, m4/uintmax_t.m4.
18951         (Depends-on): Add stdint.
18952         (lib_SOURCES): Add fsusage.h.
18953         * modules/getcwd (Files): Remove d-ino.m4.
18954         (Depends-on): Add d-ino.
18955         * modules/getndelim2 (Depends-on): Add stdint.
18956         * modules/glob (Files): Remove m4/d-type.m4.
18957         (Depends-on): Add d-type.
18958         * modules/host-os: New module.
18959         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
18960         m4/inttypes_h.m4, m4/uintmax_t.m4.
18961         * Depends-on: Add stdint.
18962         (lib_SOURCES): Add human.h.
18963         * modules/inttostr (Files): Remove m4/intmax_t.m4,
18964         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
18965         m4/uintmax_t.m4, m4/ulonglong.m4.
18966         (Depends-on): Add stdint.
18967         (EXTRA_DIST): Add inttostr.h.
18968         * modules/lchmod: New module.
18969         * modules/link-follow: New module.
18970         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
18971         (Depends-on): Add lchmod.
18972         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
18973         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
18974         (Depends-on): Add stdint.
18975         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
18976         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
18977         (Depends-on): Add stdint.
18978         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
18979         * modules/perl: New module.
18980         * modules/regex (Depends-on): Add stdint.
18981         * modules/rmdir-errno: New module.
18982         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
18983         m4/intmax_t.m4.
18984         (Depends-on): Add stdint.
18985         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
18986         m4/uintmax_t.m4.
18987         (Depends-on): Add stdint.
18988         * modules/unlink-busy: New module.
18989         * modules/utimecmp (Depends-on): Add stdint.
18990         * modules/uptime: New module.
18991         * modules/winsz-ioctl: New module.
18992         * modules/winsz-termios: New module.
18993         * modules/xnanosleep (Depends-on): Add nanosleep.
18994         * modules/ullong_max: Remove.
18995         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
18996         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
18997         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
18998         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
18999         (Depends-on): Add inttypes.
19000         (lib_SOURCES): Add xstrtol.h.
19001         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
19002         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
19003         * MODULES.html.sh: Move 'assert' into the assert section.
19004         Move 'dummy' into the linking section.
19005         Remove ullong_max.
19006         Add section for compatibility checks for POSIX:2001 functions,
19007         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
19008         winsz-ioctl, and winsz-termios into it.
19009         Add lchmod.
19010         Add top-level Misc section and put host-os, perl, and uptime
19011         into it.
19012
19013 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
19014
19015         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
19016         now assume the stdint module.  Do not include inttypes.h.
19017         * lib/fsusage.h: Likewise.
19018         * lib/getndelim2.c: Likewise.
19019         * lib/human.h: Likewise.
19020         * lib/inttostr.h: Likewise.
19021         * lib/obstack.c: Likewise.
19022         * lib/regex_internal.h: Likewise.
19023         * lib/tempname.c: Likewise.
19024         * lib/utimecmp.c: Likewise.
19025         * lib/xstrtol.h: Likewise.
19026
19027         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
19028
19029         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
19030         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
19031         * lib/xtime.h: Likewise.
19032
19033 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
19034
19035         * modules/openat (Files): Add lib/fchmodat.c.
19036         Fixes problem reported by Jay Youngman.
19037
19038 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
19039
19040         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
19041         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
19042
19043 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
19044             Bruno Haible  <bruno@clisp.org>
19045
19046         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
19047         and is a script that invokes bison. Tighten the code. Add comments.
19048
19049 2006-08-18  Jim Meyering  <jim@meyering.net>
19050
19051         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
19052         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
19053         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
19054         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
19055
19056 2006-08-18  Bruno Haible  <bruno@clisp.org>
19057
19058         * modules/bison-i18n: New file.
19059         * MODULES.html.sh (Internationalization functions): Add it.
19060
19061 2006-08-18  Bruno Haible  <bruno@clisp.org>
19062
19063         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
19064         sys/statvfs.h. When getmntinfo was found, check its declaration and
19065         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
19066
19067 2006-08-18  Bruno Haible  <bruno@clisp.org>
19068
19069         * m4/bison-i18n.m4: New file, from bison.
19070
19071 2006-08-18  Bruno Haible  <bruno@clisp.org>
19072
19073         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
19074         (ME_DUMMY): Treat "kernfs" as a dummy.
19075         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
19076
19077 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
19078
19079         Update from coreutils.
19080
19081         2006-08-15  Jim Meyering  <jim@meyering.net>
19082
19083         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
19084
19085         2006-01-17  Jim Meyering  <jim@meyering.net>
19086
19087         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
19088
19089         2006-01-11  Jim Meyering  <jim@meyering.net>
19090
19091         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
19092         Check for the lchmod function.
19093
19094 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
19095
19096         Update from coreutils.
19097
19098         * lib/__fpending.h: Add copyright notice.
19099         * lib/fprintftime.h: Likewise.
19100         * lib/savedir.c: Use (C) in copyright notice.
19101         * lib/savedir.h: Likewise.
19102
19103         2006-08-15  Jim Meyering  <jim@meyering.net>
19104
19105         * lib/at-func.c: New file, with the logic of all emulated at-functions.
19106         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
19107         in support of the EXPECTED_ERRNO macro.
19108         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
19109         definitions.  Instead, define the appropriate symbols and include
19110         "at-func.c".
19111         * lib/mkdirat.c (mkdirat): Likewise.
19112         * lib/fchmodat.c (fchmodat): Likewise.
19113         (ENOSYS): Remove definition.
19114         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
19115         it.  Don't include "unistd--.h" -- it wasn't ever used.
19116
19117         2006-01-17  Jim Meyering  <jim@meyering.net>
19118
19119         Rewrite fts.c not to change the current working directory,
19120         by using openat, fstatat, fdopendir, etc..
19121
19122         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
19123         (HAVE_OPENAT_SUPPORT): Define.
19124         [_LIBC] (fchdir): Don't undef or define; no longer used.
19125         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
19126         Now, this `function' always succeeds, and consumes its file descriptor
19127         parameter -- so callers must not close such FDs.  Update callers.
19128         (diropen_fd, opendirat, cwd_advance_fd): New functions.
19129         (diropen): Add parameter, SP.  Adjust all callers.
19130         Implement using diropen_fd, rather than open.
19131         (fts_open): Initialize new member, fts_cwd_fd.
19132         Remove fts_rft-setting code.
19133         (fts_close): Close fts_cwd_fd, if necessary.
19134         (__opendir2): Define in terms of opendir or opendirat,
19135         depending on whether the FST_NOCHDIR flag is set.
19136         (fts_build): Since fts_safe_changedir consumes its FD, and since
19137         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
19138         and close the dup'd file descriptor upon failure.
19139         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
19140         (fts_safe_changedir): Tweak semantics to reflect that this function
19141         now calls cwd_advance_fd and hence consumes its FD argument.
19142         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
19143         [struct FTS] (fts_rft): Remove now-unused member.
19144         [struct FTS] (fts_cycle.state): Improve comment.
19145
19146         * lib/openat.c (openat_needs_fchdir): New function.
19147         * lib/openat.h (openat_needs_fchdir): Declare it.
19148
19149 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
19150
19151         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
19152         Problem and fix reported by Pádraig Brady in
19153         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
19154
19155 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
19156
19157         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
19158
19159 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
19160
19161         * lib/memcoll.c (memcoll): Optimize for the common case where the
19162         arguments are bytewise equal.
19163
19164 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
19165
19166         * doc/regexprops-generic.texi: Add a copyright notice.
19167
19168 2006-08-15  Bruno Haible  <bruno@clisp.org>
19169
19170         * modules/tmpdir (License): Change to LGPL.
19171
19172 2006-08-15  Bruno Haible  <bruno@clisp.org>
19173
19174         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
19175         module.
19176
19177 2006-08-14  Simon Josefsson  <jas@extundo.com>
19178
19179         * config/srclist.txt: Add gnupload.
19180
19181 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
19182
19183         Change copyright notice from LGPL 2 to GPL 2, since that's the
19184         standard form used in the gnulib repository.
19185         * tests/test-lock.c: Likewise.
19186         * tests/test-stdint.c: Likewise.
19187         * tests/test-tls.c: Likewise.
19188
19189         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
19190         prelude-manager.  User shorter URLs for GNU projects, without '?'.
19191         Add copyright notice.
19192
19193         * check-module: Add copyright notice.  Output a copyright
19194         notice if "--version" is specified.
19195         * modules/COPYING: New file.
19196         * tests/test-getaddrinfo.c: Add copyright notice.
19197         * tests/test-verify.c: Likewise.
19198
19199 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
19200
19201         Change copyright notice from LGPL 2 to GPL 2, since that's the
19202         standard form used in the gnulib repository.
19203         * lib/lock.c: LGPL -> GPL.
19204         * lib/lock.h: Likewise.
19205         * lib/strnlen1.c: Likewise.
19206         * lib/strnlen1.h: Likewise.
19207         * lib/tls.c: Likewise.
19208         * lib/tls.h: Likewise.
19209         * lib/tmpdir.c: Likewise.
19210
19211         * lib/TODO: Remove; this belongs only in coreutils.
19212
19213 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
19214
19215         Add copyright notices to long-enough files that lack them, since
19216         otherwise the files aren't clearly free.  Use the same notice that
19217         getdate.texi already uses.
19218         * doc/alloca-opt.texi: Add copyright notice.
19219         * doc/alloca.texi: Likewise.
19220         * doc/ctime.texi: Likewise.
19221         * doc/functions.texi: Likewise.
19222         * doc/gcd.texi: Likewise.
19223         * doc/gnulib-tool.texi: Likewise.
19224         * doc/inet_ntoa.texi: Likewise.
19225         * doc/visibility.texi: Likewise.
19226
19227         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
19228         * doc/quote.texi: Add copyright notice.
19229
19230         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
19231         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
19232         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
19233         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
19234         is now obsolete, and give a pointer to the Sun list.
19235         Add copyright notice.
19236
19237 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
19238
19239         * config/srclistvars.sh: Add copyright notice.
19240
19241 2006-08-14  Eric Blake  <ebb9@byu.net>
19242
19243         Import the following change from libc:
19244
19245         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
19246
19247         Upstream bug 2997.
19248         * lib/misc/error.c: Add space between program name and message if file
19249         name is missing.
19250
19251 2006-08-12  Karl Berry  <karl@gnu.org>
19252
19253         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
19254         remove, these originate in gnulib now.
19255
19256 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19257
19258         * doc/Makefile (standards.info standards.html standards.dvi):
19259         Also depend on make-stds.texi.
19260
19261 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
19262
19263         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
19264         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
19265
19266         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
19267         in wchar_t.  Problem reported by Eric Blake.
19268
19269         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
19270         LEN is smaller than SIZE.  Suggested by Bruno Haible.
19271         Also, help the compiler to keep LEN in a register.
19272
19273 2006-08-11  Eric Blake  <ebb9@byu.net>
19274
19275         * users.txt: Sort.  Add tar.
19276
19277 2006-08-11  Bruno Haible  <bruno@clisp.org>
19278
19279         * users.txt: New file.
19280
19281 2006-08-11  Bruno Haible  <bruno@clisp.org>
19282
19283         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
19284         before <wchar.h>. Needed for OSF/1 and BSD/OS.
19285
19286 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
19287
19288         * modules/snprintf (Depends-on): Remove minmax.
19289         (Maintainer): Add self and Bruno.
19290
19291 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
19292
19293         * lib/.cppi-disable: Add snprintf.h, socket_.h.
19294         * lib/snprintf.c: Include <errno.h> and <limits.h>.
19295         (EOVERFLOW): Define if the system does not.
19296         Do not include "minmax.h"; it wasn't used.
19297         (snprintf): Don't assume size_t promotes to an unsigned type.
19298         Fix bug when generated string was too long for the buffer: the
19299         buffer's contents are supposed to be the initial prefix of the
19300         output.  Don't assume vasnprintf returns EOVERFLOW if the size
19301         exceeds INT_MAX; do the check ourselves.
19302
19303         Import the following changes from libc:
19304
19305         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
19306
19307         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
19308         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
19309         set wc to the byte which couldn't be converted.
19310         (re_string_reconstruct): Don't clear valid_raw_len before calling
19311         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
19312         tip_context using re_string_context_at.
19313
19314         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
19315
19316         * lib/posix/regex.h: g++ still cannot handled [restrict].
19317
19318         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
19319
19320         * lib/posix/regex.h: Remove special handling for VMS.
19321
19322 2006-08-10  Jim Meyering  <jim@meyering.net>
19323
19324         * modules/same-inode: New module.
19325         * modules/dev-ino: New module.
19326         * modules/cycle-check: Depend on these modules, rather than simply
19327         including their .h files.
19328         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
19329         required via m4/cycle-check.m4.
19330         * modules/same: Depend on new same-inode module, rather than
19331         including same-inode.h.
19332         * modules/chdir-safer: New file.
19333
19334         * modules/chown (Depends-on): Add stat-macros.
19335
19336 2006-08-10  Jim Meyering  <jim@meyering.net>
19337
19338         * m4/cycle-check.m4: New file.
19339         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
19340         * m4/dev-ino.m4, m4/same-inode.m4: New files.
19341
19342 2006-08-10  Eric Blake  <ebb9@byu.net>
19343
19344         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
19345         in from original proposal.
19346
19347 2006-08-10  Eric Blake  <ebb9@byu.net>
19348         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19349
19350         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
19351         namespace.
19352
19353 2006-08-10  Bruno Haible  <bruno@clisp.org>
19354
19355         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
19356         as well.
19357
19358 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
19359
19360         Sync from coreutils.
19361
19362         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
19363
19364         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
19365         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
19366
19367 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
19368
19369         * modules/restrict: Remove; no longer needed now that we assume
19370         Autoconf 2.59 or later.
19371         * MODULES.html.sh: Remove 'restrict'.
19372         * modules/argp (Depends-on): Remove 'restrict'.
19373         * modules/base64 (Depends-on): Likewise.
19374         * modules/gc (Depends-on): Likewise.
19375         * modules/getaddrinfo (Depends-on): Likewise.
19376         * modules/glob (Depends-on): Likewise.
19377         * modules/inet_ntop (Depends-on): Likewise.
19378         * modules/inet_pton (Depends-on): Likewise.
19379         * modules/memxor (Depends-on): Likewise.
19380         * modules/regex (Depends-on): Likewise.
19381         * modules/strtok_r (Depends-on): Likewise.
19382         * modules/time_r (Depends-on): Likewise.
19383
19384 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
19385
19386         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
19387         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
19388         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
19389         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
19390         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
19391         * m4/memxor.m4 (gl_MEMXOR): Likewise.
19392         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
19393         gl_C_RESTRICT replaced by AC_C_RESTRICT.
19394
19395         Merge from coreutils.
19396         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
19397         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
19398         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
19399         * m4/time_r.m4 (gl_TIME_R): Likewise.
19400
19401 2006-08-09  Karl Berry  <karl@gnu.org>
19402
19403         * config/srclist.txt: no more gettext-tools, per Bruno.
19404
19405 2006-08-08  Eric Blake  <ebb9@byu.net>
19406
19407         * modules/verror: New module.
19408         * MODULES.html.sh: Document it.
19409
19410 2006-08-08  Eric Blake  <ebb9@byu.net>
19411
19412         * lib/verror.h, lib/verror.c: New files.
19413
19414 2006-08-08  Eric Blake  <ebb9@byu.net>
19415
19416         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
19417         verror_at_line output complies with GNU Coding Standards even when
19418         file is NULL.
19419
19420 2006-08-07  Bruno Haible  <bruno@clisp.org>
19421
19422         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
19423         versions of AIX.
19424         Reported by Ralf Wildenhues.
19425
19426 2006-08-07  Bruno Haible  <bruno@clisp.org>
19427
19428         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
19429         in an AC_DEFUN. Needed so that the autoconf snippets can use
19430         AC_REQUIRE.
19431
19432 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19433
19434         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
19435         Initialize pkgdata_DATA.
19436         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
19437         overriding it.
19438
19439 2006-08-06  Eric Blake  <ebb9@byu.net>
19440
19441         * lib/error.h: Fold in some upstream changes from glibc.
19442         * lib/error.c: Likewise.
19443
19444 2006-08-04  Bruno Haible  <bruno@clisp.org>
19445
19446         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
19447         Make the mostlyclean-local rule depend on mostlyclean-generic.
19448         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
19449
19450 2006-07-31  Bruno Haible  <bruno@clisp.org>
19451
19452         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
19453         <stdlib.h>, <string.h>.
19454
19455 2006-07-30  Bruno Haible  <bruno@clisp.org>
19456
19457         * modules/readlink (License): Change to LGPL.
19458
19459 2006-07-30  Bruno Haible  <bruno@clisp.org>
19460
19461         * modules/javaversion (Makefile.am): Distribute javaversion.java and
19462         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
19463         set PKGDATADIR to point to it.
19464
19465 2006-07-30  Bruno Haible  <bruno@clisp.org>
19466
19467         * modules/csharpexec (configure.ac): Comment out macro invocation.
19468         * modules/javaexec (configure.ac): Likewise.
19469         * modules/javacomp-script (configure.ac): Likewise.
19470
19471         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
19472
19473 2006-07-30  Bruno Haible  <bruno@clisp.org>
19474
19475         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
19476         linked-list.
19477
19478 2006-07-30  Bruno Haible  <bruno@clisp.org>
19479
19480         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
19481
19482 2006-07-30  Bruno Haible  <bruno@clisp.org>
19483
19484         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
19485         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
19486         get removed.
19487
19488 2006-07-29  Bruno Haible  <bruno@clisp.org>
19489
19490         Make it possible for gnulib-tool to work with locally modified or
19491         augmented gnulib repositories.
19492         * gnulib-tool (func_usage): Document --local-dir option.
19493         (local_gnulib_dir): New variable.
19494         Handle --local-dir option.
19495         (func_lookup_file): New function.
19496         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
19497         (func_get_description, func_get_filelist, func_get_description,
19498         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
19499         func_get_automake_snippet, func_get_include_directive,
19500         func_get_license, func_get_maintainer): Use func_lookup_file.
19501         (func_import, func_create_testdir): Use func_lookup_file.
19502
19503 2006-07-29  Bruno Haible  <bruno@clisp.org>
19504
19505         * modules/setenv (Depends-on): Add unistd.
19506
19507 2006-07-29  Bruno Haible  <bruno@clisp.org>
19508
19509         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
19510
19511 2006-07-29  Bruno Haible  <bruno@clisp.org>
19512
19513         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
19514
19515 2006-07-29  Bruno Haible  <bruno@clisp.org>
19516
19517         * gnulib-tool (import, update): If there is no Makefile.am, look at
19518         aclocal.m4, instead of bailing out.
19519
19520 2006-07-29  Bruno Haible  <bruno@clisp.org>
19521
19522         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
19523         Categorize the options by when they are useful.
19524
19525 2006-07-29  Bruno Haible  <bruno@clisp.org>
19526
19527         * gnulib-tool (func_usage): Document option --no-libtool.
19528         Handle option --no-libtool.
19529         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
19530         for changed semantics of $libtool variable.
19531         (func_import): Likewise. If libtool is not used, show this through
19532         an option --no-libtool.
19533         (func_create_testdir): Update.
19534
19535 2006-07-29  Bruno Haible  <bruno@clisp.org>
19536
19537         * gnulib-tool (func_import): Extend error message about missing
19538         --doc-base.
19539
19540 2006-07-29  Bruno Haible  <bruno@clisp.org>
19541
19542         * gnulib-tool (func_import): Don't create the $docbase directory if
19543         there is no file to store there.
19544
19545 2006-07-29  Bruno Haible  <bruno@clisp.org>
19546
19547         * gnulib-tool (autoconf_minversion): If a --dir option is given and
19548         relevant, look for configure.ac there, not in the current directory.
19549         Also use a simple search for AC_PREREQ, not "autoconf --trace".
19550
19551 2006-07-29  Bruno Haible  <bruno@clisp.org>
19552
19553         * gnulib-tool (SORT): New variable.
19554         (func_usage): Undocument --assume-autoconf option.
19555         Remove --assume-autoconf option handling.
19556         (autoconf_minversion): Determine from the contents of configure.ac.
19557         (func_import): Remove autoconf_minversion handling.
19558         Suggested by Eric Blake.
19559
19560 2006-07-29  Bruno Haible  <bruno@clisp.org>
19561
19562         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
19563
19564 2006-07-29  Bruno Haible  <bruno@clisp.org>
19565
19566         * config/srclist.txt (*setenv.[ch]): Remove rules.
19567
19568 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19569
19570         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
19571
19572 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19573
19574         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
19575         arpa/inet.h.
19576
19577 2006-07-28  Simon Josefsson  <jas@extundo.com>
19578
19579         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
19580         * modules/inet_pton (Depends-on): Likewise.
19581
19582 2006-07-28  Simon Josefsson  <jas@extundo.com>
19583
19584         * m4/netinet_in_h.m4: New file.
19585
19586 2006-07-28  Simon Josefsson  <jas@extundo.com>
19587
19588         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
19589         #include's.
19590
19591 2006-07-28  Simon Josefsson  <jas@extundo.com>
19592
19593         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
19594         #include's.
19595
19596 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
19597
19598         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
19599         setgid on directories only if they set these bits.
19600         * lib/modechange.h: Remove obsolete comment about masks.
19601
19602 2006-07-28  Eric Blake  <ebb9@byu.net>
19603
19604         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
19605         macro expansion.
19606
19607 2006-07-28  Bruno Haible  <bruno@clisp.org>
19608
19609         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
19610
19611 2006-07-28  Bruno Haible  <bruno@clisp.org>
19612
19613         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
19614
19615 2006-07-28  Bruno Haible  <bruno@clisp.org>
19616
19617         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
19618         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
19619         Define fallbacks.
19620         Avoids link error on FreeBSD 4.x.
19621         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
19622
19623         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
19624         encoding.
19625         * lib/mbswidth.c (iswcntrl): Likewise.
19626
19627 2006-07-27  Bruno Haible  <bruno@clisp.org>
19628
19629         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
19630         test.
19631
19632 2006-07-27  Bruno Haible  <bruno@clisp.org>
19633
19634         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
19635         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
19636         defined.
19637
19638 2006-07-26  Eric Blake  <ebb9@byu.net>
19639
19640         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
19641
19642 2006-07-26  Eric Blake  <ebb9@byu.net>
19643
19644         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
19645         like mingw that lack mkstemp.
19646         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
19647         avoid compilation warning on mingw.
19648
19649 2006-07-26  Bruno Haible  <bruno@clisp.org>
19650
19651         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
19652         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
19653         INT_FAST*_MIN, INTPTR_MIN.
19654
19655 2006-07-25  Bruno Haible  <bruno@clisp.org>
19656
19657         * modules/version-etc (Depends-on): Add stdarg.
19658
19659 2006-07-25  Bruno Haible  <bruno@clisp.org>
19660
19661         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
19662         complex commands.
19663
19664 2006-07-25  Bruno Haible  <bruno@clisp.org>
19665
19666         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
19667         defined in <stdarg.h> or config.h.
19668
19669 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
19670
19671         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
19672         (gl_STDIO_SAFER): Remove.
19673
19674 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
19675
19676         * MODULES.html.sh (File stream based Input/Output):
19677         Add fopen-safer, tmpfile-safer; remove stdio-safer.
19678         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
19679         * modules/fopen-safer, modules/tmpfile-safer: New files.
19680         * modules/stdio-safer: Remove.
19681
19682 2006-07-24  Bruno Haible  <bruno@clisp.org>
19683
19684         * modules/tmpdir: New file.
19685         * MODULES.html.sh (File system functions): Add it.
19686
19687 2006-07-24  Bruno Haible  <bruno@clisp.org>
19688
19689         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
19690         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
19691
19692 2006-07-24  Bruno Haible  <bruno@clisp.org>
19693
19694         * modules/clean-temp: New file.
19695
19696 2006-07-24  Bruno Haible  <bruno@clisp.org>
19697
19698         * m4/tmpdir.m4: New file, from GNU gettext.
19699
19700 2006-07-24  Bruno Haible  <bruno@clisp.org>
19701
19702         * lib/tmpdir.h: New file, from GNU gettext.
19703         * lib/tmpdir.c: New file, from GNU gettext.
19704
19705 2006-07-24  Bruno Haible  <bruno@clisp.org>
19706
19707         * lib/clean-temp.h: New file, from GNU gettext.
19708         * lib/clean-temp.c: New file, from GNU gettext.
19709
19710 2006-07-23  Eric Blake  <ebb9@byu.net>
19711
19712         * modules/stdio-safer (Files): Add tmpfile-safer.c.
19713         (Depends-on): Add binary-io.
19714
19715 2006-07-23  Eric Blake  <ebb9@byu.net>
19716
19717         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
19718
19719 2006-07-23  Eric Blake  <ebb9@byu.net>
19720
19721         * lib/tmpfile-safer.c: New file.
19722         * lib/stdio-safer.h (fopen_safer): Add prototype.
19723         * lib/stdio--.h (tmpfile): Make safer.
19724
19725 2006-07-23  Bruno Haible  <bruno@clisp.org>
19726
19727         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
19728         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
19729         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
19730         gl_linked_remove_at): Use it.
19731
19732 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19733         and Simon Josefsson <jas@extundo.com>
19734
19735         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
19736
19737         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
19738
19739 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
19740
19741         * modules/close-stream: New file.
19742         * modules/closeout (Description): Make it clear that it exits
19743         with a diagnostic on error.
19744         (Depends-on): Add close-stream.  Remove fpending, stdbool.
19745         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
19746
19747 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
19748
19749         * m4/close-stream.m4: New file.
19750
19751 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
19752
19753         * lib/close-stream.c, lib/close-stream.h: New files.
19754
19755 2006-07-22  Bruno Haible  <bruno@clisp.org>
19756
19757         Merge from GNU gettext 0.15.
19758
19759         2006-05-01  Bruno Haible  <bruno@clisp.org>
19760
19761                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
19762
19763         2006-07-22  Bruno Haible  <bruno@clisp.org>
19764
19765                 * modules/javaversion: New file.
19766                 * MODULES.html.sh (Java): Add javaversion.
19767
19768         2006-03-12  Bruno Haible  <bruno@clisp.org>
19769
19770                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
19771
19772         2005-12-04  Bruno Haible  <bruno@clisp.org>
19773
19774                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
19775                 (untested).
19776
19777         2006-06-21  Bruno Haible  <bruno@clisp.org>
19778
19779                 Avoid warnings from recent versions of mcs.
19780                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
19781                 -o, -L, -r any more. Use options documented since mcs-1.0
19782                 instead. Similarly for -g.
19783
19784         2005-12-04  Bruno Haible  <bruno@clisp.org>
19785
19786                 * build-aux/csharpcomp.sh.in: Suffix for resources is
19787                 .resources, not .resource.
19788
19789         2005-07-09  Bruno Haible  <bruno@clisp.org>
19790
19791                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
19792                 add a .dll suffix.
19793                 Reported by Mark Junker <mjscod@gmx.de>.
19794
19795         2006-07-22  Bruno Haible  <bruno@clisp.org>
19796
19797                 * modules/gettext: Upgrade to gettext-0.15.
19798                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
19799                 m4/visibility.m4.
19800                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
19801
19802 2006-07-22  Bruno Haible  <bruno@clisp.org>
19803
19804         Merge from GNU gettext 0.15.
19805
19806         2006-03-25  Bruno Haible  <bruno@clisp.org>
19807
19808                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
19809
19810         2006-07-21  Bruno Haible  <bruno@clisp.org>
19811
19812                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
19813                 "1.1".
19814
19815         2006-05-09  Bruno Haible  <bruno@clisp.org>
19816
19817                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
19818                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
19819                 for the conftestver execution.
19820
19821         2006-05-01  Bruno Haible  <bruno@clisp.org>
19822
19823                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
19824                 optional target-version argument. Verify that the compiler
19825                 groks source of the specified source-version, or add -source
19826                 option as necessary. Verify that the compiler produces
19827                 bytecode in the specified target-version, or add -target and
19828                 -source options as necessary. Make the result of the test
19829                 available as variable CONF_JAVAC. Also log error output in
19830                 config.log.
19831
19832         2006-03-11  Bruno Haible  <bruno@clisp.org>
19833
19834                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
19835
19836         2006-05-09  Bruno Haible  <bruno@clisp.org>
19837
19838                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
19839                 CLASSPATH_SEPARATOR to a semicolon.
19840
19841         2006-03-12  Bruno Haible  <bruno@clisp.org>
19842
19843                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
19844                 available as variable CONF_JAVA, for subsequent autoconf
19845                 tests. Also log error output in config.log.
19846
19847         2006-07-19  Bruno Haible  <bruno@clisp.org>
19848
19849                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
19850                 that getline works on glibc2 systems. Needed to avoid trouble
19851                 in relocatable.c.
19852                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
19853
19854         2005-12-04  Bruno Haible  <bruno@clisp.org>
19855
19856                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
19857                 launcher (untested).
19858
19859         2005-12-04  Bruno Haible  <bruno@clisp.org>
19860
19861                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
19862
19863         2006-07-22  Bruno Haible  <bruno@clisp.org>
19864
19865                 * gettext.m4: Update from GNU gettext-0.15.
19866                 * nls.m4: Likewise.
19867                 * po.m4: Likewise.
19868                 * inttypes-pri.m4: Likewise.
19869                 * inttypes-h.m4: Renamed from inttypes.m4.
19870                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
19871
19872 2006-07-22  Bruno Haible  <bruno@clisp.org>
19873
19874         Merge from GNU gettext 0.15.
19875
19876         2005-07-05  Bruno Haible  <bruno@clisp.org>
19877
19878                 * printf-args.c (printf_fetchargs): Work around broken
19879                 definition of wint_t on mingw.
19880
19881         2005-02-12  Bruno Haible  <bruno@clisp.org>
19882
19883                 * xallocsa.h: Add extern "C" for C++.
19884
19885         2006-05-17  Bruno Haible  <bruno@clisp.org>
19886
19887                 Cygwin portability.
19888                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
19889
19890         2006-04-30  Bruno Haible  <bruno@clisp.org>
19891
19892                 * progreloc.c: Include <mach-o/dyld.h> if available.
19893                 (find_executable): Use _NSGetExecutablePath when possible.
19894
19895         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
19896
19897                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
19898                 function.
19899
19900         2005-12-29  Bruno Haible  <bruno@clisp.org>
19901
19902                 * progreloc.c (set_program_name_and_installdir): Fix
19903                 compilation error.
19904
19905         2005-12-04  Bruno Haible  <bruno@clisp.org>
19906
19907                 Cygwin portability.
19908                 * progreloc.c: Include <windows.h> also on Cygwin.
19909                 (find_executable): Add support for Cygwin.
19910                 (set_program_name_and_installdir): Handle also platforms with
19911                 nonempty EXEEXT.
19912
19913         2006-07-11  Bruno Haible  <bruno@clisp.org>
19914
19915                 * javacomp.c: Fix a comment.
19916                 Reported by Jim Meyering.
19917
19918         2006-04-30  Bruno Haible  <bruno@clisp.org>
19919
19920                 * javacomp.h (compile_java_class): Add source_version,
19921                 target_version arguments.
19922                 * javacomp.c: Rewritten to choose only a compiler that
19923                 respects the specified source_version and target_version.
19924
19925         2006-06-27  Bruno Haible  <bruno@clisp.org>
19926
19927                 Assume correct S_ISDIR macro.
19928                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
19929
19930         2006-07-22  Bruno Haible  <bruno@clisp.org>
19931
19932                 * javaversion.h: New file, from GNU gettext.
19933                 * javaversion.c: New file, from GNU gettext.
19934                 * javaversion.java: New file, from GNU gettext.
19935                 * javaversion.class: New file, from GNU gettext.
19936
19937         2006-05-17  Bruno Haible  <bruno@clisp.org>
19938
19939                 Cygwin portability.
19940                 * javaexec.c (execute_java_class): Test for jview program
19941                 also on Cygwin.
19942
19943         2006-04-09  Bruno Haible  <bruno@clisp.org>
19944
19945                 * fatal-signal.c: Don't include string.h.
19946                 (at_fatal_signal): Use a copying loop instead of memcpy.
19947
19948         2005-12-04  Bruno Haible  <bruno@clisp.org>
19949
19950                 * csharpexec.c: Add support for 'clix' launcher (untested).
19951                 (execute_csharp_using_sscli): New function.
19952                 (execute_csharp_program): Call it.
19953
19954         2006-06-21  Bruno Haible  <bruno@clisp.org>
19955
19956                 Avoid warnings from recent versions of mcs.
19957                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
19958                 -o, -L, -r any more. Use options documented since mcs-1.0
19959                 instead. Similarly for -g.
19960
19961         2005-07-09  Bruno Haible  <bruno@clisp.org>
19962
19963                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
19964                 add a .dll suffix.
19965                 Reported by Mark Junker <mjscod@gmx.de>.
19966
19967         2006-06-17  Bruno Haible  <bruno@clisp.org>
19968
19969                 * config.charset: Update for NetBSD 3.0.
19970
19971         2006-05-17  Bruno Haible  <bruno@clisp.org>
19972
19973                 Cygwin portability.
19974                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
19975
19976         2006-05-16  Bruno Haible  <bruno@clisp.org>
19977
19978                 * localcharset.c [CYGWIN]: Include <windows.h>.
19979                 (get_charset_aliases): For Cygwin, return the same CPxxx
19980                 aliases list as under WIN32.
19981                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
19982                 the environment variables. Fall back to GetACP().
19983
19984         2006-04-05  Bruno Haible  <bruno@clisp.org>
19985
19986                 * config.charset: Update Juan Manuel Guerrero's address.
19987
19988         2005-02-12  Bruno Haible  <bruno@clisp.org>
19989
19990                 * allocsa.h: Add extern "C" for C++.
19991
19992         2005-02-10  Bruno Haible  <bruno@clisp.org>
19993
19994                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
19995                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
19996
19997         2006-07-22  Bruno Haible  <bruno@clisp.org>
19998
19999                 * gettext.h: Update to GNU gettext-0.15.
20000
20001 2006-07-22  Bruno Haible  <bruno@clisp.org>
20002
20003         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
20004         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
20005         lib-prefix.m4, longdouble.m4, ssize_t.m4.
20006
20007 2006-07-21  Eric Blake  <ebb9@byu.net>
20008
20009         * modules/stdlib-safer: New file.
20010         * MODULES.html.sh (File stream based Input/Output): Add
20011         stdlib-safer.
20012
20013 2006-07-21  Eric Blake  <ebb9@byu.net>
20014
20015         * lib/stdlib-safer.h: New file from coreutils, required by
20016         stdlib--.h.
20017
20018 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
20019
20020         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
20021
20022 2006-07-20  Bruno Haible  <bruno@clisp.org>
20023
20024         * gnulib-tool: Recognize new option --assume-autoconf.
20025         (autoconf_minversion): New variable.
20026         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
20027
20028 2006-07-20  Bruno Haible  <bruno@clisp.org>
20029
20030         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
20031
20032 2006-07-19  Derek R. Price  <derek@ximbiot.com>
20033
20034         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
20035         Reindent and repaginate.
20036
20037 2006-07-19  Derek Price  <derek@ximbiot.com>
20038
20039         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
20040         Correct grammar.
20041
20042 2006-07-17  Bruno Haible  <bruno@clisp.org>
20043
20044         * modules/list: New file.
20045         * modules/array-list: New file.
20046         * modules/carray-list, modules/carray-list-tests: New files.
20047         * modules/linked-list, modules/linked-list-tests: New files.
20048         * modules/avltree-list, modules/avltree-list-tests: New files.
20049         * modules/rbtree-list, modules/rbtree-list-tests: New files.
20050         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
20051         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
20052         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
20053         * modules/oset: New file.
20054         * modules/array-oset: New file.
20055         * modules/avltree-oset, modules/avltree-oset-tests: New files.
20056         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
20057         * tests/test-carray_list.c: New file.
20058         * tests/test-linked_list.c: New file.
20059         * tests/test-avltree_list.c: New file.
20060         * tests/test-rbtree_list.c: New file.
20061         * tests/test-linkedhash_list.c: New file.
20062         * tests/test-avltreehash_list.c: New file.
20063         * tests/test-rbtreehash_list.c: New file.
20064         * tests/test-avltree_oset.c: New file.
20065         * tests/test-rbtree_oset.c: New file.
20066         * MODULES.html.sh (Container data structures): New section.
20067
20068 2006-07-17  Bruno Haible  <bruno@clisp.org>
20069
20070         * m4/gl_list.m4: New file.
20071
20072 2006-07-17  Bruno Haible  <bruno@clisp.org>
20073
20074         * lib/gl_list.h: New file.
20075         * lib/gl_list.c: New file.
20076         * lib/gl_array_list.h: New file.
20077         * lib/gl_array_list.c: New file.
20078         * lib/gl_carray_list.h: New file.
20079         * lib/gl_carray_list.c: New file.
20080         * lib/gl_linked_list.h: New file.
20081         * lib/gl_linked_list.c: New file.
20082         * lib/gl_anylinked_list1.h: New file.
20083         * lib/gl_anylinked_list2.h: New file.
20084         * lib/gl_avltree_list.h: New file.
20085         * lib/gl_avltree_list.c: New file.
20086         * lib/gl_anyavltree_list1.h: New file.
20087         * lib/gl_anyavltree_list2.h: New file.
20088         * lib/gl_rbtree_list.h: New file.
20089         * lib/gl_rbtree_list.c: New file.
20090         * lib/gl_anyrbtree_list1.h: New file.
20091         * lib/gl_anyrbtree_list2.h: New file.
20092         * lib/gl_anytree_list1.h: New file.
20093         * lib/gl_anytree_list2.h: New file.
20094         * lib/gl_linkedhash_list.h: New file.
20095         * lib/gl_linkedhash_list.c: New file.
20096         * lib/gl_anyhash_list1.h: New file.
20097         * lib/gl_anyhash_list2.h: New file.
20098         * lib/gl_avltreehash_list.h: New file.
20099         * lib/gl_avltreehash_list.c: New file.
20100         * lib/gl_rbtreehash_list.h: New file.
20101         * lib/gl_rbtreehash_list.c: New file.
20102         * lib/gl_anytreehash_list1.h: New file.
20103         * lib/gl_anytreehash_list2.h: New file.
20104
20105         * lib/gl_oset.h: New file.
20106         * lib/gl_oset.c: New file.
20107         * lib/gl_array_oset.h: New file.
20108         * lib/gl_array_oset.c: New file.
20109         * lib/gl_avltree_oset.h: New file.
20110         * lib/gl_avltree_oset.c: New file.
20111         * lib/gl_rbtree_oset.h: New file.
20112         * lib/gl_rbtree_oset.c: New file.
20113         * lib/gl_anytree_oset.h: New file.
20114
20115 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
20116
20117         * m4/mkancesdirs.m4: New file.
20118         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
20119         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
20120         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
20121         it.
20122
20123 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
20124
20125         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
20126         * lib/mkancesdirs.h: New files.
20127         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
20128         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
20129         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
20130         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
20131         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
20132         callers changed.  Revamp internals significantly, by not
20133         attempting to create directories that are temporarily more
20134         permissive than the final results.  Do not attempt to use
20135         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
20136         This removes some race conditions, fixes some bugs, and simplifies
20137         things.  Use new dirchownmod function to do owner and mode changes.
20138         * lib/mkdir-p.h: Likewise.
20139         * lib/modechange.c (octal_to_mode): New function.
20140         (struct mode_change): New member mentioned.
20141         (make_node_op_equals): New arg mentioned.  All callers changed.
20142         (mode_compile): Keep track of which mode bits the user has explicitly
20143         mentioned.
20144         (mode_adjust): New arg DIR, so that we implement the X op correctly.
20145         New arg PMODE_BITS, to keep track of which mode bits the user
20146         mentioned; it treats S_ISUID and S_ISGID speciall.
20147         All callers changed.
20148         * lib/modechange.h: Likewise.
20149
20150 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
20151
20152         * MODULES.html.sh: Add mkancestors.
20153         * modules/mkancesdirs: New module.
20154         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
20155         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
20156         The chdir-safer and afs files are now orphans; I'll remove them
20157         unless someone speaks up.
20158         Add lib/dirchownmod.c, lib/dirchownmod.h.
20159         (Depends-on): Remove alloca, chown, save-cwd, dirname.
20160         Add lchown, mkancesdirs.
20161         (Maintainer): Add self.
20162
20163 2006-07-15  Karl Berry  <karl@gnu.org>
20164
20165         * gnulib-tool: help message wording/arrangement.
20166
20167 2006-07-14  Simon Josefsson  <jas@extundo.com>
20168
20169         * doc/gnulib.texi (Libtool and Windows): New section.
20170
20171 2006-07-12  Simon Josefsson  <jas@extundo.com>
20172
20173         * modules/gendocs (License): Fix license, approved by Karl.
20174
20175 2006-07-12  Eric Blake  <ebb9@byu.net>
20176
20177         * MODULES.html.sh: Add gendocs.
20178
20179 2006-07-11  Eric Blake  <ebb9@byu.net>
20180
20181         * modules/fdl: New module, to install doc/fdl.texi.
20182         * MODULES.html.sh: Add new section for documentation modules.
20183         * gnulib-tool: Avoid space-tab.
20184         (--doc-base): New option, to manage files from doc.
20185
20186 2006-07-11  Eric Blake  <ebb9@byu.net>
20187
20188         * m4/absolute-header.m4: Fix comments to match recent change.
20189
20190 2006-07-11  Eric Blake  <ebb9@byu.net>
20191
20192         * gnulib-tool: List --doc-base before --tests-base.
20193
20194 2006-07-11  Derek R. Price  <derek@ximbiot.com>
20195
20196         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
20197
20198 2006-07-11  Bruno Haible  <bruno@clisp.org>
20199
20200         * README: Mention where to put documentation.
20201
20202 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20203
20204         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
20205
20206 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
20207
20208         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
20209         to stdint.m4.
20210
20211 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
20212
20213         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
20214         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
20215         "no/such/file/stdint.h" when there is no such file, so that
20216         the resulting C code can be parsed by dodgy compilers.
20217         Problems reported by Bob Proulx.
20218
20219 2006-07-10  Derek R. Price  <derek@ximbiot.com>
20220
20221         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
20222         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
20223         macros into the GNU _D_EXACT_NAMLEN.
20224         * lib/savedir.c:  Likewise.
20225         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
20226
20227 2006-07-10  Derek R. Price  <derek@ximbiot.com>
20228         and Paul Eggert  <eggert@cs.ucla.edu>
20229
20230         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
20231         * m4/savedir.m4:
20232         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
20233         macros into the GNU _D_EXACT_NAMLEN.
20234
20235 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
20236
20237         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
20238         around the absolute name, to work around a problem with the HP-UX
20239         11.23 native C compiler, reported by Bob Proulx.
20240
20241 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
20242
20243         * doc/maintain.texi, make-stds.texi: Sync from
20244         <http://savannah.gnu.org/projects/gnustandards>.
20245
20246 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
20247
20248         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
20249
20250 2006-07-09  Jim Meyering  <jim@meyering.net>
20251
20252         * m4/glob.m4: Remove a doubled word in a comment.
20253
20254 2006-07-09  Jim Meyering  <jim@meyering.net>
20255
20256         * lib/argp-pv.c: Remove a doubled word in a comment.
20257         * lib/check-version.c (check_version): Likewise.
20258         * lib/javacomp.c (compile_java_class): Likewise.
20259
20260 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
20261
20262         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
20263         for the benefit of people using Autoconf 2.60.  If you want to
20264         support older Autoconf versions you can copy m4/onceonly_2_57.m4
20265         (or m4/onceonly.m4, if pre-2.57) manually.
20266
20267 2006-07-08  Jim Meyering  <jim@meyering.net>
20268
20269         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
20270         comment.
20271         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
20272         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
20273         comment.
20274
20275 2006-07-08  Jim Meyering  <jim@meyering.net>
20276
20277         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
20278
20279 2006-07-07  Simon Josefsson  <jas@extundo.com>
20280
20281         * tests/test-crc.c: Change expected crc value, the test vector
20282         were probably computed using the old broken crc.c?
20283
20284 2006-07-06  Simon Josefsson  <jas@extundo.com>
20285
20286         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
20287         now the canonical place for the M4 file).
20288
20289         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
20290         from the sys_socket dependency now.
20291
20292         * modules/inet_pton (Files): Ditto.
20293
20294         * modules/inet_ntop (Files): Ditto.
20295
20296 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
20297
20298         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
20299         not gl_PREREQ_GETUSERSHELL.
20300
20301 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20302
20303         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
20304         with only one argument, for Autoconf 2.60.
20305         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
20306         expand to nothing, so add a shell command to avoid syntax error.
20307         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
20308
20309 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20310
20311         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
20312
20313 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
20314
20315         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
20316         no longer needed.  Check for isblank decl.
20317         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
20318         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
20319         of existence.
20320
20321 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
20322
20323         * lib/getloadavg.c: Use __VMS, not VMS.
20324         * lib/getopt.c: Likewise.
20325         * lib/getpagesize.h: Likewise.
20326         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
20327         and probably does not work.
20328
20329 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
20330
20331         * lib/.cppi-disable: Add wcwidth.
20332         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
20333         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
20334         (ISGRAPH): Remove.  All uses changed to isgraph.
20335         (FOLD) [!defined _LIBC]: Remove special case.
20336         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
20337         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
20338         HAVE_ISBLANK.
20339         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
20340         case.
20341
20342 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
20343
20344         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
20345         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
20346         brackets.  Other minor changes to suppress some compiler
20347         warnings.
20348
20349 2006-07-06  Derek R. Price  <derek@ximbiot.com>
20350         and Paul Eggert  <eggert@cs.ucla.edu>
20351
20352         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
20353         of invoking obsolescent AC_HEADER_DIRENT macro.
20354         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
20355         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
20356         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
20357         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
20358         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
20359         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
20360         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
20361         * m4/readdir.m4: Remove; no longer needed.
20362
20363 2006-07-06  Derek R. Price  <derek@ximbiot.com>
20364         and Paul Eggert  <eggert@cs.ucla.edu>
20365
20366         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
20367         Don't worry about this obsolete case any more.
20368         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
20369         directories.
20370         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
20371         worry about this obsolete case any more.
20372         * lib/fts.c: Likewise.
20373         * lib/getcwd.c: Likewise.
20374         * lib/glob.h: Likewise.
20375         * lib/savedir.c: Likewise.
20376
20377 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
20378
20379         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
20380         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
20381         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
20382         needed.
20383         All uses removed.
20384         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
20385         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
20386         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
20387         needed.
20388         * m4/getdate.m4 (gl_GETDATE): Likewise.
20389         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
20390         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
20391         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
20392         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
20393         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
20394         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
20395         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
20396         needed.
20397
20398 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
20399
20400         * lib/memcasecmp.c: Include <limits.h>.
20401         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
20402         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
20403         Don't assume isdigit succeeds only on '0' through '9'.
20404
20405 2006-07-05  Eric Blake  <ebb9@byu.net>
20406
20407         * modules/getaddrinfo (Depends-on): Add snprintf.
20408
20409 2006-07-05  Eric Blake  <ebb9@byu.net>
20410
20411         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
20412         to avoid 'header present but could not be compiled' on cygwin.
20413
20414 2006-07-05  Eric Blake  <ebb9@byu.net>
20415
20416         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
20417         missing from netdb.h.
20418         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
20419
20420 2006-07-05  Derek R. Price  <derek@ximbiot.com>
20421
20422         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
20423         no longer needed.
20424         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
20425         * m4/getdate.m4 (gl_GETDATE): Likewise.
20426         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
20427         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
20428         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
20429         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
20430         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
20431
20432 2006-07-05  Derek R. Price  <derek@ximbiot.com>
20433
20434         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
20435         All uses of is_space replaced by isspace.
20436         * lib/exit.h: Don't talk about STDC_HEADERS.
20437         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
20438         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
20439         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
20440         replaced by isprint etc.
20441         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
20442         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
20443         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
20444         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
20445         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
20446         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
20447
20448 2006-07-05  Bruno Haible  <bruno@clisp.org>
20449
20450         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
20451         the function exists, before testing against AIX.
20452         Reported by Martin Lambers <marlam@marlam.de>.
20453
20454 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
20455
20456         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
20457         From Mark D. Baushke.
20458
20459 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
20460
20461         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
20462         to the absolute name, not just one, to bypass Sun C 5.8's
20463         "warning: #include of /usr/include/... may be non-portable".
20464
20465 2006-07-04  Eric Blake  <ebb9@byu.net>
20466
20467         * modules/dirname-tests: New test module.
20468         * tests/test-dirname.c: New file, replacing dirname.c
20469         TEST_DIRNAME section that was recently deleted.
20470
20471 2006-07-04  Bruno Haible  <bruno@clisp.org>
20472
20473         Assume ANSI C header files and <ctype.h> functions.
20474         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
20475         (mbsnwidth): Use isprint, iscntrl instead.
20476
20477 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
20478
20479         Merge from coreutils.
20480         * MODULES.html.sh: Add xstrtold.
20481         * modules/xstrtold: New file.
20482         * modules/cycle-check (Files): Add lib/same-inode.h.
20483         * modules/dirname (Files): Add m4/double-slash-root.m4.
20484         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
20485         * modules/mkdir-p (Files): Add lib/same-inode.h.
20486         * modules/same (Files): Add lib/same-inode.h.
20487
20488 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
20489
20490         * m4/absolute-header.m4: Renamed from full-header-path.m4.
20491         This is to keep the terminology clean; POSIX talks about
20492         "absolute pathnames", not "full pathnames", but the GNU
20493         Coding Standards say to use "path" for something else;
20494         so use "absolute" to keep both sides happy.
20495         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
20496         Set gl_absolute_header, not gl_full_header_path.
20497         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
20498         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
20499         All uses changed.
20500
20501         Merge from coreutils.
20502
20503         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
20504
20505         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
20506         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
20507         want to require the building of c-strtod.o.
20508         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
20509         needs -lm directly.
20510         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
20511
20512         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
20513
20514         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
20515         --as-needed option if available.  Problem reported by Albert Chin in
20516         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
20517         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
20518         cc merely issues a bunch of annoying warnings for --as-needed
20519         (this problem was reported by Bob Proulx).  Also, try linking with
20520         -lm to detect a bug in binutils 2.16 (this problem was reported
20521         by Ralf Wildenhues).
20522
20523         2006-06-18  Jim Meyering  <jim@meyering.net>
20524
20525         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
20526         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
20527         macro.
20528         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
20529         also check for glibc-2.4's abort-inducing bug.
20530
20531         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
20532         Low-probability clean-up should be to use rmdir to get rid of
20533         the just-created directory, not unlink.
20534
20535         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
20536         configure fail, and request a bug report to inform us about it.
20537         Add a comment that, barring reports to the contrary, in 2007 we'll
20538         assume ftruncate is universally available.
20539
20540         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
20541
20542         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
20543
20544         2006-03-12  Jim Meyering  <jim@meyering.net>
20545
20546         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
20547         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
20548         * m4/same.m4 (gl_SAME): Likewise.
20549         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
20550
20551         2006-03-11  Eric Blake  <ebb9@byu.net>
20552
20553         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
20554         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
20555         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
20556         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
20557
20558 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
20559
20560         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
20561         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
20562         reported by Mark D. Baushke, one in
20563         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
20564
20565         Merge from coreutils.
20566
20567         * lib/.cppi-disable: Add stdint_.h.
20568         * lib/.cvsignore: Add stdint.h.
20569
20570         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
20571
20572         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
20573         both double and long double versions.
20574         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
20575         * lib/xstrtold.c: New file.
20576         * lib/xstrtod.h (xstrtold): New decl.
20577
20578         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
20579
20580         * lib/filemode.c (setst): Remove.
20581         (strmode): Rewrite to avoid setst.  This makes the code shorter,
20582         (arguably) clearer, and the generated code is a bit smaller on my
20583         Debian GNU/Linux stable x86 host.
20584
20585         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
20586
20587         * lib/filemode.c: Include "filemode.h" first, to test the interface.
20588         Assume that filemode.h includes sys/types.h and sys/stat.h.
20589         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
20590         (ftypelet): Reorder to put common cases first, for efficiency.
20591         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
20592         to do 'M'.
20593         (strmode): Renamed from mode_string, and now stores 12 bytes instead
20594         of 10, for compatibility with FreeBSD.  All callers changed.
20595         (filemodestring): Now stores 12 bytes instead of 10, and sets file
20596         types that can't be deduced solely from st_mode.  First arg is now a
20597         const pointer.
20598         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
20599         (strmode): Renamed from mode_string.
20600         (filemodestring): New decl.
20601         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
20602         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
20603         needed.
20604         (S_ISPORT, S_ISWHT): New macros, if not already defined.
20605
20606         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
20607
20608         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
20609         fsusage.h now does that.  Include fsusage.h first, to test interface.
20610         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
20611         at most one method (the old code could have generated decls that
20612         didn't conform to C89, not that this was ever exercised).
20613         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
20614
20615         2006-03-19  Jim Meyering  <jim@meyering.net>
20616
20617         Work even in a chroot where d_ino values for entries in "/"
20618         don't match the stat.st_ino values for the same names.
20619         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
20620         number, iterate through all entries again, using lstat instead.
20621         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
20622         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
20623
20624         * lib/getcwd.c (__getcwd): Clarify a comment.
20625         Use memcpy in place of a call to strcpy.
20626
20627         2006-03-12  Jim Meyering  <jim@meyering.net>
20628
20629         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
20630         matches that of the current directory (which we're about to chdir ".."
20631         out of), then save the dev-ino of the parent, instead.
20632
20633         * lib/same-inode.h (SAME_INODE): New file/macro.
20634         * lib/chdir-safer.c (SAME_INODE): Remove definition.
20635         Include "same-inode.h", instead.
20636         * lib/same.c: Likewise.
20637         * lib/cycle-check.h: Include "same-inode.h".
20638         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
20639         * lib/cycle-check.c (SAME_INODE): Remove definition.
20640         * lib/root-dev-ino.h: Include "same-inode.h".
20641
20642         2006-03-11  Eric Blake  <ebb9@byu.net>
20643
20644         * lib/same.c (same_name): s/base_name/last_component/
20645         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
20646         * lib/filenamecat.c (file_name_concat): Likewise.
20647
20648         2006-03-11  Eric Blake  <ebb9@byu.net>,
20649                     Paul Eggert  <eggert@cs.ucla.edu>
20650
20651         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
20652         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
20653         drive prefix.
20654         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
20655         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
20656         (last_component): New method.
20657         * lib/dirname.c (dir_len): Determine when drive letters need a
20658         subsequent slash.  Preserve // when it is special.
20659         (dir_name): Don't append dot when drive letter is absolute.
20660         [TEST_DIRNAME]: Move into a full-blown gnulib test.
20661         * lib/basename.c (base_name): New semantics - malloc the result.
20662         Preserve // when it is special.  Preserve relative files that look
20663         like drive letters.
20664         (base_len): Preserve // when it is special.
20665         (last_component): New method, similar to old base_name semantics.
20666         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
20667         base_name.  Strip redundant slashes from ///.
20668
20669 2006-07-03  Jim Meyering  <jim@meyering.net>
20670
20671         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
20672         macro is used before the first cycle_check call.
20673
20674 2006-07-03  Eric Blake  <ebb9@byu.net>
20675
20676         * modules/dirname (Depends-on): Add xstrndup.
20677
20678 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
20679
20680         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
20681         test cases, so that config.log is a bit easier to follow.
20682
20683 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
20684
20685         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
20686         both are 64 bits, since this seems to be the tradition, and this
20687         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
20688         we ever run into a host that prefers long long to long in this
20689         case, we'll need another configure-time test.  Problem reported by
20690         Jim Meyering.
20691
20692 2006-07-02  Eric Blake  <ebb9@byu.net>
20693
20694         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
20695
20696 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
20697
20698         * modules/inttypes (Depends-on): No longer depends on stdint.
20699         * modules/stdint (Description): Say more about assumptions.
20700         Say that the fast types might differ.  Say macros are used.
20701         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
20702         (Makefile.am): Revise list of substituted symbols to match
20703         new stdint.m4.
20704         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
20705         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
20706         * tests/test-stdint.c (verify_same_types)
20707         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
20708         the code conforms to C99/C89.
20709         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
20710         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
20711
20712 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
20713
20714         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
20715         but fix a bug, by requiring at least 64 bits.
20716         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
20717         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
20718         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
20719         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
20720
20721         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
20722         changes.  Make 2.59 a prerequisite.  Check and substitute for
20723         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
20724         inttypes.h.  Do not use special include files; just use the
20725         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
20726         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
20727         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
20728         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
20729         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
20730         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
20731         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
20732         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
20733         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
20734         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
20735         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
20736         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
20737         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
20738         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
20739         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
20740         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
20741         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
20742         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
20743         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
20744         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
20745         WINT_MAX.  Check for C99 conformance more strictly, by detecting
20746         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
20747         not check for things that C99 does not require, e.g., int8_t.  If
20748         a test isn't needed unless <stdint.h> isn't working, and is
20749         unlikely to be needed for any other reason, then don't do it
20750         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
20751         size_t, since we assume C89 freestanding at least.  Do not check
20752         for sig_atomic_t, wchar_t, or wint_t, since the code now does
20753         the right thing even if the types are not defined.  Instead use:
20754         (gl_STDINT_TYPE_PROPERTIES): New macro.
20755         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
20756         testing whether <sys/types.h> clashes, as Autoconf does this for
20757         us now.  All uses removed.
20758         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
20759         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
20760         (gl_CHECK_TYPE_SAME):
20761         Remove; no longer needed.
20762         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
20763         exists, since we'll return 0 anyway in that case.
20764         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
20765
20766 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
20767
20768         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
20769         possible collision with system files.
20770         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
20771         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
20772         WCHAR_MIN and WCHAR_MAX in this case.
20773         (<stddef.h>): Do not include; no longer needed.
20774         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
20775         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
20776         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
20777         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
20778         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
20779         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
20780         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
20781         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
20782         !defined(__c99))]: Include in this case too, since it's harmless
20783         now.
20784         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
20785         dangerous to do so.
20786         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
20787         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
20788         (_STDINT_MIN, _STDINT_MAX): New macros.
20789         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
20790         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
20791         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
20792         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
20793         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
20794         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
20795         macros, not typedefs; this simplifies things quite a bit.
20796         Use long int for all types narrower than int64_t.
20797         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
20798         Define in terms of long long int or int64_t or long int,
20799         not int64_t or int32_t.  This saves some compile-time testing.
20800         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
20801         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
20802         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
20803         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
20804         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
20805         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
20806         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
20807         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
20808         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
20809         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
20810         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
20811         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
20812         undef any previous version and define our own version, for
20813         simplicity and consistency with the new macros for types.
20814         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
20815         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
20816         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
20817         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
20818         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
20819         @WINT_T_SUFFIX@ to keep things simple here.
20820         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
20821         Simplify by assuming typical 8/16/32/64 host, since we're
20822         already doing that elsewhere anyway.
20823         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
20824         and assume long long int is 64 bits if available.  This
20825         speeds up 'configure'.
20826
20827 2006-07-01  Eric Blake  <ebb9@byu.net>
20828
20829         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
20830         Reported by Andreas Buening.
20831
20832 2006-07-01  Eric Blake  <ebb9@byu.net>
20833
20834         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
20835
20836 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
20837
20838         * lib/getaddrinfo.c: fixed typo
20839
20840 2006-06-29  Jim Meyering  <jim@meyering.net>
20841
20842         * modules/strftime (Maintainer): Add my name, since with the
20843         FPRINTFTIME changes strftime.c has forked from glibc.
20844
20845 2006-06-29  Eric Blake  <ebb9@byu.net>
20846
20847         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
20848
20849 2006-06-29  Eric Blake  <ebb9@byu.net>
20850
20851         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
20852
20853 2006-06-29  Eric Blake  <ebb9@byu.net>
20854
20855         * lib/stat_.h: New file.
20856
20857 2006-06-29  Eric Blake  <ebb9@byu.net>
20858
20859         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
20860         unused static function.
20861
20862 2006-06-29  Eric Blake  <ebb9@byu.net>
20863
20864         * doc/functions.texi (Function Portability): Document missing lstat
20865         on mingw.
20866
20867 2006-06-29  Eric Blake  <ebb9@byu.net>
20868
20869         * MODULES.html.sh: Add sys_stat.
20870         * modules/sys_stat: New module.
20871         * modules/mkstemp (Depends-on): Add sys_stat.
20872
20873 2006-06-29  Derek R. Price  <derek@ximbiot.com>
20874
20875         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
20876
20877 2006-06-29  Derek R. Price  <derek@ximbiot.com>
20878
20879         * m4/c-bs-a.m4: Removed.
20880
20881 2006-06-29  Derek R. Price  <derek@ximbiot.com>
20882
20883         * lib/strftime.c: Assume strftime() exists.
20884
20885 2006-06-29  Derek Price  <derek@ximbiot.com>
20886
20887         * modules/c-bs-a: Removed - \a is C89.
20888         * MODULES.html.sh: Remove c-bs-a.
20889
20890 2006-06-29  Bruno Haible  <bruno@clisp.org>
20891
20892         * modules/wcwidth (License): Change to LGPL.
20893
20894 2006-06-28  Simon Josefsson  <jas@extundo.com>
20895
20896         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
20897         on _WIN32.
20898
20899         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
20900         getnameinfo.
20901
20902 2006-06-28  Simon Josefsson  <jas@extundo.com>
20903
20904         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
20905
20906 2006-06-28  Simon Josefsson  <jas@extundo.com>
20907
20908         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
20909         functions there.  It will succeed on Windows XP, but on Windows
20910         2000 and (presumably) earlier, it will fail, and use the internal
20911         re-implementation.
20912         (use_win32_p): New function.
20913         (getaddrinfo): Use strtoul on servname, to support numeric ports.
20914         Support AI_NUMERICSERV to disable getservbyname.
20915         (getnameinfo): New function, only supports
20916         NI_NUMERICHOST|NI_NUMERICSERV for now.
20917
20918         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
20919         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
20920         getnameinfo.
20921
20922 2006-06-28  Eric Blake  <ebb9@byu.net>
20923
20924         * modules/wcwidth: New file.
20925         * modules/mbchar (Depends-on): Add wcwidth.
20926         * modules/mbswidth (Depends-on): Add wcwidth.
20927         * MODULES.html.sh: Add wcwidth.
20928
20929 2006-06-28  Eric Blake  <ebb9@byu.net>
20930
20931         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
20932         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
20933
20934 2006-06-28  Eric Blake  <ebb9@byu.net>
20935
20936         * lib/xvasprintf.h: Fix comments.
20937
20938 2006-06-28  Eric Blake  <ebb9@byu.net>
20939
20940         * lib/mbchar.h (wcwidth): Include wcwidth.h.
20941         * lib/mbswidth.c (wcwidth): Move from here...
20942         * lib/wcwidth.h: ...to this new file.
20943
20944 2006-06-28  Derek R. Price  <derek@ximbiot.com>
20945
20946         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
20947
20948         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
20949         it's obsolete.
20950         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
20951
20952 2006-06-28  Derek R. Price  <derek@ximbiot.com>
20953
20954         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
20955         Autoconf 2.60 says this stuff was obsolete.
20956
20957 2006-06-28  Bruno Haible  <bruno@clisp.org>
20958
20959         * modules/wcwidth (Files): Add m4/wchar_t.m4.
20960
20961 2006-06-28  Bruno Haible  <bruno@clisp.org>
20962
20963         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
20964         gt_TYPE_WCHAR_T.
20965
20966 2006-06-28  Bruno Haible  <bruno@clisp.org>
20967
20968         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
20969         declaration for wcwidth.
20970         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
20971
20972 2006-06-28  Bruno Haible  <bruno@clisp.org>
20973
20974         * lib/mkdtemp.c [MINGW]: Include <io.h>.
20975         (mkdir): Define using _mkdir.
20976
20977 2006-06-28  Bruno Haible  <bruno@clisp.org>
20978
20979         * lib/getaddrinfo.h: Fix POSIX URL.
20980         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
20981         _WIN32.
20982         (use_win32_p): Make static.
20983         (getaddrinfo): Reject service name if it is empty or does not consist
20984         solely of decimal digits, or if its value is > 65535.
20985         (getnameinfo): Remove useless casts.
20986
20987 2006-06-27  Simon Josefsson  <jas@extundo.com>
20988
20989         * modules/sys_select: New file, suggested by Bruno Haible, Paul
20990         Eggert and Martin Lambers.
20991
20992 2006-06-27  Simon Josefsson  <jas@extundo.com>
20993
20994         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
20995         Eggert and Martin Lambers.
20996
20997 2006-06-27  Bruno Haible  <bruno@clisp.org>
20998
20999         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
21000         result to 0, not to empty.
21001         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
21002
21003 2006-06-27  Bruno Haible  <bruno@clisp.org>
21004
21005         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
21006
21007 2006-06-26  Simon Josefsson  <jas@extundo.com>
21008
21009         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
21010         present.
21011
21012 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
21013
21014         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
21015         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
21016         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
21017
21018 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
21019
21020         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
21021
21022 2006-06-26  Bruno Haible  <bruno@clisp.org>
21023
21024         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
21025
21026 2006-06-26  Bruno Haible  <bruno@clisp.org>
21027
21028         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
21029
21030 2006-06-26  Bruno Haible  <bruno@clisp.org>
21031
21032         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
21033         SGI C compiler in pre-C99 mode.
21034         Suggested by Mark D. Baushke and Larry Jones.
21035
21036 2006-06-26  Bruno Haible  <bruno@clisp.org>
21037
21038         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
21039         WCHAR_MAX.
21040         Reported by Mark D. Baushke and Larry Jones.
21041
21042 2006-06-26  Bruno Haible  <bruno@clisp.org>
21043
21044         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
21045         in pre-C99 mode.
21046         Suggested by Mark D. Baushke and Larry Jones.
21047
21048 2006-06-23  Simon Josefsson  <jas@extundo.com>
21049             Bruno Haible  <bruno@clisp.org>
21050
21051         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
21052         Emit mostlyclean-local rule.
21053         (func_emit_tests_Makefile_am): Likewise.
21054         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
21055
21056 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
21057
21058         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
21059
21060 2006-06-23  Bruno Haible  <bruno@clisp.org>
21061
21062         * tests/test-stdint.c: Update to match ISO C 99 Technical
21063         Corrigendum 1.
21064
21065 2006-06-23  Bruno Haible  <bruno@clisp.org>
21066
21067         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
21068
21069 2006-06-23  Bruno Haible  <bruno@clisp.org>
21070
21071         * lib/stdint_.h: Treat IRIX like OpenBSD.
21072
21073 2006-06-23  Bruno Haible  <bruno@clisp.org>
21074
21075         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
21076         ISO C 99 Technical Corrigendum 1.
21077
21078 2006-06-22  Simon Josefsson  <jas@extundo.com>
21079
21080         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
21081         MinGW.
21082
21083 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
21084
21085         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
21086         needed.  Some compiler complained about some of them.  Problem reported
21087         by Larry Jones in
21088         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
21089
21090 2006-06-21  Simon Josefsson  <jas@extundo.com>
21091
21092         * tests/test-getaddrinfo.c: New file.
21093
21094         * modules/getaddrinfo-tests: New file.
21095
21096         * MODULES.html.sh: Add inet_pton.
21097
21098         * modules/inet_pton: New file.
21099
21100 2006-06-21  Simon Josefsson  <jas@extundo.com>
21101
21102         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
21103         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
21104         of using the (limited) gnulib implementation on Windows XP.
21105
21106         * m4/inet_pton.m4: New file.
21107
21108 2006-06-21  Simon Josefsson  <jas@extundo.com>
21109
21110         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
21111         variable.
21112
21113         * lib/socket_.h: Don't define WINVER.
21114
21115         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
21116         slightly modified to work in gnulib.
21117
21118 2006-06-21  Simon Josefsson  <jas@extundo.com>
21119
21120         * doc/gnulib.texi (Windows sockets): Add.
21121
21122 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
21123
21124         * lib/read-file.c (fread_file): Start with buffer allocation of
21125         0 bytes rather than 1 byte; this simplifies the code.
21126         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
21127         code to free buffer and save/restore errno.
21128         (internal_read_file): Remove unused local.
21129
21130 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
21131
21132         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
21133         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
21134         Problem reported by Denis Excoffier in
21135         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
21136
21137 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21138
21139         * modules/sys_socket, modules/socklen: Include sys/types since
21140         FreeBSD 4.x's sys/socket.h needs it.
21141
21142 2006-06-19  Simon Josefsson  <jas@extundo.com>
21143
21144         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
21145
21146 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
21147
21148         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
21149
21150 2006-06-19  Bruno Haible  <bruno@clisp.org>
21151
21152         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
21153         and FULL_PATH_INTTYPES_H in angle brackets.
21154         Reported by Mark D. Baushke <mdb@gnu.org>.
21155
21156 2006-06-17  Eric Blake  <ebb9@byu.net>
21157
21158         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
21159         errno.
21160
21161 2006-06-17  Bruno Haible  <bruno@clisp.org>
21162
21163         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
21164         <sys/inttypes.h>.
21165
21166 2006-06-17  Bruno Haible  <bruno@clisp.org>
21167
21168         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
21169         whether errno is declared. Assume <errno.h> declares errno.
21170
21171 2006-06-17  Bruno Haible  <bruno@clisp.org>
21172
21173         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
21174
21175 2006-06-17  Bruno Haible  <bruno@clisp.org>
21176
21177         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
21178         problem on Solaris 2.5.1.
21179
21180 2006-06-16  Eric Blake  <ebb9@byu.net>
21181
21182         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
21183         * lib/unicodeio.c [!defined errno]: Likewise.
21184         * lib/strtol.c [!defined errno]: Likewise.
21185         * lib/strtod.c [!defined errno]: Likewise.
21186
21187 2006-06-15  Eric Blake  <ebb9@byu.net>
21188
21189         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
21190
21191 2006-06-15  Eric Blake  <ebb9@byu.net>
21192
21193         * config/srclist.txt (ssize_t.m4): Lose sync.
21194
21195 2006-06-15  Bruno Haible  <bruno@clisp.org>
21196
21197         * modules/stdint (Files): Include m4/full-header-path.m4,
21198         m4/size_max.m4, m4/wchar_t.m4.
21199         (Makefile.am): Many more substitutions.
21200         * modules/stdint-tests: New file.
21201         * tests/test-stdint.c: New file.
21202
21203 2006-06-15  Bruno Haible  <bruno@clisp.org>
21204
21205         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
21206         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
21207         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
21208         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
21209         gl_CHECK_TYPE_SAME): New macros.
21210
21211 2006-06-15  Bruno Haible  <bruno@clisp.org>
21212
21213         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
21214
21215 2006-06-15  Bruno Haible  <bruno@clisp.org>
21216
21217         * lib/stdint_.h: Rewritten to be fully auto-configured.
21218         Fixes bug on HP-UX/IA64.
21219
21220 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
21221
21222         * lib/getdate.y (__attribute__): Don't define if already defined.
21223         Problem reported by Larry Jones.
21224         * lib/utimens.c (__attribute__): Likewise.
21225
21226 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
21227
21228         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
21229         reported by Andreas Schwab.
21230
21231 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21232             Bruno Haible  <bruno@clisp.org>
21233
21234         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
21235         check for the declaration of strnlen and a run test that exposes the
21236         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
21237         rpl_strndup.
21238
21239 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21240             Bruno Haible  <bruno@clisp.org>
21241
21242         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
21243
21244 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21245
21246         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
21247         compile test, for Tru64 4.0D.
21248
21249 2006-05-28  Karl Berry  <karl@gnu.org>
21250
21251         * config/srclist.txt (printf-args.c): lose sync.
21252
21253 2006-05-26  Martin Lambers  <marlam@marlam.de>
21254
21255         * lib/getpass.c: Updates the test for the native W32 API, and adds
21256         missing includes, thus fixing compilation warnings.
21257
21258 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
21259
21260         * lib/exclude.c (exclude_fnmatch): New function.
21261         (excluded_file_name): Call exclude_fnmatch.
21262         * lib/exclude.h (excluded_file_name): New prototype
21263
21264 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
21265
21266         * lib/tempname.c (small_open, large_open): New macros.
21267         (__open, __open64) [!_LIBC]: Remove.
21268         (__gen_tempname): Use small_open and large_open instead of __open
21269         and __open64.  This fixes a portability bug on HP-UX 11.11i
21270         reported by Simon Wing-Tang in
21271         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
21272
21273 2006-05-24  Bruno Haible  <bruno@clisp.org>
21274
21275         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
21276         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
21277         Reported by Thorsten Maerz <torte@netztorte.de> via
21278         Aaron Stone <aaron@serendipity.cx>.
21279
21280 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
21281
21282         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
21283         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
21284         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
21285         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
21286         not really conditional on the cache.
21287         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
21288
21289 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
21290
21291         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
21292         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
21293         (my_usleep): Don't mishandle maximum value.
21294
21295 2006-05-19  Jim Meyering  <jim@meyering.net>
21296
21297         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
21298
21299 2006-05-17  Bruno Haible  <bruno@clisp.org>
21300
21301         Cygwin portability.
21302         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
21303
21304 2006-05-17  Bruno Haible  <bruno@clisp.org>
21305
21306         * lib/stdint_.h: Fix recognition of Cygwin.
21307
21308 2006-05-15  Bruno Haible  <bruno@clisp.org>
21309
21310         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
21311         on libtool patch by Ralf Wildenhues.
21312
21313 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
21314
21315         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
21316         test for C99 conformance; (bool) 0.5 is an integer constant
21317         expression, but (bool) -0.5 is not.  Problem reported by Fedor
21318         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
21319
21320 2006-05-11  Simon Josefsson  <jas@extundo.com>
21321
21322         * m4/xvasprintf.m4: Fix obvious typo.
21323
21324 2006-05-11  Jim Meyering  <jim@meyering.net>
21325
21326         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
21327         James Lemley.
21328
21329 2006-05-10  Simon Josefsson  <jas@extundo.com>
21330
21331         * lib/md4.c: Typo fix, update copyright years.
21332         (K1, K2): Don't use L because it turn computations into 64-bit on
21333         64-bit platforms.
21334
21335 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
21336
21337         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
21338         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
21339         unwanted sign propagation, e.g., on hosts with 64-bit int.
21340         There still are some problems with reeelly weird theoretical hosts
21341         (e.g., 33-bit int) but it's not worth worrying about now.
21342         * lib/sha1.c (rol): Likewise.
21343         (K1, K2, K3, K4): Remove unnecessary L suffix.
21344
21345 2006-05-10  Bruno Haible  <bruno@clisp.org>
21346
21347         * lib/des.c: Cast to avoid warnings.
21348
21349 2006-05-09  Bruno Haible  <bruno@clisp.org>
21350
21351         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
21352         (Depends-on): Depend also on xsize, stdarg.
21353         (configure.ac): Add gl_XVASPRINTF.
21354
21355 2006-05-09  Bruno Haible  <bruno@clisp.org>
21356
21357         * m4/xvasprintf.m4: New file.
21358
21359 2006-05-09  Bruno Haible  <bruno@clisp.org>
21360
21361         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
21362         (EOVERFLOW): Define fallback value.
21363         (xstrcat): New function.
21364         (xvasprintf): Recognize the special case of a string concatenation.
21365
21366 2006-05-08  Eric Blake  <ebb9@byu.net>
21367
21368         * gnulib-tool (func_version): Base copyright year on CVS date.
21369         (func_emit_copyright_notice): New function.
21370         (func_emit_lib_Makefile_am): Use it.
21371         (func_emit_tests_Makefile_am): Likewise.
21372         (func_import): Likewise.
21373
21374 2006-05-08  Bruno Haible  <bruno@clisp.org>
21375
21376         * modules/stdarg: New file.
21377         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
21378
21379 2006-05-08  Bruno Haible  <bruno@clisp.org>
21380
21381         * m4/stdarg.m4: New file, from GNU gettext.
21382
21383 2006-05-08  Bruno Haible  <bruno@clisp.org>
21384
21385         * config/srclist.txt (build-aux/config.rpath): different from latest
21386         release.
21387
21388 2006-05-08  Bruno Haible  <bruno@clisp.org>
21389
21390         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
21391
21392 2006-05-05  Jim Meyering  <jim@meyering.net>
21393
21394         * m4/warning.m4: New file, derived from bison's file by the same name.
21395
21396 2006-05-03  Bruno Haible  <bruno@clisp.org>
21397
21398         * lib/stdint_.h: Shorter URL.
21399         * lib/inttypes.h: Likewise.
21400
21401 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
21402
21403         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
21404
21405 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
21406
21407         * lib/verify.h: Document the internals better.  Most of this change
21408         was written by Bruno Haible.
21409
21410 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
21411
21412         * doc/verify.texi: New file, partly based on a proposal by
21413         Bruno Haible.
21414
21415 2006-05-02  Bruno Haible  <bruno@clisp.org>
21416
21417         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
21418         test from here...
21419         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
21420
21421 2006-04-29  Bruno Haible  <bruno@clisp.org>
21422
21423         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
21424         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
21425
21426 2006-04-29  Bruno Haible  <bruno@clisp.org>
21427
21428         * gnulib-tool: Make --update option actually work.
21429
21430 2006-04-29  Bruno Haible  <bruno@clisp.org>
21431
21432         * doc/gcd.texi: New file.
21433         * doc/gnulib.texi: Include it.
21434
21435 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
21436
21437         * lib/getdate.y (get_date): When adding relative date, start with the
21438         initial time, not with the result of the first mktime call.
21439
21440 2006-04-25  Bruno Haible  <bruno@clisp.org>
21441
21442         * gnulib-tool (func_import): Output the include directives in three
21443         blocks, sorted separately.
21444         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21445
21446 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
21447
21448         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
21449         to define main with arguments, for C++.  Reported by Eric Blake.
21450         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
21451         Prefer 'int main ()' to 'int main (void)', for C++.
21452         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
21453         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
21454         for 'main', for C99 and C++.
21455
21456 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
21457
21458         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
21459         Don't assume that exit status -1 is valid.
21460         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
21461         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
21462         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
21463         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
21464         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
21465         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
21466         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
21467         functions can be used without declaring them, or that you can
21468         exit with status -1.
21469         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
21470
21471 2006-04-24  Karl Berry  <karl@gnu.org>
21472
21473         * config/srclist.txt (longdouble.m4): sync lost.
21474
21475 2006-04-24  Eric Blake  <ebb9@byu.net>
21476
21477         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
21478
21479 2006-04-24  Bruno Haible  <bruno@clisp.org>
21480
21481         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
21482         poll() implementation in AIX.
21483         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21484
21485 2006-04-24  Bruno Haible  <bruno@clisp.org>
21486
21487         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
21488         assigned exactly once.
21489
21490 2006-04-23  Claudio Fontana  <claudio@gnu.org>
21491             Bruno Haible  <bruno@clisp.org>
21492
21493         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
21494         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
21495         for AM_CPPFLAGS.
21496
21497 2006-04-23  Bruno Haible  <bruno@clisp.org>
21498
21499         * modules/copy-file: Depend on unistd.
21500         * modules/execute: Likewise.
21501         * modules/fatal-signal: Likewise.
21502         * modules/findprog: Likewise.
21503         * modules/mkdtemp : Likewise.
21504         * modules/pipe: Likewise.
21505         * modules/wait-process: Likewise.
21506
21507 2006-04-23  Bruno Haible  <bruno@clisp.org>
21508
21509         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
21510         condition was already detected.
21511         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21512
21513 2006-04-23  Bruno Haible  <bruno@clisp.org>
21514
21515         * lib/copy-file.c: Include <unistd.h> unconditionally.
21516         * lib/execute.c: Likewise.
21517         * lib/fatal-signal.c: Likewise.
21518         * lib/findprog.c: Likewise.
21519         * lib/mkdtemp.c: Likewise.
21520         * lib/pipe.h: Likewise.
21521         * lib/pipe.c: Likewise.
21522         * lib/wait-process.h: Likewise.
21523
21524 2006-04-23  Bruno Haible  <bruno@clisp.org>
21525
21526         * gnulib-tool (func_usage): Fix --import description. Document
21527         --update.
21528         (func_import): Create temporary file in a temporary directory, if
21529         --dry-run is specified. Silence errors from 'grep' when there are no
21530         m4 files in $m4dir.
21531         (func_create_testdir): Silence errors from 'grep' when there are no
21532         m4 files in $m4dir.
21533         Reported by Karl Berry <karl@freefriends.org>.
21534
21535 2006-04-20  Bruno Haible  <bruno@clisp.org>
21536
21537         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
21538         one argument, so that the code will be portable to Autoconf 2.60.
21539         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
21540         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
21541         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
21542
21543 2006-04-19  Derek Price  <derek@ximbiot.com>
21544             Eric Blake  <ebb9@byu.net>
21545
21546         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
21547         rather than "/full/path.h".  Update comment to match.  Shorten &
21548         generalize m4_translit call via AS_TR_CPP.
21549
21550 2006-04-19  Derek Price  <derek@ximbiot.com>
21551             Eric Blake  <ebb9@byu.net>
21552
21553         * lib/inttypes.h: Correct grammar in comment.
21554
21555 2006-04-18  Derek Price  <derek@ximbiot.com>
21556             Paul Eggert  <eggert@cs.ucla.edu>
21557
21558         * modules/inttypes: New file.
21559         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
21560
21561 2006-04-18  Derek Price  <derek@ximbiot.com>
21562             Paul Eggert  <eggert@cs.ucla.edu>
21563
21564         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
21565         New files.
21566
21567 2006-04-18  Derek Price  <derek@ximbiot.com>
21568             Paul Eggert  <eggert@cs.ucla.edu>
21569
21570         * lib/inttypes.h: New file.
21571         * lib/strtoimax.c: Assume <inttypes.h>.
21572
21573 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
21574
21575         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
21576         isn't mounted.  Problem reported by Kir Kolyshkin.
21577
21578 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
21579
21580         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
21581         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
21582         Derek R. Price.
21583         * lib/regex.h (RE_DUP_MAX): Update comment to match current
21584         implementation.
21585
21586 2006-04-12  Eric Blake  <ebb9@byu.net>
21587
21588         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
21589         is now done automatically by the corresponding Autoconf macro.
21590
21591 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
21592
21593         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
21594         time_r.h.
21595
21596 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
21597
21598         Merge regex changes from libc, removing some of our
21599         POSIX-conformance changes that were rejected and redoing them in a
21600         less-intrusive way.
21601
21602         * lib/regcomp.c (re_compile_internal, init_dfa):
21603         Length arg is now size_t, not Idx.  All uses changed.
21604         (peek_token): Forward decl now says internal_function.
21605         (__re_error_msgid, __re_error_msgid_idx):
21606         Now static rather than extern with attribute_hidden.
21607         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
21608         For some reason libc prefers K&R style defns for external functions.
21609         (regerror) [!defined _LIBC]: Likewise.
21610         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
21611         (seek_collating_symbol_entry, lookup_collation_sequence_value):
21612         (build_range_exp, build_collating_symbol):
21613         Use K&R-style defn.
21614         (re_compile_fastmap): Use '\0' to memset, not 0.
21615         (utf8_sb_map): Make the calculations more obvious.
21616         (init_dfa, parse_bracket_exp, build_charclass_op):
21617         Call calloc and cast result, as glibc does.
21618         (init_word_char, fetch_token, peek_token, peek_token_bracket):
21619         (build_range_exp, build_collating_symbol):
21620         Now internal functions.
21621
21622         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
21623
21624         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
21625         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
21626         Don't depend on VMS; depend on __VMS instead, for POSIX
21627         namespace cleanness.
21628         (regoff_t): Define to ssize_t, not long int.
21629
21630         Remove the REG_ macros named below.  Instead, make the old names
21631         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
21632         __USE_GNU_REGEX.
21633         (REG_BACKSLASH_ESCAPE_IN_LISTS):
21634         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
21635         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
21636         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
21637         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
21638         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
21639         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
21640         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
21641         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
21642         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
21643         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
21644         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
21645         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
21646         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
21647         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
21648         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
21649         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
21650         (REG_NREGS):
21651         Remove.  All uses replaced by the old RE_* names.
21652         (RE_BACKSLASH_ESCAPE_IN_LISTS):
21653         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
21654         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
21655         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
21656         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
21657         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
21658         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
21659         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
21660         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
21661         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
21662         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
21663         Don't bother having these macros be independent of each others'
21664         values, since they no longer exist in the POSIX name space.
21665
21666         Rename the following member names back to their old names,
21667         unless !__USE_GNU_REGEX.  All uses changed back.
21668         (buffer): Renamed from re_buffer.
21669         (allocated): Renamed from re_allocated.
21670         (used): Renamed from re_used.
21671         (syntax): Renamed from re_syntax.
21672         (fastmap): Renamed from re_fastmap.
21673         (translate): Renamed from re_translate.
21674         (can_be_null): Renamed from re_can_be_null.
21675         (regs_allocated): Renamed from re_regs_allocated.
21676         (fastmap_accurate): Renamed from re_fastmap_accurate.
21677         (no_sub): Renamed from re_no_sub.
21678         (not_bol): Renamed from re_not_bol.
21679         (not_eol): Renamed from re_not_eol.
21680         (newline_anchor): Renamed from re_newline_anchor.
21681         (num_regs): Renamed from rm_num_regs.
21682         (start): Renamed from rm_start.
21683         (end): Renamed from rm_end.
21684
21685         (free_state): Move up a bit.
21686
21687         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
21688         #define to be empty.
21689         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
21690         when that is what is intended.
21691         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
21692         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
21693         (MAX): New macro.
21694         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
21695         All uses changed back to re_malloc, etc.  It's now the caller's
21696         responsibility to check for overflow; all callers changed.
21697         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
21698         (re_x2nrealloc): Remove.
21699         (free_state): Remove decl.
21700
21701         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
21702         (re_set_registers, re_exec):
21703         Use K&R-style defn.
21704
21705         2006-01-31  Roland McGrath  <roland@redhat.com>
21706
21707         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
21708         Reported by Mike Frysinger <vapier@gentoo.org>.
21709
21710         2006-01-15  Andreas Jaeger  <aj@suse.de>
21711
21712         [BZ #1950]
21713         * lib/regex_internal.c (re_string_reconstruct): Adjust for
21714         build_wcs_upper_buffer change.
21715         (build_wcs_upper_buffer): Change return type.
21716
21717         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
21718
21719         * lib/regex_internal.h: Include <stdint.h> if available.
21720
21721         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
21722
21723         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
21724
21725         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
21726
21727         * lib/regcomp.c: Adjust for changed secondary hash function.
21728
21729         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
21730
21731         * lib/regex.h: Pretty printing.
21732         Clean up namespace a bit.
21733
21734         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
21735
21736         * lib/regexec.c (update_cur_sifted_state, check_arrival,
21737         check_arrival_add_next_nodes): Avoid using uninitialized variable.
21738
21739         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
21740                     Ulrich Drepper  <drepper@redhat.com>
21741
21742         [BZ #1302]
21743         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
21744         changed.
21745         (bitset_word_t): Renamed from bitset_word.  All uses changed.
21746
21747         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
21748
21749         [BZ #281]
21750         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
21751         * lib/regcomp.c: Remove unnecessary uses of
21752         unsigned RE_TRANSLATE_TYPE.
21753         * lib/regex_internal.h: Likewise.
21754         * lib/regex_internal.c: Likewise.
21755         * lib/regexec.c: Likewise.
21756         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
21757
21758         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
21759
21760         * lib/regexec.c (find_recover_state): Remove unnecessary
21761         initialization.
21762         (transit_state_bkref): Make DFA a const pointer.
21763         (get_subexp): Likewise.
21764         (check_arrival): Likewise.
21765         (update_cur_sifted_state): Likewise.
21766         (re_search_internal): Likewise.
21767         (prune_impossible_nodes): Likewise.
21768         (acquire_init_state_context): Likewise.
21769         (proceed_next_node): Likewise.
21770         (set_regs): Likewise.
21771         (free_fail_stack_return): Likewise.
21772         (check_arrival_expand_ecl): Mark DFA parameter as const.
21773         (check_arrival_expand_ecl_sub): Likewise.
21774         (check_subexp_limits): Likewise.
21775         (sub_epsilon_src_nodes):  Likewise.
21776         (add_epsilon_src_nodes):  Likewise.
21777         (merge_state_array): Likewise.
21778         (update_regs): Likewise.
21779         (build_trtable): Likewise.
21780         (sift_states_backward): Mark MCTX parameter as const.
21781         (build_sifted_states): Likewise.
21782         (update_cur_sifted_state): Likewise.
21783         (sift_states_mkref): Likewise.
21784         (check_arrival_expand_ecl): Mark eclosure as const.
21785         (check_dst_limits_calc_pos_1): Likewise.
21786         * lib/regex_internal.h (re_match_context_t): Make dfa a const
21787         pointer.
21788
21789         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
21790
21791         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
21792         (transit_state_sb): Likewise.
21793         (transit_state_mb): Likewise.
21794         (sift_states_iter_mb): Likewise.
21795         (check_arrival_add_next_nodes): Likewise.
21796         (check_node_accept_bytes): Change first parameter to pointer-to-const.
21797         [_LIBC] (re_search_2_stub): Use mempcpy.
21798
21799         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
21800         mbrtowc for very simple UTF-8 case.
21801
21802         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
21803         a pointer-to-const.
21804         (re_acquire_state_context): Likewise.
21805         * lib/regex_internal.h: Adjust prototypes.
21806
21807         * lib/regex.c: Prevent using C++ compilers.
21808
21809         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
21810         (re_acquire_state_context): Likewise.
21811
21812 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
21813
21814         * modules/regex (Depends-on): Add ssize_t.
21815
21816 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
21817
21818         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
21819         translation table.
21820
21821 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
21822
21823         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
21824
21825 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
21826             Bruno Haible  <bruno@clisp.org>
21827
21828         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
21829         <sys/types.h> and <inttypes.h>.
21830
21831 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21832
21833         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
21834         `__error_t_defined', so argp.h will not typedef the former.
21835
21836 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
21837
21838         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
21839         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
21840         glibc names.  Even if glibc is changed to conform to POSIX, the
21841         traditional names will be available anyway, since regex depends on
21842         the extensions module.  Also, fix a longstanding typo in the
21843         implementation of Spencer ERE test #75 from grep 2.3.  Problems
21844         reported by Emanuele Giaquinta.  Also, change sense of cached
21845         variable, so that the message makes sense.
21846
21847 2006-03-24  Simon Josefsson  <jas@extundo.com>
21848
21849         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
21850         including some doc fixes.
21851         (base64_encode_alloc): Fix +1 bug on allocation failures.
21852
21853 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21854
21855         * lib/base64.c (base64_encode): Do not read past end of array with
21856         unsanitized input on systems with CHAR_BIT > 8.
21857
21858 2006-03-24  Eric Blake  <ebb9@byu.net>
21859
21860         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
21861
21862 2006-03-22  Karl Berry  <karl@gnu.org>
21863
21864         * config/srclist.txt (*setenv.[ch]): get from coreutils.
21865         * config/srclistvars.sh (COREUTILS): new var.
21866
21867 2006-03-17  Jim Meyering  <jim@meyering.net>
21868
21869         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
21870         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
21871
21872 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
21873
21874         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
21875         no longer needs it.  Instead, check that regoff_t is as least
21876         as wide as ptrdiff_t.
21877
21878         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
21879         so that our regex.h stays compatible with the installed regex.
21880         This is helpful for installers who configure --without-included-regex.
21881         Problem reported by Emanuele Giaquinta.
21882
21883 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
21884
21885         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
21886         Typedef to long int, not to off_, as POSIX will likely change
21887         in that direction.
21888
21889 2006-03-15  Eric Blake  <ebb9@byu.net>
21890
21891         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
21892
21893 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
21894
21895         * lib/argp-help.c (validate_uparams): Fix typo
21896         * lib/argp-parse.c (argp_default_options): Consistently begin help
21897         messages with a lowercase letter.
21898
21899 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
21900
21901         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
21902         overrun buffers and shouldn't be used (much as gets shouldn't be
21903         used).
21904         * lib/time_r.c (asctime_r, ctime_r): Likewise.
21905
21906 2006-03-08  Simon Josefsson  <jas@extundo.com>
21907
21908         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
21909         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21910
21911 2006-03-08  Simon Josefsson  <jas@extundo.com>
21912
21913         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
21914         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21915
21916 2006-03-08  Simon Josefsson  <jas@extundo.com>
21917
21918         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
21919         signal that configure disabled the device.
21920
21921 2006-03-08  Simon Josefsson  <jas@extundo.com>
21922
21923         * build-aux/maint.mk: Fix refresh-po, to handle no translated
21924         languages.
21925
21926 2006-03-07  Simon Josefsson  <jas@extundo.com>
21927
21928         * modules/getopt (Depends-on): Add unistd.
21929
21930         * modules/unistd: New file.
21931
21932 2006-03-07  Simon Josefsson  <jas@extundo.com>
21933
21934         * modules/gc-random: New file.
21935
21936 2006-03-07  Simon Josefsson  <jas@extundo.com>
21937
21938         * m4/unistd_h.m4: New file.
21939
21940 2006-03-07  Simon Josefsson  <jas@extundo.com>
21941
21942         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
21943         test to be side-effect free by storing the result in the cache
21944         variable gl_cv_lib_readline, and moving the assignment of
21945         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
21946         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21947
21948 2006-03-07  Simon Josefsson  <jas@extundo.com>
21949
21950         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
21951         error on missing devices (the functions will return an error).
21952
21953         * m4/gc.m4: Move random stuff to gc-random.m4
21954
21955 2006-03-07  Simon Josefsson  <jas@extundo.com>
21956
21957         * lib/unistd_.h: New file.
21958
21959 2006-03-07  Simon Josefsson  <jas@extundo.com>
21960
21961         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
21962
21963 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
21964
21965         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
21966         Problem reported by Juan Manuel Guerrero.
21967
21968 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
21969
21970         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
21971         the unistd module.
21972         * lib/getlogin_r.c: Likewise.
21973         * lib/getlogin_r.h: Likewise.
21974         * lib/glob.c: Likewise.
21975         * lib/pagealign_alloc.c: Likewise.
21976         * lib/unistd_.h: Remove; no longer needed.
21977
21978 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
21979
21980         * MODULES.html.sh (Support for systems lacking POSIX:2001):
21981         Add unistd.
21982         * modules/c-stack (Depends-on): Add unistd.
21983         * modules/getlogin_r: Likewise.
21984         * modules/glob: Likewise.
21985         * modules/pagealign_alloc: Likewise.
21986         * modules/unistd (Files): Remove lib/unistd_.h.
21987         (EXTRA_DIST): Remove.
21988         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
21989         need unistd_.h.
21990         (MOSTLYCLEANFILES): Remove unistd.h-t.
21991
21992 2006-03-03  Simon Josefsson  <jas@extundo.com>
21993
21994         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
21995
21996 2006-03-03  Simon Josefsson  <jas@extundo.com>
21997
21998         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
21999         libidn and bison.
22000
22001 2006-03-03  Simon Josefsson  <jas@extundo.com>
22002
22003         * build-aux/maint.mk: Add indent target.
22004
22005 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
22006
22007         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
22008         our replacement poll.h in any case, to avoid a differing
22009         declaration from a system header.  Seen on AIX.
22010
22011 2006-03-01  Simon Josefsson  <jas@extundo.com>
22012
22013         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
22014         <kasal@ucw.cz>.
22015
22016 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
22017
22018         * modules/gettime (Depends-on): Add extensions module.
22019         * modules/nanosleep (Depends-on): Likewise.
22020         * modules/settime (Depends-on): Likewise.
22021
22022 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
22023
22024         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
22025         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
22026         pedantically.
22027         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
22028         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
22029
22030         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
22031         not "==".  Reported by Ralf Wildenhues.
22032
22033 2006-03-01  Karl Berry  <karl@gnu.org>
22034
22035         * doc/Copyright/request-*: new files, synced from gnuorg.
22036
22037 2006-03-01  Karl Berry  <karl@gnu.org>
22038
22039         * config/srclist.txt (Copyright/*): new entries.
22040
22041 2006-02-28  Simon Josefsson  <jas@extundo.com>
22042
22043         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
22044
22045 2006-02-27  Simon Josefsson  <jas@extundo.com>
22046
22047         * lib/base64.h: Indent #define's.  From Jim Meyering
22048         <jim@meyering.net>.
22049
22050 2006-02-27  Jim Meyering  <jim@meyering.net>
22051
22052         Revert the change of 2006-02-24, so these files can continue
22053         to be sync'd from gettext.
22054         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
22055         of `config.h'.
22056
22057 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
22058
22059         * modules/intprops: New file.
22060         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
22061         Add intprops.
22062         * modules/getloadavg (Files): Remove lib/intprops.h.
22063         (Depends-on): Add intprops.
22064         * modules/human: Likewise.
22065         * modules/inttostr: Likewise.
22066         * modules/openat: Likewise.
22067         * modules/sig2str: Likewise.
22068         * modules/userspec: Likewise.
22069         * modules/utimecmp: Likewise.
22070         * modules/xnanosleep: Likewise.
22071         * modules/xstrtol: Likewise.
22072
22073 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
22074
22075         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
22076         * modules/lock-tests (TESTS): Use $(EXEEXT).
22077         * modules/tls-tests: Likewise.
22078         * modules/argp-tests: Likewise.
22079         (check_PROGRAMS): New var, replacing...
22080         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
22081
22082 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22083
22084         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
22085         `config.h'.
22086
22087 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
22088
22089         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
22090
22091 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22092
22093         Sync from coreutils.
22094         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
22095         gl_CHDIR_SAFER.
22096
22097 2006-02-22  Jim Meyering  <jim@meyering.net>
22098
22099         Sync from coreutils.
22100         * m4/chdir-safer.m4: New file.
22101
22102 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
22103
22104         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
22105         AT_FDCWD exceeds INT_MAX.
22106         * lib/openat.h (AT_FDCWD): Likewise.
22107
22108 2006-02-17  Eric Blake  <address@hidden>
22109
22110         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
22111
22112 2006-02-16  Simon Josefsson  <jas@extundo.com>
22113
22114         * modules/getaddrinfo (Depends-on): Add sys_socket.
22115
22116 2006-02-15  Simon Josefsson  <jas@extundo.com>
22117
22118         * build-aux/maint.mk: Add dsyntax-check rule.
22119
22120 2006-02-15  Eric Blake  <ebb9@byu.net>
22121
22122         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
22123         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
22124         'present but cannot compile' warnings on cygwin.
22125         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
22126         use ws2tcpip.h if sys/socket.h works.
22127         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
22128         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
22129
22130 2006-02-14  Simon Josefsson  <jas@extundo.com>
22131
22132         * modules/maintainer-makefile (Files): Rename.
22133
22134         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
22135         and (the local) Makefile.cfg to maint-cfg.mk.
22136
22137         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
22138         to the latter.
22139
22140         * modules/maintainer-makefile: New module.
22141
22142         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
22143         severaly stripped to make it possible to build it up from scratch
22144         with reliable tests.
22145
22146         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
22147         fixes to permit overriding the default actions when configure and
22148         makefile are not available.
22149
22150 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
22151
22152         Sync from coreutils.
22153         * modules/lstat (Depends-on): Don't depend on xalloc.
22154         (License): Change from GPL to LGPL, since this is now simply a
22155         replacement for a libc function.
22156
22157 2006-02-14  Jim Meyering  <jim@meyering.net>
22158
22159         Sync from coreutils.
22160
22161         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
22162         failure on deficient systems, and simplify gnulib lgpl dependencies.
22163         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
22164         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
22165
22166         * lib/xalloc-die.c: Remove unused definition of N_.
22167
22168 2006-02-14  Jim Meyering  <jim@meyering.net>
22169
22170         Sync from coreutils.
22171         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
22172         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
22173         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
22174         double-quote uses of that variable, to accommodate the rare case in
22175         which getmntent is available in none of the libraries checked.  This
22176         happens at least on FreeBSD 5.0.
22177
22178 2006-02-13  Simon Josefsson  <jas@extundo.com>
22179
22180         * gnulib-tool (Usage): Fix --import, from
22181         karl@freefriends.org (Karl Berry).
22182
22183 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
22184
22185         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
22186
22187 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
22188
22189         * lib/argp-namefrob.h: Restore changes accidentally lost during the
22190         "autoupdate" on 2005-12-12.
22191
22192 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
22193
22194         * modules/closeout (Depends-on): Remove atexit.
22195
22196 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
22197
22198         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
22199         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
22200
22201 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
22202
22203         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
22204         __EXTENSIONS__ if this causes compilation to fail.  Problem
22205         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
22206         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
22207
22208 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
22209
22210         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
22211         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
22212         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
22213         All uses changed.
22214
22215 2006-01-26  Simon Josefsson  <jas@extundo.com>
22216
22217         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
22218         prototype is visible on mingw32.
22219
22220         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
22221         for mingw32.
22222
22223         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
22224         mingw32).
22225
22226 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
22227
22228         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
22229         attempt to open for write; this always fails, at least on POSIX
22230         hosts.  This reinstates the 2006-01-09 change, which was
22231         inadvertently removed.
22232
22233 2006-01-26  Bruno Haible  <bruno@clisp.org>
22234
22235         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
22236         Reported by Paul Eggert.
22237
22238 2006-01-26  Bruno Haible  <bruno@clisp.org>
22239             Paul Eggert  <eggert@cs.ucla.edu>
22240
22241         * lib/stdbool_.h (_Bool)
22242         [(! (defined __cplusplus || defined __BEOS__)
22243           && !defined __GNUC__
22244           && !(defined __HP_cc || defined __xlc__
22245                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
22246                || defined __sgi))]:
22247         #define to signed char in these cases too; this simplifies
22248         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
22249         etc., separately) and makes it more conservative.
22250
22251 2006-01-25  Simon Josefsson  <jas@extundo.com>
22252
22253         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
22254         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
22255         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
22256
22257 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
22258
22259         * lib/argp-namefrob.h: Bugfix. Remove stray #
22260
22261 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
22262
22263         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
22264         so that we test the test.
22265         Check for yet another HP-UX cc bug involving *bool |= bool.
22266
22267 2006-01-25  Karl Berry  <karl@gnu.org>
22268
22269         * config/srclist.txt (vasnprintf.c): sync lost.
22270
22271 2006-01-25  Jim Meyering  <jim@meyering.net>
22272
22273         Sync from the stable (b5) branch of coreutils:
22274
22275         * lib/fts.c (fts_children): Don't let close() clobber errno from
22276         failed fchdir().
22277
22278         * lib/fts.c (fts_stat): When following a symlink-to-directory,
22279         don't necessarily interpret stat-fails+lstat-succeeds as indicating
22280         a dangling symlink.  That can also happen at least for ELOOP.
22281         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
22282         FYI, this bug predates the inclusion of fts.c in coreutils.
22283
22284         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
22285         in their own block, so pre-c99 compilers don't object.
22286
22287         Avoid the double-free (first in fts_read, second in fts_close) that
22288         would occur when an `active' directory is made inaccessible (e.g.,
22289         via chmod a-x) during a traversal.
22290         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
22291         before returning.  Reproduce this failure by
22292         mkdir -p a/b; cd a; chmod a-x . b
22293         Reported by Stavros Passas.
22294
22295 2006-01-25  Jim Meyering  <jim@meyering.net>
22296
22297         * lib/fileblocks.c: Remove more useless parentheses.
22298         * lib/readutmp.h: Likewise.
22299
22300 2006-01-25  Bruno Haible  <bruno@clisp.org>
22301
22302         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
22303         warnings.
22304         Reported by Paul Eggert.
22305
22306 2006-01-25  Bruno Haible  <bruno@clisp.org>
22307
22308         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
22309         rid of a trap command. For Solaris sh.
22310         Reported by Mark D. Baushke <mdb@gnu.org>.
22311
22312 2006-01-24  Simon Josefsson  <jas@extundo.com>
22313
22314         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
22315         Bruno.
22316
22317 2006-01-24  Karl Berry  <karl@gnu.org>
22318
22319         * config/srclist.txt (argp-namefrob.h): sync lost.
22320
22321 2006-01-24  Jim Meyering  <jim@meyering.net>
22322
22323         * modules/openat (Files): Add lib/intprops.h.
22324         From Mark D. Baushke.
22325
22326 2006-01-24  Jim Meyering  <jim@meyering.net>
22327
22328         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
22329         Reported by Mark D. Baushke.
22330
22331 2006-01-24  Jim Meyering  <jim@meyering.net>
22332
22333         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
22334
22335 2006-01-24  Bruno Haible  <bruno@clisp.org>
22336
22337         * modules/strnlen (Maintainer): Change from glibc to all.
22338
22339 2006-01-24  Bruno Haible  <bruno@clisp.org>
22340
22341         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
22342         Patch by Paul Eggert.
22343
22344 2006-01-24  Bruno Haible  <bruno@clisp.org>
22345
22346         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
22347         already has it.
22348         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
22349         2005-11-26.
22350
22351         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
22352         'signed char' to avoid problems with the built-in _Bool type.
22353         Reported by Paul Eggert on 2005-11-26.
22354
22355 2006-01-24  Bruno Haible  <bruno@clisp.org>
22356
22357         * gnulib-tool (func_import): Avoid constructing complicated sed
22358         expressions inside backquote.
22359         Report and solution by Mark D. Baushke <mdb@gnu.org>.
22360
22361 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
22362
22363         These changes imported from libc.
22364         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
22365         test and two separate function calls.
22366         * lib/strndup.c (__strndup): Add libc_hidden_def.
22367
22368 2006-01-23  Simon Josefsson  <jas@extundo.com>
22369
22370         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
22371         Remove the test_*_SOURCES variable: automake infers it by default.
22372         * modules/tls-tests: Likewise.
22373
22374 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
22375
22376         Work around porting bugs reported by Dieter in
22377         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
22378         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
22379         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
22380         Include "getopt.h" first, to check interface.
22381         (getenv): Declare only if defined HAVE_DECL_GETENV &&
22382         !HAVE_DECL_GETENV.
22383         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
22384         (__strndup): Revert to K&R-style function dfns, the glibc style.
22385         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
22386         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
22387         Include strnlen.h first, to get prototype properly.
22388         (strnlen): Renamed from __strnlen.
22389         Remove weak alias.
22390
22391 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
22392
22393         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
22394
22395 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
22396
22397         * config/srclist.txt: Adjust to reflect glibc reorganization.
22398         This affects only comments.
22399
22400 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
22401
22402          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
22403          Reported by Bruce Korb <bkorb@gnu.org>.
22404
22405 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
22406
22407         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
22408         to pacify gcc -Wswitch-default.
22409
22410 2006-01-22  Bruno Haible  <bruno@clisp.org>
22411
22412         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
22413         temporary buffer for sprintf, take into account the precision also
22414         for 'd', 'i', 'u', 'o', 'x', 'X'.
22415
22416 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
22417
22418         * modules/argp-tests: New module
22419         * tests/test-argp.c: New file
22420         * tests/test-argp-2.sh: New file
22421
22422 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
22423
22424         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
22425         (__argp_base_name): Removed
22426         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
22427         typo.
22428         (__argp_base_name): Provide macro definition or extern declaration
22429         depending on the configuration
22430
22431 2006-01-20  Simon Josefsson  <jas@extundo.com>
22432
22433         * modules/inet_ntop (Depends-on): Depend on sys_socket.
22434
22435 2006-01-20  Simon Josefsson  <jas@extundo.com>
22436
22437         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
22438
22439 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
22440
22441         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
22442         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
22443         Suggested by Bruno Haible.
22444
22445 2006-01-20  Karl Berry  <karl@gnu.org>
22446
22447         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
22448         until changes propagate, I guess.
22449
22450 2006-01-19  Simon Josefsson  <jas@extundo.com>
22451
22452         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
22453
22454 2006-01-19  Simon Josefsson  <jas@extundo.com>
22455
22456         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
22457
22458 2006-01-19  Simon Josefsson  <jas@extundo.com>
22459
22460         * gnulib-tool: Set check_PROGRAMS.
22461
22462         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
22463         modules/des-tests, modules/gc-arcfour-tests,
22464         modules/gc-arctwo-tests, modules/gc-des-tests,
22465         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
22466         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
22467         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
22468         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
22469         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
22470         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
22471         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
22472         test_*_SOURCES.
22473
22474 2006-01-18  Simon Josefsson  <jas@extundo.com>
22475
22476         * modules/socklen (Depends-on): Depend on sys_socket.
22477
22478 2006-01-18  Simon Josefsson  <jas@extundo.com>
22479
22480         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
22481         modules/des-tests, modules/gc-arcfour-tests,
22482         modules/gc-arctwo-tests, modules/gc-des-tests,
22483         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
22484         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
22485         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
22486         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
22487         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
22488         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
22489         $(EXEEXT) to automake TESTS variable, for mingw32.
22490
22491 2006-01-17  Simon Josefsson  <jas@extundo.com>
22492
22493         * modules/socklen (Include): Need sys/socket.h.
22494
22495 2006-01-17  Bruno Haible  <bruno@clisp.org>
22496
22497         * modules/ssize_t (Include): Add <sys/types.h>.
22498
22499 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
22500
22501         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
22502         it's not portable and it doesn't work with cross-compiles.
22503         Problem reported by Bruno Haible.  Fix missing-$ typo in
22504         'test "gl_cv_ignore_unused_libraries" ...' that prevented
22505         -zignore from being used with Sun's C compiler.
22506
22507 2006-01-12  Simon Josefsson  <jas@extundo.com>
22508
22509         * lib/base64.c: Fix warning, reported by Bruno Haible
22510         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
22511
22512 2006-01-12  Bruno Haible  <bruno@clisp.org>
22513
22514         * modules/ldd: New file.
22515         * build-aux/ldd.sh.in: New file.
22516         * MODULES.html.sh (Support for building libraries and executables): Add
22517         ldd.
22518
22519 2006-01-12  Bruno Haible  <bruno@clisp.org>
22520
22521         * m4/ldd.m4: New file.
22522
22523 2006-01-12  Bruno Haible  <bruno@clisp.org>
22524
22525         * gnulib-tool (func_import, func_create_testdir): Don't go into an
22526         endless loop while replacing $auxdir with build-aux.
22527
22528 2006-01-11  Simon Josefsson  <jas@extundo.com>
22529
22530         * lib/stdint_.h (SIZE_MAX): Add missing (.
22531
22532 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
22533
22534         Sync from coreutils.
22535         * lib/md5.c: Fix commentary typos.
22536         (alignof, UNALIGNED_P): No need for a GCC-specific version.
22537         * lib/md5.h (__attribute__): Remove; unused.
22538         * lib/sha1.c: Fix commentary to match md5 better.
22539         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
22540         so that we don't need to worry about alignment.  All uses changed.
22541         This merges the 2005-10-28 md5 change into sha1.
22542
22543 2006-01-11  Jim Meyering  <jim@meyering.net>
22544
22545         Sync from coreutils.
22546         * lib/md5.c (OP): Fix spacing.
22547
22548 2006-01-11  Bruno Haible  <bruno@clisp.org>
22549
22550         Ensure automatic ordering between gl_LOCK and gl_ARGP.
22551         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
22552         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
22553
22554 2006-01-11  Bruno Haible  <bruno@clisp.org>
22555
22556         Ensure automatic ordering between gl_LOCK and gl_ARGP.
22557         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
22558         the "early" section as well.
22559
22560 2006-01-11  Bruno Haible  <bruno@clisp.org>
22561
22562         Avoid "ar: no archive members specified" error on MacOS X.
22563         * gnulib-tool (func_modules_add_dummy): New function.
22564         (func_import, func_create_testdir): Invoke it.
22565
22566 2006-01-11  Bruno Haible  <bruno@clisp.org>
22567
22568         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
22569         with $auxdir in AC_CONFIG_FILES statements.
22570
22571 2006-01-11  Bruno Haible  <bruno@clisp.org>
22572
22573         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
22574         Initialize also noinst_HEADERS to empty.
22575
22576 2006-01-11  Bruno Haible  <bruno@clisp.org>
22577
22578         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
22579         variables.
22580         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
22581         autoreconf.
22582
22583 2006-01-11  Bruno Haible  <bruno@clisp.org>
22584
22585         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
22586         overridable by the user.
22587         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22588
22589 2006-01-10  Simon Josefsson  <jas@extundo.com>
22590
22591         * modules/sys_socket: New file.
22592
22593 2006-01-10  Simon Josefsson  <jas@extundo.com>
22594
22595         * m4/sys_socket_h.m4: New file.
22596
22597 2006-01-10  Simon Josefsson  <jas@extundo.com>
22598
22599         * lib/socket_.h: New file.
22600
22601 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
22602
22603         * modules/readutmp (Maintainer): Add myself.
22604
22605 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
22606
22607         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
22608         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
22609         People who are still concerned with buggy memcmp implementations
22610         can invoke gl_FUNC_MEMCMP themselves.
22611
22612 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
22613
22614         * lib/regex_internal.h (BITSET_WORD_BITS):
22615         Work around a bug in 64-bit PGC (before version 6.1-2), where the
22616         preprocessor mishandles large unsigned values as if they were signed.
22617         Problem reported by Claudio Fontana in
22618         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
22619
22620 2006-01-10  Jim Meyering  <jim@meyering.net>
22621
22622         Avoid the double-free (first in fts_read, second in fts_close) that
22623         would occur when an `active' directory is made inaccessible (e.g.,
22624         via chmod a-x) during a traversal.
22625         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
22626         before returning.  Reproduce this failure by
22627         mkdir -p a/b; cd a; chmod a-x . b
22628         Reported by Stavros Passas.
22629
22630         Sync from coreutils.
22631         * lib/sha1.c: Tweak grammar in a comment.
22632
22633 2006-01-10  Jim Meyering  <jim@meyering.net>
22634
22635         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
22636         Patch by Joerg Sonnenberger.
22637
22638 2006-01-10  Bruno Haible  <bruno@clisp.org>
22639
22640         * modules/readutmp: Depend on module free.
22641         * modules/strtok_r: Depend on module restrict.
22642
22643 2006-01-10  Bruno Haible  <bruno@clisp.org>
22644
22645         * modules/gettext (configure.ac): Add an invocation of
22646         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
22647
22648 2006-01-10  Bruno Haible  <bruno@clisp.org>
22649
22650         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
22651         Reported by Werner Lemberg <wl@gnu.org>.
22652
22653 2006-01-10  Bruno Haible  <bruno@clisp.org>
22654
22655         * lib/localcharset.c: Update from GNU gettext.
22656
22657 2006-01-10  Bruno Haible  <bruno@clisp.org>
22658
22659         * lib/argp.h (__const): Remove macro. Use const instead.
22660         * lib/argp-fmtstream.h (__const): Likewise.
22661         * lib/glob_.h (__const): Remove macro.
22662         * lib/glob-libc.h: Use const instead of __const.
22663
22664 2006-01-10  Bruno Haible  <bruno@clisp.org>
22665
22666         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
22667         variable.
22668         Needed to avoid an automake error regarding the 'gettext' module.
22669
22670 2006-01-09  Simon Josefsson  <jas@extundo.com>
22671
22672         * modules/inet_ntop (Depends-on): Add restrict.
22673
22674 2006-01-09  Simon Josefsson  <jas@extundo.com>
22675
22676         * modules/gc-rijndael-tests (License): Put under LGPL.
22677
22678         * modules/gc-des-tests (License): Likewise.
22679
22680         * modules/gc-arcfour-tests (License): Likewise.
22681
22682         * modules/gc-arctwo-tests (License): Likewise.
22683
22684         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
22685
22686         * modules/gc-hmac-sha1-tests (Files): Likewise.
22687
22688         * modules/gc-hmac-md5-tests (License): Likewise.
22689
22690         * modules/gc-sha1-tests (License): Likewise.
22691
22692         * modules/gc-md5-tests (License): Likewise.
22693
22694         * modules/gc-md4-tests (License): Likewise.
22695
22696         * modules/gc-md2-tests (License): Likewise.
22697
22698         * modules/gc-tests (License): Likewise.
22699
22700         * modules/des-tests (License): Likewise.
22701
22702         * modules/md4-tests (License): Likewise.
22703
22704         * modules/md2-tests (License): Likewise.
22705
22706 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
22707
22708         Sync from coreutils:
22709
22710         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
22711         * modules/lib-ignore: New file.
22712         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
22713         chdir-safer.m4, lchmod.m4.
22714         * modules/openat: Add mkdirat.c, openat-priv.h.
22715
22716 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
22717
22718         Sync from coreutils.
22719         * m4/lib-ignore.m4: New file.
22720         * m4/lchmod.m4: New file.
22721
22722 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
22723
22724         Sync from coreutils.
22725         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
22726         for write access: POSIX says that must fail.
22727         * lib/fts.c (diropen): Likewise.
22728         * lib/save-cwd.c (save_cwd): Likewise.
22729         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
22730         well, for minor improvements on hosts that lack O_DIRECTORY.
22731         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
22732         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
22733         Fall back on chown if open failed with EACCES.
22734
22735         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
22736         Report an error at compile-time if only a 1-second nominal clock
22737         resolution is found.
22738
22739         * lib/lchmod.h: New file.
22740         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
22741         (make_dir_parents): Use lchown rather than chown, and
22742         lchmod rather than chmod.
22743
22744         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
22745         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
22746         "proc" reported by n0dalus.
22747
22748         * lib/mountlist.c: Include <limits.h>.
22749         (dev_from_mount_options)
22750         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
22751         New function.  It no longer assumes "dev=" has the System V meaning
22752         on Linux (since it doesn't).  It also parses "dev=" more carefully.
22753         (read_file_system_list)
22754         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
22755         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
22756         dev= in that case.
22757
22758         * lib/posixtm.h (PDS_PRE_2000): New macro.
22759         * lib/posixtm.c (year): Arg is now syntax_bits rather than
22760         allow_century.  All usages changed.  Reject dates outside the range
22761         1969-1999 if PDS_PRE_2000 is used.
22762
22763 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
22764
22765         Sync from coreutils.
22766         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
22767         (Time of day items): Mention the possibility of leap seconds.
22768         Problem reported by Dr. David Alan Gilbert.
22769
22770 2006-01-09  Jim Meyering  <jim@meyering.net>
22771
22772         Sync from coreutils.
22773
22774         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
22775
22776         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
22777
22778         * lib/modechange.c (mode_compile): Reject an invalid mode string
22779         that starts with an octal digit.  From Andreas Gruenbacher.
22780
22781         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
22782         and dup to open_safer and dup_safer, respectively.
22783         (openat_permissive): Fix typo in comment.
22784
22785         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
22786         "gettext.h"; either no longer needed or are guaranteed by openat.h.
22787         (_): Remove; no longer needed.
22788         (openat): Renamed from rpl_openat; no need for rpl_openat
22789         since openat.h renames openat for us.
22790         Replace most of the body with a call to openat_permissive,
22791         to avoid duplicate code.
22792         Port to (probably hypothetical) environments were mode_t is
22793         wider than int.
22794         (openat_permissive): Require mode arg, so that we can check
22795         types better.  Put it just after flags.  Change cwd failure
22796         indicator from pointer-to-bool to pointer-to-errno-value.
22797         All callers changed.
22798         Invoke openat_save_fail and/or openat_restore_fail if
22799         cwd_errno is null, so that openat can call us.
22800         (openat_permissive, fdopendir, fstatat, unlinkat):
22801         Simplify errno handling to avoid some duplicate code,
22802         as it's OK to set errno on success.
22803         * lib/openat.h: Revamp code so that function macros depend on
22804         __OPENAT_PREFIX only, not also on AT_FDCWD.
22805         (openat_ro): Remove.  Caller changed to use openat_permissive.
22806         (openat_permissive): Now a macro, if not a function.
22807         (openat_restore_fail, openat_save_fail): Now always functions,
22808         since mkdirat needs them even if __OPENAT_PREFIX is defined.
22809
22810         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
22811         and openat.c.
22812         * lib/mkdirat.c: Include openat-priv.h.
22813         Remove definitions of macros defined therein.
22814         * lib/openat.c: Likewise.
22815
22816         * lib/mkdirat.c (mkdirat): New file and function.
22817         * lib/openat.h (mkdirat): Declare.
22818
22819         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
22820
22821         * lib/openat.h (openat_permissive): Declare.
22822         (openat_ro): Define.
22823
22824         * lib/openat.c (EXPECTED_ERRNO): New macro.
22825         (openat_permissive): New function -- used in remove.c rewrite.
22826         (all functions): Set errno just before returning, only if there
22827         was an actual failure.
22828         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
22829
22830         Emulate openat-family functions using Linux's procfs, if possible.
22831         Idea and some code based on Ulrich Drepper's glibc changes.
22832
22833         * lib/openat.c: (BUILD_PROC_NAME): New macro.
22834         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
22835         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
22836         before falling back on save_cwd and restore_cwd.
22837         (fdopendir, fstatat, unlinkat): Likewise.
22838
22839         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
22840         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
22841
22842         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
22843         as second argument to va_arg.  Otherwise, some versions of gcc
22844         warn that `if this code is reached, the program will abort'.
22845
22846 2006-01-09  Jim Meyering  <jim@meyering.net>
22847
22848         Sync from coreutils.
22849         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
22850         Require openat-priv.h.
22851
22852 2006-01-09  Bruno Haible  <bruno@clisp.org>
22853
22854         * modules/strnlen (Include): Use strnlen.h.
22855
22856 2006-01-09  Bruno Haible  <bruno@clisp.org>
22857
22858         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
22859
22860 2006-01-09  Bruno Haible  <bruno@clisp.org>
22861
22862         * lib/sysexit_.h (EX_OK): New macro.
22863         Suggested by Martin Lambers <marlam@marlam.de>.
22864
22865 2006-01-09  Bruno Haible  <bruno@clisp.org>
22866
22867         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
22868         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
22869
22870 2006-01-09  Bruno Haible  <bruno@clisp.org>
22871
22872         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
22873         numbers.
22874
22875 2006-01-09  Bruno Haible  <bruno@clisp.org>
22876
22877         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
22878         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
22879         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
22880         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
22881
22882 2006-01-09  Bruno Haible  <bruno@clisp.org>
22883
22884         * build-aux/javacomp.sh.in: New file, moved from lib/.
22885         * modules/javacomp-script (Files): Update.
22886         (configure.ac): Add AC_CONFIG_FILES invocation.
22887         (EXTRA_DIST): Remove variable.
22888
22889         * build-aux/javaexec.sh.in: New file, moved from lib/.
22890         * modules/javaexec (Files): Update.
22891         (configure.ac): Add AC_CONFIG_FILES invocation.
22892         (EXTRA_DIST): Remove javaexec.sh.in.
22893
22894         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
22895         * modules/csharpcomp-script (Files): Update.
22896         (configure.ac): Add AC_CONFIG_FILES invocation.
22897         (EXTRA_DIST): Remove variable.
22898
22899         * build-aux/csharpexec.sh.in: New file, moved from lib/.
22900         * modules/csharpexec (Files): Update.
22901         (configure.ac): Add AC_CONFIG_FILES invocation.
22902         (EXTRA_DIST): Remove csharpexec.sh.in.
22903
22904 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
22905
22906         Sync from coreutils.
22907
22908         Add POSIX ACL support
22909         * lib/acl.h (copy_acl, set_acl): Add declarations.
22910         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
22911         systems other than Linux.
22912         (chmod_or_fchmod): New function: use fchmod when possible,
22913         and chmod otherwise.
22914         (file_has_acl): Add a POSIX ACL implementation, with a
22915         Linux-specific subcase.
22916         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
22917         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
22918         acls are unsupported.
22919         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
22920         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
22921         are unsupported.
22922
22923 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
22924
22925         Sync from coreutils.
22926         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
22927
22928 2006-01-07  Bruno Haible  <bruno@clisp.org>
22929
22930         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
22931         gl_EARLY.
22932
22933 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
22934
22935         * lib/strftime.c (tzname): Don't declare if it is already #defined.
22936         Problem reported for Mingw by Mark Junker.
22937
22938 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
22939
22940         * README: Gnulib normally doesn't generate a tarball.
22941
22942 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
22943
22944         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
22945         long int, not int, for nanosecond counts, so that people who are
22946         used to POSIX struct timespec won't be surprised.  Reported by Jim
22947         Meyering.
22948
22949 2005-12-28  Bruno Haible  <bruno@clisp.org>
22950
22951         * build-aux/config.rpath: Update from GNU gettext.
22952
22953 2005-12-16  Jim Meyering  <jim@meyering.net>
22954
22955         * modules/fprintftime: New module.
22956         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
22957
22958 2005-12-16  Jim Meyering  <jim@meyering.net>
22959
22960         * m4/fprintftime.m4: New file.
22961
22962 2005-12-16  Jim Meyering  <jim@meyering.net>
22963
22964         * lib/fprintftime.c, lib/fprintftime.h: New files.
22965
22966 2005-12-15  Simon Josefsson  <jas@extundo.com>
22967
22968         * modules/socklen (configure.ac): Fix M4 macro name, to align with
22969         new m4/socklen.m4.
22970
22971 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
22972
22973         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
22974         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
22975
22976 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
22977
22978         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
22979         * lib/argp-help.c (fill_in_uparams): Check if the constructed
22980         struct uparams is valid. Fall back to the default values if it is
22981         not.
22982
22983 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
22984
22985         * modules/argp (Files): Add argp-pin.c
22986         (Depends-on): dirname
22987         (lib_SOURCES): Add argp-pin.c
22988
22989 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
22990
22991         * m4/argp.m4:  Check if program_invocation_name and
22992         program_invocation_short_name are declared and define appropriate
22993         macros if they are not.
22994
22995 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
22996
22997         * lib/argp-help.c (__argp_base_name): New function
22998         (__argp_short_program_name): Rewrite using __argp_base_name
22999         * lib/argp-namefrob.h: Define program_invocation_name and
23000         program_invocation_short_name if requested
23001         (__argp_base_name): Add prototype
23002         * lib/argp-parse.c (argp_def): Use gettext wrappers
23003         (argp_default_parser): Use __argp_base_name
23004         * lib/argp-pin.c: New file. Defines program_invocation_name and
23005         program_invocation_short_name on systems that lack them.
23006
23007 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
23008
23009         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
23010         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
23011         porting problem reported by Georg Schwarz in
23012         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
23013
23014 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
23015
23016         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
23017         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
23018         porting problem reported by Georg Schwarz in
23019         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
23020
23021 2005-12-05  Bruno Haible  <bruno@clisp.org>
23022
23023         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
23024         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
23025         Reported by Mark Junker <mjscod@gmx.de>.
23026
23027 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
23028
23029         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
23030         Use implementation from Albert Chin, with some
23031         comments/corrections by Stepan Kasal and myself.
23032
23033 2005-12-02  Bruno Haible  <bruno@clisp.org>
23034
23035         * gnulib-tool (func_import): Accept GPLed build tool modules when
23036         --lgpl is given.
23037         * modules/csharpcomp-script: New file.
23038         * modules/csharpcomp: Depend on it.
23039         * modules/javacomp-script: New file.
23040         * modules/javacomp: Depend on it.
23041         Suggested by Simon Josefsson.
23042
23043 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
23044
23045         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
23046         statement, to work around an HP-UX 10.20 compiler bug reported by
23047         Peter O'Gorman.
23048
23049 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
23050
23051         * modules/savedir (Depends-on): Add openat.
23052
23053 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
23054
23055         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
23056         (uintmax_t) [defined uintmax_t]: Do not declare.
23057         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
23058         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
23059         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
23060         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
23061         sake of portability to weird hosts that C allows (though we don't
23062         know of any practical examples).
23063
23064         * lib/savedir.h (fdsavedir): New decl.
23065         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
23066         contains most of the former guts of savedir.
23067         (savedir): Use savedirstream.
23068         Include "openat.h".
23069
23070 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
23071
23072         * modules/obstack (Files): Add m4/ulonglong.m4.
23073         Problem reported by Davide Angelocola.
23074
23075 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
23076
23077         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
23078         coreutils no longer futzes with rounding modes.
23079
23080 2005-11-14  Jim Meyering  <jim@meyering.net>
23081
23082         * lib/mkstemp-safer.c: Include <config.h>, required for possible
23083         replacement of mkstemp.
23084
23085 2005-11-10  Simon Josefsson  <jas@extundo.com>
23086
23087         * lib/readline.c: Remove EOL.
23088
23089 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
23090
23091         * modules/gethrxtime (Depends-on): Add gettime.
23092
23093 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
23094
23095         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
23096         or gettimeofday; no longer needed.
23097
23098 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
23099
23100         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
23101         time business.
23102         (gethrxtime) [! (HAVE_NANOUPTIME
23103         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
23104         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
23105         our own approximation.
23106
23107 2005-11-08  Eric Blake  <ebb9@byu.net>
23108
23109         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
23110
23111 2005-11-08  Eric Blake  <ebb9@byu.net>
23112
23113         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
23114
23115 2005-11-04  Bruno Haible  <bruno@clisp.org>
23116
23117         * gnulib-tool: Implement --update mode.
23118
23119 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
23120
23121         Fix porting problem reported by Theodoros V. Kalamatianos.
23122         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
23123         Don't assume that futimes failing means we must fail.
23124
23125 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
23126
23127         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
23128         variables to suggest the intended function of the PATH_MAX check.
23129
23130 2005-10-30  Kean Johnston  <jkj@sco.com>
23131
23132         Trivial changes to support SCO systems.
23133         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
23134         as PATH_MAX.
23135         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
23136         where __ptr is null when no I/O is pending.
23137
23138 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
23139
23140         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
23141         leave errno alone.  Problem reported by Dmitry V. Levin.
23142
23143 2005-10-28  Simon Josefsson  <jas@extundo.com>
23144
23145         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
23146         Test more.
23147
23148         * tests/test-gc-md2.c, tests/test-md2.c: New files.
23149
23150         * modules/md2, modules/md2-tests: New files.
23151
23152 2005-10-28  Simon Josefsson  <jas@extundo.com>
23153
23154         * m4/inet_ntop.m4: More tests.
23155
23156         * m4/gc-md2.m4, md2.m4: New file.
23157
23158 2005-10-28  Simon Josefsson  <jas@extundo.com>
23159
23160         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
23161         "restrict" keywords, as per POSIX.  Protect the function
23162         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
23163         Don't use K&R prototypes.  Check the sprintf return values.
23164         Re-define EAFNOSUPPORT if not present.  Indent.
23165
23166         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
23167         suggested by Bruno Haible <bruno@clisp.org>.
23168
23169         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
23170
23171         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
23172
23173         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
23174         libgcrypt).
23175
23176         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
23177
23178         * lib/md2.h, lib/md2.c: New files.
23179
23180 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
23181
23182         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
23183         errno alone.  Problem reported by Frederic Jolliton.
23184
23185 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
23186
23187         * modules/verify (License): Change from GPL to LGPL.  This is a
23188         tiny module and there are apparently near-equivalents that are
23189         under the BSD license.
23190
23191 2005-10-24  Simon Josefsson  <jas@extundo.com>
23192
23193         * modules/sha1: Relicense to LGPL.
23194
23195 2005-10-24  Simon Josefsson  <jas@extundo.com>
23196
23197         * lib/md4.h: Shrink buffer size, now that we changed the type.
23198
23199 2005-10-23  Simon Josefsson  <jas@extundo.com>
23200
23201         * gnulib-tool (func_import): Fix --tests-base.
23202
23203 2005-10-22  Simon Josefsson  <jas@extundo.com>
23204
23205         * modules/arcfour (Depends-on): Need stdint.
23206
23207 2005-10-22  Simon Josefsson  <jas@extundo.com>
23208
23209         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
23210         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
23211
23212 2005-10-22  Simon Josefsson  <jas@extundo.com>
23213
23214         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
23215         suggested by Bruno Haible <bruno@clisp.org>.
23216
23217 2005-10-22  Simon Josefsson  <jas@extundo.com>
23218
23219         * lib/crc.h: Include stddef.h, for size_t.
23220
23221 2005-10-22  Simon Josefsson  <jas@extundo.com>
23222
23223         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
23224         arcfour_context struct (simplify test vector testing in GNU
23225         Shishi).
23226
23227 2005-10-21  Simon Josefsson  <jas@extundo.com>
23228
23229         * modules/des, modules/des-tests: New files.
23230
23231         * modules/gc-des, modules/gc-des-tests: New files.
23232
23233         * tests/test-des.c, tests/test-gc-des.c: New file.
23234
23235 2005-10-21  Simon Josefsson  <jas@extundo.com>
23236
23237         * modules/arctwo, modules/arctwo-tests: New files.
23238
23239         * tests/test-arctwo.c: New file.
23240
23241         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
23242
23243         * tests/test-gc-arctwo.c: New file.
23244
23245 2005-10-21  Simon Josefsson  <jas@extundo.com>
23246
23247         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
23248         Bruno Haible <bruno@clisp.org>.
23249
23250         * m4/gc-des.m4: New file.
23251
23252 2005-10-21  Simon Josefsson  <jas@extundo.com>
23253
23254         * m4/arctwo.m4: New file.
23255
23256         * m4/gc-arctwo.m4: New file.
23257
23258 2005-10-21  Simon Josefsson  <jas@extundo.com>
23259
23260         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
23261         block.
23262
23263 2005-10-21  Simon Josefsson  <jas@extundo.com>
23264
23265         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
23266         <bruno@clisp.org>.
23267
23268         * lib/hmac-sha1.c (hmac_sha1): Likewise.
23269
23270         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
23271         Bruno Haible <bruno@clisp.org>.
23272
23273         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
23274         <bruno@clisp.org>.
23275
23276 2005-10-21  Simon Josefsson  <jas@extundo.com>
23277
23278         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
23279
23280 2005-10-21  Simon Josefsson  <jas@extundo.com>
23281
23282         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
23283
23284 2005-10-21  Simon Josefsson  <jas@extundo.com>
23285
23286         * lib/des.h, lib/des.c: New files.
23287
23288         * lib/gc-gnulib.c: Support DES.c
23289
23290 2005-10-21  Simon Josefsson  <jas@extundo.com>
23291
23292         * lib/arctwo.h, lib/arctwo.c: New files.
23293
23294         * lib/gc-gnulib.c: Support ARCTWO.
23295
23296 2005-10-21  Simon Josefsson  <jas@extundo.com>
23297
23298         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
23299         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23300
23301 2005-10-21  Simon Josefsson  <jas@extundo.com>
23302
23303         * gnulib-tool (func_import, func_create_testdir): Define automake
23304         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
23305         Makefile.am snippet),
23306         suggested by Bruno Haible <bruno@clisp.org>.
23307
23308         * modules/gc (Makefile.am): Use it.
23309
23310 2005-10-21  Bruno Haible  <bruno@clisp.org>
23311
23312         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
23313         patch.
23314
23315 2005-10-19  Simon Josefsson  <jas@extundo.com>
23316
23317         * tests/test-gc-rijndael.c: New file.
23318
23319         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
23320
23321 2005-10-19  Simon Josefsson  <jas@extundo.com>
23322
23323         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
23324         interface too.
23325
23326 2005-10-19  Simon Josefsson  <jas@extundo.com>
23327
23328         * tests/test-gc-arcfour.c: New file.
23329
23330         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
23331
23332 2005-10-19  Simon Josefsson  <jas@extundo.com>
23333
23334         * modules/gc-md4, modules/gc-md4-tests: New file.
23335
23336         * tests/test-gc-md4.c: New file.
23337
23338 2005-10-19  Simon Josefsson  <jas@extundo.com>
23339
23340         * m4/gc-md4.m4: New file.
23341
23342 2005-10-19  Simon Josefsson  <jas@extundo.com>
23343
23344         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
23345         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
23346         <kasal@ucw.cz>.
23347
23348 2005-10-19  Simon Josefsson  <jas@extundo.com>
23349
23350         * m4/gc-arcfour.m4: New file.
23351
23352         * m4/gc-rijndael.m4: New file.
23353
23354 2005-10-19  Simon Josefsson  <jas@extundo.com>
23355
23356         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
23357
23358 2005-10-19  Simon Josefsson  <jas@extundo.com>
23359
23360         * lib/gc-gnulib.c: Support ARCFOUR.
23361
23362 2005-10-19  Simon Josefsson  <jas@extundo.com>
23363
23364         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
23365         support.
23366
23367         * lib/gc.h: Add ECB enum type.
23368
23369         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
23370
23371 2005-10-18  Simon Josefsson  <jas@extundo.com>
23372
23373         * tests/test-md5.c: New file.
23374
23375         * modules/md5-tests: New file.
23376
23377 2005-10-18  Simon Josefsson  <jas@extundo.com>
23378
23379         * tests/test-md4.c: New file.
23380
23381         * modules/md4, modules/md4-tests: New files.
23382
23383 2005-10-18  Simon Josefsson  <jas@extundo.com>
23384
23385         * m4/md4.m4: New file.
23386
23387 2005-10-18  Simon Josefsson  <jas@extundo.com>
23388
23389         * lib/md4.h, lib/md4.c: New files, based on md5.?.
23390
23391 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
23392
23393         * gnulib-tool (func_create_testdir): Omit the second check whether
23394         BUILT_SOURCES in nonempty.
23395
23396 2005-10-17  Simon Josefsson  <jas@extundo.com>
23397
23398         * tests/test-rijndael.c: New file.
23399
23400 2005-10-17  Simon Josefsson  <jas@extundo.com>
23401
23402         * modules/sha1: Depend on stdint instead of md5.
23403
23404         * modules/md5: Depend on stdint, remove uint32_t.
23405
23406 2005-10-17  Simon Josefsson  <jas@extundo.com>
23407
23408         * modules/gc-sha1-tests: New file.
23409
23410         * tests/test-gc-sha1.c: New file.
23411
23412 2005-10-17  Simon Josefsson  <jas@extundo.com>
23413
23414         * m4/md5.m4: Remove call to uint32_t.m4.
23415
23416 2005-10-17  Simon Josefsson  <jas@extundo.com>
23417
23418         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
23419
23420         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
23421         md5.h.
23422
23423         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
23424
23425         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
23426
23427 2005-10-17  Simon Josefsson  <jas@extundo.com>
23428
23429         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
23430
23431 2005-10-17  Simon Josefsson  <jas@extundo.com>
23432
23433         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
23434
23435 2005-10-17  Simon Josefsson  <jas@extundo.com>
23436
23437         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
23438
23439         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
23440
23441 2005-10-17  Bruno Haible  <bruno@clisp.org>
23442
23443         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
23444         that it can also be used in a test.
23445
23446 2005-10-16  Bruno Haible  <bruno@clisp.org>
23447
23448         * gnulib-tool (func_emit_tests_Makefile_am): Also define
23449         TESTS_ENVIRONMENT, so that individual tests can augment it.
23450
23451         * gnulib-tool (func_create_testdir): Use an intermediate target for
23452         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
23453         macros, like $(ALLOCA_H), which cannot be passed through the command
23454         line.
23455
23456 2005-10-15  Simon Josefsson  <jas@extundo.com>
23457
23458         * modules/rijndael-tests: New file.
23459
23460         * modules/rijndael: New file.
23461
23462 2005-10-15  Simon Josefsson  <jas@extundo.com>
23463
23464         * m4/rijndael.m4: New file.
23465
23466 2005-10-15  Simon Josefsson  <jas@extundo.com>
23467
23468         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
23469
23470         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
23471
23472 2005-10-14  Simon Josefsson  <jas@extundo.com>
23473
23474         * tests/test-arcfour.c: New file.
23475
23476         * modules/arcfour, modules/arcfour-tests: New files.
23477
23478 2005-10-14  Simon Josefsson  <jas@extundo.com>
23479
23480         * m4/arcfour.m4: New file.
23481
23482 2005-10-14  Simon Josefsson  <jas@extundo.com>
23483
23484         * lib/arcfour.h, lib/arcfour.c: New files.
23485
23486 2005-10-14  Roland McGrath  <roland@redhat.com>
23487
23488         Import from libc.  [BZ #1331]
23489         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
23490         macro argument.
23491         Reported by Matej Vela <vela@debian.org>.
23492
23493 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
23494
23495         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
23496         include <wchar.h>; no longer needed.
23497
23498 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
23499
23500         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
23501
23502 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
23503         and  Ulrich Drepper  <drepper@redhat.com>
23504
23505         Import from libc.
23506         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
23507         instead of inline stream orientation test and two separate
23508         function calls.  Pay no attention to USE_IN_LIBIO.
23509
23510 2005-10-13  Simon Josefsson  <jas@extundo.com>
23511
23512         * modules/gc-hmac-md5-tests: New file.
23513
23514         * tests/test-gc-hmac-sha1.c: New file.
23515
23516         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
23517
23518         * modules/gc-hmac-md5-tests: New file.
23519
23520         * tests/test-gc-md5.c: New file.
23521
23522         * modules/gc-md5-tests: New file.
23523
23524 2005-10-13  Simon Josefsson  <jas@extundo.com>
23525
23526         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
23527         Move memory allocation outside of loop.
23528
23529 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
23530
23531         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
23532         intermediate directory is in a read-only file system.  Problem
23533         reported by Eric Blake.
23534
23535 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
23536
23537         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
23538
23539 2005-10-12  Simon Josefsson  <jas@extundo.com>
23540
23541         * tests/test-hmac-sha1.c: New file.
23542
23543         * modules/hmac-sha1-tests: New file.
23544
23545         * modules/hmac-sha1: New file.
23546
23547 2005-10-12  Simon Josefsson  <jas@extundo.com>
23548
23549         * modules/gc-sha1: New file.
23550
23551 2005-10-12  Simon Josefsson  <jas@extundo.com>
23552
23553         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
23554
23555         * tests/test-gc-pbkdf2-sha1.c: New file.
23556
23557 2005-10-12  Simon Josefsson  <jas@extundo.com>
23558
23559         * modules/gc-md5, modules/gc-hmac-md5: New files.
23560
23561         * modules/gc (Files): Remove md5, memxor and hmac files.
23562
23563 2005-10-12  Simon Josefsson  <jas@extundo.com>
23564
23565         * m4/gc-pbkdf2-sha1.m4: New file.
23566
23567         * m4/gc-hmac-sha1.m4: New file.
23568
23569         * m4/gc-sha1: New file.
23570
23571         * m4/hmac-sha1.m4: New file.
23572
23573 2005-10-12  Simon Josefsson  <jas@extundo.com>
23574
23575         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
23576
23577         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
23578
23579 2005-10-12  Simon Josefsson  <jas@extundo.com>
23580
23581         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
23582         suggested by Bruno Haible <bruno@clisp.org>.
23583
23584 2005-10-12  Simon Josefsson  <jas@extundo.com>
23585
23586         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
23587
23588 2005-10-12  Simon Josefsson  <jas@extundo.com>
23589
23590         * lib/gc-pbkdf2-sha1.c: New file.
23591
23592         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
23593
23594 2005-10-12  Simon Josefsson  <jas@extundo.com>
23595
23596         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
23597
23598         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
23599
23600 2005-10-12  Simon Josefsson  <jas@extundo.com>
23601
23602         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
23603         GC_USE_HMAC_MD5, respectively.
23604
23605         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
23606         (gc_md5): Fix typo.
23607
23608         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
23609
23610         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
23611
23612         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
23613
23614 2005-10-12  Bruno Haible  <bruno@clisp.org>
23615
23616         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
23617         Reported by Stepan Kasal <kasal@ucw.cz>.
23618
23619 2005-10-11  Simon Josefsson  <jas@extundo.com>
23620
23621         * tests/test-crc.c: New file.
23622
23623         * modules/crc, modules/crc-tests: New files.
23624
23625 2005-10-11  Simon Josefsson  <jas@extundo.com>
23626
23627         * m4/crc.m4: New file.
23628
23629 2005-10-11  Simon Josefsson  <jas@extundo.com>
23630
23631         * lib/gc.h: Add gc_hash and gc_hash_buffer.
23632
23633         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
23634
23635         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
23636
23637 2005-10-11  Simon Josefsson  <jas@extundo.com>
23638
23639         * lib/crc.h, lib/crc.c: New files.
23640
23641         * lib/gc.h (gc_hash_buffer): Add doc.
23642
23643 2005-10-11  Bruno Haible  <bruno@clisp.org>
23644
23645         * modules/c-strcasestr: New file.
23646         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
23647
23648 2005-10-11  Bruno Haible  <bruno@clisp.org>
23649
23650         * modules/c-strcase: New file.
23651         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
23652
23653 2005-10-11  Bruno Haible  <bruno@clisp.org>
23654
23655         * lib/strcasecmp.c: Include limits.h.
23656         (strcasecmp): Avoid integer overflow on exotic platforms.
23657         * lib/strncasecmp.c: Include limits.h.
23658         (strncasecmp): Avoid integer overflow on exotic platforms.
23659         Reported by Paul Eggert.
23660
23661 2005-10-11  Bruno Haible  <bruno@clisp.org>
23662
23663         * lib/c-strcasestr.h: New file, from GNU gettext.
23664         * lib/c-strcasestr.c: New file, from GNU gettext.
23665
23666 2005-10-11  Bruno Haible  <bruno@clisp.org>
23667
23668         * lib/c-strcase.h: New file, from GNU gettext.
23669         * lib/c-strcasecmp.c: New file, from GNU gettext.
23670         * lib/c-strncasecmp.c: New file, from GNU gettext.
23671
23672 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
23673
23674         * modules/mempcpy (License): GPL -> LGPL.
23675         * modules/strchrnul (License): Likewise.
23676         * modules/sysexits (License): Likewise.
23677
23678 2005-10-08  Simon Josefsson  <jas@extundo.com>
23679
23680         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
23681
23682 2005-10-07  Simon Josefsson  <jas@extundo.com>
23683
23684         * m4/memxor.m4: Remove gl_C_RESTRICT call.
23685
23686 2005-10-06  Simon Josefsson  <jas@extundo.com>
23687
23688         * tests/test-hmac-md5.c: New file.
23689
23690         * modules/hmac-md5-tests: New file.
23691
23692         * modules/hmac-md5: New file.
23693
23694 2005-10-06  Simon Josefsson  <jas@extundo.com>
23695
23696         * m4/hmac-md5.m4: New file.
23697
23698         * m4/memxor.m4: Require gl_C_RESTRICT.
23699
23700 2005-10-06  Simon Josefsson  <jas@extundo.com>
23701
23702         * lib/memxor.c (memxor): Avoid casts and warnings.
23703
23704 2005-10-06  Simon Josefsson  <jas@extundo.com>
23705
23706         * lib/hmac-md5.c: New file.
23707
23708         * lib/hmac.h: New file.
23709
23710 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
23711
23712         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
23713         promotes to int, not unsigned int, to catch the AIX 5.3
23714         compiler bug.
23715
23716 2005-10-05  Simon Josefsson  <jas@extundo.com>
23717
23718         * modules/memxor: New file.
23719
23720         * modules/iconv (Files): Move config.rpath to havelib, it is used
23721         there.
23722
23723         * modules/havelib (Files): Add config.rpath.
23724
23725 2005-10-05  Simon Josefsson  <jas@extundo.com>
23726
23727         * m4/memxor.m4: New file.
23728
23729 2005-10-05  Simon Josefsson  <jas@extundo.com>
23730
23731         * lib/memxor.c (memxor): Fix compiler error.
23732
23733         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
23734         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
23735
23736         * lib/memxor.h, lib/memxor.c: New files.
23737
23738         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
23739         we assume all systems have it, suggested by Jim Meyering
23740         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
23741         any systems lack sys/socket.h; mingw32 is known to lack it, but we
23742         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
23743         same reasons.
23744
23745 2005-10-05  Simon Josefsson  <jas@extundo.com>
23746
23747         * config/srclist.txt: Add glibc bug 1423 for md5.h.
23748
23749 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
23750
23751         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
23752         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
23753         needed, since the source code now assumes these .h files.
23754
23755 2005-10-05  Derek Price  <derek@ximbiot.com>
23756
23757         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
23758
23759 2005-10-05  Bruno Haible  <bruno@clisp.org>
23760
23761         * modules/stdint (License): Change to LGPL.
23762
23763 2005-10-04  Simon Josefsson  <jas@extundo.com>
23764
23765         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
23766         D. Baushke" <mdb@gnu.org>.
23767
23768 2005-10-04  Bruno Haible  <bruno@clisp.org>
23769
23770         * lib/verify.h (verify_true): Provide alternative definition for C++.
23771
23772 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
23773
23774         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
23775         (SSIZE_MAX): New macro, if not already defined.
23776         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
23777         than 2 GiB.
23778
23779 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
23780
23781         Sync from coreutils.
23782         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
23783         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
23784         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
23785         ULLONG_MAX doesn't work with 2.7.2.1.
23786
23787 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
23788
23789         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
23790         From Ben Pfaff.
23791
23792         * modules/exclude (Depends-on): Depend on verify.
23793         * modules/strtoimax (Depends-on): Likewise.
23794         * modules/utimecmp (Depends-on): Likewise.
23795
23796 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
23797
23798         * lib/exclude.c: Include verify.h.
23799         (verify): Remove.  All callers changed to use verify.h's version.
23800         * lib/strtoimax.c: Likewise.
23801         * lib/utimecmp.c: Likewis.e
23802
23803         Sync from coreutils.
23804         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
23805         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
23806         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
23807         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
23808         bother returning ENOSYS if settimeofday or stime fails; just let
23809         them return whatever errno they want to return.
23810         * lib/utimens.c: Include unistd.h, for dup2.
23811         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
23812         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
23813
23814 2005-10-02  Jim Meyering  <jim@meyering.net>
23815
23816         Sync from coreutils.
23817         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
23818         from glibc-2.2.5 that fails for read-only files.
23819
23820 2005-10-02  Jim Meyering  <jim@meyering.net>
23821
23822         Sync from coreutils.
23823         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
23824         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
23825         `#if HAVE_CONFIG_H'.
23826         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
23827         Remove AT_FDCWD test.
23828         Do not consume the fd unless successful.
23829         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
23830         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
23831         block, so that we don't even try to compile it if settimeofday is
23832         available.  This works around a compilation failure on OSF1 V5.1,
23833         due to stime requiring a `long int*' while tv_sec is `int'.
23834
23835 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
23836
23837         Sync from coreutils.
23838         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
23839         against `yes', rather than just testing for nonempty.
23840
23841 2005-10-01  Simon Josefsson  <jas@extundo.com>
23842
23843         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
23844         and Darwin.
23845
23846         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
23847         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
23848         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
23849         freeaddrinfo and gai_strerror are declared by the POSIX headers.
23850         Check if struct addrinfo is declared.
23851
23852 2005-10-01  Simon Josefsson  <jas@extundo.com>
23853
23854         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
23855         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
23856         AI_* and EAI_* definitions.  Protect function declarations.
23857
23858 2005-10-01  Jim Meyering  <jim@meyering.net>
23859
23860         Sync from coreutils.
23861
23862         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
23863         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
23864         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
23865         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
23866         in the inet and nsl libraries.  Required on Solaris 5.7.
23867
23868 2005-10-01  Jim Meyering  <jim@meyering.net>
23869
23870         Sync from coreutils.
23871         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
23872         in the inet and nsl libraries.  Required on Solaris 5.7.
23873
23874 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
23875
23876         * lib/getdelim.c (getdelim): Remove unused variables.
23877
23878 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
23879
23880         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
23881         so that the code works even with ancient cpp.  Portability problem
23882         with GCC 2.7.2.1 reported by Thomas M.Ott.
23883
23884 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
23885
23886         * modules/regex (Depends-on): Add strcase.
23887
23888         * modules/gethostname (Licence): Change from GPL to LGPL, since
23889         gethostname.c is a trivial implementation of a standard library
23890         function.
23891         * modules/poll (License): Change from GPL to LGPL, since it's
23892         derived from LGPL code.
23893
23894 2005-09-27  Jim Meyering  <jim@meyering.net>
23895
23896         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
23897         HAVE_CONFIG_H.
23898
23899         * lib/intprops.h (signed_type_or_expr__): Define.
23900         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
23901         for unsigned types.
23902
23903 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
23904
23905         * lib/verify.h (verify_expr): Remove, replacing with:
23906         (verify_true): New macro that returns true instead of void.
23907         (verify_type__): Remove.
23908         (verify): Use verify_true rather than verify_type__.
23909
23910 2005-09-26  Bruno Haible  <bruno@clisp.org>
23911
23912         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
23913         is necessary.
23914         (lib_SOURCES): Remove mbchar.c.
23915         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
23916         (Files): Add m4/mbrtowc.m4.
23917         * modules/mbiter: Likewise.
23918         * modules/mbuiter: Likewise.
23919
23920 2005-09-26  Bruno Haible  <bruno@clisp.org>
23921
23922         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
23923         compile mbchar.c if they are not both present.
23924         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
23925         * m4/mbiter.m4 (gl_MBITER): Likewise.
23926         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
23927         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
23928         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
23929
23930 2005-09-25  Jim Meyering  <jim@meyering.net>
23931
23932         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
23933         also uses socklen_t.
23934
23935 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
23936
23937         * lib/utimens.c (ENOSYS): Define if not already defined.
23938         (futimens): Support having a null PATH if the file descriptor
23939         is nonnegative.
23940
23941         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
23942         Remove.
23943         (__attribute): Define to empty unless GCC 3.1 or later.
23944         This works around a core dump on OpenBSD 3.4, which has GCC
23945         2.95.3, which dumps core when given __attribute__(()).  It also
23946         simplifies other tests, since we really don't want to bother with
23947         worrying about which ancient version of GCC supported what.
23948         Original problem reported by Yoann Vandoorselaere, with part of
23949         the fix suggested by Derek Price.
23950
23951 2005-09-24  Jim Meyering  <jim@meyering.net>
23952
23953         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
23954         so we can once again use a positive bitfield width of 1 -- now we
23955         don't have to explain why we were using a bitfield width of 2.
23956
23957 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
23958
23959         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
23960         and similarly for the other external symbols.  Problem reported
23961         by James Gallager.
23962
23963         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
23964         bug reported by Jim Meyering.
23965
23966         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
23967         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
23968         not needed, since socklen is a prerequisite module.
23969
23970 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
23971
23972         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
23973         Problem reported by Eric Blake.
23974         (getaddrinfo): Initialize se so that it's not garbage.
23975         Redo internal storage allocation so that it doesn't make unportable
23976         assumptions about alignment.
23977         Fix a memory leak.
23978
23979         * lib/utimens.c (futimens): Use futimesat if available.
23980         Prefer it to futimes since it doesn't have the futimes bug.
23981
23982         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
23983         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
23984         Instead, declare a function that returns a pointer to an array,
23985         and use verify_type__ to declare the size of the array.
23986         Problem and germ of a solution reported by Bruno Haible.
23987         (verify_type__): Use 2, not 1, for bitfield size, to avoid
23988         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
23989
23990 2005-09-23  Jim Meyering  <jim@meyering.net>
23991
23992         Sync from coreutils.
23993         Correct build failure (socklen_t not defined) on at least
23994         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
23995         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
23996
23997 2005-09-23  Jim Meyering  <jim@meyering.net>
23998
23999         * modules/getaddrinfo (Depends-on): Add socklen.
24000
24001 2005-09-23  Bruno Haible  <bruno@clisp.org>
24002
24003         * tests/test-verify.c: New file.
24004
24005 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
24006
24007         Sync from coreutils.
24008
24009         * modules/argmatch (Depends-on): Add verify.
24010         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
24011         unistd-safer.
24012         * modules/save-cwd (Depends-on): Likewise.
24013
24014         * modules/openat (Files): Add lib/openat-die.c.
24015         (Depends-on): Remove error, exitfail.
24016         Add dirname.
24017
24018         * modules/verify: New file.
24019         * MODULES.html.sh (Diagnostics <assert.h>): New section,
24020         with "verify" module.
24021
24022 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
24023
24024         Sync from coreutils.
24025
24026         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
24027         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
24028         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
24029         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
24030         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
24031         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
24032         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
24033         Don't bother checking for string.h, stdlib.h, unistd.h.
24034         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
24035         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
24036         module's job.
24037         * m4/jm-macros.m4 (gl_MACROS): Likewise.
24038         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
24039
24040         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
24041         (gl_GETDATE): Use it.
24042
24043         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
24044
24045 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
24046
24047         Sync from coreutils.
24048
24049         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
24050         stat-time.h.
24051         * lib/argmatch.h: Include verify.h
24052         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
24053         (ARGMATCH_ASSERT): Remove; unused.
24054         * lib/canonicalize.c: Assume STDC_HEADERS.
24055         * lib/exclude.c: Include "strcase.h".
24056         * lib/regex_internal.h [!defined _LIBC]: Likewise.
24057         * lib/getusershell.c: Include stdio--.h rather than stdio.h
24058         and stdio-safer.h.
24059         (getusershell): Call fopen, not fopen_safer.
24060         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
24061         Do not include unistd-safer.h.
24062         (save_cwd): Don't call fd_safer; no longer needed
24063         now that we include fcntl--.h.
24064
24065         * lib/getdate.y (relative_time): New type.
24066         (RELATIVE_TIME_0): New constant.
24067         (parser_control): Use relative_time instead of doing it ourselves.
24068         (%union): Add new relative_time rel member.
24069         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
24070         Now typeless.
24071         (relunit, relunit_snumber): Now of type rel.
24072         (zone, rel, relunit, get_date): Adjust to above changes.
24073
24074         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
24075         Do not include unistd-safer.h.
24076         (getloadavg): Don't call fd_safer; no longer needed
24077         now that we include fcntl--.h.
24078
24079         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
24080         (make_dir_parents): Treat ENOSYS like EEXIST.
24081
24082         Improve quality of diagnostics on restore_cwd failure.
24083         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
24084         (make_dir_parents): Last arg is now int * (for errno), not bool *.
24085         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
24086         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
24087         each time through the loop.  Do not diagnose restore_cwd failure;
24088         that is the caller's job (and perhaps the caller does not care).
24089
24090         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
24091         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
24092         If the file already exists but is not a directory, don't bother
24093         to try to make its parents.
24094         Close potential file descriptor leak if we can't chdir("/") (!).
24095         Don't always return true if chdir($PWD) fails; return true only
24096         if the requested action was done successfully (except for the
24097         chdir($PWD)).
24098         Don't log final directory unless we actually made it.
24099         Refactor to avoid duplicate code to fix up permissions.
24100         Don't attempt to fix up parent permissions if chdir($PWD) fails.
24101
24102         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
24103         to make it a bit faster and (I hope) clearer.
24104         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
24105         Fix bug in formats like %2N.
24106
24107         * lib/verify.h: New file.
24108
24109 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
24110
24111         Sync from coreutils.
24112         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
24113
24114 2005-09-22  Jim Meyering  <jim@meyering.net>
24115
24116         Sync from coreutils.
24117
24118         * m4/lstat.m4 (gl_FUNC_LSTAT):
24119         Use AC_LIBSOURCES to require lstat.c and lstat.h.
24120         Remove obsolete comment.
24121         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
24122         * m4/xstrtod.m4: Likewise.
24123
24124         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
24125
24126 2005-09-22  Jim Meyering  <jim@meyering.net>
24127
24128         Sync from coreutils.
24129
24130         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
24131
24132         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
24133         the .tm_year member, since otherwise gcc-4.0 would now warn about
24134         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
24135
24136         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
24137         order to avoid an unsuppressible warning from gcc on 64-bit systems.
24138
24139         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
24140         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
24141         when run in a time zone for which daylight savings time is in effect
24142         for the starting date.
24143
24144         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
24145         stop us from restricting permissions of just-created absolute-named
24146         directories.
24147         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
24148         to restore initial working directory.
24149         * lib/mkdir-p.c (make_dir_parents): New parameter:
24150         different_working_dir, to tell caller if/when we change the working
24151         directory and are unable to return to the initial one.
24152         * lib/mkdir-p.h (make_dir_parents): Update prototype.
24153         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
24154         `return false'.  This fixes a bug introduced on 2004-07-30.
24155
24156         * lib/openat.c (fdopendir): Be sure to close the supplied
24157         file descriptor before returning.  This makes our replacement
24158         implementation a little closer to Solaris's, where fdopendir
24159         ties the file descriptor to the returned DIR* pointer.
24160         * lib/openat.c (unlinkat): New function.
24161         * lib/openat.h (unlinkat): Add prototype.
24162         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
24163         (openat_restore_fail): Rename from openat_restore_die.
24164         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
24165
24166         Provide an alternative to exiting immediately upon save_cwd or
24167         restore_cwd failure.  Now, an application can arrange e.g.,
24168         to perform a longjump in that case.
24169         * lib/openat.c: Include dirname.h.
24170         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
24171         (rpl_openat, fdopendir, fstatat): Call openat_save_die
24172         and openat_restore_die rather than calling error directly.
24173         Don't include "error.h" or "exitfail.h"; they're no longer needed.
24174
24175         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
24176         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
24177         define.
24178
24179         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
24180         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
24181                             int utc, int nanoseconds);
24182         Background:
24183         date should not have to allocate a megabyte of virtual memory to
24184         handle a format argument like +%1048575T.  When implemented with
24185         strftime, it must allocate such a buffer, use strftime to fill it
24186         in, print it, then free it.
24187         With fprintftime, it simply prints everything and exits.
24188         With no need for memory allocation, that's one fewer way to fail.
24189         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
24190         optional field width, not before, so we accept %9:z, not %:9z.
24191         (my_strftime): Be sure to use L_('x') for literals.
24192
24193         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
24194         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
24195         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
24196         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
24197         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
24198         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
24199         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
24200         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
24201         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
24202         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
24203         * lib/xgethostname.c, lib/xreadlink.c:
24204         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
24205
24206         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
24207         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
24208         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
24209         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
24210         and don't include <sys/file.h>).
24211
24212 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
24213
24214         Sync from coreutils.
24215
24216         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
24217         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
24218         [!LDAV_DONE]: Avoid unused variable warning.
24219
24220 2005-09-21  Bruno Haible  <bruno@clisp.org>
24221
24222         * lib/unicodeio.h (unicode_to_mb): New declaration.
24223
24224 2005-09-20  Derek Price  <derek@ximbiot.com>
24225
24226         * lib/getaddrinfo.c: Don't include <netdb.h> included from
24227         getaddrinfo.h.
24228
24229 2005-09-20  Bruno Haible  <bruno@clisp.org>
24230
24231         * gnulib-tool: Remove trailing slashes from the values specified for
24232         --source-base, --m4-base, --tests-base, --aux-dir.
24233         Suggested by Simon Josefsson <jas@extundo.com>.
24234
24235 2005-09-20  Bruno Haible  <bruno@clisp.org>
24236
24237         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
24238         func_modules_to_filelist, func_import, func_create_testdir): Make all
24239         sorting results locale-independent, so that gnulib-cache.m4 doesn't
24240         change when gnulib-tool is invoked in a different locale.
24241
24242 2005-09-19  Simon Josefsson  <jas@extundo.com>
24243
24244         * m4/socklen.m4: Fix typo.
24245
24246 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24247
24248         Use a consistent style for including <config.h>.
24249         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
24250         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
24251         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
24252         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
24253         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
24254         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
24255         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
24256         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
24257         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
24258         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
24259         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
24260         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
24261         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
24262         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
24263         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
24264         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
24265         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
24266         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
24267         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
24268         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
24269         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
24270         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
24271         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
24272         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
24273         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
24274         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
24275         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
24276         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
24277         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
24278         lib/xstrtoumax.c, lib/yesno.c:
24279         Standardize inclusion of config.h.
24280         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
24281         lib/inttostr.h:  Removed inclusion of config.h from header files.
24282         * lib/inttostr.c:  Adjusted in-tree users.
24283         * lib/timespec.h: Remove superfluous warning to include config.h.
24284         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
24285         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
24286         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
24287         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
24288         config.h with HAVE_CONFIG_H.
24289
24290 2005-09-19  Jim Meyering  <jim@meyering.net>
24291
24292         * modules/pathmax (License): Change to LGPL.
24293
24294 2005-09-19  Derek Price  <derek@ximbiot.com>
24295
24296         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
24297
24298 2005-09-19  Bruno Haible  <bruno@clisp.org>
24299
24300         * gnulib-tool (import): Provide default for --tests-base.
24301
24302 2005-09-19  Bruno Haible  <bruno@clisp.org>
24303
24304         * doc/quote.texi: New file, extracted from gnulib.texi.
24305         * doc/ctime.texi: New file, extracted from gnulib.texi.
24306         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
24307         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
24308         * doc/gnulib.texi: Include them.
24309
24310 2005-09-18  Bruno Haible  <bruno@clisp.org>
24311
24312         Portability fix.
24313         * gnulib-tool (func_readlink): New function.
24314         (func_ln_if_changed): Use it.
24315
24316 2005-09-18  Bruno Haible  <bruno@clisp.org>
24317
24318         * gnulib-tool: Support --with-tests also with --import.
24319         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
24320         (func_import): Use variables $testsbase and $inctests. Emit a
24321         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
24322         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
24323         SUBDIRS += $testsdir.
24324         (func_create_testdir): Update.
24325
24326 2005-09-18  Bruno Haible  <bruno@clisp.org>
24327
24328         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
24329         instead of $dry_run.
24330         (func_cp_if_changed, func_mv_if_changed): Remove functions.
24331         (func_ln_if_changed): Don't handle dry-run here.
24332         (func_import): In dry-run mode, detect more precisely which actions
24333         would be performed, and don't use "...ing" verbs.
24334
24335 2005-09-18  Bruno Haible  <bruno@clisp.org>
24336
24337         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
24338         (func_import): Use join on two temporary files instead of three nested
24339         loops, in order to determine which files are new or old.
24340
24341 2005-09-18  Bruno Haible  <bruno@clisp.org>
24342
24343         * gnulib-tool (func_import): Comment out code that spits out the
24344         new files with --dry-run.
24345
24346 2005-09-18  Bruno Haible  <bruno@clisp.org>
24347
24348         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
24349
24350 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
24351
24352         * lib/stat-time.h: New file.
24353         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
24354         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
24355         in a different way.
24356         (timespec_cmp): New function.
24357         * lib/utimecmp.c: Include stat-time.h.
24358         (SYSCALL_RESOLUTION): Depend on whether various struct stat
24359         members exist, not on the obsolescent ST_MTIM_NSEC.
24360         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
24361
24362 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
24363
24364         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
24365
24366 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
24367
24368         * MODULES.html.sh (File system functions): Add stat-time.
24369         * modules/stat-time: New file.
24370         * modules/timespec (Files): Remove m4/st_mtim.m4; this
24371         is now done in a different way, by the stat-time module.
24372         * modules/utimecmp (Depends-on): Add stat-time.
24373
24374 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
24375
24376         * m4/st_mtim.m4: Remove.  Superseded by...
24377         * m4/stat-time.m4: New file.
24378         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
24379         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
24380
24381 2005-09-15  Derek Price  <derek@ximbiot.com>
24382
24383         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
24384
24385 2005-09-15  Derek Price  <derek@ximbiot.com>
24386
24387         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
24388         * lib/regex_internal.c: Ditto, using this...
24389         (__GNUC_PREREQ): ...new macro.
24390         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
24391         using...
24392         (__GNUC_PREREQ): ...this new macro.
24393
24394         * lib/strstr.h: Include string.h. Define strstr as a macro here.
24395
24396 2005-09-15  Derek Price  <derek@ximbiot.com>
24397             Paul Eggert  <eggert@cs.ucla.edu>
24398
24399         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
24400         changes, consolidating in...
24401         * lib/regex_internal.h: ...this file.
24402
24403 2005-09-13  Jim Meyering  <jim@meyering.net>
24404
24405         * lib/canon-host.c: Filter through gnu indent and reword comments
24406         slightly.
24407         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
24408
24409 2005-09-13  Derek Price  <derek@ximbiot.com>
24410
24411         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
24412         failure.
24413         Reported by Jim Meyering  <jim@meyering.net>.
24414
24415 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
24416
24417         * lib/base64.c: Typo.
24418         (base64_encode): Put b64str in initialized data section.
24419
24420 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
24421
24422         Merge glibc and coreutils changes into gnulib, plus a few
24423         extra fixes.
24424         * lib/md5.c: Use #error rather than a string.
24425         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
24426         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
24427         (__attribute__): Define to empty for non recent-GCC.
24428         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
24429         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
24430         Renamed from their non-__ counterparts, with new macros replacing
24431         them if not _LIBC.  Add __THROW attribute.
24432         (rol): Remove.
24433         (struct md5_ctx): Align buffer if using GCC.
24434         * lib/sha1.h (struct sha1_ctx): Likewise.
24435         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
24436         The old name was backwards.
24437         (NOTSWAP): Remove; not used.
24438         (rol): New macro, moved here from md5.h.
24439         (sha1_process_block): Remove a FIXME that doesn't make sense.
24440
24441 2005-09-12  Derek Price  <derek@ximbiot.com>
24442
24443         Return usable errors from canon-host.
24444         * lib/canon-host.h: New file.
24445         * lib/canon-host.c (canon_host): Wrap...
24446         (canon_host_r): ...this new function, which now relies exclusively on
24447         getaddrinfo.
24448         (ch_strerror): New function.
24449         (last_cherror): New global.
24450         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
24451         interface.
24452         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
24453         void *.
24454         (freeaddrinfo): Free ai->ai_canonname when set.
24455
24456 2005-09-12  Derek Price  <derek@ximbiot.com>
24457
24458         Make canon-host require getaddrinfo.
24459         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
24460         AC_LIBSOURCE canon-host.h.  Call...
24461         (gl_PREREQ_CANON_HOST): ...this new function, which requires
24462         gl_GETADDRINFO.
24463         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
24464
24465 2005-09-12  Derek Price  <derek@ximbiot.com>
24466
24467         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
24468         LGPL.
24469         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
24470
24471 2005-09-12  Derek Price  <derek@ximbiot.com>
24472
24473         * lib/gai_strerror.c: Include config.h when available.  Include
24474         getaddrinfo.h before other headers to test interface.
24475         Reported by Larry Jones <lawrence.jones@ugs.com>.
24476
24477 2005-09-12  Derek Price  <derek@ximbiot.com>
24478             Paul Eggert  <eggert@cs.ucla.edu>
24479
24480         * modules/glob (Files): Add glob-libc.h.
24481
24482 2005-09-12  Derek Price  <derek@ximbiot.com>
24483             Paul Eggert  <eggert@cs.ucla.edu>
24484
24485         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
24486         glob_.h, glob-libc.h.
24487         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
24488
24489 2005-09-12  Derek Price  <derek@ximbiot.com>
24490             Paul Eggert  <eggert@cs.ucla.edu>
24491
24492         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
24493         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
24494         protecting things that should be done only in gnulib contexts.
24495         * lib/glob_.h: New file, containing only the glob things needed for
24496         gnulib.
24497         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
24498         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
24499         (glob, globfree, glob_pattern_p): Now defined simply in terms of
24500         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
24501         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
24502         and to respect the namespace rules better.
24503
24504 2005-09-08  Simon Josefsson  <jas@extundo.com>
24505
24506         * modules/socklen: New file.
24507
24508 2005-09-08  Simon Josefsson  <jas@extundo.com>
24509
24510         * m4/socklen.m4: New file.
24511
24512 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
24513
24514         * modules/utimens (Files): Add m4/utimbuf.m4, since
24515         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
24516         Reported by Sergey Poznyakoff.
24517
24518 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
24519
24520         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
24521         definitions, since that's the preferred style in glibc.
24522         Fix a minor spacing issue, and update copyright notice to match
24523         glibc's.
24524
24525 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
24526
24527         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
24528
24529 2005-09-06  Simon Josefsson  <jas@extundo.com>
24530
24531         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
24532         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
24533
24534 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
24535
24536         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
24537         warning.
24538
24539 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
24540
24541         * config/srclist.txt: Add glibc bug 1302.
24542
24543 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
24544
24545         Change bitset word type from unsigned int to unsigned long int,
24546         as this has better performance on typical 64-bit hosts.
24547         Port bitset code to hosts with unusual word sizes.
24548         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
24549         (build_collating_symbol):
24550         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
24551         argument is a bitset.  This is merely a style issue, but it makes
24552         it clearer that an entire array is expected.
24553         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
24554         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
24555         Port to the case where bitset_word is not the same as unsigned int.
24556         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
24557         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
24558         Likewise.
24559         * lib/regexec.c (check_dst_limits_calc_pos_1,
24560         check_subexp_matching_top):
24561         (build_trtable, group_nodes_into_DFAstates):
24562         Likewise.
24563         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
24564         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
24565         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
24566         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
24567         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
24568         * lib/regcomp.c (optimize_subexps, lower_subexp):
24569         Work even if bitset_word has holes in its bitwise representation.
24570         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
24571         * lib/regexec.c (check_dst_limits_calc_pos_1,
24572         check_subexp_matching_top):
24573         Likewise.
24574         * lib/regex_internal.c (re_string_reconstruct):
24575         Don't assume UCHAR_MAX == 255.
24576         * lib/regex_internal.h (bitset_set_all): Likewise.
24577         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
24578         All uses changed.
24579         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
24580         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
24581         All uses changed.
24582         (BITSET_WORD_MAX): New macro.
24583         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
24584         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
24585         (bitset_empty, bitset_copy):
24586         Prefer sizeof (bitset) to multiplying it out ourselves.
24587         (bitset_not_merge): Remove; unused.
24588         (bitset_contain): Return bool, not unsigned int with one bit on.
24589         All callers changed.
24590         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
24591         alignment than re_node_set; do this by defining a new internal
24592         type struct dests_alloc and using it to allocate memory.
24593
24594 2005-09-05  Bruno Haible  <bruno@clisp.org>
24595
24596         * gnulib-tool (func_import): Fix comparison in handling of symbolic
24597         links.
24598
24599 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
24600
24601         * modules/size_max (Makefile.am): Add size_max.h
24602
24603 2005-09-04  Derek Price  <derek@ximbiot.com>
24604
24605         * gnulib-tool (func_import): Fix reversed $symbolic logic.
24606
24607 2005-09-03  Simon Josefsson  <jas@extundo.com>
24608
24609         * gnulib-tool: Fix typo.
24610
24611 2005-09-03  Simon Josefsson  <jas@extundo.com>
24612
24613         * config/srclist.txt: Add glibc bug 1293.
24614
24615 2005-09-03  Derek Price  <derek@ximbiot.com>
24616
24617         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
24618         From Larry Jones <lawrence.jones@ugs.com>.
24619
24620 2005-09-02  Simon Josefsson  <jas@extundo.com>
24621
24622         * modules/socklen: New file.
24623
24624 2005-09-02  Simon Josefsson  <jas@extundo.com>
24625
24626         * modules/havelib: New module.
24627
24628         * modules/gettext, modules/iconv, modules/lock, modules/readline:
24629         Use havelib.
24630
24631 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
24632
24633         Check for arithmetic overflow when calculating sizes, to prevent
24634         some buffer-overflow issues.  These patches are conservative, in the
24635         sense that when I couldn't determine whether an overflow was possible,
24636         I inserted a run-time check.
24637         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
24638         macros.
24639         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
24640         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
24641         (re_xnrealloc, re_x2nrealloc): New inline functions.
24642         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
24643         parse_bracket_exp):
24644         (build_equiv_class, build_charclass): Check for arithmetic overflow
24645         in size expression calculations.
24646         * lib/regex_internal.c (re_string_realloc_buffers):
24647         (build_wcs_upper_buffer, re_node_set_add_intersect):
24648         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
24649         (re_dfa_add_node, register_state): Likewise.
24650         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
24651         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
24652         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
24653         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
24654
24655 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
24656
24657         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
24658         m4/ulonglong.m4.  Problem reported by Martin Lambers.
24659
24660 2005-09-02  Bruno Haible  <bruno@clisp.org>
24661
24662         Support for lib vs. lib64 distinction on biarch platforms.
24663         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
24664         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
24665         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
24666
24667 2005-09-02  Bruno Haible  <bruno@clisp.org>
24668
24669         * gnulib-tool (import): In the other first-use case, provide defaults
24670         as well.
24671
24672 2005-09-02  Bruno Haible  <bruno@clisp.org>
24673
24674         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
24675         patches not yet found in the latest gettext release.
24676
24677 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
24678
24679         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
24680         to avoid a collision with bits/local_lim.h in glibc.
24681         All uses changed.  Problem reported by Dmitry V. Levin in
24682         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
24683
24684         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
24685         bugs in int versus size_t comparisons.
24686         (re_string_context_at): Fix bug where the code assumed that
24687         Idx is signed.
24688
24689         Use bool where appropriate.
24690         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
24691         All callers changed.
24692         (calc_eclosure_iter): Likewise, for ROOT arg.
24693         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
24694         (build_charclass_op): Likewise, for NON_MATCH arg.
24695         * lib/regex_internal.c (re_string_allocate, re_string_construct):
24696         (re_string_construct_common): Likewise, for ICASE arg.
24697         * lib/regexec.c (re_search_2_stub, re_search_stub):
24698         Likewise, for RET_LEN arg.
24699         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
24700         (set_regs): Likewise, for FL_BACKTRACK arg.
24701         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
24702         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
24703         (calc_eclosure_iter, parse_bracket_exp):
24704         Use bool for internal variables that are booleans.
24705         * lib/regexec.c (re_search_internal, check_matching,
24706         proceed_next_node):
24707         (set_regs, build_sifted_states, sift_states_bkref):
24708         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
24709         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
24710         (find_collation_sequence_value):
24711         Likewise.
24712         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
24713         (re_node_set_compare):
24714         Return bool, not int. All callers changed.
24715         * lib/regexec.c (check_halt_node_context, check_dst_limits):
24716         (build_trtable, check_node_accept): Likewise.
24717         * lib/regex_internal.h: Include stdbool.h.
24718
24719         Fix bugs uncovered when converting to bool.
24720         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
24721         failure instead of charging ahead blindly.
24722         * lib/regex_internal.c (register_state): Likewise.
24723         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
24724         for freeing internal storage.
24725         (group_nodes_into_DFA_states): Use unsigned int, not int, for
24726         bitset pieces used as boolean, to avoid undefined behavior
24727         on hosts that do int overflow checking.
24728
24729 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
24730
24731         * config/srclist.txt: Add glibc bugs 1285-1287.
24732
24733 2005-09-01  Jim Meyering  <jim@meyering.net>
24734
24735         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
24736         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
24737         Require gl_STAT_MACROS, too.
24738
24739 2005-09-01  Bruno Haible  <bruno@clisp.org>
24740
24741         * gnulib-tool (import): In the first-use case, provide defaults.
24742
24743 2005-09-01  Bruno Haible  <bruno@clisp.org>
24744
24745         * gnulib-tool (func_import): Remove the .tmp files.
24746
24747 2005-09-01  Bruno Haible  <bruno@clisp.org>
24748
24749         * gnulib-tool (func_import): Fix handling of symbolic links.
24750
24751 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
24752
24753         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
24754         old glibc regex code mishandles strings longer than 2**31 bytes.
24755         This patch fixes this when the regex code is used in gnulib
24756         (i.e., outside glibc).
24757
24758         This patch should not affect the use of the regex code inside
24759         glibc.  No doubt this problem also needs to be handled for glibc
24760         as well, but the result will be an incompatible change to the
24761         glibc ABI, and the old ABI will have to be supported too.  That
24762         can be the the subject for another patch.
24763
24764         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
24765         governing whether the rest of this patch is active.  By default,
24766         the macro is disabled and the patch has no effect.
24767         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
24768         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
24769         (struct re_pattern_buffer, re_search, re_search_2, re_match):
24770         (re_match_2, re_set_registers): Use the new types.
24771         * lib/regex_internal.h (Idx, re_hashval_t): New types.
24772         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
24773         New macros.
24774         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
24775         (re_string_context_at, bin_tree_t, re_dfastate_t):
24776         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
24777         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
24778         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
24779         (re_string_char_size_at, re_string_wchar_at):
24780         (re_string_elem_size_at):
24781         Use the new types and macros to port to 64-bit hosts.
24782         Use unsigned types for internal values, so that the code
24783         mostly works even for arrays larger than SSIZE_MAX.
24784         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
24785         (search_duplicated_node, calc_eclosure_iter, fetch_number):
24786         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
24787         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
24788         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
24789         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
24790         (calc_inveclosure, parse_dup_op, build_range_exp):
24791         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
24792         (fetch_number, create_token_tree, mark_opt_subexp):
24793         Likewise.
24794         * lib/regex_internal.c (re_string_construct_common,
24795         create_ci_newstate):
24796         (create_cd_newstate, re_string_allocate, re_string_construct):
24797         (re_string_realloc_buffers, build_wcs_upper_buffer):
24798         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
24799         (re_string_reconstruct, re_string_peek_byte_case):
24800         (re_string_fetch_byte_case, re_string_context_at):
24801         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
24802         (re_node_set_init_copy, re_node_set_add_intersect):
24803         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
24804         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
24805         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
24806         (re_acquire_state, re_acquire_state_context, register_state):
24807         Likewise.
24808         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
24809         search_cur_bkref_entry):
24810         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
24811         (re_search_internal, re_search_2_stub, re_search_stub)
24812         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
24813         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
24814         (update_cur_sifted_state, check_dst_limits):
24815         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
24816         (check_subexp_limits, sift_states_bkref, merge_state_array):
24817         (check_subexp_matching_top, get_subexp, get_subexp_sub):
24818         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
24819         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
24820         (expand_bkref_cache, check_node_accept_bytes):
24821         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
24822         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
24823         (acquire_init_state_context, check_halt_node_context):
24824         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
24825         (sift_states_backward, clean_state_log_if_needed):
24826         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
24827         (find_recover_state, transit_state_sb, transit_state_mb):
24828         (transit_state_bkref, build_trtable, match_ctx_clean):
24829         Likewise.
24830         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
24831         to work around an assumption that REG_MISSING is negative.
24832
24833         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
24834         (seek_collating_symbol_entry) [defined _LIBC]:
24835         (lookup_collation_sequence_value) [defined _LIBC]:
24836         (build_range_exp, build_collating_symbol) [defined _LIBC]:
24837         Use prototypes rather than old-style function definitions.
24838         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
24839         (transit_state_sb) [0]:
24840         (find_collation_sequence_value) [defined _LIBC]: Likewise.
24841
24842         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
24843         rm_eo.
24844
24845         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
24846         (optimize_subexps, lower_subexp):
24847         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
24848         since the signed shift might overflow.  Use 1u<<31 instead.
24849         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
24850         Likewise.
24851         * lib/regexec.c (check_dst_limits_calc_pos_1,
24852         check_subexp_matching_top): Likewise.
24853
24854         * lib/regcomp.c (optimize_subexps, lower_subexp):
24855         Use CHAR_BIT rather than 8, for clarity.
24856         * lib/regexec.c (check_dst_limits_calc_pos_1):
24857         (check_subexp_matching_top): Likewise.
24858         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
24859         have to worry about portability issues when shifting it left.
24860         Remove no-longer-needed test for table_size > 0.
24861         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
24862         in a word, as the resulting behavior is undefined.
24863         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
24864         in one case, a <= should have been an <, and in another case the
24865         whole test was missing.
24866         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
24867         the standard name CHAR_BIT.
24868         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
24869         this is not true on one's complement and signed-magnitude hosts.
24870
24871         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
24872         next_last_offset.
24873         (struct re_dfa_t): Remove unused member states_alloc.
24874         * lib/regcomp.c (init_dfa): Don't initialize unused members.
24875
24876 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
24877
24878         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
24879         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
24880         and large-file glibc and in 32-bit large-file Solaris.
24881
24882 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
24883
24884         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
24885         lengths fit in regoff_t; this isn't true if regoff_t is the same
24886         width as size_t.
24887         * lib/regex.c (re_search_internal): 5th arg is LAST_START
24888         (= START + RANGE) instead of RANGE.  This avoids overflow
24889         problems when regoff_t is the same width as size_t.
24890         All callers changed.
24891         (re_search_2_stub): Check for overflow when adding the
24892         sizes of the two strings.
24893         (re_search_stub): Check for overflow when adding START
24894         to RANGE; if it occurs, substitute the extreme value.
24895
24896 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
24897
24898         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
24899
24900 2005-08-31  Jim Meyering  <jim@meyering.net>
24901
24902         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
24903         a pointer-to-const.
24904         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
24905         (register_state): Likewise.
24906         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
24907         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
24908         (group_nodes_into_DFAstates): Likewise.
24909
24910 2005-08-31  Jim Meyering  <jim@meyering.net>
24911
24912         * check-module: Add a FIXME comment.
24913
24914 2005-08-31  Eric Blake  <ebb9@byu.net>
24915
24916         * modules/unistd-safer (Files): Add unistd--.h.
24917         * modules/stdio-safer (Files): Add stdio--.h.
24918
24919 2005-08-31  Derek Price  <derek@ximbiot.com>
24920
24921         * lib/getdelim.c (getdelim): Return EOF on EOF.
24922         Reported by Larry Jones <lawrence.jones@ugs.com>.
24923
24924 2005-08-31  Bruno Haible  <bruno@clisp.org>
24925
24926         Avoid unnecessary diffs in the generated lib/Makefile.am.
24927         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
24928         the generated files.
24929         (func_import): Don't set cmd.
24930
24931 2005-08-31  Bruno Haible  <bruno@clisp.org>
24932
24933         * lib/strstr.c: Include <stddef.h>, for NULL.
24934         * lib/strcasestr.c: Likewise.
24935         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
24936
24937 2005-08-31  Bruno Haible  <bruno@clisp.org>
24938
24939         * gnulib-tool: New option --macro-prefix.
24940         (func_import): Use macro_prefix.
24941         (import): Handle option --macro-prefix.
24942
24943 2005-08-31  Bruno Haible  <bruno@clisp.org>
24944
24945         * gnulib-tool (import): Rename most ac_* variables to cached_*.
24946         Also use new variables cached_lgpl, cached_libtool.
24947
24948 2005-08-31  Bruno Haible  <bruno@clisp.org>
24949
24950         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
24951         always instantiating them.
24952
24953 2005-08-31  Bruno Haible  <bruno@clisp.org>
24954
24955         * gnulib-tool (func_import): Read the previous cached settings
24956         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
24957         earlier added by gnulib but are now dropped. Warn when a gnulib file
24958         overwrites a non-gnulib file.
24959
24960 2005-08-31  Bruno Haible  <bruno@clisp.org>
24961
24962         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
24963         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
24964         projects that don't keep autogenerated files in CVS. Put into
24965         actioncmd only the specified modules, not the transitive closure.
24966
24967 2005-08-31  Bruno Haible  <bruno@clisp.org>
24968
24969         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
24970         Create directories that shall be filled.
24971         (import): Don't look for gl_* macros in configure.ac. Recurse across
24972         all directories containing a gnulib-cache.m4 files, if meaningful.
24973
24974 2005-08-31  Bruno Haible  <bruno@clisp.org>
24975
24976         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
24977         (import): Set seen_libtool when we see gl_LIBTOOL.
24978
24979 2005-08-31  Bruno Haible  <bruno@clisp.org>
24980
24981         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
24982         declaration macro definitions from generated gnulib.m4.
24983
24984 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
24985
24986         * lib/iconvme.h: Add prototype for iconv_alloc.
24987
24988 2005-08-29  Simon Josefsson  <jas@extundo.com>
24989
24990         * lib/iconvme.c: Fix errno.
24991
24992 2005-08-29  Bruno Haible  <bruno@clisp.org>
24993
24994         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
24995         that it works when the directory contains spaces.
24996
24997 2005-08-29  Bruno Haible  <bruno@clisp.org>
24998
24999         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
25000
25001 2005-08-29  Bruno Haible  <bruno@clisp.org>
25002
25003         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
25004         Emit more advice.
25005
25006 2005-08-29  Bruno Haible  <bruno@clisp.org>
25007         and Stepan Kasal  <kasal@ucw.cz>
25008
25009         * check-module: If more parameters are given, check each of them
25010         separately; add more exceptions, as noted by Jim Meyering.
25011         (check_module): New procedure.
25012         (%exempt_header): Now contains all exceptions.
25013
25014 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
25015
25016         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
25017
25018 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
25019
25020         * lib/iconvme.c: Split iconv_string into iconv_alloc.
25021
25022 2005-08-28  Bruno Haible  <bruno@clisp.org>
25023
25024         * m4/gnulib-tool.m4: New file.
25025
25026 2005-08-27  Jim Meyering  <jim@meyering.net>
25027
25028         * modules/unistd-safer (Files): Add pipe-safer.c.
25029         * modules/fcntl-safer (Files): Add creat-safer.c.
25030
25031 2005-08-27  Jim Meyering  <jim@meyering.net>
25032
25033         * m4/stdlib-safer.m4: New file.  From coreutils.
25034         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
25035         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
25036         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
25037         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
25038         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
25039
25040 2005-08-27  Jim Meyering  <jim@meyering.net>
25041
25042         * lib/fopen-safer.c: Merge minor changes from coreutils.
25043         * lib/dup-safer.c: Likewise.
25044         * lib/fd-safer.c: Likewise.
25045
25046         Merge from coreutils.
25047         * lib/stdio--.h: New file.
25048         * lib/stdlib--.h: New file.
25049         * lib/mkstemp-safer.c: New file.
25050
25051         GNU tar needs these.
25052         * lib/pipe-safer.c: New file.
25053         * lib/creat-safer.c: New file.
25054         * lib/fcntl--.h (creat): Define to creat_safer.
25055         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
25056         * lib/unistd--.h (pipe): Define to pipe_safer.
25057         * lib/unistd-safer.h: Declare pipe_safer.
25058
25059 2005-08-26  Simon Josefsson  <jas@extundo.com>
25060
25061         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
25062         Haible <bruno@clisp.org>.
25063
25064 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
25065
25066         * lib/regex_internal.h: Remove all references to
25067         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
25068         or better.
25069         (bitset_not, bitset_merge, bitset_not_merge):
25070         (bitset_mask, re_string_allocate, re_string_construct):
25071         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
25072         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
25073         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
25074         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
25075         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
25076         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
25077         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
25078         (re_acquire_state_context):
25079         Remove unnecessary forward decls.
25080         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
25081         Put __attribute at function definition,
25082         now that the function decl has been removed.
25083         * lib/regex_internal.c (re_string_peek_byte_case):
25084         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
25085         Likewise.
25086
25087 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
25088
25089         * m4/regex.m4: Add AC_PREREQ(2.50).
25090         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
25091
25092 2005-08-25  Simon Josefsson  <jas@extundo.com>
25093
25094         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
25095         __fsetlocking.
25096
25097 2005-08-25  Simon Josefsson  <jas@extundo.com>
25098
25099         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
25100         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
25101         GLIBC specific code.
25102
25103 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
25104
25105         Make regex safe for g++.  This fixes one real bug (an "err"
25106         that should have been "*err").  g++ problem reported by
25107         Sam Steingold.
25108         * lib/regex_internal.h (re_calloc): New macro, consistent with
25109         re_malloc etc.  All callers of calloc changed to use re_calloc.
25110         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
25111         not int.  All callers changed.
25112         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
25113         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
25114         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
25115         (find_recover_state): Change "err" to "*err"; this fixes what
25116         appears to be a real bug.
25117         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
25118         versus int.
25119
25120 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
25121
25122         * modules/regex (Depends-on): Add malloc, since the code
25123         assumes that !malloc(0) means failure.
25124
25125 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
25126
25127         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
25128
25129         alloca modernization/simplification for regex.
25130         * lib/regex.c: Remove portability cruft for alloca.  This no longer
25131         needs to be at the start of the file, and can be moved into
25132         regex_internal.h and simplified.
25133         * lib/regex_internal.h: Include <alloca.h>.
25134         (__libc_use_alloca) [!defined _LIBC]: New macro.
25135         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
25136         now works outside glibc.
25137
25138 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
25139
25140         * config/srclist.txt: Add glibc bugs 1241, 1245.
25141
25142 2005-08-25  Jim Meyering  <jim@meyering.net>
25143
25144         * lib/open-safer.c: Include <config.h>.
25145         Otherwise, we'd lose LARGEFILE support in any file using
25146         e.g. "fcntl--.h"
25147
25148 2005-08-25  Bruno Haible  <bruno@clisp.org>
25149
25150         * m4/minmax.m4: Require autoconf 2.52.
25151         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
25152         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
25153         alternatives of translit over the alphabet.
25154         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
25155
25156 2005-08-24  Simon Josefsson  <jas@extundo.com>
25157
25158         * tests/test-getpass.c: New file.
25159
25160 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
25161
25162         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
25163         for GNU regex features.
25164
25165 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
25166
25167         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
25168         * lib/regex.h (regerror): Likewise.
25169
25170         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
25171         requires this.  (The code never needed it.)
25172
25173         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
25174         All uses of recently-renamed identifiers changed to use the new,
25175         POSIX-compliant names.  The code will build and run just fine
25176         without these changes, but it's better to eat our own dog food
25177         and use the standard-conforming names.
25178
25179         * lib/regex.h: Fix a multitude of POSIX name space violations.
25180         These changes have an effect only for programs that define
25181         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
25182         do not change anything for programs compiled in the normal way.
25183         Also, there is no effect on the ABI.
25184
25185         (_REGEX_SOURCE): New macro.
25186         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
25187         defined and _GNU_SOURCE is not; this fixes a name space violation.
25188
25189         Rename the following macros to obey POSIX requirements.
25190         The old names are still visible as macros if _REGEX_SOURCE is defined.
25191         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
25192         RE_BACKSLASH_ESCAPE_IN_LISTS.
25193         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
25194         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
25195         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
25196         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
25197         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
25198         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
25199         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
25200         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
25201         (REG_INTERVALS): renamed from RE_INTERVALS.
25202         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
25203         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
25204         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
25205         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
25206         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
25207         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
25208         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
25209         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
25210         RE_UNMATCHED_RIGHT_PAREN_ORD.
25211         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
25212         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
25213         (REG_DEBUG): renamed from RE_DEBUG.
25214         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
25215         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
25216         unusual, since we can't clash with the POSIX REG_ICASE.
25217         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
25218         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
25219         (REG_NO_SUB): renamed from RE_NO_SUB.
25220         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
25221         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
25222         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
25223         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
25224         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
25225         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
25226         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
25227         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
25228         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
25229         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
25230         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
25231         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
25232         RE_SYNTAX_POSIX_MINIMAL_BASIC.
25233         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
25234         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
25235         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
25236         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
25237         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
25238         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
25239         (REG_FIXED): Renamed from REGS_FIXED.
25240         (REG_NREGS): Renamed from RE_NREGS.
25241
25242         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
25243         of other REG_* macros, since POSIX says the user is allowed to
25244         #undef these macros selectively.
25245
25246         (reg_errcode_t): Update comment stating what other tables need
25247         to be consistent.
25248
25249         Rename the following enum values to obey POSIX requirements.
25250         The old names are still visible as macros.
25251         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
25252         is not defined, since GNU is supposed to be a superset of POSIX as
25253         much as possible, and since we want reg_errcode_t to be a signed
25254         type for implementation consistency.
25255         (_REG_NOERROR): Renamed from REG_NOERROR.
25256         (_REG_NOMATCH): Renamed from REG_NOMATCH.
25257         (_REG_BADPAT): Renamed from REG_BADPAT.
25258         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
25259         (_REG_ECTYPE): Renamed from REG_ECTYPE.
25260         (_REG_EESCAPE): Renamed from REG_EESCAPE.
25261         (_REG_ESUBREG): Renamed from REG_ESUBREG.
25262         (_REG_EBRACK): Renamed from REG_EBRACK.
25263         (_REG_EPAREN): Renamed from REG_EPAREN.
25264         (_REG_EBRACE): Renamed from REG_EBRACE.
25265         (_REG_BADBR): Renamed from REG_BADBR.
25266         (_REG_ERANGE): Renamed from REG_ERANGE.
25267         (_REG_ESPACE): Renamed from REG_ESPACE.
25268         (_REG_BADRPT): Renamed from REG_BADRPT.
25269         (_REG_EEND): Renamed from REG_EEND.
25270         (_REG_ESIZE): Renamed from REG_ESIZE.
25271         (_REG_ERPAREN): Renamed from REG_ERPAREN.
25272         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
25273         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
25274         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
25275         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
25276
25277         (_REG_RE_NAME, _REG_RM_NAME): New macros.
25278         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
25279         changed.  But support the old name if the new one is not defined
25280         and if _REGEX_SOURCE.
25281
25282         Change the following member names in struct re_pattern_buffer.
25283         The old names are still supported if !_REGEX_SOURCE.
25284         The new names are always supported, regardless of _REGEX_SOURCE.
25285         (re_buffer): Renamed from buffer.
25286         (re_allocated): Renamed from allocated.
25287         (re_used): Renamed from used.
25288         (re_syntax): Renamed from syntax.
25289         (re_fastmap): Renamed from fastmap.
25290         (re_translate): Renamed from translate.
25291         (re_can_be_null): Renamed from can_be_null.
25292         (re_regs_allocated): Renamed from regs_allocated.
25293         (re_fastmap_accurate): Renamed from fastmap_accurate.
25294         (re_no_sub): Renamed from no_sub.
25295         (re_not_bol): Renamed from not_bol.
25296         (re_not_eol): Renamed from not_eol.
25297         (re_newline_anchor): Renamed from newline_anchor.
25298
25299         Change the following member names in struct re_registers.
25300         The old names are still supported if !_REGEX_SOURCE.
25301         The new names are always supported, regardless of _REGEX_SOURCE.
25302         (rm_num_regs): Renamed from num_regs.
25303         (rm_start): Renamed from start.
25304         (rm_end): Renamed from end.
25305
25306         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
25307         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
25308         Prepend __ to parameter names.
25309
25310         Undo yesterday's changes.
25311
25312 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
25313
25314         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
25315         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
25316         lib/regex.c.
25317
25318 2005-08-24  Jim Meyering  <jim@meyering.net>
25319
25320         Sync from coreutils.
25321         * m4/fcntl-safer.m4: New file.
25322
25323         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
25324         and object files for this module.
25325
25326 2005-08-24  Jim Meyering  <jim@meyering.net>
25327
25328         Sync from coreutils.
25329         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
25330
25331 2005-08-24  Jim Meyering  <jim@meyering.net>
25332
25333         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
25334         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
25335
25336 2005-08-24  Jim Meyering  <jim@meyering.net>
25337
25338         * modules/fcntl-safer: New module.
25339         * modules/fts (Depends-on): Add fcntl-safer.
25340         * MODULES.html.sh (File descriptor based Input/Output):
25341         Add fcntl-safer.
25342
25343 2005-08-24  Bruno Haible  <bruno@clisp.org>
25344
25345         Support for unit test modules.
25346         * modules/README: Mention tests modules.
25347         * modules/TEMPLATE-TESTS: New file.
25348         * gnulib-tool: New options --extract-tests-module, --with-tests and
25349         --tests-base (unused for the moment).
25350         (testsbase, inctests): New variables.
25351         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
25352         (func_verify_module): Exclude TEMPLATE-TESTS.
25353         (func_verify_nontests_module, func_verify_tests_module): New functions.
25354         (func_get_dependencies): Add implicit dependency for tests modules.
25355         (func_get_tests_module): New function.
25356         (func_modules_transitive_closure): When --with-tests was specified,
25357         include the unit tests as well, unless explicitly avoided.
25358         (func_emit_lib_Makefile_am): Ignore the tests modules here.
25359         (func_emit_tests_Makefile_am): New function.
25360         (func_create_testdir): When --with-tests was specified, emit a
25361         tests/ directory.
25362         * MODULES.html.sh (Future developments): Update.
25363
25364 2005-08-24  Bruno Haible  <bruno@clisp.org>
25365
25366         * modules/tls-tests: New file.
25367         * tests/test-tls.c: New file, from GNU gettext.
25368
25369 2005-08-24  Bruno Haible  <bruno@clisp.org>
25370
25371         * modules/lock-tests: New file.
25372         * tests/test-lock.c: New file, from GNU gettext.
25373
25374 2005-08-24  Bruno Haible  <bruno@clisp.org>
25375
25376         * lib/lock.h: Add multiple inclusion guard.
25377         * lib/tls.h: Add multiple inclusion guard.
25378
25379 2005-08-24  Bruno Haible  <bruno@clisp.org>
25380
25381         * gnulib-tool: Add support for the --aux-dir option to
25382         --create-testdir, --create-megatestdir, --test, --megatest.
25383         (func_create_testdir, func_create_megatestdir): Optionally emit a
25384         AC_CONFIG_AUX_DIR directive.
25385         (create-testdir, create-megatestdir, test, megatest): Provide a
25386         default value for $auxdir.
25387
25388 2005-08-24  Bruno Haible  <bruno@clisp.org>
25389
25390         * gnulib-tool (import): Use compound statement instead of subshell
25391         where possible.
25392
25393 2005-08-24  Bruno Haible  <bruno@clisp.org>
25394
25395         * gnulib-tool (import): Change --aux-dir default to "build-aux".
25396
25397 2005-08-24  Bruno Haible  <bruno@clisp.org>
25398
25399         * gnulib-tool (func_version): Update.
25400
25401 2005-08-24  Bruno Haible  <bruno@clisp.org>
25402
25403         * gnulib-tool (func_import, func_create_testdir,
25404         func_create_megatestdir): Quote all autoconf macro arguments.
25405
25406 2005-08-24  Bruno Haible  <bruno@clisp.org>
25407
25408         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
25409         option --force, because --force causes the aclocal.m4 of each
25410         subdirectory to be newer than the corresponding config.h.in.
25411
25412 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
25413
25414         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
25415         All contents moved to gl_REGEX.
25416         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
25417         assume that it does.
25418
25419 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
25420
25421         * lib/regex.h (REG_NOSYS)
25422         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
25423         Define, since POSIX requires it as of 2001.
25424         (_REG_ENOSYS)
25425         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
25426         New private symbol, used to keep the enum signed in all cases.
25427         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
25428         Youngman in
25429         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
25430
25431         * lib/regex_internal.c (re_string_skip_chars, register_state):
25432         (calc_state_hash):
25433         Remove forward decls; no longer needed now that we use prototypes.
25434         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
25435         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
25436         (clean_state_log_if_needed): Likewise.
25437
25438 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
25439
25440         * config/srclist.txt: Add glibc bugs 1231-1233.
25441
25442 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
25443
25444         Fix problems reported by Sam Steingold in
25445         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
25446         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
25447         assumed that reg_errcode_t is a signed type, which is not
25448         necessarily true if _XOPEN_SOURCE is not defined.
25449         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
25450         since some compilers warn about it otherwise.
25451
25452 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
25453
25454         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
25455         (init_word_char, create_initial_state, duplicate_node_closure):
25456         (fetch_token, peek_token_bracket, build_range_exp):
25457         (build_collating_symbol): Remove forward decls; no longer needed
25458         now that we use prototypes.
25459
25460         * lib/regcomp.c:
25461         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
25462         (re_compile_fastmap_iter, regcomp, regerror, regfree):
25463         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
25464         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
25465         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
25466         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
25467         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
25468         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
25469         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
25470         (build_range_exp, build_collating_symbol, parse_bracket_exp):
25471         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
25472         (build_charclass, build_charclass_op, fetch_number, create_tree):
25473         (create_token_tree, mark_opt_subexp, duplicate_tree):
25474         Use prototypes rather than old-style definitions.
25475
25476         * lib/regex_internal.c:
25477         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
25478         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
25479         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
25480         (re_string_reconstruct, re_string_peek_byte_case):
25481         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
25482         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
25483         (re_node_set_init_copy, re_node_set_add_intersect):
25484         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
25485         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
25486         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
25487         (re_acquire_state, re_acquire_state_context, register_state):
25488         (create_ci_newstate, create_cd_newstate, free_state):
25489         Likewise.
25490         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
25491         re_search_2):
25492         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
25493         (re_search_internal, prune_impossible_nodes):
25494         (acquire_init_state_context, check_matching, static):
25495         (check_halt_node_context, check_halt_state_context, proceed_next_node):
25496         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
25497         (update_regs, sift_states_backward, build_sifted_states):
25498         (clean_state_log_if_needed, merge_state_array):
25499         (update_cur_sifted_state, add_epsilon_src_nodes):
25500         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
25501         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
25502         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
25503         (find_recover_state, check_subexp_matching_top, transit_state_mb):
25504         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
25505         (check_arrival, check_arrival_add_next_nodes):
25506         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
25507         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
25508         (check_node_accept_bytes, check_node_accept, extend_buffers):
25509         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
25510         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
25511         (sift_ctx_init):
25512         Likewise.
25513
25514         * lib/regex_internal.h:
25515         (re_string_allocate, re_string_construct, re_string_reconstruct):
25516         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
25517         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
25518         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
25519         (re_string_context_at, re_string_peek_byte_case):
25520         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
25521         is defined, since we now use prototypes always.
25522
25523         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
25524         C89 or better.  All uses removed.
25525
25526 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
25527
25528         * config/srclist.txt: Add glibc bugs 1220-1227.
25529
25530 2005-08-20  Jim Meyering  <jim@meyering.net>
25531
25532         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
25533         of unused local, dfa.
25534
25535 2005-08-20  Bruno Haible  <bruno@clisp.org>
25536
25537         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
25538
25539 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
25540
25541         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
25542         (re_node_set_insert_last, re_dfa_add_node):
25543         Rename local variables to avoid GCC shadowing warnings.
25544
25545 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
25546
25547         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
25548         [defined lint]: Suppress bogus uninitialized-variable warnings.
25549
25550         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
25551         and let the caller return REG_ESPACE if out of space.  This
25552         removes an uninitialied-variable warning with GCC 4.0.1, and also
25553         avoids taking the address of a local variable.  All callers
25554         changed.
25555
25556 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
25557
25558         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
25559         $LIBCSRC/posix/regexec.c.
25560         Add glibc bug 1217 for regcomp.c.
25561
25562 2005-08-19  Jim Meyering  <jim@meyering.net>
25563
25564         * lib/regexec.c (proceed_next_node): Redo local variables to
25565         avoid GCC shadowing warnings.
25566
25567 2005-08-18  Bruno Haible  <bruno@clisp.org>
25568
25569         * lib/strstr.c (strstr): Fix return value in multibyte case.
25570         * lib/strcasestr.c (strcasestr): Likewise.
25571
25572 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
25573
25574         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
25575
25576 2005-08-17  Jim Meyering  <jim@meyering.net>
25577
25578         Make the %s format (seconds since the epoch) work for a negative
25579         number and when used with a zero-padded field width, e.g. %015s.
25580
25581         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
25582         label so that it precedes the code to set `digits'.  Otherwise,
25583         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
25584         print `00-22'.  Now, it prints `-0022', as it should.
25585
25586 2005-08-17  Bruno Haible  <bruno@clisp.org>
25587
25588         * modules/strstr (Files): Add m4/mbrtowc.m4.
25589         (Depends-on): Add mbuiter.
25590
25591 2005-08-17  Bruno Haible  <bruno@clisp.org>
25592
25593         * modules/strcasestr: New file.
25594         * MODULES.html.sh (String handling, based on ANSI C 89): Add
25595         strcasestr.
25596
25597 2005-08-17  Bruno Haible  <bruno@clisp.org>
25598
25599         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
25600
25601 2005-08-17  Bruno Haible  <bruno@clisp.org>
25602
25603         * modules/mbuiter: New file.
25604         * MODULES.html.sh (Extended multibyte and wide character utilities):
25605         Add mbuiter.
25606
25607 2005-08-17  Bruno Haible  <bruno@clisp.org>
25608
25609         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
25610         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
25611
25612 2005-08-17  Bruno Haible  <bruno@clisp.org>
25613
25614         * m4/strcasestr.m4: New file.
25615
25616 2005-08-17  Bruno Haible  <bruno@clisp.org>
25617
25618         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
25619         * lib/strstr.c: Completely rewritten, with multibyte locale support.
25620
25621 2005-08-17  Bruno Haible  <bruno@clisp.org>
25622
25623         * lib/strcasestr.h: New file.
25624         * lib/strcasestr.c: New file.
25625
25626 2005-08-17  Bruno Haible  <bruno@clisp.org>
25627
25628         * lib/strcasecmp.c: Use mbuiter.h.
25629
25630 2005-08-17  Bruno Haible  <bruno@clisp.org>
25631
25632         * lib/mbuiter.h: New file.
25633
25634 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
25635
25636         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
25637         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
25638         and gl_GETOPT are both invoked via different paths (as happens
25639         with GNU tar CVS because it uses both argp and getopt), the former
25640         wins.
25641
25642 2005-08-16  Bruno Haible  <bruno@clisp.org>
25643
25644         * modules/tls: New file.
25645         * MODULES.html.sh (Multithreading): Add tls.
25646
25647 2005-08-16  Bruno Haible  <bruno@clisp.org>
25648
25649         * modules/strnlen1: New file.
25650         * MODULES.html.sh (String handling): Add strnlen1.
25651
25652 2005-08-16  Bruno Haible  <bruno@clisp.org>
25653
25654         * modules/strcase (Files): Add m4/mbrtowc.m4.
25655         (Depends-on): Add strnlen1, mbchar.
25656
25657 2005-08-16  Bruno Haible  <bruno@clisp.org>
25658
25659         * modules/mbiter: New file.
25660         * MODULES.html.sh (Extended multibyte and wide character utilities):
25661         Add mbiter.
25662
25663 2005-08-16  Bruno Haible  <bruno@clisp.org>
25664
25665         * modules/mbfile: New file.
25666         * MODULES.html.sh (Extended multibyte and wide character utilities):
25667         Add mbfile.
25668
25669 2005-08-16  Bruno Haible  <bruno@clisp.org>
25670
25671         * modules/mbchar: New file.
25672         * MODULES.html.sh (Extended multibyte and wide character utilities):
25673         New section.
25674
25675 2005-08-16  Bruno Haible  <bruno@clisp.org>
25676
25677         * m4/tls.m4: New file, from GNU gettext.
25678
25679 2005-08-16  Bruno Haible  <bruno@clisp.org>
25680
25681         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
25682         always.
25683         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
25684
25685 2005-08-16  Bruno Haible  <bruno@clisp.org>
25686
25687         * m4/mbiter.m4: New file.
25688
25689 2005-08-16  Bruno Haible  <bruno@clisp.org>
25690
25691         * m4/mbfile.m4: New file.
25692
25693 2005-08-16  Bruno Haible  <bruno@clisp.org>
25694
25695         * m4/mbchar.m4: New file.
25696
25697 2005-08-16  Bruno Haible  <bruno@clisp.org>
25698
25699         * lib/tls.h: New file, from GNU gettext.
25700         * lib/tls.c: New file, from GNU gettext.
25701
25702 2005-08-16  Bruno Haible  <bruno@clisp.org>
25703
25704         * lib/strnlen1.h: New file.
25705         * lib/strnlen1.c: New file.
25706
25707 2005-08-16  Bruno Haible  <bruno@clisp.org>
25708
25709         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
25710         (mbi_init): Update.
25711         (mbi_avail, mbi_advance): Let the iteration end before the terminating
25712         NUL byte, not after it.
25713
25714 2005-08-16  Bruno Haible  <bruno@clisp.org>
25715
25716         * lib/strcase.h (strcasecmp): Add note in comments.
25717         * lib/strncasecmp.c: Use code from strcasecmp.c.
25718         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
25719         (strcasecmp): Work correctly in multibyte locales.
25720
25721 2005-08-16  Bruno Haible  <bruno@clisp.org>
25722
25723         * lib/mbiter.h: New file.
25724
25725 2005-08-16  Bruno Haible  <bruno@clisp.org>
25726
25727         * lib/mbfile.h: New file.
25728
25729 2005-08-16  Bruno Haible  <bruno@clisp.org>
25730
25731         * lib/mbchar.h: New file.
25732         * lib/mbchar.c: New file.
25733
25734 2005-08-16  Bruno Haible  <bruno@clisp.org>
25735
25736         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
25737         the valid ones. Makes the comparison operations transitive:
25738         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
25739         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
25740
25741 2005-08-15  Simon Josefsson  <jas@extundo.com>
25742
25743         * modules/ssize_t (License): Change to 'unlimited'.
25744
25745         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
25746
25747 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
25748
25749         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
25750         Add comments for each pending glibc patch.
25751
25752 2005-08-15  Bruno Haible  <bruno@clisp.org>
25753
25754         * lib/regex.h (__restrict_arr): Don't define to __restrict if
25755         __cplusplus is defined.
25756
25757 2005-08-14  Jim Meyering  <jim@meyering.net>
25758
25759         Sync from coreutils.
25760
25761         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
25762         Use the hash-table-based cycle-detection code not just when
25763         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
25764         Reported by James Youngman in
25765         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
25766         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
25767         FTS_TIGHT_CYCLE_CHECK.
25768         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
25769         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
25770         once again.
25771         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
25772         * lib/fts.c (fd_safer): Remove decl.
25773         Include fcntl--.h rather than unistd-safer.h
25774         (fts_safe_changedir): Don't call fd_safer; no longer needed
25775         now that we include fcntl--.h.
25776
25777 2005-08-12  Simon Josefsson  <jas@extundo.com>
25778
25779         * modules/getndelim2: Use ssize_t module.
25780         * modules/getnline: Likewise.
25781         * modules/safe-read: Likewise.
25782         * modules/xreadlink: Likewise.
25783
25784         * modules/ssize_t: New file.
25785
25786 2005-08-12  Simon Josefsson  <jas@extundo.com>
25787
25788         * m4/readline.m4: Look for termcap, curses or ncurses if required.
25789
25790 2005-08-12  Simon Josefsson  <jas@extundo.com>
25791
25792         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
25793         ssize_t.
25794
25795 2005-08-12  Simon Josefsson  <jas@extundo.com>
25796
25797         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
25798         readline, getdelim and check_version.
25799         (Support for systems lacking ISO C 99: Sizes of integer types):
25800         Add size_max.
25801
25802 2005-08-12  Bruno Haible  <bruno@clisp.org>
25803
25804         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
25805
25806 2005-08-11  Simon Josefsson  <jas@extundo.com>
25807
25808         * modules/readline: New file.
25809
25810         * modules/strnlen (Files): Add strnlen.h.
25811
25812 2005-08-11  Simon Josefsson  <jas@extundo.com>
25813
25814         * m4/readline.m4: New file.
25815
25816 2005-08-11  Simon Josefsson  <jas@extundo.com>
25817
25818         * lib/readline.h, readline.c: New file.
25819
25820 2005-08-11  Simon Josefsson  <jas@extundo.com>
25821
25822         * doc/gnulib.texi (Initial import, Finishing touches): Mention
25823         gl_AVOID.
25824
25825 2005-08-11  Bruno Haible  <bruno@clisp.org>
25826
25827         * lib/strnlen.h (strnlen): Change parameter name to match comment.
25828
25829 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
25830
25831         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
25832
25833 2005-08-10  Simon Josefsson  <jas@extundo.com>
25834
25835         * tests/test-iconvme.c: New file.
25836
25837 2005-08-10  Simon Josefsson  <jas@extundo.com>
25838
25839         * m4/strnlen.m4: New file.
25840
25841         * m4/strndup.m4: Don't check for strnlen declaration, done in
25842         strnlen.m4.
25843
25844 2005-08-10  Simon Josefsson  <jas@extundo.com>
25845
25846         * lib/strndup.c: Use strnlen.h.
25847
25848         * lib/strnlen.h: New file.
25849
25850 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
25851
25852         * README: Typos.
25853
25854 2005-08-02  Simon Josefsson  <jas@extundo.com>
25855
25856         * modules/readline: New file.
25857
25858 2005-08-02  Simon Josefsson  <jas@extundo.com>
25859
25860         * modules/getdelim: New file.
25861
25862         * modules/getline: Rewrite, don't use getndelim2.
25863
25864 2005-08-02  Simon Josefsson  <jas@extundo.com>
25865
25866         * m4/getline.m4: Separate out getdelim stuff into separate module.
25867
25868         * m4/getdelim.m4: New file.
25869
25870 2005-08-02  Simon Josefsson  <jas@extundo.com>
25871
25872         * lib/getline.h, getline.c: Rewrite.
25873
25874         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
25875
25876 2005-07-31  Bruno Haible  <bruno@clisp.org>
25877
25878         * lib/lock.h (gl_lock_initializer): New macro.
25879         (gl_lock_define_initialized): Use it.
25880         (gl_rwlock_initializer): New macro.
25881         (gl_rwlock_define_initialized): Use it.
25882         (gl_recursive_lock_initializer): New macro.
25883         (gl_recursive_lock_define_initialized): Use it.
25884
25885 2005-07-30  Karl Berry  <karl@gnu.org>
25886
25887         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
25888         Report from Ben Pfaff, regarding getopt.
25889
25890 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
25891
25892         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
25893         normal way.
25894         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
25895         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
25896         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
25897         (gl_GETOPT): Use the new macros.  Most of the implementation
25898         is moved to the new macros.  This is for programs like Emacs
25899         that don't want all the functionality of gl_GETOPT.
25900
25901 2005-07-26  Bruno Haible  <bruno@clisp.org>
25902
25903         * m4/lock.m4: Update from GNU gettext.
25904
25905 2005-07-26  Bruno Haible  <bruno@clisp.org>
25906
25907         * lib/lock.h: Update from GNU gettext.
25908         * lib/lock.c: Update from GNU gettext.
25909
25910 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
25911
25912         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
25913         obsolescent AC_TRY_RUN.  Include the default includes files, for
25914         'exit'.
25915
25916 2005-07-24  Bruno Haible  <bruno@clisp.org>
25917
25918         * modules/visibility: New file.
25919         * MODULES.html.sh (Misc): Add visibility.
25920
25921 2005-07-24  Bruno Haible  <bruno@clisp.org>
25922
25923         * m4/visibility.m4: New file.
25924
25925 2005-07-24  Bruno Haible  <bruno@clisp.org>
25926
25927         * doc/visibility.texi: New file.
25928
25929 2005-07-22  Bruno Haible  <bruno@clisp.org>
25930
25931         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
25932         $(ALLOCA_H), redundant through BUILT_SOURCES.
25933         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
25934         redundant through BUILT_SOURCES.
25935         * modules/byteswap (Makefile.am): Remove explicit dependency on
25936         $(BYTESWAP_H), redundant through BUILT_SOURCES.
25937         * modules/fnmatch (Makefile.am): Remove explicit dependency on
25938         $(FNMATCH_H), redundant through BUILT_SOURCES.
25939         * modules/getopt (Makefile.am): Remove explicit dependency on
25940         $(GETOPT_H), redundant through BUILT_SOURCES.
25941         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
25942         redundant through BUILT_SOURCES.
25943         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
25944         redundant through BUILT_SOURCES.
25945         * modules/stdbool (Makefile.am): Remove explicit dependency on
25946         $(STDBOOL_H), redundant through BUILT_SOURCES.
25947         * modules/stdint (Makefile.am): Remove explicit dependency on
25948         $(STDINT_H), redundant through BUILT_SOURCES.
25949         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
25950         Remove explicit dependency on $(SYSEXITS_H).
25951         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
25952
25953 2005-07-18  Simon Josefsson  <jas@extundo.com>
25954
25955         * lib/check-version.c (check_version): Accept identical versions too.
25956
25957 2005-07-18  Bruno Haible  <bruno@clisp.org>
25958
25959         * modules/lock: New file.
25960         * MODULES.html.sh (Multithreading): New section.
25961
25962 2005-07-18  Bruno Haible  <bruno@clisp.org>
25963
25964         * m4/lock.m4: New file, from GNU gettext.
25965
25966 2005-07-18  Bruno Haible  <bruno@clisp.org>
25967
25968         * lib/lock.h: New file, from GNU gettext.
25969         * lib/lock.c: New file, from GNU gettext.
25970
25971 2005-07-18  Bruno Haible  <bruno@clisp.org>
25972
25973         * lib/lock.h (gl_once_t): New type.
25974         (gl_once_define, gl_once): New macros.
25975         * lib/lock.c (fresh_once): New variable.
25976         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
25977         functions.
25978
25979 2005-07-16  Simon Josefsson  <jas@extundo.com>
25980
25981         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
25982         workaround, suggested by Bruno.
25983
25984 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
25985
25986         * modules/xalloc (Depends-on): Add xalloc-die.
25987         * modules/xvasprintf (Depends-on): Add xalloc-die.
25988
25989 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
25990
25991         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
25992         with a minor change.
25993
25994 2005-07-15  Bruno Haible  <bruno@clisp.org>
25995
25996         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
25997         When using lib/poll.c, define poll as rpl_poll.
25998
25999 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
26000
26001         * modules/argp (Depends-on): Remove unlocked-io.
26002
26003 2005-07-14  Derek Price  <derek@ximbiot.com>
26004
26005         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
26006         for glob symlink bug.
26007
26008 2005-07-14  Bruno Haible  <bruno@clisp.org>
26009
26010         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
26011         Instead, test for *_unlocked function declarations directly.
26012
26013 2005-07-11  Simon Josefsson  <jas@extundo.com>
26014
26015         * modules/size_max: New file.
26016
26017         * modules/xsize: Depend on size_max module for size_max.m4.
26018
26019 2005-07-11  Simon Josefsson  <jas@extundo.com>
26020
26021         * lib/size_max.h: New file.
26022
26023 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
26024
26025         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
26026         copyright symbol and the year.
26027         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
26028         (version_etc_va): Use parameterized copyright notice.
26029         Reword to conform to the current GNU coding standards.
26030
26031 2005-07-11  Karl Berry  <karl@gnu.org>
26032
26033         * doc/gnulib.texi (Quoting): new node.
26034         (Initial import): more info, from Patrice.
26035
26036 2005-07-11  Bruno Haible  <bruno@clisp.org>
26037
26038         * gnulib-tool (func_usage): Document option --avoid.
26039         (Command line options): Handle --avoid.
26040         (func_acceptable): New function.
26041         (func_modules_transitive_closure): Use it.
26042
26043 2005-07-11  Bruno Haible  <bruno@clisp.org>
26044
26045         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
26046         Reported by Jim Meyering.
26047
26048 2005-07-10  Bruno Haible  <bruno@clisp.org>
26049
26050         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
26051         Needed when size_t is smaller than 'unsigned int'.
26052         Reported by Paul Eggert.
26053
26054 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
26055
26056         * modules/argp (Depends-on): Add unlocked-io
26057
26058 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
26059
26060         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
26061         block of defines.
26062
26063 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
26064
26065         * config/srclist.txt: Comment out regcomp.c, since we have a porting
26066         fix now.
26067
26068 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
26069         and Paul Eggert  <eggert@cs.ucla.edu>
26070
26071         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
26072         in wint_t, not wchar_t.  Remove now-unnecessary cast.
26073
26074 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
26075
26076         * modules/regex (Files): Add lib/regex_internal.c,
26077         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
26078         (Depends-on): Add extensions.
26079         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
26080
26081 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
26082
26083         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
26084         pathconf.
26085         * m4/same.m4 (gl_SAME): Likewise.
26086         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
26087
26088         * m4/regex.m4: Adjust to new libc regex implementation.
26089         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
26090         all the .c and .h parts of (the new) regex.
26091         Quote the m4 stuff better.
26092         Check for RE_ICASE bug of old gnulib.
26093         Check for REG_STARTEND of recent libc.
26094         Rename local variables from jm_* to gl_*.
26095         Quote operand of "test -f".
26096         Say "recent enough" version of libc, not "version 2".
26097         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
26098         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
26099         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
26100         Remove check for btowc, isascii.
26101         Require AM_LANGINFO_CODESET.
26102
26103 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
26104
26105         * lib/regex.c, regex.h: Sync from libc.
26106         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
26107         * lib/regexec.c:
26108         New files, synced from libc, except that regex_internal.h
26109         currently has a small porting fix.
26110
26111 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
26112
26113         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
26114         regex_internal.c, regexec.c.
26115         Add regex_internal.h too, but as a comment, since the libc version
26116         is currently broken in gnulib mode.
26117
26118 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
26119
26120         Support programs like Emacs that use gnulib but not gettext.
26121         * MODULES.html.sh (Internationalization functions): Add gettext-h.
26122         * modules/gettext-h: New file.
26123         * modules/gettext (Files): Remove lib/gettext.h.
26124         (Depends-on): Add gettext-h.
26125         (Makefile.am): Remove lib_SOURCES.
26126         * modules/argmatch, modules/c-stack, modules/closeout:
26127         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
26128         * modules/execute, modules/file-type, modules/getaddrinfo:
26129         * modules/getopt, modules/human, modules/javacomp:
26130         * modules/javaexec, modules/mkdir-p, modules/obstack:
26131         * modules/openat, modules/pagealign_alloc, modules/pipe:
26132         * modules/quotearg, modules/regex, modules/rpmatch:
26133         * modules/unicodeio, modules/userspec, modules/version-etc:
26134         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
26135         * modules/xsetenv:
26136         Depend on gettext-h, not gettext.
26137
26138 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
26139
26140         * gnulib-tool (func_import): Add support for 'public domain' license.
26141         * modules/alloca, modules/atexit, modules/memmove:
26142         Now public domain, not GPL.
26143         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
26144         * modules/realloc, modules/strerror, modules/strtod:
26145         Now LGPL, not GPL.
26146
26147 2005-07-05  Bruno Haible  <bruno@clisp.org>
26148
26149         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
26150         autoconf CVS. Needed for mingw.
26151
26152 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
26153
26154         Remove the dependency of the strftime module on the tzset module.
26155         * modules/strftime (Depends-on): Remove dependency on tzset.
26156
26157 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
26158
26159         Remove the dependency of the strftime module on the tzset module.
26160         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
26161         gl_FUNC_TZSET_CLOBBER.
26162
26163 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
26164
26165         Remove the dependency of the strftime module on the tzset module.
26166         * lib/strftime.c (my_strftime)
26167         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
26168         Copy the input structure, to work around some of the bug with
26169         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
26170         Solaris releases, you should also use the tzset module, but we won't
26171         require it as a dependency any more since we don't want LGPLed code
26172         to depend on GPLed code.
26173
26174 2005-07-02  Jim Meyering  <jim@meyering.net>
26175
26176         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
26177         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
26178         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
26179         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
26180
26181 2005-07-02  Jim Meyering  <jim@meyering.net>
26182
26183         * lib/backupfile.c (backup_args): Change a `0' to NULL.
26184
26185 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
26186
26187         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
26188         declares only 'struct timespec;' (!).
26189
26190 2005-07-01  Jim Meyering  <jim@meyering.net>
26191
26192         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
26193         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
26194         * lib/save-cwd.c, tempname.c:
26195         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
26196         and don't include <sys/file.h>).
26197
26198 2005-06-29  Jim Meyering  <jim@meyering.net>
26199
26200         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
26201         type name.  Use the variable name instead.
26202         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
26203         Likewise.
26204
26205 2005-06-28  Simon Josefsson  <jas@extundo.com>
26206
26207         * modules/check-version (Files): Add check-version.m4.
26208
26209 2005-06-28  Simon Josefsson  <jas@extundo.com>
26210
26211         * m4/check-version.m4: New file, suggested by Jim Meyering
26212         <jim@meyering.net>.
26213
26214 2005-06-28  Simon Josefsson  <jas@extundo.com>
26215
26216         * lib/check-version.h, lib/check-version.c: New files.
26217
26218 2005-06-28  Simon Josefsson  <jas@extundo.com>
26219
26220         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
26221         collision with global variable.  Better indentation.  Don't
26222         increment buffer pointer beyond buffer end.  Based on comments
26223         from Paul Eggert <eggert@cs.ucla.edu>.
26224
26225         * lib/base64.h: Indent.
26226
26227 2005-06-28  Simon Josefsson  <jas@extundo.com>
26228
26229         * doc/gnulib.texi (Library version handling): New section.
26230
26231 2005-06-28  Jim Meyering  <jim@meyering.net>
26232
26233         * check-module (find_included_lib_files): Hard-code another
26234         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
26235         but modules/fts-lgpl (correctly) does not list those files.
26236
26237         * modules/canonicalize (Files): Add lib/pathmax.h.
26238
26239 2005-06-25  Simon Josefsson  <jas@extundo.com>
26240
26241         * modules/check-version: New file.
26242
26243 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
26244
26245         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
26246         initializer of struct addrinfo, as an indication that we don't
26247         care how many members the structure has.
26248
26249 2005-06-24  Derek Price  <derek@ximbiot.com>
26250         and Bruno Haible  <bruno@clisp.org>
26251
26252         Remove stat module & update lstat.
26253         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
26254         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
26255         * m4/stat.m4: Remove this file.
26256
26257 2005-06-24  Derek Price  <derek@ximbiot.com>
26258         and Bruno Haible  <bruno@clisp.org>
26259
26260         Remove stat module & update lstat.
26261         * lib/stat.c: Remove this file...
26262         (slash_aware_lstat): ...moving this content and its support...
26263         * lib/lstat.c (rpl_lstat): ...into here.
26264         * lib/lstat.h: New file.
26265
26266 2005-06-24  Derek Price  <derek@ximbiot.com>
26267         and Bruno Haible  <bruno@clisp.org>
26268
26269         Remove stat module & update lstat.
26270         * config/srclist.txt (libc sources): Remove stat.
26271
26272 2005-06-24  Derek Price  <derek@ximbiot.com>
26273         and Bruno Haible  <bruno@clisp.org>
26274
26275         Remove stat module & update lstat.
26276         * MODULES.html.sh (stat): Remove.
26277         * MODULES.html: Regenerated.
26278         * modules/lstat (Description): Correct function name.
26279         (Files): Add "lstat.h".
26280         (Depends-on): Remove stat, add xalloc, stat-macros.
26281         * modules/stat: Remove this file.
26282         (Include): Add "lstat.h", remove <sys/stat.h>.
26283
26284 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
26285
26286         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
26287         (ranged_convert): Don't save conversion in a temporary struct.
26288         This causes a warning with GCC 4.0.0, and anyway in the typical
26289         case it's not worth the extra 100 bytes or so of code.
26290         (ranged_convert, __mktime_internal): When calling a function via a
26291         pointer P, use P () rather than (*P) (), as we now assume C89 or
26292         better.
26293
26294 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
26295
26296         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
26297         "who -r" failed to give output.  Problem reported by Tim Waugh.
26298
26299         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
26300         (xcalloc): Use it to avoid needless tests.
26301         Problem reported by Jim Meyering.
26302
26303 2005-06-20  Derek Price  <derek@ximbiot.com>
26304
26305         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
26306         unnecessary for Autoconfs > 2.59c.
26307
26308 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
26309
26310         * lib/argp.h (__option_is_short): Check upper limit of
26311         __key. Isprint() requires its argument to have the value
26312         of an unsigned char or EOF.
26313
26314 2005-06-16  Jim Meyering  <jim@meyering.net>
26315
26316         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
26317         when either N or S is zero.
26318
26319 2005-06-16  Derek Price  <derek@ximbiot.com>
26320
26321         * m4/bison.m4: Declare YACC & YFLAGS precious.
26322
26323 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
26324
26325         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
26326         multibyte string or pattern, fall back on unibyte matching.
26327         Problem reported by James Youngman.
26328
26329 2005-06-08  Bruno Haible  <bruno@clisp.org>
26330
26331         * modules/csharpcomp: New file.
26332         * MODULES.html.sh (C#): Add csharpcomp.
26333
26334 2005-06-08  Bruno Haible  <bruno@clisp.org>
26335
26336         * m4/csharpcomp.m4: New file, from GNU gettext.
26337
26338 2005-06-08  Bruno Haible  <bruno@clisp.org>
26339
26340         * lib/csharpcomp.h: New file, from GNU gettext.
26341         * lib/csharpcomp.c: New file, from GNU gettext.
26342         * lib/csharpcomp.sh.in: New file, from GNU gettext.
26343
26344 2005-06-08  Bruno Haible  <bruno@clisp.org>
26345
26346         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
26347         warning on mingw.
26348
26349 2005-06-07  Derek Price  <derek@ximbiot.com>
26350
26351         Sync from CVS.
26352         * lib/glob_.h: Indent nested #ifdef.
26353
26354 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
26355
26356         Sync from coreutils.
26357         Use "file name" when talking about file names, instead of "filename"
26358         or "path", as per the GNU coding standards.
26359         * lib/mkdir-p.c: Renamed from makepath.c.
26360         (make_dir_parents): Renamed from make_path.  All callers changed.
26361         * lib/mkdir-p.h: Likewise.  All includers changed.
26362         * lib/filenamecat.c: Renamed from path-concat.c.
26363         (file_name_concat): Renamed from path_concat.  All callers changed.
26364         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
26365         * lib/filenamecat.h: Likewise.  All includers changed.
26366         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
26367         in comments or local variable names.
26368         * lib/basename.c: Likewise.
26369         * lib/canonicalize.c, canonicalize.h: Likewise.
26370         * lib/dirname.c, dirname.h: Likewise.
26371         * lib/euidaccess.c: Likewise.
26372         * lib/exclude.c: Likewise
26373         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
26374         * lib/fsusage.c, fsuage.h: Likewise.
26375         * lib/fts.c, fts_.h: Likewise.
26376         * lib/getcwd.c: Likewise.
26377         * lib/getloadavg.c: Likewise.
26378         * lib/mkstemp.c: Likewise.
26379         * lib/mountlist.c, mountlist.h: Likewise.
26380         * lib/openat.c, openat.h: Likewise.
26381         * lib/readlink-stub.c: Likewise.
26382         * lib/readutmp.c, readutmp.h: Likewise.
26383         * lib/rename.c: Likewise.
26384         * lib/rmdir.c: Likewise.
26385         * lib/same.c: Likewise.
26386         * lib/savedir.c: Likewise.
26387         * lib/stripslash.c: Likewise.
26388         * lib/tempname.c: Likewise.
26389         * lib/xreadlink.c: Likewise.
26390         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
26391         All uses changed.
26392         * lib/exclude.h: Likewise.
26393
26394         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
26395         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
26396         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
26397         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
26398         * lib/pathmax.h: Include <limits.h> unconditionally, since other
26399         files have been getting away with it for years (MORE/BSD 4.3
26400         is extinct now).
26401         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
26402         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
26403
26404         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
26405         Define to 256, not 255, as per modern POSIX.
26406
26407 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
26408
26409         Sync from coreutils.
26410         Use "file name" when talking about file names, instead of "filename"
26411         or "path", as per the GNU coding standards.
26412         * MODULES.html.sh: mkdir-p renamed from makepath.
26413         filenamecat renamed from path-concat.
26414         * modules/filenamecat: Renamed from modules/path-concat.
26415         (Files): filenamecat.h and filenamecat.c renamed from
26416         path-concat.h and path-concat.c.
26417         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
26418         (Include): filenamecat.h, not path-concat.h.
26419         * modules/mkdir-p: Renamed from modules/makepath.
26420         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
26421         makepath.c.
26422         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
26423         (Include): mkdir-p.h, not makepath.h.
26424
26425 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
26426
26427         Sync from coreutils.
26428         * m4/mkdir-p.m4: Renamed from makepath.m4.
26429         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
26430         Rename files from makepath.c to mkdir-p.c, and from
26431         makepath.h to mkdir-p.h.
26432         * m4/filenamecat.m4: Renamed from path-concat.m4.
26433         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
26434         Rename files from path-concat.c to filenamecat.c,
26435         and from path-concat.h to filenamecat.h.
26436         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
26437         "file name" in local variables or comments.
26438         * m4/rename.m4: Likewise.
26439
26440 2005-06-01  Bruno Haible  <bruno@clisp.org>
26441
26442         * modules/csharpexec: New file.
26443         * MODULES.html.sh (C#): New section.
26444
26445 2005-06-01  Bruno Haible  <bruno@clisp.org>
26446
26447         * m4/csharp.m4: New file, from GNU gettext.
26448         * m4/csharpexec.m4: New file, from GNU gettext.
26449
26450 2005-06-01  Bruno Haible  <bruno@clisp.org>
26451
26452         * lib/csharpexec.h: New file, from GNU gettext.
26453         * lib/csharpexec.c: New file, from GNU gettext.
26454         * lib/csharpexec.sh.in: New file, from GNU gettext.
26455
26456 2005-05-31  Derek Price  <derek@ximbiot.com>
26457             Paul Eggert  <eggert@cs.ucla.edu>
26458
26459         Sync from cvs.
26460         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
26461
26462 2005-05-31  Derek Price  <derek@ximbiot.com>
26463             Paul Eggert  <eggert@cs.ucla.edu>
26464
26465         Sync from cvs.
26466         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
26467
26468 2005-05-29  Derek Price  <derek@ximbiot.com>
26469
26470         * config/srclist.txt (glob_.h, glob.c): Add these files.
26471
26472 2005-05-29  Derek Price  <derek@ximbiot.com>
26473
26474         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
26475         * modules/glob: New file.
26476         * modules/getlogin_r: Add link to POSIX spec in description.
26477
26478 2005-05-29  Derek Price  <derek@ximbiot.com>
26479             Paul Eggert  <eggert@cs.ucla.edu>
26480
26481         * m4/glob.m4: New file.
26482
26483 2005-05-29  Derek Price  <derek@ximbiot.com>
26484             Paul Eggert  <eggert@cs.ucla.edu>
26485
26486         * lib/glob_.h, lib/glob.c: New files.
26487
26488 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
26489
26490         * modules/fts (Files): Remove m4/inttypes-pri.m4.
26491         * modules/fts-lgpl (Depends-on): Remove gettext.
26492
26493 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
26494
26495         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
26496         and don't require gt_INTTYPES_PRI.
26497
26498 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
26499
26500         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
26501
26502         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
26503         the configuration hassle isn't worth it.
26504         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
26505         (LONGEST_MODIFIER, PRIuMAX): Remove.
26506
26507 2005-05-27  Bruno Haible  <bruno@clisp.org>
26508
26509         * lib/getlogin_r.h: Remove second include of <stddef.h>.
26510
26511 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
26512
26513         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
26514         _POSIX_PTHREAD_SEMANTICS for Solaris.
26515
26516 2005-05-25  Derek Price  <derek@ximbiot.com>
26517
26518         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
26519
26520 2005-05-25  Derek Price  <derek@ximbiot.com>
26521             Paul Eggert  <eggert@cs.ucla.edu>
26522
26523         * modules/getlogin_r, m4/getlogin_r.m4: New files.
26524         * lib/getlogin_r.c, getlogin_r.h: New files.
26525
26526 2005-05-25  Bruno Haible  <bruno@clisp.org>
26527             Derek Price  <derek@ximbiot.com>
26528
26529         * lib/getlogin_r.h: Simplify API documentation.
26530
26531 2005-05-23  Derek Price  <derek@ximbiot.com>
26532
26533         * modules/minmax (Files): Add m4/minmax.m4.
26534         (configure.ac): Add gl_MINMAX.
26535
26536 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
26537
26538         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
26539         so that unistd-safer.h (GPL'ed code) need not be included.
26540
26541 2005-05-22  Bruno Haible  <bruno@clisp.org>
26542
26543         * m4/minmax.m4: New file.
26544         Based on a patch by Derek Price <derek@ximbiot.com>.
26545
26546 2005-05-22  Bruno Haible  <bruno@clisp.org>
26547
26548         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
26549         (INT64_MIN): Fix definition.
26550         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
26551
26552         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
26553         NEED_SIGNED_INT_TYPES.
26554
26555         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
26556         HAVE_SYSTEM_INTTYPES.
26557
26558 2005-05-22  Bruno Haible  <bruno@clisp.org>
26559
26560         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
26561         Also include <sys/param.h> if it defines MIN, MAX.
26562         Based on a patch by Derek Price <derek@ximbiot.com>.
26563
26564 2005-05-21  Jim Meyering  <jim@meyering.net>
26565
26566         * modules/fts (Files): Add m4/inttypes-pri.m4.
26567         (Depends-on): Add lstat and remove gettext.  Alphabetize.
26568
26569 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
26570
26571         New fts module.
26572         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
26573         (setup_dir, free_dir): New functions.
26574         (enter_dir, leave_dir): Define trivial
26575         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
26576         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
26577         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
26578         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
26579         Move to fts-cycle.c.
26580         (fts_open): Use setup_dir.
26581         (fts_close): Use free_dir.
26582         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
26583         This adds a label and some gotos, but the alternatives were messier.
26584         Check for memory allocation failure when entering a dir.
26585         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
26586         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
26587         (FTS): New member fts_cycle, that is a union that contains the
26588         old active_dir_ht and cycle_state.  All uses changed to mention
26589         fts_cycle.ht and fts_cycle.state.
26590         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
26591         fts.c, with the following changes:
26592         (setup_dir, free_dir): New functions.
26593         (enter_dir): Now returns bool.  Return true if successful, false
26594         if memory exhausted.  All callers changed.
26595         Do not bother partly cleaning up on
26596         memory allocation failure; that is free_dir's job.
26597         However, free ad if hash_insert fails, to avoid memory leak.
26598         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
26599         fts->fts_options to see which union member to use.
26600
26601 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
26602
26603         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
26604         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
26605
26606 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
26607
26608         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
26609
26610 2005-05-20  Jim Meyering  <jim@meyering.net>
26611
26612         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
26613         Now a macro, to pacify GCC.
26614
26615 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
26616
26617         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
26618         of -1.
26619
26620 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
26621
26622         * lib/chown.c (rpl_chown): Return -1 on failure.
26623
26624 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
26625
26626         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
26627         Don't check for stddef.h.
26628         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
26629         don't use its results.
26630         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
26631         since we include them unconditionally.  Don't require
26632         AM_STDBOOL_H, since stdbool is a prerequisite.
26633         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
26634         since we assume C89 or better.
26635         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
26636         as we don't use their results.
26637         Don't check for fchdir, memmove, memset, strrchr, as we use
26638         them unconditionally.
26639         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
26640         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
26641
26642 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
26643
26644         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
26645         Include <stddef.h> unconditionally, since we assume C89 now.
26646         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
26647         * lib/fts.c: Include fts_.h first, to check interface.
26648         Do not include intprops.h; no longer needed.
26649         Include cycle-check.h and hash.h, since fts_.h no longer does.
26650         Remove unnecessary casts of closedir to void.
26651         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
26652         decide whether to decrement nlinks.
26653         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
26654         (FTS): Use struct hash_table * instead of Hash_table, so that
26655         we no longer need to include hash.h here.
26656
26657 2005-05-18  Jim Meyering  <jim@meyering.net>
26658
26659         * modules/dirfd (License): Change to LGPL.  Most of the code
26660         is already in the public domain.
26661
26662 2005-05-18  Jim Meyering  <jim@meyering.net>
26663
26664         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
26665         Reported by Yoann Vandoorselaere.
26666
26667 2005-05-17  Jim Meyering  <jim@meyering.net>
26668
26669         * m4/fts.m4: New file, from coreutils.
26670
26671 2005-05-17  Jim Meyering  <jim@meyering.net>
26672
26673         * lib/fts.c, lib/fts_.h: New files, from coreutils.
26674
26675 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
26676
26677         Sync from coreutils.
26678         * m4/unlinkdir.m4: New file.
26679
26680 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
26681
26682         Sync from coreutils.
26683         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
26684         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
26685         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
26686         White space changes only.
26687         * lib/makepath.c (make_path): Port to hosts where leading "//" is
26688         special.
26689         * lib/yesno.c: Include getline.h, not ctype.h.
26690         (yesno): Don't remove leading white space; POSIX doesn't allow it.
26691         Use getline to remove arbitrary restriction on response length.
26692
26693 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
26694
26695         * config/srclist-update: Spell out "Street" in FSF postal
26696         mail address; this is the style the FSF seems to prefer.
26697
26698         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
26699         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
26700         this updates FSF postal mail address.
26701
26702         Sync from coreutils.
26703         * modules/unlinkdir: New file.
26704         * modules/yesno (Depends-on): Add getline.
26705         * MODULES.html.sh (File system functions): Add unlinkdir.
26706
26707 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
26708
26709         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
26710         lib/strsep.h:
26711         Change the initial comment to refer to GPL, not LGPL.
26712         gnulib-tool will change it to LGPL as needed.
26713
26714         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
26715         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
26716         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
26717         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
26718         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
26719         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
26720         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
26721         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
26722         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
26723         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
26724         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
26725         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
26726         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
26727         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
26728         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
26729         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
26730         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
26731         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
26732         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
26733         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
26734         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
26735         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
26736         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
26737         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
26738         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
26739         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
26740         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
26741         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
26742         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
26743         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
26744         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
26745         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
26746         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
26747         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
26748         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
26749         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
26750         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
26751         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
26752         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
26753         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
26754         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
26755         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
26756         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
26757         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
26758         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
26759         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
26760         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
26761         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
26762         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
26763         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
26764         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
26765         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
26766         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
26767         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
26768         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
26769         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
26770         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
26771         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
26772         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
26773         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
26774         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
26775         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
26776         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
26777         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
26778         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
26779         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
26780         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
26781         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
26782         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
26783         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
26784         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
26785         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
26786         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
26787         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
26788         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
26789         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
26790         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
26791         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
26792         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
26793         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
26794         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
26795         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
26796         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
26797         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
26798         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
26799         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
26800         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
26801         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
26802         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
26803         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
26804         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
26805         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
26806         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
26807         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
26808         lib/yesno.c, lib/yesno.h:
26809         Update FSF postal mail address.
26810
26811 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
26812
26813         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
26814         tests/test-memmem.c, tests/test-stpncpy.c:
26815         Update FSF postal mail address.
26816
26817 2005-05-13  Bruno Haible  <bruno@clisp.org>
26818
26819         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
26820         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
26821         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
26822         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
26823         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
26824         Add support for 64-bit integers in the MSVC compiler.
26825
26826 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
26827
26828         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
26829
26830 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
26831
26832         * gnulib-tool (func_import): Sort and uniquify recommended includes.
26833
26834 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
26835
26836         * doc/getdate.texi (General date syntax): Don't say that date
26837         date --iso-8601=ns generates acceptable dates; it doesn't yet.
26838         Problem reported by Nic Ferrier.
26839
26840 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26841
26842         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
26843         specified in ai_socktype. Fix invalid ai_protocol
26844         check. ai_protocol is usually set to 0 or depending on
26845         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
26846         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
26847         ai_socktype / ai_protocol in the returned addrinfo structure.
26848
26849 2005-05-10  Simon Josefsson  <jas@extundo.com>
26850
26851         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
26852         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
26853
26854 2005-05-10  Karl Berry  <karl@gnu.org>
26855
26856         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
26857         (from http://www.gnu.org/licenses).
26858         * doc/COPYING.LIB: also rename to COPYING.LESSER.
26859         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
26860         fdl.texi suffices.
26861
26862 2005-05-10  Karl Berry  <karl@gnu.org>
26863
26864         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
26865         (COPYING.DOC): remove.
26866
26867         * config/srclist-update: new FSF address.
26868
26869 2005-05-10  Derek Price  <derek@ximbiot.com>
26870
26871         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
26872         possible.
26873
26874 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26875             Bruno Haible  <bruno@clisp.org>
26876
26877         * modules/inet_ntop: New file.
26878         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
26879         inet_ntop.
26880
26881 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26882             Bruno Haible  <bruno@clisp.org>
26883
26884         * m4/inet_ntop.m4: New file.
26885
26886 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26887             Bruno Haible  <bruno@clisp.org>
26888
26889         * lib/inet_ntop.h: New file.
26890         * lib/inet_ntop.c: New file, from glibc with modifications.
26891
26892 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
26893
26894         * modules/time_r (License): Change to LGPL.
26895         * modules/extensions (License): Change to LGPL.  Actually,
26896         the license is more permissive than that, but currently gnulib-tool
26897         doesn't know how to handle more-permissive licenses.
26898
26899         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
26900         Problem reported by Dave Love.
26901
26902 2005-05-08  Jim Meyering  <jim@meyering.net>
26903
26904         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
26905         blank.
26906
26907 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
26908
26909         * modules/argmatch (Depends-on): Add stdbool.
26910         * modules/backupfile (Depends-on): Likewise.
26911         * modules/chdir-long (Depends-on): Likewise.
26912         * modules/closeout (Depends-on): Likewise.
26913         * modules/cycle-check (Depends-on): Likewise.
26914         * modules/dirname (Depends-on): Likewise.
26915         * modules/fnmatch (Depends-on): Likewise.
26916         * modules/fsusage (Depends-on): Likewise.
26917         * modules/fwriteerror (Depends-on): Likewise.
26918         * modules/getcwd (Depends-on): Likewise.
26919         * modules/getloadavg (Depends-on): Likewise.
26920         * modules/hard-locale (Depends-on): Likewise.
26921         * modules/makepath (Depends-on): Likewise.
26922         * modules/mountlist (Depends-on): Likewise.
26923         * modules/nanosleep (Depends-on): Likewise.
26924         * modules/posixtm (Depends-on): Likewise.
26925         * modules/quotearg (Depends-on): Likewise.
26926         * modules/readtokens (Depends-on): Likewise.
26927         * modules/readtokens0 (Depends-on): Likewise.
26928         * modules/readutmp (Depends-on): Likewise.
26929         * modules/save-cwd (Depends-on): Likewise.
26930         * modules/strftime (Depends-on): Likewise.
26931         * modules/userspec (Depends-on): Likewise.
26932         * modules/utimecmp (Depends-on): Likewise.
26933         * modules/xgetcwd (Depends-on): Likewise.
26934         * modules/xnanosleep (Depends-on): Likewise.
26935         * modules/xstrtod (Depends-on): Likewise.
26936         * modules/yesno (Depends-on): Likewise.
26937
26938 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
26939
26940         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
26941         needless checks.
26942
26943 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
26944
26945         Merge from coreutils.  Among other things,
26946         add bulletproofing for cases where stdin, stdout, or stderr are closed.
26947         * lib/fd-safer.c: New file.
26948         * lib/fcntl-safer.h, open-safer.c: Remove.
26949         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
26950         * lib/dup-safer.c: Include unistd-safer.h first.
26951         Don't include errno.h.
26952         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
26953         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
26954         * lib/file-type.c: Rely on file-type.h change.
26955         * lib/getloadavg.c: Include unistd-safer.h.
26956         (getloadavg): Use safer open.
26957         * lib/getusershell.c: Include "stdio-safer.h".
26958         (getusershell): Use safer fopen.
26959         * lib/long-options.c (long_options): Use NULL rather than 0.
26960         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
26961         'free'.
26962         * lib/modechange.c: Likewise.
26963         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
26964         (MODE_DONE): New constant.
26965         (struct mode_change): Remove 'next' member.
26966         (make_node_op_equals): New function; like the old one of the
26967         same name, except it allocates an array.
26968         (mode_compile, mode_create_from_ref): Use it.
26969         (mode_compile): Allocate result as an array, not a linked list.
26970         Parse octal string ourself, so that we catch mistakes like "+0".
26971         (mode_adjust): Arg is an array, not a linked list.
26972         * lib/modechange.c: Include stat-macros.h, xalloc.h.
26973         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
26974         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
26975         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
26976         Remove.  This is now stat-macros.h's job.
26977         (talloc): Remove.  All callers replaced by xalloc, so that
26978         our invokers don't have to worry about reporting memory failures.
26979         (make_node_op_equals): Remove.
26980         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
26981         New constants.
26982         (struct mode_change): Moved here from modechange.h.
26983         (mode_append_entry): Remove.
26984         (mode_compile): Remove MASKED_OPS arg, since it encouraged
26985         apps to have incorrect behavior.  Use simpler algorithm for head
26986         and tail.  Don't futz with umask; that's now the job of mode_adjust.
26987         Detect more invalid usages rather than having somewhat-random behavior.
26988         Don't insert an "a=" action, as that leads to incorrect behavior.
26989         (mode_compile, mode_create_from_ref): Return NULL on error instead
26990         of an enum, since now there's only one way to have an error.  All
26991         callers changed.
26992         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
26993         at the correct time.  Simplify calculation of "+u" and its ilk.
26994         Don't mishandle "+X".
26995         (mode_free): Remove "register" and localize decls.
26996         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
26997         (struct mode_change): Move to modechange.c; callers don't
26998         need to see this stuff.
26999         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
27000         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
27001         (mode_change, mode_adjust): Reflect the new signatures noted above.
27002         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
27003         that might redefine system include files.
27004         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
27005         (my_usleep): Use NULL rather than (void *) 0.
27006         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
27007         Use siginterrupt to specify that system calls should be interrupted.
27008         (rpl_nanosleep): Move initialization of suspended closer to call of
27009         my_usleep.
27010         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
27011         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
27012         (desirable_utmp_entry): New function.
27013         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
27014         using x2nrealloc, to simplify logic.
27015         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
27016         size calculation.  Do not assume utmp file is a regular file.
27017         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
27018         (READ_UTMP_CHECK_PIDS): New constant.
27019         * lib/save-cwd.c: Include unistd-safer.h.
27020         (save_cwd): Use fd_safer.
27021         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
27022         [!_LIBC] Include "stat-macros.h" instead.
27023         * lib/unistd-safer.h (fd_safer): New decl.
27024
27025 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
27026
27027         * modules/getloadavg (Depends-on): Add unistd-safer.
27028         * modules/getusershell (Depends-on): Add stdio-safer.
27029         * modules/lstat (Depends-on): Remove xalloc.
27030         * modules/mkstemp (Depends-on): Add stat-macros.
27031         * modules/modechange (Depends-on): Remove xstrtol.
27032         Add stat-macros, xalloc.
27033         * modules/save-cwd (Depends-on): Add unistd-safer.
27034         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
27035         * modules/unistd-safer (Files): Add lib/fd-safer.c
27036         (Makefile.am): Remove lib_SOURCES.
27037
27038         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
27039         Remove fcntl-safer; unistd-safer supersedes it.
27040
27041 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
27042
27043         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
27044         AC_HEADER_STAT.
27045         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
27046         (gl_PREREQ_CHOWN): Remove.
27047         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
27048         it.  Don't require AC_HEADER_STAT.
27049         (gl_PREREQ_LSTAT): Remove.
27050         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
27051         Don't require AC_HEADER_STAT.
27052         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
27053         (gl_PREREQ_RMDIR): Remove.
27054         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
27055         mention stat-macros.h or AC_HEADER_STAT, since we'll make
27056         the stat-macros module a prerequisite.
27057         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
27058         * m4/filemode.m4 (gl_FILEMODE): Likewise.
27059         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
27060         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
27061         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
27062         variable names.
27063         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
27064         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
27065         variable prefixes.
27066         * m4/fcntl-safer.m4: Remove.
27067         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
27068         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
27069         Invoke gl_PREREQ_FD_SAFER.
27070         (gl_PREREQ_FD_SAFER): New macro.
27071         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
27072         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
27073         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
27074         Remove duplicate call to AC_LIBOBJ(readutmp).
27075         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
27076
27077         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
27078         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
27079
27080 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
27081
27082         * MODULES.html.sh (Misc): Add byteswap.
27083
27084 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
27085
27086         * modules/getcwd (Depends-on): Add extensions.
27087         * modules/openat (Depends-on): Likewise.
27088
27089 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
27090
27091         * modules/byteswap: New file.
27092
27093 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
27094
27095         * m4/byteswap.m4: New file.
27096
27097 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
27098
27099         * lib/byteswap_.h: New file.
27100
27101 2005-04-25  Karl Berry  <karl@gnu.org>
27102
27103         * m4/gettext.m4: Update from GNU gettext 0.14.4.
27104
27105 2005-04-25  Albert Chin  <china@thewrittenword.com>
27106
27107         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
27108         Toolkit C bug.
27109
27110 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
27111
27112         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
27113         (func_ln_if_changed) Remove forcibly for no error message
27114         in case file does not exist.
27115
27116 2005-04-19  Simon Josefsson  <jas@extundo.com>
27117
27118         * gnulib-tool (Options): Make --symlink mean --symbolic.
27119
27120 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
27121
27122         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
27123
27124 2005-04-16  Simon Josefsson  <jas@extundo.com>
27125
27126         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
27127
27128 2005-04-15  Simon Josefsson  <jas@extundo.com>
27129
27130         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
27131
27132 2005-04-15  Simon Josefsson  <jas@extundo.com>
27133
27134         * gnulib-tool: Rename --symlink to --symbolic.
27135
27136 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
27137
27138         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
27139         symbolic links to files instead of copying/moving.  Add --aux-dir,
27140         specifying directory relative --dir where auxiliary build tools
27141         are placed.
27142
27143 2005-04-14  Bruno Haible  <bruno@clisp.org>
27144
27145         * modules/allocsa (License): Change to LGPL.
27146         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
27147
27148 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
27149
27150         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
27151         that "UTC +1 second" continues to work.  Problem reported
27152         by Dmitry V. Levin.
27153         (relunit_snumber): New rule.
27154         (relunit): Use it.
27155
27156 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
27157
27158         * lib/getdate.y (universal_time_zone_table): New constant.
27159         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
27160         universal_time_zone_table.
27161         (lookup_zone): Prefer universal_time_zone_table to
27162         local_time_zone_table, so that "GMT" time stamps are allowed in
27163         London during the summer.  Problem reported by Ian Abbott.
27164
27165 2005-04-12  Jim Meyering  <jim@meyering.net>
27166
27167         * lib/human.c (humblock): Set *options even when returning due to
27168         xstrtoumax conversion failure.  Thanks to a used-uninitialized
27169         warning from gcc-4.
27170
27171 2005-04-09  Jim Meyering  <jim@meyering.net>
27172
27173         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
27174         -Wuninitialized: initialize tm0.tm_year.
27175
27176 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
27177
27178         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
27179         count, since there's no maximum.  All uses changed.
27180         Add member dsts_seen.
27181         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
27182         not being INT_MAX.
27183         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
27184         Use pc_rels_seen to decide whther a date is absolute.
27185
27186         * lib/getdate.y (number): Don't overwrite year.
27187         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
27188         check.
27189
27190 2005-04-02  Simon Josefsson  <jas@extundo.com>
27191
27192         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
27193         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
27194
27195 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
27196
27197         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
27198         where no absolute path name can be longer than PATH_MAX.
27199
27200 2005-03-27  Jim Meyering  <jim@meyering.net>
27201
27202         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
27203
27204 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
27205
27206         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
27207         "one's complement" -> "ones' complement" in comment, as per Knuth.
27208         "value of type" -> "type or expression" in comment.
27209         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
27210
27211 2005-03-26  Jim Meyering  <jim@meyering.net>
27212
27213         Comment nits.
27214         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
27215         Correct typos: s/or/of/.
27216
27217 2005-03-26  Jim Meyering  <jim@meyering.net>
27218
27219         * modules/check-include-files: Move to ../ and rename to...
27220         * check-module: ...this.
27221
27222 2005-03-25  Jim Meyering  <jim@meyering.net>
27223
27224         * modules/xvasprintf (Files): Add xalloc.h.
27225
27226 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
27227
27228         * modules/gettext (Files): config/config.rpath ->
27229         build-aux/config.rpath
27230         * modules/iconv (Files): Likewise.
27231         Problem reported by Oskar Liljeblad.
27232
27233 2005-03-23  Jim Meyering  <jim@meyering.net>
27234
27235         * modules/check-include-files: New script to check for
27236         missing dependencies, multiple includes, etc.
27237
27238         * modules/c-strtold (Depends-on): Add xalloc.
27239         * modules/c-strtod (Depends-on): Add xalloc.
27240         * modules/hash (Depends-on): Add xalloc.
27241         (Files): Remove lib/xalloc.h.
27242
27243         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
27244         * modules/userspec (Files): Add lib/inttostr.h.
27245
27246 2005-03-23  Jim Meyering  <jim@meyering.net>
27247
27248         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
27249
27250 2005-03-22  Jim Meyering  <jim@meyering.net>
27251
27252         * modules/stat-macros: New module.
27253         * modules/canonicalize, modules/euidaccess, modules/file-type,
27254         * modules/filemode, modules/lchown, modules/makepath,
27255         * modules/rmdir, modules/stat: Depend on new stat-macros module
27256         rather than listing lib/stat-macros.h manually.
27257         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
27258
27259 2005-03-22  Jim Meyering  <jim@meyering.net>
27260
27261         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
27262
27263 2005-03-22  Bruno Haible  <bruno@clisp.org>
27264
27265         * config/srclist.txt: Replace target directory 'config' with
27266         'build-aux'.
27267         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
27268         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
27269         ../build-aux/.
27270
27271 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
27272
27273         * modules/chdir-long (Depends-on): Add mempcpy.
27274
27275         * modules/acl, modules/backupfile, modules/c-strtod,
27276         modules/c-strtold, modules/canon-host, modules/canonicalize,
27277         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
27278         modules/exclude, modules/exitfail, modules/file-type,
27279         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
27280         modules/getdate, modules/getline, modules/getpagesize,
27281         modules/getpass, modules/getugroups, modules/group-member,
27282         modules/hard-locale, modules/hash, modules/human, modules/idcache,
27283         modules/inttostr, modules/long-options, modules/makepath,
27284         modules/md5, modules/memcasecmp, modules/memcoll,
27285         modules/modechange, modules/mountlist, modules/path-concat,
27286         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
27287         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
27288         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
27289         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
27290         modules/strftime, modules/strndup, modules/strverscmp,
27291         modules/timespec, modules/unlocked-io, modules/userspec,
27292         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
27293         modules/yesno:
27294         Remove lib_SOURCES line from Makefile.am section, as this is now
27295         done automatically by the corresponding Autoconf macro.
27296
27297 2005-03-21  Jim Meyering  <jim@meyering.net>
27298
27299         Changes imported from coreutils.
27300
27301         * lib/cycle-check.c: Don't include xalloc.h.
27302
27303         * lib/path-concat.c: Don't include assert.h.
27304         (path_concat): Remove assertion that would have triggered
27305         for ABASE starting with more than one slash.
27306         Reported by Andreas Schwab.
27307
27308         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
27309         properly when ABASE is an absolute file name.
27310         Correct the description of this function.
27311         Include <assert.h>.
27312         Add an assertion and a test driver.
27313         This fixes a bug introduced on 2004-07-02.
27314         Andreas Schwab reported the resulting failure of cp --parents:
27315         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
27316
27317 2005-03-21  Jim Meyering  <jim@meyering.net>
27318
27319         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
27320         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
27321
27322 2005-03-21  Jim Meyering  <jim@meyering.net>
27323         and  Paul Eggert  <eggert@cs.ucla.edu>
27324
27325         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
27326         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
27327         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
27328         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
27329         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
27330         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
27331         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
27332         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
27333         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
27334         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
27335         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
27336         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
27337         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
27338         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
27339         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
27340         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
27341         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
27342         for these modules.
27343
27344 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
27345
27346         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
27347         (which shouldn't happen), generate nothing instead of returning 0
27348         immediately, so that nstrftime (NULL, ...) doesn't return 0.
27349
27350 2005-03-16  Bruno Haible  <bruno@clisp.org>
27351
27352         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
27353         HAVE_LONGLONG_64BIT.
27354
27355 2005-03-16  Bruno Haible  <bruno@clisp.org>
27356
27357         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
27358         HAVE_LONGLONG_64BIT.
27359
27360 2005-03-16  Bruno Haible  <bruno@clisp.org>
27361
27362         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
27363         HAVE_LONGLONG_64BIT.
27364
27365 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
27366
27367         * lib/strftime.c (my_strftime): Prepend space to format so that we can
27368         reliably distinguish strftime failure from empty output on POSIX
27369         hosts.
27370
27371 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
27372
27373         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
27374         (iconv_string): Don't guess a size-zero buffer, as that might cause
27375         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
27376         result would be 'too large', where 'too large' is (heuristically)
27377         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
27378         overflow concerns.  This will prevent some unwanted malloc failures
27379         when the inputs are very large.
27380
27381 2005-03-15  Karl Berry  <karl@gnu.org>
27382
27383         * config/srclist.txt (config.rpath): from gettext.
27384         * config/config.rpath: update.
27385
27386 2005-03-15  Bruno Haible  <bruno@clisp.org>
27387
27388         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
27389         to 'negate'.
27390
27391         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
27392         variable.
27393
27394         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
27395         results.
27396
27397 2005-03-14  Simon Josefsson  <jas@extundo.com>
27398
27399         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
27400         <fx@gnu.org>.
27401
27402 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
27403
27404         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
27405         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
27406         intprops.h.
27407         * lib/strtol.c: Likewise.
27408
27409 2005-03-14  Jim Meyering  <jim@meyering.net>
27410
27411         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
27412         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
27413         to be nonzero so that we (and caller) can detect the difference
27414         between a valid zero-length expansion and an error return, even
27415         when the underlying strftime fails before writing anything into
27416         that location.
27417
27418 2005-03-14  Bruno Haible  <bruno@clisp.org>
27419
27420         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
27421         Update from GNU gettext 0.14.3.
27422
27423 2005-03-10  Jim Meyering  <jim@meyering.net>
27424
27425         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
27426
27427 2005-03-10  Jim Meyering  <jim@meyering.net>
27428
27429         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
27430         so that this module works on systems without fchdir.
27431
27432 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
27433
27434         Factor int-properties macros into a single file, except for
27435         glibc-related files.
27436         * lib/intprops.h: New file.
27437         * lib/getloadavg.c: Include it instead of limits.h.
27438         (INT_STRLEN_BOUND): Remove.
27439         * lib/human.c: Include intprops.h.
27440         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
27441         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
27442         302/1000.
27443         * lib/inttostr.h: Include intprops.h instead of limits.h.
27444         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
27445         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
27446         for consistency with intprops.h.
27447         (time_t_is_integer, twos_complement_arithmetic): Use them.
27448         * lib/sig2str.h: Include <signal.h>, intprops.h.
27449         (INT_STRLEN_BOUND): Remove.
27450         * lib/strftime.c (TYPE_SIGNED): Remove.
27451         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
27452         * lib/strtol.c: Adjust comments to match intprops.h.
27453         * lib/userspec.c: Include intprops.h.
27454         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
27455         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
27456         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
27457         instead of rolling our own expressions.
27458         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
27459
27460         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
27461         instead of int.
27462         (my_strftime): Do not mishandle years close to INT_MAX, by doing
27463         the right thing even if adding 1900 would overflow.  Similarly
27464         for tm_mon + 1 and tm_yday + 1.
27465         Make %Y always equivalent to %C%y, and similarly for %G and %g.
27466         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
27467         (DO_SIGNED_NUMBER): New macro.
27468         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
27469
27470 2005-03-07  Bruno Haible  <bruno@clisp.org>
27471
27472         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
27473
27474 2005-03-07  Bruno Haible  <bruno@clisp.org>
27475
27476         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
27477
27478 2005-03-04  Derek R. Price  <derek@ximbiot.com>
27479
27480         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
27481         (func_import): Only replace files via --import when they have actually
27482         changed.
27483
27484 2005-03-03  Derek R. Price  <derek@ximbiot.com>
27485
27486         * m4/mmap-anon.m4: New file.
27487         * m4/pagealign_alloc.m4: New file.
27488
27489 2005-03-03  Derek R. Price  <derek@ximbiot.com>
27490             Bruno Haible  <bruno@clisp.org>
27491
27492         * modules/pagealign_alloc: New file.
27493         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
27494
27495 2005-03-03  Derek R. Price  <derek@ximbiot.com>
27496             Bruno Haible  <bruno@clisp.org>
27497
27498         * lib/pagealign_alloc.h: New file.
27499         * lib/pagealign_alloc.c: New file.
27500
27501 2005-03-03  Bruno Haible  <bruno@clisp.org>
27502
27503         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
27504         Use an all-permissive copyright notice, recommended by RMS.
27505
27506 2005-03-02  Bruno Haible  <bruno@clisp.org>
27507
27508         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
27509         of AIX, the replacement has to be done only after <string.h> is
27510         included, therefore not in config.h. stpncpy.h does the replacement,
27511         and stpncpy.c uses it.
27512
27513 2005-03-02  Bruno Haible  <bruno@clisp.org>
27514
27515         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
27516         stpncpy.c uses it.
27517
27518 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
27519
27520         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
27521         The workaround isn't strictly needed for POSIX conformance, and
27522         it's too much of a pain to configure and maintain.  We'll ask
27523         people to fix their kernels instead.
27524         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
27525         (NANOSLEEP_BUG_WORKAROUND): Remove.
27526         (xnanosleep): Remove the workaround.
27527
27528 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
27529
27530         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
27531         Reported by Derek Price.
27532         (Include): Add "timespec.h".
27533
27534         * modules/xnanosleep (Depends-on): Remove gethrxtime.
27535
27536 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
27537
27538         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
27539         to detect nanosleep bug.
27540
27541 2005-03-01  Bruno Haible  <bruno@clisp.org>
27542
27543         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
27544
27545 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
27546
27547         * modules/gethrxtime: New file.
27548         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
27549         (Depends-on): Add gethrxtime.
27550         (configure.ac): Add gl_XNANOSLEEP.
27551         (Makefile.am): Remove lib_SOURCES line.
27552
27553 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
27554
27555         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
27556         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
27557
27558 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
27559
27560         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
27561         * lib/timespec.h (gettime): Return void, since it always
27562         succeeds now.  All uses changed.
27563         * lib/gettime.c (gettime) Likewise.
27564         [HAVE_NANOTIME]: Prefer nanotime.
27565         Assume gettimeofday succeeds, as POSIX requires.
27566         Assime time () succeeds, since other code already does.
27567         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
27568         (timespec_subtract): Remove.
27569         (NANOSLEEP_BUG_WORKAROUND): New constant.
27570         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
27571         things considerably.  Use it only on GNU/Linux hosts, since the
27572         workaround shouldn't be needed elsewhere.
27573
27574 2005-02-24  Bruno Haible  <bruno@clisp.org>
27575
27576         * modules/gettext (Files): Add m4/glibc2.m4.
27577
27578 2005-02-24  Bruno Haible  <bruno@clisp.org>
27579
27580         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
27581         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
27582         * m4/progtest.m4:
27583         Update from GNU gettext 0.14.2.
27584         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
27585
27586 2005-02-24  Bruno Haible  <bruno@clisp.org>
27587
27588         * lib/localcharset.c: Update from GNU gettext 0.14.2.
27589         * lib/config.charset: Update from GNU gettext 0.14.2.
27590
27591 2005-02-24  Bruno Haible  <bruno@clisp.org>
27592
27593         * lib/gettext.h: Update from GNU gettext 0.14.2.
27594
27595 2005-02-23  Simon Josefsson  <jas@extundo.com>
27596
27597         * m4/iconvme.m4: New file.
27598
27599 2005-02-23  Jim Meyering  <jim@meyering.net>
27600
27601         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
27602         change.
27603         Thanks to Bruno Haible for catching it.
27604
27605 2005-02-22  Simon Josefsson  <jas@extundo.com>
27606
27607         * modules/iconvme: New file.
27608
27609         * MODULES.html.sh: Add iconvme.
27610
27611 2005-02-22  Simon Josefsson  <jas@extundo.com>
27612
27613         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
27614
27615 2005-02-22  Simon Josefsson  <jas@extundo.com>
27616
27617         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
27618
27619 2005-02-22  Jim Meyering  <jim@meyering.net>
27620
27621         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
27622         s/ifndef/ifdef/.
27623
27624 2005-02-20  Neil Conway  <neilc@samurai.com>
27625
27626         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
27627         returned by OSX/Darwin if the specified buffer is not large
27628         enough for the hostname.
27629
27630 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
27631
27632         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
27633         pass it to _help, otherwise the latter coredumps trying to
27634         dereference state.root_argp.
27635
27636 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
27637
27638         * modules/chdir-long (Depends-on): Add memrchr.
27639         * modules/memrchr (Files): Add lib/memrchr.h.
27640         (Include): "memrchr.h".
27641
27642 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
27643
27644         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
27645
27646 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
27647
27648         * lib/memrchr.h: New file.
27649         * lib/chdir-long.c: Include it.
27650         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
27651         Don't bother including stddef.h.
27652
27653 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
27654
27655         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
27656         inclusion.
27657         Include <sys/types.h>, for dev_t.
27658         (ME_DUMMY, ME_REMOTE): Move from here....
27659         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
27660         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
27661         Dmitry V. Levin.
27662         Include mountlist.h first, to test the interface.
27663
27664 2005-01-29  Bruno Haible  <bruno@clisp.org>
27665
27666         * lib/progname.c (program_name): Initialize.
27667         Needed when linking statically on MacOS X.
27668
27669 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
27670
27671         Sync from coreutils.
27672         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
27673         (Depends-on): Add c-strtod.
27674         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
27675
27676 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
27677
27678         Sync from coreutils.
27679         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
27680
27681         Remove files that are specific to coreutils.
27682         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
27683
27684 2005-01-28  Bruno Haible  <bruno@clisp.org>
27685
27686         * modules/javacomp: New file.
27687         * MODULES.html.sh (Java): Add javacomp.
27688
27689 2005-01-28  Bruno Haible  <bruno@clisp.org>
27690
27691         * m4/javacomp.m4: New file, from GNU gettext.
27692
27693 2005-01-28  Bruno Haible  <bruno@clisp.org>
27694
27695         * lib/javacomp.sh.in: New file, from GNU gettext.
27696         * lib/javacomp.h: New file, from GNU gettext.
27697         * lib/javacomp.c: New file, from GNU gettext.
27698
27699 2005-01-26  Simon Josefsson  <jas@extundo.com>
27700
27701         * lib/gai_strerror.c: Use GPL in header.
27702
27703 2005-01-26  Bruno Haible  <bruno@clisp.org>
27704
27705         * modules/javaexec: New file.
27706         * MODULES.html.sh (Java): Add javaexec.
27707
27708 2005-01-26  Bruno Haible  <bruno@clisp.org>
27709
27710         * m4/javaexec.m4: New file, from GNU gettext.
27711
27712 2005-01-26  Bruno Haible  <bruno@clisp.org>
27713
27714         * lib/javaexec.sh.in: New file, from GNU gettext.
27715         * lib/javaexec.h: New file, from GNU gettext.
27716         * lib/javaexec.c: New file, from GNU gettext.
27717
27718 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
27719
27720         * modules/lchown (Depends-on): Remove lchown.h
27721
27722 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
27723
27724         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
27725         must be defined if the header file was not found, in order
27726         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
27727
27728 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
27729
27730         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
27731         initializers for struct pentry_state.
27732         (__argp_error): Check return value of __asprintf
27733         (__argp_failure): Translate error message
27734
27735         * lib/argp-parse.c: Removed braces around the expansion of N_()
27736
27737 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
27738
27739         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
27740         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
27741         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
27742         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
27743         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
27744         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
27745         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
27746         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
27747         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
27748         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
27749         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
27750         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
27751         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
27752         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
27753         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
27754         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
27755         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
27756         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
27757         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
27758         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
27759         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
27760         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
27761         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
27762         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
27763         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
27764         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
27765         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
27766         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
27767         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
27768         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
27769         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
27770         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
27771         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
27772         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
27773         xstrtol.m4, xstrtoumax.m4, yesno.m4:
27774         Use an all-permissive copyright notice, recommended by RMS.
27775
27776 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
27777
27778         * modules/chdir-long (Depends-on): Remove mempcpy.
27779
27780 2005-01-21  Jim Meyering  <jim@meyering.net>
27781
27782         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
27783         same value as for Solaris 9.
27784
27785         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
27786         component length.  This included changing the parameter to be
27787         of type `char *' rather than `char const *'.
27788         * lib/chdir-long.h (chdir_long): Update prototype.
27789
27790         * lib/openat.c (fdopendir, fstatat): New functions.
27791         * lib/openat.h: Include headers required for use of DIR and struct
27792         stat.
27793         [AT_SYMLINK_NOFOLLOW]: Define.
27794         (fdopendir, fstatat): Add prototypes.
27795
27796 2005-01-21  Bruno Haible  <bruno@clisp.org>
27797
27798         * modules/classpath: New file.
27799         * MODULES.html.sh (Java): Add classpath.
27800
27801 2005-01-21  Bruno Haible  <bruno@clisp.org>
27802
27803         * lib/classpath.h: New file, from GNU gettext.
27804         * lib/classpath.c: New file, from GNU gettext.
27805
27806 2005-01-20  Simon Josefsson  <jas@extundo.com>
27807
27808         * modules/version-etc-fsf: New file.
27809
27810 2005-01-20  Simon Josefsson  <jas@extundo.com>
27811
27812         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
27813         * lib/version-etc.c: Remove version_etc_copyright.
27814         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
27815         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
27816
27817 2005-01-20  Simon Josefsson  <jas@extundo.com>
27818
27819         * lib/base64.h (isbase64): Add.
27820
27821         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
27822         using a unsigned prototype, don't inline.
27823         (base64_decode): Use it.
27824
27825 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
27826
27827         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
27828         it.
27829
27830 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
27831
27832         * lib/save-cwd.c (save_cwd): Remove code to support the case
27833         where fchdir is missing or flaky.
27834
27835 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
27836
27837         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
27838
27839 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
27840
27841         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
27842         AC_LIBSOURCES now does this.
27843         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
27844         with new ullong_max module.
27845
27846 2005-01-19  Bruno Haible  <bruno@clisp.org>
27847
27848         * modules/sh-quote: New file.
27849         * MODULES.html.sh (Executing programs): Add sh-quote.
27850
27851 2005-01-19  Bruno Haible  <bruno@clisp.org>
27852
27853         * lib/sh-quote.h: New file, from GNU gettext.
27854         * lib/sh-quote.c: New file, from GNU gettext.
27855
27856 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
27857
27858         Merge from coreutils.
27859         * m4/ullong_max.m4: New file.
27860         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
27861         (gl_MACROS): Assume localeconv exists.
27862
27863 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
27864
27865         Merge changes from coreutils, as described below in several
27866         changelogs dated today.
27867
27868         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
27869         (O_DIRECTORY): Remove; not needed here, since "." must be
27870         a directory.  All uses removed.
27871         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
27872         universal on Suns, and we also need to test for IRIX.
27873         Revamp code to use 'if' rather than '#if'.
27874         Avoid unnecessary comparison of cwd->desc to 0.
27875
27876         * lib/utimens.c (futimens): Robustify the previous patch, by checking
27877         for known valid error numbers rather than observed invalid ones.
27878
27879 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
27880
27881         * modules/ullong_max: New file.
27882
27883         * modules/chdir-long, modules/openat: New files.
27884         * modules/save-cwd (Depends-on): Depend on chdir-long.
27885         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
27886
27887 2005-01-18  Jim Meyering  <jim@meyering.net>
27888
27889         Merge from coreutils.
27890         * m4/chdir-long.m4, m4/openat.m4: New files.
27891         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
27892         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
27893         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
27894         is sane and DOES follow symlinks.  Besides, testing 20 different
27895         systems found no broken chown implementations.
27896         Prompted by a change in rsync's copy of this macro.
27897         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
27898
27899         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
27900
27901         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
27902         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
27903         NULL-means-set-to-current-time semantics.
27904         Remove temporary file immediately, rather than waiting
27905         for configure's at-exit trap code to do it.
27906
27907 2005-01-18  Jim Meyering  <jim@meyering.net>
27908
27909         * lib/version-etc.c (version_etc_copyright): Update copyright date.
27910
27911         * lib/utimens.c (futimens): Account for the fact that futimes
27912         can also fail with errno == ENOSYS or errno == ENOENT.
27913         Patch from Dmitry V. Levin.
27914
27915         Change the name of the robust chdir function from chdir to chdir_long.
27916         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
27917         (restore_cwd): Use chdir_long, not chdir.
27918         * lib/chdir-long.c: Renamed from chdir.c.
27919         * lib/chdir-long.h: Renamed from chdir.h.
27920         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
27921         Hurd.
27922
27923 2005-01-18  Bruno Haible  <bruno@clisp.org>
27924
27925         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
27926         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
27927         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
27928         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
27929         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
27930         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
27931         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
27932         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
27933         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
27934         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
27935         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
27936         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
27937         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
27938         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
27939         Use an all-permissive copyright notice, recommended by RMS.
27940
27941 2005-01-18  Bob Proulx  <bob@proulx.com>
27942
27943         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
27944         simplify offsetof() macro construct to avoid compile failure with
27945         native HP-UX 11.0 ANSI C compiler.
27946
27947 2005-01-17  Bruno Haible  <bruno@clisp.org>
27948
27949         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
27950         redundant because stpncpy.m4 takes care of it.
27951
27952 2005-01-17  Bruno Haible  <bruno@clisp.org>
27953
27954         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
27955
27956 2005-01-17  Bruno Haible  <bruno@clisp.org>
27957
27958         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
27959         used.
27960
27961 2005-01-17  Bruno Haible  <bruno@clisp.org>
27962
27963         * lib/fwriteerror.h (fwriteerror): Change specification to include
27964         fclose.
27965         * lib/fwriteerror.c: Include <stdbool.h>.
27966         (fwriteerror): At the end, close the file stream. Record whether
27967         stdout was already closed.
27968
27969 2005-01-17  Bruno Haible  <bruno@clisp.org>
27970
27971         * lib/execute.c (environ): Declare if needed.
27972         * lib/pipe.c (environ): Likewise.
27973         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
27974
27975 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
27976
27977         * modules/argp: Depend on vsnprintf
27978
27979 2005-01-10  Jim Meyering  <jim@meyering.net>
27980
27981         * modules/closeout (Depends-on): Add atexit.
27982
27983 2005-01-06  Bruno Haible  <bruno@clisp.org>
27984
27985         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
27986
27987 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
27988
27989         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
27990         definitions to be after all include files, to avoid collisions.
27991         Problem reported by Bob Proulx.
27992
27993 2005-01-04  Jim Meyering  <jim@meyering.net>
27994
27995         Changes imported from coreutils.
27996         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
27997         as the mkstemp template, use a temporary directory and an
27998         8.3-friendly template to avoid trouble on systems like DJGPP.
27999         Reported by Juan M. Guerrero via Stepan Kasal.
28000         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
28001         close. Remove the temporary directory right away, rather than waiting
28002         for configure's at-exit trap code to do it.
28003         Suggestion from Stepan Kasal.
28004
28005 2005-01-01  Simon Josefsson  <jas@extundo.com>
28006
28007         * gnulib-tool: Print #include directives when --import'ing.
28008
28009 2004-12-28  Simon Josefsson  <jas@extundo.com>
28010
28011         * tests/test-base64.c: Include required header files.  Remove
28012         unused variables.
28013
28014 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
28015
28016         * modules/error (Depends-on): Remove gettext.
28017
28018 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
28019
28020         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
28021         not needed.  This removes a dependency on the gettext module.
28022         [defined _LIBC]: Do not include <libintl.h>; not needed.
28023
28024 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
28025
28026         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
28027         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
28028
28029 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
28030
28031         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
28032         HAVE_DECL_STRTOLD.
28033
28034 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
28035
28036         * modules/getdate (Depends-on): Remove alloca-opt.
28037
28038 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
28039
28040         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
28041
28042 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
28043
28044         * lib/argp-parse.c: Include <stddef.h>.
28045         (alignof, alignto): New macros.
28046         (parser_init): Don't assume that void * is aligned sufficiently
28047         for struct option.
28048
28049         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
28050         need to extend the stack.
28051         (YYINITDEPTH): New macro, so that the initial stack isn't overly
28052         large.
28053
28054 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
28055
28056         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
28057
28058 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
28059
28060         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
28061         (2004-10-24) change.  Apparently this was a false alarm.
28062
28063         * modules/getdate: Depend on alloca-opt, not alloca.
28064
28065 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
28066
28067         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
28068         Remove now-obsolete comment about AIX.
28069         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
28070         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
28071         (YYMAXDEPTH): New macro.
28072
28073 2004-12-18  Simon Josefsson  <jas@extundo.com>
28074
28075         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
28076
28077 2004-12-18  Bruno Haible  <bruno@clisp.org>
28078
28079         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
28080
28081 2004-12-18  Bruno Haible  <bruno@clisp.org>
28082
28083         * lib/fatal-signal.c (fatal_signals): Make non-const.
28084         (init_fatal_signals): New function.
28085         (uninstall_handlers, install_handlers): Ignore signals that were set to
28086         SIG_IGN.
28087         (at_fatal_signal): Call init_fatal_signals.
28088         (init_fatal_signal_set): Likewise. Ignore signals that were set to
28089         SIG_IGN.
28090         Reported by Paul Eggert.
28091
28092 2004-12-18  Bruno Haible  <bruno@clisp.org>
28093
28094         * doc/alloca.texi: New file.
28095         * doc/alloca-opt.texi: New file.
28096
28097 2004-12-17  Jim Meyering  <jim@meyering.net>
28098
28099         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
28100         Otherwise, install-sh could exit with improper exit status when
28101         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
28102
28103 2004-12-16  Simon Josefsson  <jas@extundo.com>
28104
28105         * tests/test-base64.c: Add license.
28106
28107 2004-12-15  Stepan Kasal  <address@hidden>
28108
28109         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
28110
28111 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
28112
28113         * modules/getcwd (Files): Add m4/d-ino.m4.
28114         Suggested by Mark D. Baushke.
28115
28116 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
28117
28118         * lib/getdate.y (textint): New member "negative".
28119         (time_zone_hhmm): New function.
28120         Expect 14 shift-reduce conflicts, not 13.
28121         (o_colon_minutes): New rule.
28122         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
28123         (yylex): Set the "negative" member of signed numbers.
28124
28125 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
28126
28127         * doc/getdate.texi (Time of day items, Time zone items):
28128         Describe new formats +00:00, UTC+00:00.
28129
28130 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
28131
28132         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
28133         spurious "-l"s.  Problem reported by Stepan Kasal.
28134
28135 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
28136
28137         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
28138         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
28139
28140 2004-12-04  Simon Josefsson  <jas@extundo.com>
28141
28142         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
28143         Vandoorselaere <yoann@prelude-ids.org>.
28144
28145 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
28146
28147         Changes imported from coreutils.
28148         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
28149         exist.
28150         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
28151
28152 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
28153
28154         Changes imported from coreutils.
28155         * lib/hard-locale.c: Assume <locale.h> exists.
28156         Include "strdup.h".
28157         (GLIBC_VERSION): New macro.
28158         (hard_locale): Assume setlocale exists.
28159         Rewrite to avoid #ifdef.
28160         Use strdup rather than malloc + strcpy.
28161         * lib/human.c: Assume <locale.h> exists.
28162         (human_readable): Assume localeconv exists.
28163
28164 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
28165
28166         * modules/hard-locale (Depends-on): Add strdup.
28167
28168 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
28169
28170         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
28171         convert T2, not T.  (Imported from libc.)
28172
28173 2004-11-30  Simon Josefsson  <jas@extundo.com>
28174
28175         * modules/restrict (License): Change to LGPL.
28176
28177 2004-11-30  Simon Josefsson  <jas@extundo.com>
28178
28179         * m4/restrict.m4: Add copyright and copying conditions.
28180
28181 2004-11-30  Simon Josefsson  <jas@extundo.com>
28182
28183         * m4/base64.m4: New file.
28184
28185 2004-11-30  Simon Josefsson  <jas@extundo.com>
28186
28187         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
28188         base64.
28189
28190         * tests/test-base64.c: New file.
28191
28192         * modules/base64: New file.
28193
28194 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
28195
28196         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
28197         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
28198
28199         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
28200
28201 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
28202
28203         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
28204         (__getcwd.c): Don't restore errno; glibc doesn't.
28205         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
28206         first, falling back to our code only if its results look suspicious.
28207         Ensure that the resulting buffer is only as large as necessary.
28208
28209         * lib/readutmp.c: Include readutmp.h first.
28210         Include <errno.h>, since readutmp.h no longer does that.
28211         * lib/readutmp.h: Don't include <errno.h>,
28212         <sys/param.h>, <time.h>; not needed to establish interface.
28213         (errno): Remove decl.
28214         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
28215         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
28216         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
28217
28218 2004-11-28  Simon Josefsson  <jas@extundo.com>
28219
28220         * lib/base64.h, base64.c: New file.
28221
28222 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
28223
28224         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
28225
28226 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
28227
28228         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
28229         (Depends-on): Remove pathmax, same.  Add mempcpy.
28230         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
28231         (Makefile.am): Append getcwd.h to lib_SOURCES.
28232         (Include): Add getcwd.h.
28233         (Maintainer): Change from Jim Meyering to "all, glibc",
28234         since getdate now uses intended-for-glibc code.
28235         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
28236         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
28237
28238 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
28239
28240         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
28241         HP's ANSI C compiler.
28242         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
28243         Declaring int functions causes warnings on some modern systems and
28244         shouldn't be needed to compile on ancient ones.
28245         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
28246         defined.
28247
28248         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
28249         with the following changes.
28250         (__set_errno): Parenthesize properly.
28251         Include <stdbool.h>.
28252         (MIN, MAX, MATCHING_INO): New macros.
28253         (__getcwd): Define with prototype, not K&R form.
28254         Use heuristics to allocate default buffer on stack if possible.
28255         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
28256         behavior, and to avoid the PATH_MAX limit when computing
28257         ../../../../...
28258         Use MATCHING_INO to compare inode number to file.
28259         Check for arithmetic overflow in size calculations.
28260         Fix bug in reallocation of dot array that caused getcwd to fail
28261         on directories nested deeper than 75.
28262         Be more careful about saving errno on error.
28263         Do not use realloc; use only free+malloc, as this is a bit
28264         more flexible and avoids a needless copy operation.
28265         Do not inspect st_dev and st_ino for symbolic links; POSIX
28266         doesn't specify the latter.
28267         Check for closedir errors.
28268         Avoid needless casts.
28269         Use "#ifdef weak_alias" around weak_alias, to be like other
28270         glibc code.
28271         The following changes to getcwd.c have effect only when used in
28272         gnulib; they have no effect inside glibc proper.
28273         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
28274         as alloca isn't used.
28275         (alloca, __alloca): Likewise.
28276         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
28277         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
28278         unconditionally, as gnulib assumes C89 or better.
28279         Do not include <sys/param.h>.
28280         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
28281         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
28282         better.
28283         (NULL) [!defined NULL]: Remove; we assume C89 or better.
28284         Include <dirent.h> in a way that is compatible with modern Autoconf.
28285         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
28286         New macros, if not already defined.
28287         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
28288         Use "_LIBC", not "defined _LIBC", for consistency.
28289         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
28290         a mempcpy module.
28291         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
28292         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
28293         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
28294         credit only to Jim Meyering and adjust the copyright dates.
28295         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
28296         <stdlib.h>, <unistd.h>, "pathmax.h".
28297         Instead, include "xgetcwd.h" (first) and "getcwd.h".
28298         (INITIAL_BUFFER_SIZE): Remove.
28299         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
28300
28301 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
28302
28303         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
28304         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
28305         Use the _ONCE methods, for efficiency.
28306         Check for fcntl.h.  In test program, include <errno.h>
28307         and <fcntl.h> if available.  Remove old K&R cruft from
28308         test program.  Check for common errors in GNU/Linux,
28309         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
28310         don't do AC_LIBOBJ, as that's getcwd.m4's job.
28311         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
28312         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
28313         name accordingly.
28314         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
28315         accommodate new getcwd.c.
28316         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
28317         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
28318         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
28319         that's all we need now.
28320
28321 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
28322
28323         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
28324         argp-parse.c depends on getopt internals, that means we should
28325         always use our getopt, to be on the safe side.
28326         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
28327         order not to spoil the result of an eventual previous invocation
28328         of gl_GETOPT_SUBSTITUTE.
28329
28330 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
28331
28332         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
28333         redefinition warnings. To avoid them, include the defines
28334         in `#if !defined __need_getopt ... #endif'. The only place
28335         where __getopt_argv_const is used is in definitions
28336         of getopt_long and getopt_long_only below, which are as well
28337         protected by `#ifndef __need_getopt'.
28338         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
28339         __need_getopt after including <stdio.h> and <unistd.h> These
28340         headers might have defined it.
28341
28342 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
28343
28344         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
28345
28346 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
28347
28348         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
28349         (futimens): New function, which uses futimes if available.
28350         (futimens, utimens): Support timespec==NULL, with same semantics
28351         as utime and utimens.
28352         * lib/utimens.h (futimens): New decl.
28353
28354 2004-11-23  Jim Meyering  <jim@meyering.net>
28355
28356         * lib/getopt_.h: Remove trailing blanks.
28357
28358 2004-11-23  Jim Meyering  <jim@meyering.net>
28359
28360         * lib/__fpending.c: Add comment.
28361
28362 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
28363
28364         * modules/canonicalize (Depends-on): Add xreadlink.
28365         Problem reported by James Youngman.
28366
28367 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
28368
28369         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
28370         New macros.
28371         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
28372         optopt): Use them instead of invoking ## directly; otherwise, the
28373         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
28374
28375 2004-11-19  Bruno Haible  <bruno@clisp.org>
28376
28377         * lib/strtok_r.c: Move comments from here...
28378         * lib/strtok_r.h: ... to here.
28379
28380 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
28381
28382         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
28383         implementations that mishandle size_t overflow.
28384
28385 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
28386
28387         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
28388         might fail.  Problem reported by Yoann Vandoorselaere.
28389         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
28390         implementations that mishandle size_t overflow.
28391
28392 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
28393
28394         * modules/canon-host (Depends-on): Add strdup.
28395
28396 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
28397
28398         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
28399
28400 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
28401
28402         * lib/canon-host.c: Include "strdup.h".
28403         (canon_host): Use getaddrinfo if available, so that IPv6 works.
28404         Use strdup instead of malloc/strcpy to duplicate strings.
28405
28406         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
28407         (human_space_before_unit): New constant.
28408         * lib/human.c (human_readable): Support it.
28409
28410         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
28411         (xgetcwd): Set errno correctly when failing.
28412         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
28413         the failure is actually due to a PATH_MAX problem.
28414
28415         Further getopt changes to make it more likely that glibc will
28416         buy the changes back.
28417         * lib/getopt.c (POSIXLY_CORRECT): New constant.
28418         (getopt): Use it, so to preserve glibc semantic
28419         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
28420         when compiling for libc.
28421         * lib/getopt_.h (__getopt_argv_const): Bring it back.
28422         (getopt_long, getopt_long_only): Use it.
28423
28424         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
28425         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
28426         (getopt): Argv is now char * const *, as per standard.
28427         (_getopt_internal_r, _getopt_internal): Argv is now char **,
28428         not char *__getopt_argv_const *.
28429         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
28430         _getopt_long_only_r): Likewise.
28431         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
28432         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
28433         _getopt_long_r, _getopt_long_only_r): Likewise.
28434         * lib/getopt_.h (__getopt_argv_const): Remove.
28435         (getopt): Argv is now char * const *, as per standard.
28436
28437         * lib/getdate.y (tORDINAL): New token.
28438         (day, relunit): Allow it for relative times.
28439         (relative_time_table): Use tORDINAL for ordinals.
28440
28441 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
28442
28443         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
28444         Document that "second" isn't allowed as an ordinal number.
28445
28446 2004-11-16  Jim Meyering  <jim@meyering.net>
28447
28448         * modules/closeout (Depends-on): Add fpending.
28449
28450 2004-11-15  Jim Meyering  <jim@meyering.net>
28451
28452         * lib/closeout.c: Include "__fpending.h" once again.
28453         Include <stdbool.h>.
28454         (close_stdout): Don't fail just because stdout was closed initially,
28455         since some programs don't write to stdout in the normal course of
28456         operation (other than --version and --help), and we don't want this
28457         function to make e.g. `touch file >&-' fail.
28458         But do fail if it was closed and someone has tried to write to it.
28459         E.g., `printf foo >&-' must fail.
28460
28461 2004-11-13  Jim Meyering  <jim@meyering.net>
28462
28463         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
28464
28465 2004-11-12  Simon Josefsson  <jas@extundo.com>
28466
28467         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
28468         small doc fix is still pending.
28469
28470 2004-11-11  Simon Josefsson  <jas@extundo.com>
28471
28472         * modules/strtok_r: New file.
28473
28474         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
28475         strtok_r.
28476
28477 2004-11-11  Simon Josefsson  <jas@extundo.com>
28478
28479         * m4/strtok_r.m4: New file.
28480
28481         * m4/getopt.m4: Replace opterr.
28482
28483 2004-11-11  Simon Josefsson  <jas@extundo.com>
28484
28485         * lib/strtok_r.h, strtok_r.c: New file.
28486
28487 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
28488
28489         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
28490         of replacing opterr, getopt, etc.  This should handle the
28491         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
28492
28493 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
28494
28495         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
28496         we can stop lying to compilers about the constness of argv when we
28497         are compiled outside glibc.
28498         (getopt, getopt_long, getopt_long_only): Use it.
28499         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
28500         _getopt_internal, getopt): Likewise.
28501         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
28502         _getopt_long_only_r): Likewise.
28503         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
28504         _getopt_long_r, _getopt_long_only_r): Likewise.
28505
28506         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
28507         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
28508         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
28509         the other external symbols.
28510         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
28511         declaration, since the above renaming now works around collisions.
28512
28513 2004-11-11  Jim Meyering  <jim@meyering.net>
28514
28515         * lib/linebreak.c: Remove trailing blanks.
28516         * lib/alloca_.h: Likewise.
28517         * lib/acosl.c: Likewise.
28518         * lib/euidaccess.c: Likewise.
28519         * lib/allocsa.h: Likewise.
28520
28521 2004-11-10  Simon Josefsson  <jas@extundo.com>
28522
28523         * m4/getaddrinfo.m4: New file.
28524
28525 2004-11-10  Simon Josefsson  <jas@extundo.com>
28526
28527         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
28528
28529 2004-11-10  Simon Josefsson  <jas@extundo.com>
28530
28531         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
28532         getaddrinfo.
28533
28534         * modules/getaddrinfo: New file.
28535
28536 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
28537
28538         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
28539
28540 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
28541
28542         * lib/mktime.c (SHR): New macro, which is a portable
28543         substitute for >> that should work even on Crays.
28544         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
28545         Problem reported by Mark D. Baushke in
28546         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
28547         * lib/getdate.y (SHR): Likewise.
28548         (tm_diff): Use it.
28549         * lib/strftime.c (SHR): Likewise.
28550         (tm_diff): Use it.
28551         * lib/quotearg.c (struct quoting_options): Use unsigned int for
28552         quote_these_too, so that right shifts are well defined.  All uses
28553         changed.
28554
28555 2004-11-10  Jim Meyering  <jim@meyering.net>
28556
28557         Ensure that no close failure goes unreported.
28558         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
28559         return early when it seems there's nothing to flush.
28560         Don't include __fpending.h.
28561
28562 2004-11-10  Jim Meyering  <jim@meyering.net>
28563
28564         * modules/closeout (Depends-on): Remove fpending.
28565
28566 2004-11-10  Jim Meyering  <jim@meyering.net>
28567
28568         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
28569
28570 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
28571
28572         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
28573         gl_FUNC_STRFTIME.
28574         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
28575         and AC_REQUIRE when possible, to avoid duplicate checks.
28576         Check for <wchar.h>.
28577
28578 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
28579
28580         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
28581
28582 2004-11-09  Bruno Haible  <bruno@clisp.org>
28583
28584         * m4/sockpfaf.m4: New file.
28585
28586 2004-11-05  Bruno Haible  <bruno@clisp.org>
28587
28588         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
28589         Reported by Mark D. Baushke <mdb@cvshome.org>.
28590
28591 2004-11-04  Bruno Haible  <bruno@clisp.org>
28592
28593         2004-09-11  Bruno Haible  <bruno@clisp.org>
28594                 * allocsa.valgrind: New file.
28595         2004-02-06  Bruno Haible  <bruno@clisp.org>
28596                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
28597                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
28598                 Reported by Christopher Seip <chris.seip@hp.com>.
28599
28600 2004-11-04  Bruno Haible  <bruno@clisp.org>
28601
28602         * modules/allocsa (Files): Add lib/allocsa.valgrind.
28603         (Makefile.am): Distribute it.
28604
28605 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
28606
28607         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
28608         with errno == ERANGE if the buffer is too small.
28609         Problem reported by Mark D. Baushke.
28610
28611 2004-11-03  Albert Chin  <china@thewrittenword.com>
28612             Paul Eggert  <eggert@cs.ucla.edu>
28613
28614         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
28615         equivalent, substitute $ac_type for equivalent type rather than
28616         blindly using uint32_t *always* which won't work if uint32_t is not
28617         available.  Define _UINT32_T to work around typedef of uint32_t if
28618         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
28619         2.5.1.
28620
28621 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
28622
28623         * m4/jm-macros.m4: Sync from coreutils.
28624         (gl_MACROS): Check for mbrlen, for pathchk.
28625         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
28626
28627 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
28628
28629         * lib/xreadlink.c (MAXSIZE): New macro.
28630         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
28631         size does not exceed MAXSIZE.  Avoid cast.
28632         As suggested by Mark D. Baushke in
28633         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
28634         if readlink fails with buffer size just under MAXSIZE, try again
28635         with MAXSIZE.
28636
28637 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
28638
28639         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
28640
28641 2004-11-02  Derek R. Price  <derek@ximbiot.com>
28642         and  Paul Eggert  <eggert@cs.ucla.edu>
28643
28644         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
28645         (get_date): Overparenthesize to avoid GCC warning.
28646
28647 2004-11-02  Bruno Haible  <bruno@clisp.org>
28648
28649         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
28650         returns void.
28651
28652 2004-11-02  Bruno Haible  <bruno@clisp.org>
28653
28654         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
28655         function returns void.
28656
28657 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
28658
28659         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
28660         fflush_unlocked, flockfile, funlockfile, funlockfile,
28661         fputs_unlocked, putc_unlocked.
28662
28663 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
28664
28665         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
28666         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
28667         already declared.
28668
28669 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
28670
28671         * modules/getdate (Files): Add doc/getdate.texi.
28672         (Depends-on): Add setenv, xalloc.
28673
28674 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
28675
28676         * lib/getdate.y: Add support for TZ="foo" within a date string.
28677         Fix some bugs near time_t boundaries.  Reject dates with
28678         out-of-range components, e.g., "Sept 31".
28679         Include <stdlib.h>, "setenv.h", "xalloc.h".
28680         (ISDIGIT_LOCALE): Remove; unused.
28681         Note that the TZ and time functions used here are not reentrant.
28682         (mktime_ok, get_tz): New functions.
28683         (TZBUFSIZE): New constant.
28684         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
28685         This requires that we sometimes generate our own TZ="XXX..." setting.
28686
28687 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
28688
28689         * doc/getdate.texi: New file, from coreutils with modifications for
28690         the new TZ parsing.
28691
28692 2004-10-27  Derek R. Price  <derek@ximbiot.com>
28693
28694         * lib/mktime.c (not_equal_tm): Remove redundant check.
28695
28696 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
28697
28698         * modules/regex (lib_SOURCES): Add regex.c.
28699         Reported by James Youngman in
28700         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
28701
28702 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
28703
28704         * lib/getdate.y: Use Bison 1.875 features, and some minor
28705         code cleanups.  This change does not affect semantics.
28706         Don't include <stdlib.h>; no longer needed.
28707         Don't include unlocked-io.h; only the "#if TEST" code uses
28708         stdio, and performance isn't crucial there.
28709         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
28710         Bison 1.875 features as described below.
28711         All uses of "PC." replaced by "pc->".
28712         (YYSTYPE): Add a forward declaration.
28713         (yylex, yyerror): Use full prototypes in forward decls.
28714         Use "%pure-parser" rather than obsolescent "%pure_parser".
28715         Use %parse-param and %lex-param instead of obsolescent
28716         YYPARSE_PARAM and YYLEX_PARAM.
28717         (meridian_table, month_and_day_table, time_units_table,
28718         relative_time_table, time_zone_table, military_table,
28719         lookup_zone, lookup_word, get_date):
28720         Use NULL instead of 0 where appropriate.
28721         (to_hour): Avoid abort (), to avoid a dependency on
28722         stdlib.h.
28723         (yyerror, yylex): Now accepts parser_control * arg.
28724         (main) [TEST]: Use '\0' rather than 0 for char.
28725
28726 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
28727
28728         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
28729
28730 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
28731
28732         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
28733         It's now the caller's responsibility to handle the case where
28734         !HAVE_GETPAGESIZE && !defined getpagesize.
28735
28736         * lib/mktime.c (leapyear): Arg is long int, not int.
28737
28738 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
28739
28740         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
28741
28742 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
28743
28744         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
28745         missing.  Problem reported by James Youngman.
28746
28747 2004-10-16  Simon Josefsson  <jas@extundo.com>
28748
28749         * gnulib-tool: Fix comments.  Fix parse problem.
28750         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
28751
28752 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
28753
28754         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
28755         implementation of getopt_long.  Problem reported by Alexander Taler in:
28756         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
28757
28758 2004-10-15  Bruno Haible  <bruno@clisp.org>
28759
28760         * gnulib-tool: Untabify. Initialize supplied_libname.
28761         (func_usage): More homogenous output.
28762         (func_modules_transitive_closure, func_modules_to_filelist,
28763         func_emit_lib_Makefile_am): New functions.
28764         (func_import): New function, extracted from big case statement. Use
28765         func_get_license, func_modules_transitive_closure,
28766         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
28767         opt_lgpl. Don't use test -a, as it's not portable.
28768         (func_create_testdir): Use func_modules_transitive_closure,
28769         func_modules_to_filelist, func_emit_lib_Makefile_am.
28770
28771 2004-10-15  Bruno Haible  <bruno@clisp.org>
28772
28773         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
28774
28775 2004-10-15  Bruno Haible  <bruno@clisp.org>
28776
28777         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
28778         the portions belonging to each module.
28779         Suggested by Derek Robert Price <derek@ximbiot.com>.
28780
28781 2004-10-12  Simon Josefsson  <jas@extundo.com>
28782
28783         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
28784         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
28785         to real functions.
28786
28787 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
28788
28789         * modules/vsnprintf: New file.
28790
28791 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
28792
28793         * m4/vsnprintf.m4: New file.
28794
28795 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
28796
28797         * lib/vsnprintf.h: New file.
28798         * lib/vsnprintf.c: New file.
28799
28800 2004-10-11  Bruno Haible  <bruno@clisp.org>
28801
28802         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
28803         vsnprintf.
28804
28805 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
28806
28807         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
28808
28809 2004-10-07  Bruno Haible  <bruno@clisp.org>
28810
28811         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
28812         fits into the provided buffer.
28813
28814 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
28815
28816         * lib/diacrit.c, diacrit.h: Add GPL notice.
28817
28818         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
28819         notice.
28820         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
28821         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
28822         This avoids a potential constant-folding bug.
28823
28824 2004-10-05  Bruno Haible  <bruno@clisp.org>
28825
28826         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
28827         for the declaration of strsep.
28828
28829 2004-10-05  Bruno Haible  <bruno@clisp.org>
28830
28831         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
28832
28833 2004-10-04  Simon Josefsson  <jas@extundo.com>
28834
28835         * modules/memmem: New file.
28836         * tests/test-memmem.c: New file.
28837         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
28838
28839 2004-10-04  Simon Josefsson  <jas@extundo.com>
28840
28841         * m4/memmem.m4: New file.
28842
28843 2004-10-04  Simon Josefsson  <jas@extundo.com>
28844
28845         * lib/memmem.h: New file.
28846         * lib/memmem.c: New file, taken from glibc.
28847
28848 2004-10-04  Simon Josefsson  <jas@extundo.com>
28849
28850         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
28851         '#ifdef USE_UNLOCKED_IO'.
28852
28853 2004-10-04  Simon Josefsson  <jas@extundo.com>
28854
28855         * config/srclist.txt: Add memmem from glibc.
28856
28857 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
28858
28859         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
28860
28861         * modules/argmatch, modules/argp, modules/closeout, modules/error,
28862         modules/exclude, modules/getdate, modules/getline,
28863         modules/getndelim2, modules/getpass, modules/getpass-gnu,
28864         modules/getusershell, modules/linebuffer, modules/md5,
28865         modules/mountlist, modules/posixtm, modules/readtokens,
28866         modules/readutmp, modules/regex, modules/sha1,
28867         modules/version-etc, modules/yesno:
28868         Remove dependency on unlocked-io.
28869
28870 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
28871
28872         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
28873
28874         * m4/unlocked-io.m4: Add copyright notice.
28875         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
28876
28877 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
28878
28879         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
28880         * lib/xmalloc.c (xmemdup): Likewise.
28881         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
28882         XFREE): Remove these long-obsolescent macros.
28883         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
28884         * lib/xstrdup.c: Remove.
28885
28886         * lib/regex.c (re_comp): Cast gettext return value to char *,
28887         Problem reported by Martin Neitzel via Mark D. Baushke.
28888
28889 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
28890
28891         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
28892         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
28893         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
28894         regex.c, sha1.c, version-etc.c, yesno.c:
28895         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
28896         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
28897         the includer's responsibility.
28898
28899         Sync from coreutils.
28900
28901         * lib/modechange.c (mode_compile): Don't decrement a pointer that
28902         points to the start of a string, as the C Standard says the
28903         resulting behavior is undefined.
28904
28905         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
28906         simple -> simple_backups, numbered_existing ->
28907         numbered_existing_backups, numbered -> numbered_backups
28908         to avoid shadowing problems.  All uses changed.
28909         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
28910         * lib/backupfile.c (check_extension, numbered_backup):
28911         Rename locals to avoid shadowing 'basename'.
28912         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
28913         once.
28914
28915         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
28916         * lib/.cvsignore: Add getopt.h.
28917
28918 2004-10-04  Bruno Haible  <bruno@clisp.org>
28919
28920         * modules/README: New file.
28921         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
28922         not a module.
28923
28924 2004-10-02  Jim Meyering  <jim@meyering.net>
28925
28926         * lib/dirfd.h, getpagesize.h: Add copyright notice.
28927
28928 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
28929
28930         * modules/strsep: New file.
28931
28932 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
28933
28934         * m4/strsep.m4: New file.
28935
28936 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
28937
28938         * lib/strsep.h: New file.
28939         * lib/strsep.c: New file.
28940
28941 2004-10-01  Simon Josefsson  <jas@extundo.com>
28942
28943         * lib/snprintf.c (snprintf): Handle size==0.
28944
28945 2004-10-01  Simon Josefsson  <jas@extundo.com>
28946             Bruno Haible  <bruno@clisp.org>
28947
28948         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
28949         (snprintf): Declare 'args'.
28950
28951 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
28952
28953         * lib/snprintf.c: Remove comments as to why each header is needed.
28954
28955 2004-10-01  Bruno Haible  <bruno@clisp.org>
28956
28957         * MODULES.html.sh: Add strsep.
28958
28959 2004-09-30  Simon Josefsson  <jas@extundo.com>
28960
28961         * modules/snprintf: New file.
28962
28963 2004-09-30  Simon Josefsson  <jas@extundo.com>
28964
28965         * m4/snprintf.m4: New file.
28966
28967 2004-09-30  Simon Josefsson  <jas@extundo.com>
28968
28969         * lib/snprintf.h, lib/snprintf.c: New files.
28970
28971 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
28972
28973         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
28974         (hol_entry_help): Never translate an empty string.
28975         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
28976         * lib/argp.h (OPTION_NO_TRANS): New option.
28977
28978 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
28979
28980         * modules/argp (Maintainer): Replace Simon Josefsson
28981         by Sergey Poznyakoff.
28982
28983 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
28984
28985         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
28986         changes merged back into glibc.
28987
28988 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
28989
28990         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
28991
28992 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
28993
28994         * lib/xvasprintf.c: Include xalloc.h.
28995         (xvasprintf): Use xalloc_die, not xmalloc_die.
28996
28997 2004-09-29  Bruno Haible  <bruno@clisp.org>
28998
28999         * modules/alloca-opt: New file, derived from modules/alloca.
29000         * modules/allocsa: Depend on alloca-opt instead of alloca.
29001         * modules/setenv: Likewise.
29002         * modules/vasnprintf: Likewise.
29003         * MODULES.html.sh: Add alloca-opt.
29004
29005 2004-09-28  Simon Josefsson  <jas@extundo.com>
29006
29007         * gnulib-tool: New parameter --lgpl, to asseert that modules are
29008         LGPL, and to replace license template from GPL to LGPL.
29009
29010 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
29011
29012         * modules/dummy: Change license to LGPL.
29013
29014 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
29015
29016         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
29017
29018 2004-09-24  Simon Josefsson  <jas@extundo.com>
29019
29020         * modules/minmax (License): Change from GPL to LGPL.
29021
29022 2004-09-23  Simon Josefsson  <jas@extundo.com>
29023
29024         * gnulib-tool (--import): Typo.
29025
29026 2004-09-23  Simon Josefsson  <jas@extundo.com>
29027
29028         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
29029
29030 2004-09-22  Bruno Haible  <bruno@clisp.org>
29031
29032         * modules/*: Add 'License' field.
29033         * gnulib-tool: Accept --extract-license option.
29034         (func_get_license): New function.
29035
29036 2004-09-21  Bruno Haible  <bruno@clisp.org>
29037
29038         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
29039         Reported by Simon Josefsson.
29040
29041 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
29042
29043         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
29044         gl_AC_TYPE_LONG_LONG.
29045
29046 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
29047
29048         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
29049
29050 2004-09-18  Simon Josefsson  <jas@extundo.com>
29051         and  Paul Eggert  <eggert@cs.ucla.edu>
29052
29053         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
29054         calls with autoreconf.  Define GL_LIB.
29055
29056 2004-09-14  Karl Berry  <karl@gnu.org>
29057
29058         * config/srclist.txt: unsync setenv.c, sigh.
29059
29060 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
29061
29062         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
29063         Problem reported by Bruno Haible in:
29064         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
29065
29066 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
29067
29068         * config/srclist.txt: Comment out argp-pvh.c.
29069
29070 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
29071
29072         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
29073         in case some system header has #define'd it.  Problem reported by
29074         Soeren D. Schulze in
29075         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
29076
29077 2004-09-09  Karl Berry  <karl@gnu.org>
29078
29079         * regex.[ch]: delete from the root.  These were supposed to be
29080                 synced with emacs cvs, but this has not happened for about
29081                 a year, and anyway nothing else uses emacs regex.[ch].
29082                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
29083                 lib/regex[.ch] is untouched.
29084
29085 2004-09-09  Bruno Haible  <bruno@clisp.org>
29086
29087         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
29088
29089 2004-09-09  Bruno Haible  <bruno@clisp.org>
29090
29091         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
29092         modifications.
29093         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
29094
29095 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
29096
29097         * modules/xvasprintf: New file.
29098         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
29099
29100 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
29101
29102         * lib/xvasprintf.h: New file.
29103         * lib/xvasprintf.c: New file.
29104         * lib/xasprintf.c: New file.
29105
29106 2004-09-08  Bruno Haible  <bruno@clisp.org>
29107
29108         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
29109
29110 2004-09-08  Bruno Haible  <bruno@clisp.org>
29111
29112         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
29113         length is > INT_MAX.
29114         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
29115         more.
29116
29117 2004-09-08  Bruno Haible  <bruno@clisp.org>
29118
29119         * lib/stdint_.h: New file, taken from GNU clisp.
29120
29121 2004-09-08  Bruno Haible  <bruno@clisp.org>
29122             Oskar Liljeblad  <oskar@osk.mine.nu>
29123
29124         * modules/stdint: New file.
29125         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
29126
29127 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
29128
29129         Import from coreutils.
29130         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
29131         strings on unbounded length.  alloca's performance benefits aren't
29132         that important here.
29133         (V_STRDUP): Remove.
29134         (parse_with_separator): New function, with most of the internals
29135         of the old parse_user_spec.  Allow user to omit both user and group,
29136         for compatibility with FreeBSD.
29137         Clone only the user name, not the entire spec.
29138         Do not set *uid, *gid unless entirely successful.
29139         Avoid memory leak in some failing cases.
29140         Fix regression for USER.GROUP reported by Dmitry V. Levin in
29141         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
29142         (parse_user_spec): Rewrite to use parse_with_separator.
29143
29144 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
29145
29146         * modules/userspec: Don't depend on alloca.
29147
29148 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
29149
29150         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
29151
29152 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
29153
29154         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
29155         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
29156         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
29157
29158 2004-08-16  Simon Josefsson  <jas@extundo.com>
29159
29160         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
29161         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
29162         Add --dry-run for --import.
29163         Let user provided command line parameters override configure.ac
29164         settings.
29165
29166 2004-08-12  Simon Josefsson  <jas@extundo.com>
29167
29168         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
29169         as discussed with Paul Eggert in threads rooted at
29170         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
29171         and
29172         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
29173         Before, the test was empty, and relied on ELIDE_CODE in source
29174         code.)
29175         (gl_PREREQ_GETOPT): New macro.
29176         (gl_GETOPT): Use them.
29177
29178 2004-08-12  Simon Josefsson  <jas@extundo.com>
29179
29180         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
29181         * lib/getopt_.h: Renamed from getopt.h.
29182
29183 2004-08-12  Simon Josefsson  <jas@extundo.com>
29184
29185         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
29186         Change default library name from libfoo to libgnu.
29187         Now, if you have a configure.ac that says:
29188                 gl_SOURCE_BASE(gl)
29189                 gl_M4_BASE(gl/m4)
29190                 gl_MODULES(error getopt etcetera)
29191                 gl_INIT
29192         you can import all you need by running:
29193                 ../gnulib/gnulib-tool --import
29194
29195         * modules/getopt (Files): Rename getopt.h to getopt_.h.
29196         (Makefile.am): Rewrite, use logic from argz.
29197         (Include): Use <getopt.h> instead of "getopt.h".
29198
29199 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
29200
29201         * modules/argp (Files): Add m4/unlocked-io.m4.
29202         (Depends-on): Add extensions.
29203
29204 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
29205
29206         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
29207         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
29208         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
29209         Check for program_invocation_name, program_invocation_short_name,
29210         flockfile, funlockfile, features.h, _getopt_long_only_r.
29211
29212 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
29213
29214         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
29215         its complicated substitute.
29216         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
29217         and program_invocation_name.
29218         (__argp_basename) [!_LIBC]: Remove; the only use was
29219         replaced by its body.
29220         (__argp_short_program_name): Change condition from
29221         !defined __argp_short_program_name to
29222         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
29223         to match argp-namefrob.h.
29224         (__argp_failure): Don't assume strerror_r returns char *.
29225         * lib/argp-parse.c (N_): Define unconditionally.
29226         (argp_default_options): Fill out initializers with 0 to avoid
29227         gcc warnings.
29228
29229 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
29230
29231         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
29232         getopt1.c.
29233
29234 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
29235
29236         Merge from coreutils.
29237
29238         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
29239
29240         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
29241         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
29242
29243 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
29244
29245         Merge from coreutils.
29246
29247         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
29248         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
29249         for Reliant Unix 5.43.
29250
29251         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
29252         (union fooround): Use uintmax_t, not long int.
29253         The rest is a merge from libc:
29254         [defined _LIBC]: Include <shlib-compat.h>.
29255         (_obstack) [defined _LIBC]: Remove after 2.3.4.
29256
29257         * lib/settime.c (settime): Recode to avoid warning with
29258         Sun Forte C 6U2.
29259
29260         * lib/strverscmp.c: Convert to UTF-8.
29261
29262 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
29263
29264         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
29265         m4/uintmax_t.m4.
29266
29267 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
29268
29269         * modules/xalloc-die: New file.
29270         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
29271
29272         * modules/md5 (Files): Add m4/uint32_t.m4.
29273         * modules/sha1: Renamed from modules/sha.
29274         (Files):
29275         Rename lib/sha.h to lib/sha1.h.
29276         Rename lib/sha.c to lib/sha1.c.
29277         Rename m4/sha.m4 to m4/sha1.m4.
29278         (lib_SOURCES): Likewise.
29279         (configure.ac): Rename gl_SHA to gl_SHA1.
29280         (Include): sha.h -> sha1.h.
29281
29282 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
29283
29284         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
29285         * m4/sha1.m4: Renamed from sha.m4.
29286         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
29287
29288 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
29289
29290         * lib/obstack.h (obstack_empty_p):
29291         Don't assume that chunk->contents is suitably aligned.
29292         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
29293         Likewise. Problem reported by Benno in
29294         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
29295
29296         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
29297         readable.  This could be improved further but it'd take some work.
29298
29299 2004-08-08  Simon Josefsson  <jas@extundo.com>
29300
29301         * modules/xgethostname (Depends-on): Remove exit and error (not
29302         used).
29303
29304         * modules/getpass-gnu: Add getpass.h.
29305         (Depends-on): Add stdbool.
29306         * modules/getpass: Add getpass.h.
29307
29308 2004-08-08  Simon Josefsson  <jas@extundo.com>
29309
29310         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
29311         Check getpass declaration.
29312
29313 2004-08-08  Simon Josefsson  <jas@extundo.com>
29314
29315         * lib/xgethostname.c: Don't include error.h (not used).
29316
29317         * lib/getpass.h: Add.
29318         * lib/getpass.c: Include getpass.h first.
29319
29320 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
29321
29322         * lib/xalloc-die.c: New file.
29323         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
29324         All uses removed.
29325         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
29326         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
29327         xalloc-die.c.
29328         (_, N_, xalloc_die): Move to xalloc-die.c.
29329         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
29330         so that we needn't mess with xalloc_msg_memory_exhausted.
29331
29332         * lib/sha1.h: Renamed from sha.h.
29333         (SHA1_H): Renamed from _SHA_H.
29334         (sha1_ctx): Renamed from sha_ctx.
29335         (sha1_init_ctx): Renamed from sha_init_ctx.
29336         (sha1_process_block): Renamed from sha_process_block.
29337         (sha1_process_bytes): Renamed from sha_process_bytes.
29338         (sha1_finish_ctx): Renamed from sha_finish_ctx.
29339         (sha1_read_ctx): Renamed from sha_read_ctx.
29340         (sha1_stream): Renamed from sha_stream.
29341         (sha1_buffer): Renamed from sha_buffer.
29342         * lib/sha1.c: Likewise; renamed from sha.c.
29343         Do not include <sys/types.h>.
29344         Include <stddef.h> rather than <stdlib.h>.
29345
29346 2004-08-08  Bruno Haible  <bruno@clisp.org>
29347
29348         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
29349         FILESYSTEM_PREFIX_LEN.
29350         * lib/progreloc.c: Likewise.
29351         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
29352
29353 2004-08-06  Simon Josefsson  <jas@extundo.com>
29354
29355         * modules/progname (Depends-on): Don't depend on stdbool.
29356
29357 2004-08-06  Simon Josefsson  <jas@extundo.com>
29358
29359         * modules/getsubopt: New file.
29360         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
29361         getsubopt.
29362
29363 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
29364
29365         More merge from coreutils.
29366
29367         * m4/utimens.m4, m4/utimecmp.m4: New files.
29368         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
29369         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
29370         prereq.m4, sha.m4: Import changes from coreutils.
29371
29372 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
29373
29374         More merge from coreutils.
29375         * modules/raise, modules/readtokens0, modules/utimens:
29376         * modules/utimecmp, module/xnanosleep: New files.
29377         * modules/strftime: Add lib/strftime.h.
29378         Change include from <time.h> to "strftime.h".
29379         * modules/yesno: Add lib/yesno.h.
29380         * modules/backupfile: Remove lib/addext.c.
29381         * modules/euidaccess: Add stat-macros.h.
29382         * modules/canonicalize, modules/euidaccess,
29383         modules/filemode, modules/lchown, modules/makepath,
29384         modules/rmdir, modules/stat: Likewise.
29385
29386 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
29387
29388         Merge from tar.
29389         * lib/argp-help.c (make_hol, hol_append): Don't assume that
29390         SIZE_MAX is a valid preprocessor constant.
29391         (__argp_basename): Change from "#ifndef _LIBC"
29392         to "#ifndef __argp_short_program_name", so that
29393         we don't compile these functions for tar.
29394
29395         More merges from coreutils.
29396         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
29397         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
29398         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
29399         * lib/addext.c: Remove; no longer needed.
29400         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
29401         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
29402         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
29403         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
29404         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
29405         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
29406         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
29407         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
29408         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
29409         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
29410         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
29411         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
29412         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
29413         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
29414         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
29415         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
29416         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
29417         Import changes from coreutils.
29418
29419 2004-08-05  Simon Josefsson  <jas@extundo.com>
29420
29421         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
29422
29423 2004-08-05  Simon Josefsson  <jas@extundo.com>
29424
29425         * m4/getsubopt.m4: New file.
29426
29427 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
29428
29429         Merge from coreutils.
29430
29431         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
29432         * m4/getcwd-path-max.m4: New files.
29433
29434         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
29435         FILESYSTEM_PREFIX_LEN ->
29436         FILE_SYSTEM_PREFIX_LEN.
29437         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
29438         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
29439         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
29440         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
29441
29442         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
29443         prerequisite modules now handle the DOS stuff.
29444         Don't check for unistd.h.
29445
29446 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
29447
29448         Merge from coreutils.
29449
29450         * lib/.gdb-history: Remove; this doesn't belong here.
29451
29452         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
29453         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
29454         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
29455         * lib/getcwd.c: New files.
29456
29457         * lib/dirname.h: Include <stdbool.h>.
29458         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
29459         for consistency with POSIX terminology.  All uses changed.
29460         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
29461         (strip_trailing_slashes): Use bool for booleans.
29462         * lib/stripslash.c (strip_trailing_slashes): Likewise.
29463
29464         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
29465         sometimes returns a positive errno value even when it succeeds.
29466         (print_errno_message) [!LIBC]: Fall back on strerror if
29467         __strerror_r fails.
29468
29469         * lib/path-concat.c (mempcpy): Don't define if a system header defines
29470         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
29471         (longest_relative_suffix): New function.
29472         (path_concat): Use it.  Assume first argument is not NULL.
29473         Port to DOS.  Omit redundant separators.
29474         Report an error instead of returning NULL.
29475         Use mempcpy instead of memcpy.
29476         (xpath_concat): Remove: not declared or used.
29477
29478         * lib/same.h: Include <stdbool.h>
29479         (same_name): Return bool, not int.
29480         * lib/same.c (same_name): Likewise.
29481         (errno): Don't declare; we assume C89 or better now.
29482
29483         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
29484         if not already defined.
29485
29486         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
29487         * lib/dup-safer.c (errno): Likewise.
29488
29489 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
29490
29491         Merge from coreutils.
29492         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
29493         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
29494         * modules/path-concat: Don't depend on strdup.
29495
29496 2004-08-03  Simon Josefsson  <jas@extundo.com>
29497
29498         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
29499         * lib/progname.h: Don't include stdbool.h.
29500
29501 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
29502
29503         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
29504         * MODULES.html.sh (func_all_modules): Remove fatal.
29505
29506 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
29507
29508         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
29509
29510 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
29511
29512         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
29513         working.
29514
29515 2004-08-02  Simon Josefsson  <jas@extundo.com>
29516
29517         * lib/getsubopt.h: New file, with comments from Bruno Haible.
29518         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
29519         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
29520
29521 2004-08-01  Simon Josefsson  <jas@extundo.com>
29522
29523         * lib/xgetdomainname.c: Include stdlib.h, for free().
29524
29525 2004-07-19  Bruno Haible  <bruno@clisp.org>
29526
29527         * MODULES.html.sh (func_all_modules): Add dummy.
29528
29529 2004-07-16  Simon Josefsson  <jas@extundo.com>
29530
29531         * modules/dummy: New file.
29532
29533 2004-07-16  Simon Josefsson  <jas@extundo.com>
29534
29535         * lib/dummy.c: New file.
29536
29537 2004-07-16  Bruno Haible  <bruno@clisp.org>
29538
29539         * lib/backupfile.h: Add extern "C" for C++.
29540         * lib/closeout.h: Likewise.
29541         * lib/copy-file.h: Likewise.
29542         * lib/findprog.h: Likewise.
29543         * lib/full-write.h: Likewise.
29544         * lib/pathname.h: Likewise.
29545         * lib/progname.h: Likewise.
29546         * lib/stpcpy.h: Likewise.
29547         * lib/stpncpy.h: Likewise.
29548         * lib/strcase.h: Likewise.
29549         * lib/strstr.h: Likewise.
29550         * lib/xalloc.h: Likewise.
29551
29552         * lib/mbswidth.h: Add extern "C" for C++.
29553         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
29554
29555 2004-07-13  Robert Millan  <robertmh@gnu.org>
29556
29557         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
29558
29559 2004-07-09  Simon Josefsson  <jas@extundo.com>
29560
29561         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
29562         failed without this.)
29563
29564 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
29565
29566         * modules/chown (Files): Add lib/fchown-stub.c, since
29567         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
29568
29569 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
29570
29571         * lib/fchown-stub.c: New file.
29572
29573 2004-06-24  Jim Meyering  <jim@meyering.net>
29574
29575         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
29576
29577 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
29578
29579         * modules/argz: Omit "#include".
29580
29581         * MODULES.html.sh (func_all_modules): Add calloc, to match
29582         2004-06-01 addition of calloc module.
29583
29584 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
29585
29586         * m4/argz.m4: New file, which is autoupdated from libtool.
29587
29588 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
29589
29590         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
29591         libtool.
29592
29593 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
29594
29595         * config/srclist-update: Don't insist on "USA." before the
29596         close-comment, as libtool omits the period and puts the */ on a
29597         separate line.
29598         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
29599         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
29600
29601 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
29602
29603         * modules/argz: New file.
29604         * MODULES.html.sh (func_all_modules): Add argz.
29605
29606 2004-06-12  Jim Meyering  <jim@meyering.net>
29607         and  Paul Eggert  <eggert@cs.ucla.edu>
29608
29609         * modules/hash (Files): Add lib/xalloc.h.
29610         * modules/pipe (Depends-on): Add wait-process.
29611         * modules/stat (Depends-on): Add xalloc.
29612         * modules/userspec (Files): Add lib/userspec.h.
29613         * modules/xstrto
29614
29615         Upgrade from gettext-0.13.
29616         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
29617         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
29618         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
29619
29620 2004-06-10  Jim Meyering  <jim@meyering.net>
29621
29622         * lib/calloc.c: New file.
29623
29624 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
29625
29626         * lib/getdate.y (yylex): Allow space between sign and number.
29627         Problem reported by Dan Jacobson.
29628
29629 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
29630
29631         Merge from coreutils CVS.
29632
29633         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
29634         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
29635         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
29636         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
29637         xstrtol.m4: Fix copyright date and/or serial number.
29638
29639         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
29640         See if we need an fchown replacement.
29641         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
29642         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
29643         and use the replacement function if we detect either defect.
29644
29645         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
29646         gl_UTIMECMP.
29647
29648 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
29649         and  Jim Meyering  <jim@meyering.net>
29650
29651         Merge from coreutils CVS.
29652
29653         * lib/stat-macros.h: New file, with contents from file-type.h
29654         and coreutils' system.h.
29655         * lib/file-type.c: Include "stat-macros.h".
29656         * lib/file-type.h (file_type): Move all macro definitions to new file,
29657         stat-macros.h.
29658
29659         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
29660         Wrap old code with this conditional.
29661         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
29662         function that does not dereference symlinks.
29663         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
29664
29665         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
29666         dependency problems.
29667         (xreadlink): Accept new arg SIZE, for efficiency.
29668         All decls and uses changed.
29669         * lib/xreadlink.h: Include <stddef.h>, for size_t.
29670
29671         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
29672         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
29673
29674         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
29675         sysexits.h.
29676
29677 2004-06-01  Jim Meyering  <jim@meyering.net>
29678
29679         * m4/calloc.m4: New file.
29680
29681 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
29682
29683         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
29684         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
29685         Also, fix a typo in a diagnostic.
29686
29687 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
29688
29689         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
29690         or AC_FUNC_REALLOC.
29691
29692 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
29693
29694         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
29695         macros to be defined.
29696         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
29697         the allocator returns NULL because the requested size is zero.
29698
29699 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
29700
29701         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
29702         var.  Add comment explaining why libc still defines it.  This
29703         merges the following patch from glibc:
29704         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
29705
29706 2004-05-20  Andreas Schwab  <schwab@suse.de>
29707
29708         * m4/free.m4: Replace free if it not known to work, not the other
29709         way round.
29710
29711 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
29712
29713         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
29714         present in glibc since revision 1.1 of this file.
29715         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
29716         obstack_alignment_mask, obstack_alloc, obstack_base,
29717         obstack_blank, obstack_blank_fast, obstack_chunk_size,
29718         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
29719         obstack_grow0, obstack_init, obstack_int_grow,
29720         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
29721         obstack_next_free, obstack_object_size, obstack_ptr_grow,
29722         obstack_ptr_grow_fast, obstack_room): Remove declarations of
29723         nonexistent functions.
29724
29725 2004-05-18  Karl Berry  <karl@gnu.org>
29726
29727         * config/srclist.txt: break link for vasnprintf.c.
29728
29729 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
29730
29731         Port obstack to the AS/400, where pointers are 16 bytes wide and
29732         you cannot cast an integer to a valid pointer.  This patch is
29733         currently waiting to be integrated into glibc; see
29734         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
29735
29736         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
29737         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
29738         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
29739         (struct obstack): temp member is now a union of a pointer and
29740         an integer, instead of an integer.  All integer uses changed.
29741         This does not affect the physical layout of struct obstack,
29742         except on hosts (like the AS/400) where the size or alignment of
29743         void * is greater than that of ptrdiff_t.
29744         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
29745         __STDC__)]: Store temporary in pointer member of union, not
29746         integer member.
29747         * lib/obstack.c: Include <stddef.h>, for offsetof.
29748         (struct fooalign): Remove; it doesn't need a name.
29749         (union fooround): Change double to long double, and add void *.
29750         (DEFAULT_ALIGNMENT): Use offsetof to compute.
29751         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
29752         not a macro.  Hence the values are always int; so remove all
29753         casts-to-int in uses.
29754
29755 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
29756
29757         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
29758         we can get this patch merged into glibc.
29759
29760 2004-05-17  Derek R. Price  <derek@ximbiot.com>
29761             Paul Eggert  <eggert@cs.ucla.edu>
29762
29763         * m4/argp: Depend on alloca.
29764
29765 2004-05-17  Derek R. Price  <derek@ximbiot.com>
29766             Paul Eggert  <eggert@cs.ucla.edu>
29767
29768         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
29769         freecoding.
29770
29771 2004-05-17  Bruno Haible  <bruno@clisp.org>
29772
29773         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
29774         precision that consists of a '.' followed by an empty digit string.
29775         Patch by Tor Lillqvist <tml@iki.fi>.
29776
29777 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
29778
29779         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
29780         for backward compatibility with older code.  We need our own
29781         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
29782         it under some other name, and our alloca.h will define it.
29783
29784 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
29785             Derek Price  <derek@ximbiot.com>
29786
29787         * lib/alloca.c: Include <alloca.h>, to get our interface.
29788         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
29789         include <alloca.h> first.  Use C89 prototype for alloca; this
29790         requires including <stddef.h> for size_t.  Use extern "C" if C++.
29791         Use #elif for simplicity, since we can assume C89 now.
29792         Don't try to source the system alloca.h since it will not be found
29793         and to prevent recursively including its replacement.
29794         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
29795         * lib/regex.c: Likewise.
29796
29797 2004-05-16  Derek Price  <derek@ximbiot.com>
29798             Paul Eggert  <eggert@cs.ucla.edu>
29799
29800         getline cleanup.  This changes the getndelim2 API: both order of
29801         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
29802         no delimiter).
29803
29804         * lib/getline.c: Don't include stddef.h or stdio.h, since our
29805         interface does that.
29806         (getline): Always use getdelim, so that we don't have two
29807         copies of this code.
29808         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
29809         if available.
29810         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
29811         (GETNDELIM2_MAXIMUM): New macro.
29812         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
29813         instead of the old practice of delim2==0.  All callers changed.
29814         Return -1 on overflow, instead of returning junk.
29815         Do not set *linesize unless allocation succeeds.
29816         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
29817         that we include sys/types.h.
29818         * lib/getnline.h: Likewise.
29819         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
29820         (getndelim2): Reorder arguments.
29821         * lib/getnline.c (getnline, getndelim):
29822         Don't discard the NMAX argument.
29823         (getnline): Invoke getndelim, to avoid code duplication.
29824         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
29825         of (size_t) -1 by callers of the getnline family.
29826
29827 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
29828
29829         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
29830         Check for gettimeofday.
29831         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
29832         Check for settimeofday, stime.
29833
29834 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
29835
29836         * lib/nanosleep.c (suspended): Change its type from int to
29837         sig_atomic_t volatile.
29838         (first_call): Make it private to rpl_nanosleep, and have it
29839         be zero initially as that's a bit faster.
29840         (my_usleep): Round up fractional times instead of truncating them,
29841         as this is the usual meaning for 'sleep'.
29842
29843         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
29844         doesn't work.
29845         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
29846         (ENOSYS): Define if not defined.
29847         (settime): Fall back on stime if it exists and settimeofday fails.
29848         But don't bother with fallbacks if a method fails with errno == EPERM.
29849
29850 2004-05-11  Jim Meyering  <jim@meyering.net>
29851
29852         Prior to this change, the save_cwd caller required read access to the
29853         current directory on most systems (ones with the fchdir function).
29854
29855         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
29856         fails, try write-only, and finally, resort to using xgetcwd.
29857
29858 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
29859
29860         * lib/obstack.c, obstack.h: Import changes from libc.
29861
29862 2004-04-28  Bruno Haible  <bruno@clisp.org>
29863
29864         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
29865         also implicitly appends .exe to executables.
29866         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
29867         accepts Windows pathnames.
29868         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
29869         Treat Cygwin like Windows, since it now accepts Windows pathnames.
29870         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
29871         Treat Cygwin like Windows, since it now accepts Windows pathnames.
29872         Reported by Derek Robert Price <derek@ximbiot.com>.
29873
29874 2004-04-21  Karl Berry  <karl@gnu.org>
29875
29876         * config/srclist.txt (localcharset.c): break sync.
29877
29878 2004-04-20  Paul Eggert  <eggert@twinsun.com>
29879
29880         * m4/host-os.m4: Add a copyright notice.
29881
29882 2004-04-20  Jim Meyering  <jim@meyering.net>
29883
29884         Change UTILS_ to gl_ in AC_DEFINE'd names.
29885         Change utils_- and jm_-prefixed variables, too.
29886         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
29887         UTILS_FUNC_MKDIR_TRAILING_SLASH.
29888         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
29889
29890         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
29891         Don't emit trailing blanks.
29892         Also rename jm_-prefixed variables to have gl_ prefix.
29893
29894         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
29895         Also rename jm_-prefixed variables to have gl_ prefix.
29896
29897         * m4/jm-macros.m4: Reflect the renamings.
29898         * m4/prereq.m4: Likewise.
29899
29900 2004-04-20  Jim Meyering  <jim@meyering.net>
29901
29902         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
29903         memory.
29904
29905 2004-04-20  Jim Meyering  <jim@meyering.net>
29906             Bruno Haible  <bruno@clisp.org>
29907
29908         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
29909         memory when realloc fails.
29910
29911 2004-04-19  Jim Meyering  <jim@meyering.net>
29912
29913         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
29914         now that readutmp.c may call `free (0)'.
29915
29916 2004-04-19  Bruno Haible  <bruno@clisp.org>
29917
29918         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
29919         * m4/inttypes_h.m4: Likewise.
29920         * m4/stdint_h.m4: Likewise.
29921         * m4/intmax_t.m4: Likewise.
29922         * m4/uintmax_t.m4: Likewise.
29923
29924 2004-04-18  Jim Meyering  <jim@meyering.net>
29925
29926         * m4/prereq.m4: Don't forbid jm_ prefix.
29927
29928         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
29929         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
29930         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
29931         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
29932         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
29933         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
29934         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
29935         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
29936         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
29937         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
29938         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
29939         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
29940         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
29941         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
29942         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
29943         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
29944         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
29945         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
29946         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
29947
29948 2004-04-18  Jim Meyering  <jim@meyering.net>
29949
29950         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
29951         failure, don't leak memory and do call END_UTMP_ENT.
29952
29953 2004-04-16  Jim Meyering  <jim@meyering.net>
29954
29955         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
29956         coreutils' stat program.
29957         (gl_PREREQ): Don't require jm_PREREQ_STAT.
29958
29959 2004-04-11  Paul Eggert  <eggert@twinsun.com>
29960
29961         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
29962         C89.
29963         (CHAR_BIT): Remove, since we assume C89.
29964         Include <stdint.h> if available, as per current Autoconf CVS advice.
29965
29966 2004-03-31  Jim Meyering  <jim@meyering.net>
29967
29968         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
29969         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
29970         * m4/xalloc.m4: Likewise.
29971
29972 2004-03-30  Paul Eggert  <eggert@twinsun.com>
29973
29974         Merge from coreutils.
29975
29976         * m4/inttostr.m4: New file.
29977         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
29978         Require AM_STDBOOL_H and gl_TIMESPEC instead.
29979         Require gl_CLOCK_TIME.
29980         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
29981
29982 2004-03-30  Paul Eggert  <eggert@twinsun.com>
29983
29984         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
29985         not bool, to be more consistent with Unix conventions.
29986         Suggested by Bruno Haible.
29987
29988         Merge from coreutils.
29989
29990         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
29991         * lib/umaxtostr.c: New files.
29992
29993         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
29994         the usual <time.h> dance.
29995         (get_date): Change signature to support fractional time stamps.
29996         All callers changed.
29997         * lib/getdate.y: Include "getdate.h" first, as we can now
29998         assume C89 and don't need to worry about 'const'.
29999         Similarly, include "unlocked-io.h" near start, not in middle.
30000         Include <limits.h>.
30001         (textint.value): Use long int rather than int.
30002         (textint.digits): Use size_t rather than int.
30003         (BILLION, LOG10_BILLION): New constants.
30004         (parser_control): New member rel_ns.  Members day_ordinal,
30005         time_zone, month, day, hour, minutes, rel_year, rel_month,
30006         rel_day, rel_hour, rel_minutes, rel_seconds
30007         are now long int, not int.  Member seconds is now struct timespec,
30008         not int.  New member timespec_seen.  Members dates_seen, days_seen,
30009         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
30010         not int.
30011         (%union.intval): Now long int, not int.
30012         New member timespec.
30013         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
30014         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
30015         (spec): Now is a timespec or an item list.
30016         (timespec, items): New nonterminals.
30017         (time, rel, relunit, number, get_date):
30018         Add support for fractional seconds.
30019         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
30020         (gmtime, localtime, mktime): Remove decls; not needed with C89.
30021         (to_hour): First arg is now long int, not int.
30022         (to_year): Returns long int, not int.
30023         Don't treat year -70 like 70.
30024         (tm_diff): Returns long int, not int.
30025         (lookup_word): Use bool instead of int when appropriate.
30026         (yylex): Use size_t for count, not int.
30027         Detect overflow when parsing large integer constants.
30028         Add support for fractions.
30029         (get_date): Make pointers 'const' if possible.
30030         Use more-portable code to detect integer overflow.
30031         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
30032         Don't use ctime; it's not reliable if the year has >4 digits.
30033
30034         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
30035         This is for compatibility with BSD.
30036
30037         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
30038         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
30039         From coreutils' system.h.
30040
30041         * lib/userspec.c: Don't include "posixver.h".
30042         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
30043         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
30044         compatible extension.  Simplify code by removing a boolean int
30045         that was always nonzero if a string was nonnull.
30046
30047 2004-03-30  Jim Meyering  <jim@meyering.net>
30048
30049         Merge from coreutils.
30050
30051         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
30052         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
30053         on some systems one must include <grp.h> before it.
30054         Reported by Christian Krackowizer.
30055
30056 2004-03-30  Jim Meyering  <jim@meyering.net>
30057
30058         Merge from coreutils.
30059
30060         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
30061
30062         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
30063         an empty input stream.
30064
30065         * lib/readtokens.c: Include <stdbool.h>.
30066         (readtoken): Use `size_t' rather than int/long.
30067         All callers adjusted.
30068         Use `bool' rather than `int' where appropriate.
30069         Use memset rather than an explicit loop.
30070         Use x2nrealloc rather than xrealloc.
30071         Allow the use of `\0' as a delimiter.
30072         (readtokens): Likewise.
30073         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
30074
30075 2004-03-30  Jim Meyering  <jim@meyering.net>
30076
30077         * m4/realloc.m4: Remove file, since now it does no more than
30078         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
30079         the `configure.ac' section of module/realloc.
30080         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
30081
30082 2004-03-30  Bruno Haible  <bruno@clisp.org>
30083
30084         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
30085         nonnull.
30086
30087 2004-03-29  Paul Eggert  <eggert@twinsun.com>
30088
30089         Merge changes to getloadavg.c from coreutils and Emacs.
30090
30091         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
30092         Define to an expression, not to the empty string.
30093         Include cloexec.h and xalloc.h.
30094         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
30095         Use set_cloexec_flag rather than rolling our own.
30096         * lib/cloexec.c, lib/cloexec.h: New files.
30097
30098 2004-03-29  Paul Eggert  <eggert@twinsun.com>
30099
30100         * m4/cloexec.m4: New file.
30101
30102 2004-03-18  Paul Eggert  <eggert@twinsun.com>
30103
30104         * lib/getopt.h: Sync with libc CVS.
30105
30106 2004-03-18  Paul Eggert  <eggert@twinsun.com>
30107             Bruno Haible  <bruno@clisp.org>
30108
30109         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
30110         mbswidth.
30111
30112 2004-03-18  Paul Eggert  <eggert@twinsun.com>
30113             Bruno Haible  <bruno@clisp.org>
30114
30115         * lib/mbswidth.h: Include <wchar.h> only if
30116         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
30117         <wchar.h>.
30118         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
30119
30120 2004-03-09  Paul Eggert  <eggert@twinsun.com>
30121
30122         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
30123         Sync with libc CVS.
30124         * lib/getopt_int.h: New file, also synced from libc.
30125
30126 2004-03-09  Paul Eggert  <eggert@twinsun.com>
30127
30128         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
30129         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
30130         Bring back getopt.c, getopt.h, getopt1.c.
30131
30132 2004-03-07  Paul Eggert  <eggert@twinsun.com>
30133
30134         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
30135         All uses changed.  Check for sa_sigaction member; this fixes
30136         a bug first reported by Jason Andrade in
30137         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
30138
30139 2004-03-07  Paul Eggert  <eggert@twinsun.com>
30140
30141         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
30142         '#if' expressions.  Unlike the code it replaces, it does not
30143         depend on (defined _SC_PAGESIZE).  However, it does depend on
30144         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
30145         first reported by Jason Andrade in
30146         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
30147
30148 2004-02-25  Simon Josefsson  <jas@extundo.com>
30149
30150         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
30151
30152 2004-02-25  Simon Josefsson  <jas@extundo.com>
30153
30154         * lib/strdup.h: New file.
30155         * lib/strdup.c: Include it.
30156         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
30157         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
30158
30159 2004-02-23  Karl Berry  <karl@gnu.org>
30160
30161         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
30162         (from fencepost.gnu.org:/gd/gnuorg).
30163
30164 2004-02-23  Karl Berry  <karl@gnu.org>
30165
30166         * config/srclistvars.sh (GNUORG) [karl]: redefine.
30167         * config/srclist.txt: add maintain/standards documents.
30168
30169 2004-02-18  Bruno Haible  <bruno@clisp.org>
30170
30171         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
30172         Reported by Derek Robert Price <derek@ximbiot.com>.
30173
30174 2004-02-16  Karl Berry  <karl@gnu.org>
30175
30176         * config/mkinstalldirs, install-sh: update from automake.
30177
30178 2004-02-06  Karl Berry  <karl@gnu.org>
30179
30180         * m4/po.m4: update from gettext 0.14.1.
30181
30182 2004-02-06  Karl Berry  <karl@gnu.org>
30183
30184         * lib/config.charset: update from gettext 0.14.1.
30185
30186 2004-02-05  Paul Eggert  <eggert@twinsun.com>
30187
30188         Add comments and code, prompted by suggestions from Bruno Haible
30189         for sh-quote.
30190         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
30191         describing the enum quoting_style values.
30192         * lib/quotearg.c (quotearg_alloc): New function.
30193         (quotearg_buffer_restyled): Treat lone { and } as special.
30194         Treat = as special.  Work around bug with older shells
30195         that "see" a '\' that is really the 2nd byte of a multibyte char.
30196         Quote empty string with shell_quoting_style.
30197
30198 2004-02-03  Bruno Haible  <bruno@clisp.org>
30199
30200         * m4/pipe.m4: New file, from GNU gettext.
30201
30202 2004-02-03  Bruno Haible  <bruno@clisp.org>
30203
30204         * lib/pipe.h: New file, from GNU gettext.
30205         * lib/pipe.c: New file, from GNU gettext.
30206
30207 2004-01-27  Bruno Haible  <bruno@clisp.org>
30208
30209         * m4/execute.m4: New file, from GNU gettext.
30210
30211 2004-01-27  Bruno Haible  <bruno@clisp.org>
30212
30213         * lib/execute.h: New file, from GNU gettext.
30214         * lib/execute.c: New file, from GNU gettext.
30215         * lib/w32spawn.h: New file, from GNU gettext.
30216
30217 2004-01-24  Paul Eggert  <eggert@twinsun.com>
30218
30219         Merge from diffutils.
30220
30221         * lib/file-type.c (file_type): Add typed memory objects.
30222         * lib/file-type.h (S_TYPEISTMO): New macro.
30223
30224         * lib/c-stack.h (c_stack_action): Remove argv argument.
30225         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
30226         (die): Don't calculate message unless segv_action returns.
30227         (get_stack_location, min_address_from_argv, max_address_from_argv,
30228         volatile stack_base, volatile_stack_size): Remove.
30229         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
30230         that every segmentation violation is a stack overflow.  (Ouch!)
30231         See Debian bug 136249 (still outstanding) for more info about why
30232         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
30233
30234 2004-01-24  Paul Eggert  <eggert@twinsun.com>
30235
30236         Exit-status fix from coreutils.
30237
30238         Use exit_failure consistently in place of EXIT_FAILURE,
30239         so that program exit statuses are consistent on failure.
30240
30241         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
30242         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
30243         * lib/argmatch.h: Comment fix to match the above.
30244         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
30245         Now a macro referring to exit_failure, instead of a separate
30246         variable.  Include "exitfail.h" to get it.
30247         * lib/xstrtol.h: Include "exitfail.h".
30248         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
30249
30250         * lib/long-options.c (parse_long_options): Use prototype
30251         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
30252         for clarity.
30253
30254 2004-01-21  Jim Meyering  <jim@meyering.net>
30255
30256         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
30257         so as not to conflict with a different-sized __mktime_internal
30258         function in GNU libc.
30259         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
30260         Problem building statically-linked `ls' reported by Michael Brunnbauer.
30261
30262 2004-01-20  Karl Berry  <karl@gnu.org>
30263
30264         * config/config.guess: update from config.
30265
30266         * config/srclistvars.sh: GNUWWWLICENSES for karl.
30267
30268 2004-01-20  Bruno Haible  <bruno@clisp.org>
30269
30270         Safer stack allocation.
30271         * lib/setenv.c: Include allocsa.h.
30272         (alloca): Remove fallback definition.
30273         (freea): Remove macro.
30274         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
30275         instead of freea.
30276
30277 2004-01-20  Bruno Haible  <bruno@clisp.org>
30278
30279         * m4/eealloc.m4: New file, from GNU gettext.
30280
30281 2004-01-20  Bruno Haible  <bruno@clisp.org>
30282
30283         * m4/allocsa.m4: New file, from GNU gettext.
30284
30285 2004-01-20  Bruno Haible  <bruno@clisp.org>
30286
30287         * lib/xallocsa.h: New file, from GNU gettext.
30288         * lib/xallocsa.c: New file, from GNU gettext.
30289
30290 2004-01-20  Bruno Haible  <bruno@clisp.org>
30291
30292         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
30293
30294 2004-01-20  Bruno Haible  <bruno@clisp.org>
30295
30296         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
30297         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
30298         specially.
30299
30300 2004-01-20  Bruno Haible  <bruno@clisp.org>
30301
30302         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
30303         patch.
30304
30305 2004-01-20  Bruno Haible  <bruno@clisp.org>
30306
30307         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
30308
30309 2004-01-20  Bruno Haible  <bruno@clisp.org>
30310
30311         * lib/eealloc.h: New file.
30312
30313 2004-01-20  Bruno Haible  <bruno@clisp.org>
30314
30315         * lib/binary-io.h: Avoid warnings on Cygwin.
30316
30317 2004-01-20  Bruno Haible  <bruno@clisp.org>
30318
30319         * lib/allocsa.h: New file, from GNU gettext.
30320         * lib/allocsa.c: New file, from GNU gettext.
30321
30322 2004-01-18  Karl Berry  <karl@gnu.org>
30323
30324         * doc/gpl.texi, doc/lgpl.texi: new files.
30325
30326 2004-01-18  Karl Berry  <karl@gnu.org>
30327
30328         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
30329         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
30330
30331 2004-01-15  Paul Eggert  <eggert@twinsun.com>
30332
30333         Merge from coreutils.
30334
30335         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
30336         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
30337         (gl_DEFAULT_POSIX2_VERSION): Move
30338         the documentation from 'configure' into 'config.hin',
30339         so that 'configure --help' isn't burdened by it and
30340         we don't have to worry about its formatting there.
30341         Reword the documentation so that it's more succinct
30342         and can be run together into a single paragraph.
30343         * m4/same.m4 (gl_SAME): Check for pathconf.
30344
30345 2004-01-15  Paul Eggert  <eggert@twinsun.com>
30346
30347         Merge from coreutils.
30348
30349         * lib/posixver.c: Include posixver.h.
30350
30351         * lib/same.c: Include <stdbool.h>, <limits.h>.
30352         (_POSIX_NAME_MAX): Define if not defined.
30353         (MIN): New macro.
30354         (same_name): If file names are silently truncated, report
30355         that the file names are the same if they are the same after
30356         the silent truncation.
30357
30358         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
30359         conversion function.
30360         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
30361         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
30362         longer needed.
30363
30364 2004-01-15  Jim Meyering  <jim@meyering.net>
30365
30366         Merge from coreutils.
30367
30368         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
30369         if no library is required.
30370         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
30371         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
30372         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
30373         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
30374         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
30375         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
30376         value, $ac_cv_search_crypt, if it's "none required".
30377         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
30378         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
30379         not gl_FUNC_GETLOADAVG.
30380         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
30381         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
30382
30383 2004-01-15  Jim Meyering  <jim@meyering.net>
30384
30385         Merge from coreutils.
30386
30387         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
30388         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
30389         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
30390
30391         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
30392         optional configure-time default.
30393
30394         * lib/version-etc.c (version_etc_copyright): Update copyright date.
30395
30396         * lib/xreadlink.c (xreadlink): Correct outdated comment.
30397
30398 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
30399
30400         Merge from coreutils.
30401
30402         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
30403         value, $ac_cv_search_nanosleep, if it's "none required".
30404
30405 2004-01-14  Paul Eggert  <eggert@twinsun.com>
30406
30407         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
30408         with like-named macro in fnmatch.c.
30409         (EXT): Use an internal constant instead.
30410
30411         Merge fnmatch patches from glibc.
30412         * lib/fnmatch.c (mbsinit): Remove define.
30413         Add libc_hidden_ver (__fnmatch, fnmatch).
30414         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
30415         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
30416
30417 2004-01-14  Karl Berry  <karl@gnu.org>
30418
30419         * config/install-sh: update from automake.
30420
30421 2004-01-13  Karl Berry  <karl@gnu.org>
30422
30423         * config/install-sh: update from automake.
30424
30425 2004-01-09  Karl Berry  <karl@gnu.org>
30426
30427         * config/install-sh: update from automake.
30428
30429 2004-01-05  Karl Berry  <karl@gnu.org>
30430
30431         * config/config.{sub,guess}: update from config.
30432
30433 2003-12-31  Karl Berry  <karl@gnu.org>
30434
30435         * config/depcomp: update from automake.
30436
30437 2003-12-14  Karl Berry  <karl@gnu.org>
30438
30439         * lib/config.charset: update from gettext-runtime.
30440
30441 2003-12-03  Paul Eggert  <eggert@twinsun.com>
30442
30443         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
30444         Bug reported by Alfred M. Szmidt.
30445
30446 2003-12-03  Bruno Haible  <bruno@clisp.org>
30447
30448         * m4/gettext.m4: Upgrade from gettext-0.13.
30449         * m4/po.m4: Upgrade from gettext-0.13.
30450         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
30451         * m4/intmax.m4: New file, from gettext-0.13.
30452         * m4/printf-posix.m4: New file, from gettext-0.13.
30453
30454 2003-11-29  Karl Berry  <karl@gnu.org>
30455
30456         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
30457
30458 2003-11-25  Paul Eggert  <eggert@twinsun.com>
30459             Bruno Haible  <bruno@clisp.org>
30460
30461         * lib/printf-parse.h: Don't include sys/types.h.
30462         (ARG_NONE): New macro.
30463         (char_directive): Change type of *arg_index fields to size_t.
30464         * lib/printf-parse.c: Don't include sys/types.h.
30465         (SSIZE_MAX): Remove macro.
30466         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
30467         Remove unnecessary overflow check.
30468         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
30469         fields.
30470
30471 2003-11-25  Bruno Haible  <bruno@clisp.org>
30472
30473         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
30474
30475 2003-11-25  Bruno Haible  <bruno@clisp.org>
30476
30477         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
30478         gt_TYPE_SSIZE_T.
30479
30480 2003-11-24  Paul Eggert  <eggert@twinsun.com>
30481
30482         * modules/alloca: Remove dependency on xalloc.
30483
30484 2003-11-24  Paul Eggert  <eggert@twinsun.com>
30485
30486         * lib/alloca.c: Remove dependency on xalloc module.
30487         (xalloc_die): Remove.
30488         (memory_full) [!defined emacs]: New macro.
30489         [!defined emacs]: Don't include xalloc.h.
30490         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
30491         address arithmetic overflows.  Change datatypes a bit to avoid
30492         unnecessary casts.
30493
30494 2003-11-22  Jim Meyering  <jim@meyering.net>
30495
30496         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
30497         s/size/size_t/.
30498
30499 2003-11-21  Karl Berry  <karl@gnu.org>
30500
30501         * config/config.{sub,guess}: update from config.
30502
30503 2003-11-18  Karl Berry  <karl@gnu.org>
30504
30505         * config/config.{sub,guess}: update from config.
30506
30507         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
30508
30509 2003-11-17  Paul Eggert  <eggert@twinsun.com>
30510
30511         * README: Mention that S+T cannot overflow if S is the size of
30512         an existing object and T is sufficiently small.
30513
30514 2003-11-17  Jim Meyering  <jim@meyering.net>
30515
30516         On systems without utime and without a utimes function capable of
30517         dealing with a NULL struct utimbuf* argument, this utime replacement
30518         could -- in unusual circumstances -- leak a file descriptor.
30519         * lib/utime.c: Include <unistd.h> and <errno.h>.
30520         (utime_null): Be sure to close `fd' and to preserve errno.
30521         Reported by Geoff Collyer via Arnold Robbins.
30522
30523 2003-11-17  Bruno Haible  <bruno@clisp.org>
30524
30525         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
30526         (Depends-on): Add xsize.
30527
30528 2003-11-17  Bruno Haible  <bruno@clisp.org>
30529
30530         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
30531
30532 2003-11-17  Bruno Haible  <bruno@clisp.org>
30533
30534         * lib/vasnprintf.c (alloca): Remove fallback definition.
30535         (freea): Remove definition.
30536         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
30537         Reported by Paul Eggert.
30538
30539 2003-11-16  Paul Eggert  <eggert@twinsun.com>
30540             Bruno Haible  <bruno@clisp.org>
30541
30542         Protect against address arithmetic overflow.
30543         * lib/printf-args.h: Include stddef.h.
30544         (arguments): Change type of field 'count' to size_t.
30545         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
30546         'unsigned int' where appropriate.
30547         * lib/printf-parse.h: Include sys/types.h.
30548         (char_directive): Change type of *arg_index fields to ssize_t.
30549         (char_directives): Change type of fields 'count', max_*_length to
30550         size_t.
30551         * lib/printf-parse.c: Include sys/types.h and xsize.h.
30552         (SSIZE_MAX): Define fallback value.
30553         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
30554         instead of 'int' where appropriate. Check a_allocated, d_allocated
30555         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
30556         * lib/vasnprintf.c: Include xsize.h.
30557         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
30558         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
30559         overflow. Avoid wraparound when converting a width or precision from
30560         decimal to binary.
30561
30562 2003-11-16  Bruno Haible  <bruno@clisp.org>
30563
30564         Update from GNU gettext.
30565         * lib/printf-parse.c: Generalize to it can be compiled for wide
30566         strings.
30567         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
30568         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
30569         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
30570         SNPRINTF): New macros.
30571         Don't include <alloca.h> if the file is used inside libintl.
30572         (local_wcslen): New function, for Solaris 2.5.1.
30573         (VASNPRINTF): Use it instead of wcslen.
30574
30575 2003-11-16  Bruno Haible  <bruno@clisp.org>
30576
30577         * lib/xsize.h (xmax): New function.
30578         (xsum, xsum3, xsum4): Declare as "pure" functions.
30579
30580 2003-11-12  Paul Eggert  <eggert@twinsun.com>
30581
30582         * modules/xalloc (Files): Undo latest change, since xalloc.h
30583         no longer needs SIZE_MAX or PTRDIFF_MAX.
30584
30585 2003-11-12  Paul Eggert  <eggert@twinsun.com>
30586
30587         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
30588         gl_PTRDIFF_MAX.
30589
30590 2003-11-12  Paul Eggert  <eggert@twinsun.com>
30591
30592         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
30593         "return", to pacify some unknown compiler.  Problem reported
30594         by Joerg Schilling.
30595
30596 2003-11-12  Paul Eggert  <eggert@twinsun.com>
30597
30598         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
30599         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
30600         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
30601         heuristic is just as accurate as far as we know, and it removes a
30602         dependency on size_max.m4 and ptrdiff_max.m4.
30603
30604 2003-11-11  Bruno Haible  <bruno@clisp.org>
30605
30606         * modules/xsize (Files): Add m4/size_max.m4.
30607         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
30608
30609 2003-11-11  Bruno Haible  <bruno@clisp.org>
30610
30611         * m4/size_max.m4: New file.
30612         * m4/ptrdiff_max.m4: New file.
30613         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
30614         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
30615         (gl_XALLOC): Invoke it.
30616
30617 2003-11-11  Bruno Haible  <bruno@clisp.org>
30618
30619         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
30620         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
30621         defined.
30622
30623 2003-11-10  Paul Eggert  <eggert@twinsun.com>
30624
30625         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
30626         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
30627         rejected some allocations of exactly SIZE_MAX - 2 bytes.
30628         From Bruno Haible.
30629         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
30630         not (size_t) -1, since it's defined here.
30631
30632 2003-11-09  Karl Berry  <karl@gnu.org>
30633
30634         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
30635
30636 2003-11-06  Paul Eggert  <eggert@twinsun.com>
30637
30638         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
30639         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
30640         Reject sizes of exactly SIZE_MAX bytes.
30641         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
30642         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
30643
30644 2003-11-05  Bruno Haible  <bruno@clisp.org>
30645
30646         * lib/xsize.h: Include limits.h, to avoid a possible collision with
30647         SIZE_MAX defined in <limits.h> on Solaris.
30648
30649 2003-11-04  Jim Meyering  <jim@meyering.net>
30650
30651         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
30652         variable names, rather than @VAR@.
30653         * modules/poll: Likewise.
30654
30655 2003-11-04  Bruno Haible  <bruno@clisp.org>
30656
30657         * modules/xsize: New file.
30658         * modules/linebreak: Depend on xsize.
30659         * MODULES.html.sh (func_all_modules): Add xsize.
30660
30661 2003-11-04  Bruno Haible  <bruno@clisp.org>
30662
30663         * m4/xsize.m4: New file.
30664
30665 2003-11-04  Bruno Haible  <bruno@clisp.org>
30666
30667         * lib/xsize.h: New file.
30668         * lib/linebreak.c: Include xsize.h.
30669         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
30670         argument for overflow.
30671         Suggested by Paul Eggert.
30672
30673 2003-11-03  Karl Berry  <karl@gnu.org>
30674
30675         * config/config.{guess,sub}: update from config.
30676
30677 2003-11-03  Jim Meyering  <jim@meyering.net>
30678
30679         * modules/userspec (lib_SOURCES): Add userspec.h.
30680         (Include): Add "userspec.h".
30681         Improve description.
30682
30683 2003-11-03  Jim Meyering  <jim@meyering.net>
30684
30685         * lib/userspec.c: Include "userspec.h".
30686         * lib/userspec.h: New file.
30687
30688 2003-11-03  Bruno Haible  <bruno@clisp.org>
30689
30690         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
30691
30692 2003-11-03  Bruno Haible  <bruno@clisp.org>
30693
30694         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
30695         available, to avoid (extremely rare) race condition.
30696         Suggested by Paul Eggert.
30697
30698 2003-11-02  Karl Berry  <karl@gnu.org>
30699
30700         * config/srclist.txt (vasprintf.c): sync broken, sigh.
30701
30702 2003-10-31  Paul Eggert  <eggert@twinsun.com>
30703
30704         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
30705         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
30706         (read_filesystem_list): Set and use me_type_malloced.
30707         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
30708         whatever the type happens to be), for brevity and consistency.
30709         Check for size calculation overflow on Alphas running OSF/1.
30710
30711 2003-10-31  Jim Meyering  <jim@meyering.net>
30712
30713         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
30714
30715         * lib/linebuffer.c: Include <string.h> for declaration of memset.
30716
30717 2003-10-30  Paul Eggert  <eggert@twinsun.com>
30718             Bruno Haible  <bruno@clisp.org>
30719
30720         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
30721         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
30722
30723 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
30724
30725         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
30726         netbsd*-gnu*.  Suggested by Robert Millan.
30727
30728 2003-10-29  Paul Eggert  <eggert@twinsun.com>
30729
30730         * modules/group-member: Depend on stdbool.
30731
30732 2003-10-29  Paul Eggert  <eggert@twinsun.com>
30733
30734         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
30735
30736 2003-10-29  Paul Eggert  <eggert@twinsun.com>
30737
30738         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
30739         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
30740         after the 'gnu' in these cases.  This fixes some bugs in the
30741         previous change, and is based on suggestions by Robert Millan.
30742
30743 2003-10-29  Paul Eggert  <eggert@twinsun.com>
30744
30745         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
30746         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
30747         no longer needed.
30748         * lib/quotearg.c (quotearg_n_options): Use it.
30749         * lib/group-member.c: Include <stdbool.h>.
30750         (free_group_info): Arg is now const *; don't free arg.
30751         (get_group_info): Now returns bool and accepts struct group_info *,
30752         rather than returning a malloc'ed struct group_info *.
30753         All uses changed.  Check for overflow in internal size calculation.
30754
30755         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
30756         rather than xmalloc/xrealloc.
30757         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
30758         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
30759         conformance bug: the old code used a pointer after freeing the
30760         storage that it addressed.
30761         * lib/hash.c (hash_initialize): Simplify the code by using
30762         xalloc_oversized rather than doing it by hand.
30763         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
30764         the buffer preserved.  Use free and xmalloc instead.
30765         * lib/quotearg.c (quotearg_n_options): Likewise.
30766         Use a simpler test for size overflow.  Don't use xalloc_oversized
30767         because unsigned int might be wider than size_t (!); this suggests
30768         that we should switch from unsigned int to size_t for slot numbers.
30769
30770 2003-10-28  Paul Eggert  <eggert@twinsun.com>
30771
30772         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
30773         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
30774         NetBSD kernels.  Requested by Richard Stallman.
30775
30776 2003-10-27  Paul Eggert  <eggert@twinsun.com>
30777
30778         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
30779         to allocate the returned structure.  Do not allocate a subarray,
30780         as x2nrealloc will do that.
30781         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
30782         instead of xnrealloc.
30783         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
30784
30785 2003-10-27  Bruno Haible  <bruno@clisp.org>
30786
30787         * lib/stdbool_.h: Better support for BeOS.
30788
30789 2003-10-26  Paul Eggert  <eggert@twinsun.com>
30790
30791         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
30792         now uses inline.
30793
30794 2003-10-26  Paul Eggert  <eggert@twinsun.com>
30795
30796         * lib/xalloc.h (xalloc_oversized): New static inline function, for
30797         callers that want to do their own size-overflow checking.  Include
30798         <stdbool.h>, since xalloc_oversized returns bool.
30799         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
30800         to use xalloc_oversized.
30801
30802         Add two functions x2realloc, x2nrealloc, for programs that grow
30803         arrays dynamically by doubling their sizes.
30804         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
30805         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
30806         New functions.
30807
30808         Port to C99 semantics for 'inline' of external functions.
30809         Bug reported by Bruno Haible.
30810         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
30811         with the old contents of xnmalloc.
30812         (xnmalloc, xmalloc): Use it.
30813         (xnrealloc_inline): New static inline function,
30814         with the old contents of xnrealloc.
30815         (xnrealloc, xrealloc): Use it.
30816
30817         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
30818         that.
30819
30820 2003-10-26  Karl Berry  <karl@gnu.org>
30821
30822         * config/srclist.txt (COPYING.DOC): no longer available from
30823         /gd/gnuorg; don't know where the ultimate source is.
30824
30825 2003-10-25  Paul Eggert  <eggert@twinsun.com>
30826
30827         Fix several address-calculation bugs in the hash modules,
30828         plus some minor code cleanup.
30829
30830         * lib/hash.h: Include <stdbool.h>, for bool.
30831         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
30832         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
30833         hash_get_n_entries, hash_get_max_bucket_length,
30834         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
30835         hash_rehash): Use size_t rather than unsigned.
30836         * lib/hash.c (struct hash_table, hash_get_n_buckets,
30837         hash_get_n_buckets_used, hash_get_n_entries,
30838         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
30839         hash_get_entries, hash_do_for_each, hash_string, is_prime,
30840         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
30841         Likewise.
30842         (SIZE_MAX): Define if not defined.
30843         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
30844         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
30845         hash_print):
30846         Use const * when possible.
30847         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
30848         (check_tuning): Fix bug: if tuning parameters were very close to
30849         0 or 1, rounding errors could have caused subscript violations.
30850         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
30851         (hash_initialize): Add 'fail:' label
30852         to free table and return NULL, and use it to simplify code.
30853         Use calloc rather than clearing the storage ourself.
30854         (hash_initialize, hash_rehash): Check for arithmetic overflow in
30855         buffer size calculations.
30856         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
30857         Include <stddef.h>, for size_t.
30858         * lib/hash-pjw.c (hash_pjw): Likewise.
30859         Switch to method described by Bruno Haible.
30860         Include <limits.h>, for CHAR_BIT.
30861         (SIZE_BITS): New macro.
30862
30863 2003-10-23  Paul Eggert  <eggert@twinsun.com>
30864
30865         * m4/getline.m4 (AM_FUNC_GETLINE):
30866         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
30867         hosts.  Problem reported by Derek Robert Price in
30868         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
30869         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
30870         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
30871
30872 2003-10-21  Paul Eggert  <eggert@twinsun.com>
30873
30874         * lib/getndelim2.c (getndelim2): When size calculation overflows,
30875         ceiling the allocation at NMAX bytes rather than silently
30876         discarding input bytes before NMAX is reached.  This makes
30877         a difference only if NMAX exceeds SIZE_MAX / 2.
30878
30879         * lib/obstack.c: Merge from glibc.
30880         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
30881         Add libc_hidden_def (_obstack_newchunk).
30882         (_obstack_free) [! defined _LIBC]: Remove.
30883         [defined _LIBC]: Make a strong alias from obstack_free, rather than
30884         a clone of the function body.
30885         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
30886         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
30887
30888         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
30889         glibc.
30890         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
30891         arg to memcpy.
30892
30893         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
30894         (obstack_ptr_grow_fast, obstack_int_grow_fast):
30895         Don't use lvalue casts, as GCC plans to remove support for them
30896         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
30897         was also present in the non-GCC version, indicating that this
30898         code had always been buggy and had never been widely used.
30899         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
30900         Use the fast variant of each macro, rather than copying the
30901         definiens of the fast variant; that way, we'll be more likely to
30902         catch future bugs in the fast variants.
30903
30904 2003-10-20  Bruno Haible  <bruno@clisp.org>
30905
30906         * modules/wait-process: New file.
30907         * MODULES.html.sh (func_all_modules): Add wait-process.
30908
30909 2003-10-20  Bruno Haible  <bruno@clisp.org>
30910
30911         * m4/wait-process.m4: New file.
30912
30913 2003-10-20  Bruno Haible  <bruno@clisp.org>
30914
30915         * lib/wait-process.h: New file, from GNU gettext.
30916         * lib/wait-process.c: New file, from GNU gettext.
30917
30918 2003-10-19  Jim Meyering  <jim@meyering.net>
30919
30920         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
30921         HPUX 10.20.
30922
30923 2003-10-18  Karl Berry  <karl@gnu.org>
30924
30925         * config/config.guess: update from config.
30926
30927 2003-10-16  Paul Eggert  <eggert@twinsun.com>
30928
30929         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
30930         (getgroups): First arg is int, not size_t.
30931         Don't let 'free' mangle errno.
30932
30933 2003-10-16  Paul Eggert  <eggert@twinsun.com>
30934
30935         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
30936
30937 2003-10-16  Karl Berry  <karl@gnu.org>
30938
30939         * config/config.{guess,sub}: update from config.
30940
30941 2003-10-16  Jim Meyering  <jim@meyering.net>
30942
30943         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
30944         memcpy.
30945
30946 2003-10-15  Paul Eggert  <eggert@twinsun.com>
30947
30948         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
30949         (SIZE_MAX): Remove.
30950         (new_exclude, add_exclude_file): Initial size no longer needs to
30951         be a power of 2.
30952         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
30953         our own address arithmetic overflow checking.
30954
30955         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
30956         (fnmatch): Do not alloca more than 2000 wide characters;
30957         instead, use malloc for large buffers.
30958         Check for address arithmetic overflow, and return -1
30959         with errno set to ENOMEM in that case.
30960         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
30961         (NEW_PATTERN): Do not alloca more than 8000 bytes;
30962         instead, return -1.  Check for address arithmetic overflow.
30963
30964 2003-10-14  Paul Eggert  <eggert@twinsun.com>
30965
30966         Handle invalid suffixes and overflow independently, so that
30967         callers can treat them independently as needed.  Fix some bugs in
30968         suffix handling, e.g., "100k@" was not diagnosed as an invalid
30969         suffix for a human-readable blocksize.  The major caller-visible
30970         change is the addition of a new
30971         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
30972         that both overflow and suffix chars were found.
30973
30974         * lib/human.c (humblock): Don't check separately for invalid suffix
30975         char; that is xstrtoumax's job (now that its bug is fixed).
30976         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
30977         INTMAX_MAX]: New macros.
30978         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
30979         TYPE_MAXIMUM): New macros.
30980         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
30981         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
30982         if overflow occurs, as it's what __strtol does and it's more useful
30983         in practice.
30984         (__xstrtol): If __strtol reports some error other than ERANGE,
30985         reflect it to the caller as LONGINT_INVALID.  If it reports
30986         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
30987         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
30988         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
30989         value.
30990         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
30991         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
30992         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
30993         [defined UINTMAX_MAX]: New macros.
30994
30995 2003-10-14  Bruno Haible  <bruno@clisp.org>
30996
30997         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
30998
30999 2003-10-14  Bruno Haible  <bruno@clisp.org>
31000
31001         * m4/sig_atomic_t: New file, from GNU gettext.
31002         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
31003
31004 2003-10-14  Bruno Haible  <bruno@clisp.org>
31005
31006         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
31007         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
31008         Also use volatile where needed.
31009
31010 2003-10-12  Paul Eggert  <eggert@twinsun.com>
31011
31012         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
31013         Change maintainer from Bruno Haible to 'all'.
31014
31015 2003-10-12  Paul Eggert  <eggert@twinsun.com>
31016
31017         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
31018
31019 2003-10-12  Paul Eggert  <eggert@twinsun.com>
31020
31021         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
31022         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
31023         and define in terms of the other primitives.
31024         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
31025         (SIZE_MAX): Define if not already defined.
31026         (array_size_overflow): New function.
31027         (xalloc_die): Abort instead of exiting if 'error' returns.
31028         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
31029         (xmalloc, xrealloc): Use them.
31030         (xcalloc): Check for address arithmetic overflow.
31031         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
31032         a bit faster than strcpy.
31033
31034 2003-10-10  Simon Josefsson  <jas@extundo.com>
31035
31036         * modules/argp (Depends-on): Add restrict and strcase.
31037
31038 2003-10-10  Simon Josefsson  <jas@extundo.com>
31039
31040         * m4/argp.m4: Add AC_C_INLINE.
31041
31042 2003-10-08  Paul Eggert  <eggert@twinsun.com>
31043
31044         Merge getpass from libc, plus a few fixes.
31045
31046         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
31047         Include <stdbool.h>.
31048         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
31049         __fsetlocking to empty.
31050         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
31051         do include <bits/libc-lock.h>.
31052         Do not include <fcntl.h>; not needed.
31053         [_LIBC]: Include <wchar.h>.
31054         (NOTCANCEL_MODE): New macro.
31055         (flockfile, funlockfile) [_LIBC]: New macros.
31056         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
31057         [!_LIBC]: New macros.
31058         (call_fclose): New function.
31059         (getpass): Use it.  Save tty stream separately; this simplifies the
31060         code and makes it more reliable if stdin happens to equal stdout.
31061         Invoke __fsetlocking on tty.
31062         Handle thread cancellation if needed.
31063         Namespace cleanup (use __tcgetattr, __getline).
31064         Use bool for Booleans.
31065         [USE_IN_LIBIO]: Handle wide streams.
31066         [!_LIBC]: Unconditionally do the fseek, since we don't know what
31067         stream might go where.
31068
31069         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
31070         doesn't have to include <stdio.h> before us.
31071         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
31072         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
31073         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
31074         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
31075         if not declared, so that we can use getpass.c code from libc without
31076         rewriting it.
31077         (flockfile, ftrylockfile, funlockfile): New macros.
31078
31079 2003-10-08  Paul Eggert  <eggert@twinsun.com>
31080
31081         * modules/getpass: Depend on stdbool.
31082
31083 2003-10-08  Paul Eggert  <eggert@twinsun.com>
31084
31085         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
31086
31087 2003-10-07  Karl Berry  <karl@gnu.org>
31088
31089         * config/config.{guess,sub}: update from config.
31090
31091 2003-10-06  Jim Meyering  <jim@meyering.net>
31092             Bruno Haible  <bruno@clisp.org>
31093
31094         This lets translators provide better translations for the
31095         "Written by ..." part of --version output.
31096         * lib/version-etc.h: Include stdarg.h.
31097         (version_etc_copyright): Declare as readonly.
31098         (version_etc): Make this function variadic with a NULL-terminated list
31099         of author name strings.
31100         (version_etc_va): New declaration.
31101         * lib/version-etc.c: Include stdarg.h, stdlib.h.
31102         (version_etc_copyright): Declare as readonly.
31103         (version_etc_va): New function. Provide a different translatable string
31104         for each possible number of authors < 10. Abbreviate when there are 10
31105         authors or more.
31106         (version_etc): Make this function variadic. Call version_etc_va.
31107         Suggestion from Gary V. Vaughan.
31108
31109         * lib/long-options.h (parse_long_options): Change prototype: the
31110         authors string is moved to the end and becomes variadic.
31111         * lib/long-options.c: Include stdarg.h.
31112         (parse_long_options): Make this function variadic, too.
31113         Call version_etc_va, not version_etc.
31114
31115 2003-10-06  Bruno Haible  <bruno@clisp.org>
31116
31117         * modules/version-etc-2: Remove file.
31118         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
31119
31120 2003-10-06  Bruno Haible  <bruno@clisp.org>
31121
31122         * modules/fatal-signal: New file.
31123         * MODULES.html.sh (func_all_modules): Add fatal-signal.
31124
31125 2003-10-06  Bruno Haible  <bruno@clisp.org>
31126
31127         * m4/fatal-signal.m4: New file.
31128         * m4/signalblocking.m4: New file, from GNU gettext.
31129
31130 2003-10-06  Bruno Haible  <bruno@clisp.org>
31131
31132         * lib/version-etc-2.h: Remove file.
31133         * lib/version-etc-2.c: Remove file.
31134
31135 2003-10-06  Bruno Haible  <bruno@clisp.org>
31136
31137         * lib/fatal-signal.h: New file, from GNU gettext.
31138         * lib/fatal-signal.c: New file, from GNU gettext.
31139
31140 2003-10-05  Paul Eggert  <eggert@twinsun.com>
31141
31142         * README: Rework advice for preventing empty .o files.
31143         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
31144         not <sys/types.h>.
31145
31146 2003-10-04  Karl Berry  <karl@gnu.org>
31147
31148         * lib/argp*: update from libc.
31149
31150 2003-10-04  Karl Berry  <karl@gnu.org>
31151
31152         * config/config.{guess,sub}: update from config.
31153
31154 2003-10-02  Bruno Haible  <bruno@clisp.org>
31155
31156         * modules/lchown (Include): Add lchown.h.
31157         * modules/time_r (Include): Use "..." syntax.
31158         * modules/xgetdomainname (Include): Add xgetdomainname.h.
31159
31160 2003-10-01  Simon Josefsson  <jas@extundo.com>
31161
31162         * MODULES.html.sh (func_all_modules): Move gethostname from section
31163         'based on' to section 'lacking' POSIX:2001.
31164
31165 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
31166
31167         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
31168         to output mode on the same stream.
31169
31170 2003-09-29  Paul Eggert  <eggert@twinsun.com>
31171
31172         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
31173         Fix arg typo in previous patch.
31174
31175 2003-09-28  Jim Meyering  <jim@meyering.net>
31176
31177         * lib/error.c: Correct cpp indentation.
31178
31179 2003-09-27  Paul Eggert  <eggert@twinsun.com>
31180
31181         * modules/free: New file.
31182
31183 2003-09-27  Paul Eggert  <eggert@twinsun.com>
31184
31185         * m4/free.m4: New file.
31186
31187 2003-09-27  Paul Eggert  <eggert@twinsun.com>
31188
31189         * lib/minmax.h (MIN, MAX)
31190         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
31191         Omit the special code that used __typeof__, since we worry that
31192         it could be more trouble than it's worth.  See:
31193         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
31194         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
31195
31196         * lib/free.c: New file.
31197
31198 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
31199
31200         Trivial fixes to Makefile.am parts of module listings.
31201         * modules/strstr: Append strstr.h to lib_SOURCES.
31202         * modules/strcase: Likewise, for strcase.h.
31203
31204 2003-09-27  Karl Berry  <karl@gnu.org>
31205
31206         * config/mkinstalldirs: update from automake.
31207
31208 2003-09-26  Paul Eggert  <eggert@twinsun.com>
31209
31210         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
31211         (error_tail): Do not loop, reallocating temporary buffer, since
31212         the output cannot contain more wide characters than the input
31213         contains bytes, the size must be big enough already.  This avoids
31214         one potential size overflow calculation.  Check for size overflow
31215         when calculating temporary buffer size.  Free temporary buffer
31216         when done, if it was allocated with malloc; this plugs a memory
31217         leak.  Remove casts from void * to pointers, that are no longer
31218         needed now that we're assuming C89 or better.
31219
31220         Merge error changes from glibc.
31221
31222         * lib/error.c, error.h: Update copyright notice header to match glibc.
31223         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
31224         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
31225         Disable cancellation while printing error.
31226         * lib/error.h: Prepend __ to parameter names.
31227
31228 2003-09-26  Jim Meyering  <jim@meyering.net>
31229
31230         * lib/error.c (error_tail): Move some declarations
31231         into inner scope where the local variables are used.
31232
31233 2003-09-26  Bruno Haible  <bruno@clisp.org>
31234
31235         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
31236         stpncpy().
31237         Don't define stpncpy through config.h; it's now done through stpncpy.h.
31238
31239 2003-09-26  Bruno Haible  <bruno@clisp.org>
31240
31241         * lib/stpncpy.h (gnu_stpncpy): New declaration.
31242         (stpncpy): Define as alias for gnu_stpncpy.
31243         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
31244
31245 2003-09-25  Simon Josefsson  <jas@extundo.com>
31246
31247         * lib/xgetdomainname.h: New file.
31248         * lib/xgetdomainname.c: New file.
31249
31250 2003-09-25  Simon Josefsson  <jas@extundo.com>
31251             Bruno Haible  <bruno@clisp.org>
31252
31253         * modules/getdomainname: New file.
31254         * modules/xgetdomainname: New file.
31255         * MODULES.html.sh (func_all_modules): Add getdomainname,
31256         xgetdomainname.
31257
31258 2003-09-25  Simon Josefsson  <jas@extundo.com>
31259             Bruno Haible  <bruno@clisp.org>
31260
31261         * m4/getdomainname.m4: New file.
31262
31263 2003-09-25  Simon Josefsson  <jas@extundo.com>
31264             Bruno Haible  <bruno@clisp.org>
31265
31266         * lib/getdomainname.h: New file.
31267         * lib/getdomainname.c: New file.
31268
31269 2003-09-25  Karl Berry  <karl@gnu.org>
31270
31271         * lib/argp-fmtstream.c, argp-help.c: update from libc.
31272
31273 2003-09-25  Karl Berry  <karl@gnu.org>
31274
31275         * config/install-sh: update from automake.
31276
31277 2003-09-25  Bruno Haible  <bruno@clisp.org>
31278
31279         * modules/version-etc-2: New file, from modules/version-etc with
31280         modifications.
31281         * MODULES.html.sh (func_all_modules): Add version-etc-2.
31282
31283 2003-09-25  Bruno Haible  <bruno@clisp.org>
31284
31285         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
31286         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
31287
31288 2003-09-24  Simon Josefsson  <jas@extundo.com>
31289
31290         * modules/xgethostname: Add xgethostname.h.
31291
31292 2003-09-24  Paul Eggert  <eggert@twinsun.com>
31293
31294         * lib/linebuffer.c (freebuffer): Don't free the argument, just
31295         the buffer associated with the argument.  Bug reported by
31296         Simon Josefsson.
31297
31298 2003-09-24  Paul Eggert  <eggert@twinsun.com>
31299
31300         * README: Document assumptions that 'int' is at least 32 bits
31301         wide, that integer arithmetic is 2's complement without overflow,
31302         that there are no holes in integer values, that adding sizes of
31303         two nonoverlapping objects can't overflow, and that all-bits-zero
31304         yields scalar zero.  Fix spelling and capitalization typos.
31305
31306 2003-09-19  Karl Berry  <karl@gnu.org>
31307
31308         * lib/argp.h: update from libc.
31309
31310 2003-09-17  Paul Eggert  <eggert@twinsun.com>
31311
31312         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
31313         to avoid spurious warnings like "AC_RUN_IFELSE was called before
31314         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
31315
31316 2003-09-17  Paul Eggert  <eggert@twinsun.com>
31317
31318         * gnulib-tool: Use "test -h", not "test -L", for portability
31319         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
31320         (tags_regexp): Remove, since \| doesn't conform to POSIX.
31321         (sed_extract_prog): Issue s commands one-by-one, rather than
31322         using \| in one s command.
31323
31324 2003-09-16  Paul Eggert  <eggert@twinsun.com>
31325
31326         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
31327         input error, instead of returning NULL the next time we are called
31328         (and therefore losing track of errno).
31329
31330 2003-09-16  Bruno Haible  <bruno@clisp.org>
31331
31332         * gnulib-tool (func_create_testdir): Warn about duplicated
31333         dependencies.
31334
31335 2003-09-15  Paul Eggert  <eggert@twinsun.com>
31336
31337         * modules/argmatch, modules/fatal, modules/obstack,
31338         modules/xalloc, modules/xgethostname: Sort dependencies by
31339         importance, not alphabetically.
31340
31341 2003-09-15  Paul Eggert  <eggert@twinsun.com>
31342
31343         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
31344         fails, so that the caller gets the proper errno.
31345
31346         * lib/readutmp.c (read_utmp): Likewise.
31347         Check for fstat error.  Close stream and free storage
31348         when failing.
31349
31350 2003-09-14  Karl Berry  <karl@gnu.org>
31351
31352         * config/srclist.txt (strdup.c): disable for c89 changes.
31353
31354 2003-09-14  Jim Meyering  <jim@meyering.net>
31355
31356         * lib/getloadavg.c: Correct cpp indentation.
31357         * lib/strdup.c: Likewise.
31358         * lib/vasnprintf.c: Likewise.
31359
31360 2003-09-14  Bruno Haible  <bruno@clisp.org>
31361
31362         * modules/fwriteerror: New file.
31363         * MODULES.html.sh (func_all_modules): Add fwriteerror.
31364
31365 2003-09-14  Bruno Haible  <bruno@clisp.org>
31366
31367         * lib/fwriteerror.h: New file.
31368         * lib/fwriteerror.c: New file.
31369
31370 2003-09-12  Paul Eggert  <eggert@twinsun.com>
31371
31372         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
31373         modules/xgethostname, modules/xalloc: Depend on exit.
31374
31375 2003-09-12  Paul Eggert  <eggert@twinsun.com>
31376
31377         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
31378
31379         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
31380         and AC_MINIX, too, so that their extensions are available.
31381
31382         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
31383         This macro has been superseded by gl_BACKUPFILE.
31384
31385         More patches to assume C89 or better.
31386
31387         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
31388
31389         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
31390         unconditionally.
31391         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
31392         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
31393         Include <string.h>, <stdlib.h> unconditionally.
31394         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
31395         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
31396         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
31397         headers or for string.h.
31398         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
31399         or strtoul.
31400
31401         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
31402         headers.
31403         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
31404         * m4/userspec.m4 (gl_USERSPEC): Likewise.
31405         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
31406         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
31407         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
31408         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
31409         memcpy, memset.
31410         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
31411         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
31412         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
31413         strtol.
31414         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
31415         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
31416         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
31417         strtoul.
31418
31419 2003-09-12  Paul Eggert  <eggert@twinsun.com>
31420
31421         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
31422         * lib/obstack.c [!defined _LIBC]: Likewise.
31423         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
31424         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
31425         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
31426
31427         More changes to assume C89 or better.
31428
31429         * lib/error.c (error_tail): Assume vprintf.
31430
31431         * lib/argmatch.c (getenv): Remove decl.
31432         * lib/progreloc.c (get_full_program_name): Define via prototype.
31433         * lib/setenv.c (clearenv): Likewise.
31434         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
31435         needed.
31436         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
31437         (malloc, memcpy): Remove decls.
31438         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
31439         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
31440         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
31441         (memcpy): Remove macro.
31442         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
31443         (__P): Remove.  All uses removed.
31444         (PTR): Remove.  All uses changed to void *.
31445         (CHAR_BIT, NULL): Remove.
31446         (spaces, zeros, memset_space, memset_zero)
31447         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
31448         Remove.
31449         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
31450         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
31451         Define with prototype.
31452         Remove now-unnecessary prototype decl.
31453         (extra_args_spec): Assume ANSI C.  All uses changed.
31454         (extra_args_spec_iso): Remove.
31455         (my_strftime, emacs_strftimeu): Define via prototype.
31456         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
31457         unconditionally.
31458         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
31459         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
31460         (strtoul, strtol): Remove decls.
31461         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
31462         LONG_MAX): Remove.
31463         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
31464         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
31465         (LOCALE_PARAM_PROTO): New macro.
31466         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
31467         (INTERNAL (strtol), strtol): Define with a prototype.
31468         (PARAMS): Remove.  All uses removed.
31469         * lib/tempname.c: Include <string.h> unconditionally.
31470         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
31471         * lib/xgethostname.c (main): Define with a prototype.
31472         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
31473         Include <stdlib.h> unconditionally.
31474         (calloc, malloc, realloc, free): Remove decls.
31475         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
31476         Include <stdlib.h> unconditionally.  Sort include file names.
31477         (strtod): Remove.
31478         (xstrtod): Define with a prototype.
31479         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
31480         (strtol, strtoul): Remove decls.
31481
31482 2003-09-11  Paul Eggert  <eggert@twinsun.com>
31483
31484         More patches to assume C89 or better.
31485         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
31486         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
31487         string.h, memchr, STDC_HEADERS.
31488
31489 2003-09-11  Paul Eggert  <eggert@twinsun.com>
31490
31491         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
31492         Include <stdlib.h>, <string.h> unconditionally.
31493         Remove now-unnecessary cast to char *.
31494         * lib/strnlen.c: Include <string.h> unconditionally.
31495         * lib/yesno.c (yesno): Define with a prototype.
31496
31497 2003-09-11  Bruno Haible  <bruno@clisp.org>
31498
31499         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
31500
31501 2003-09-10  Jim Meyering  <jim@meyering.net>
31502
31503         * lib/error.c: Correct indentation of cpp directives.
31504
31505 2003-09-10  Bruno Haible  <bruno@clisp.org>
31506
31507         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
31508         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
31509         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
31510         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
31511         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
31512         <stdlib.h> and <string.h> checks.
31513         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
31514         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
31515
31516 2003-09-10  Bruno Haible  <bruno@clisp.org>
31517
31518         * lib/strcspn.c: Include <string.h> unconditionally.
31519         * lib/strpbrk.c: Include <string.h> unconditionally.
31520         * lib/strstr.c: Include <string.h> unconditionally.
31521         * lib/unicodeio.c: Include <string.h> unconditionally.
31522         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
31523         * lib/unsetenv.c: Likewise.
31524         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
31525         * lib/yesno.c: Include <stdlib.h> unconditionally.
31526         (rpmatch): Add prototype.
31527
31528 2003-09-09  Paul Eggert  <eggert@twinsun.com>
31529
31530         More patches to assume C89 or better.
31531         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
31532         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
31533         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
31534         or for string.h.
31535         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
31536         stdlib.h.
31537         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
31538         C headers.
31539         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
31540         string.h.
31541         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
31542         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
31543         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
31544         or for string.h.
31545         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
31546         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
31547         C headers.
31548         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
31549         memcpy.
31550         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
31551         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
31552         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
31553         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
31554         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
31555         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
31556         string.h, free.
31557         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
31558         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
31559         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
31560         C headers, or for string.h.
31561         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
31562         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
31563         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
31564         headers, memory.h, stdlib.h, string.h, strings.h.
31565         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
31566         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
31567         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
31568         strchr.
31569         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
31570         headers, memory.h, string.h.
31571         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
31572         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
31573         free.
31574         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
31575         headers.
31576         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
31577         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
31578         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
31579         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
31580         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
31581
31582 2003-09-09  Paul Eggert  <eggert@twinsun.com>
31583
31584         More K&R removal.
31585
31586         * lib/acosl.c (main): Use a prototype.
31587         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
31588         tanl.c: Likewise.
31589
31590         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
31591
31592         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
31593         (getopt, etopt_long, getopt_long_only, _getopt_internal)
31594         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
31595         with a prototype.
31596         * lib/getopt.c (const): Remove macro.
31597         Include <string.h> unconditionally.
31598         (my_index): Remove; all uses changed to strchr.
31599         (strlen): Remove decl.
31600         (exchange): Remove forward decl; no longer needed.
31601         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
31602         Define with prototype.
31603         * lib/getopt1.c (const): Remove macro.
31604         (getopt_long, getopt_long_only, main): Define with prototype.
31605
31606         * lib/getugroups.c: Include <string.h> unconditionally.
31607
31608         * lib/getusershell.c: Include <stdlib.h> unconditionally.
31609         (getusershell, setusershell, endusershell, readname, main):
31610         Define with prototypes.
31611
31612         * lib/group-member.c: Include group-member.h first.
31613         Include <stdlib.h> unconditionally.
31614
31615         * lib/hard-locale.c: Include hard-locale.h first.
31616         Include <stdlib.h>, <string.h> unconditionally.
31617
31618         * lib/hash.c (free, malloc): Remove decls.
31619         Include <stdlib.h> unconditionally.
31620
31621         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
31622         (getenv): Do not declare.
31623
31624         * lib/idcache.c: Include <string.h> unconditionally.
31625
31626         * lib/long-options.c: Include long-options.h first, to test interface.
31627         Include <stdlib.h> unconditionally.
31628
31629         * lib/makepath.c: Include makepath.h first, to test interface.
31630         Include <stdlib.h> and <string.h> unconditionally.
31631
31632         * lib/linebuffer.c: Include <stdlib.h>.
31633         (free): Remove decl.
31634
31635         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
31636         stddef.h. rpl_malloc returns void *, not char *.
31637         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
31638         prototype.
31639
31640         * lib/md5.h: Include <limits.h> unconditionally.
31641         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
31642         (__P): Remove; all uses removed.
31643         * lib/md5.c: Include "md5.h" first.
31644         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
31645         md5_buffer, md5_process_bytes, md5_process_block):
31646         Define with prototypes.
31647         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
31648         * lib/sha.c: Include "sha.h" first.
31649         Include <stdlib.h>, <string.h> unconditionally.
31650
31651         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
31652         * lib/memcmp.c (__ptr_t): Likewise.
31653         * lib/memrchr.c (__ptr_t): Likewise.
31654         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
31655         Include <string.h> unconditionally.
31656         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
31657         * lib/memchr.c: Include <stdlib.h> unconditionally.
31658         * lib/memchr.c (LONG_MAX): Remove.
31659         * lib/memrchr.c (LONG_MAX): Likewise.
31660         * lib/memchr.c (__memchr): Define via a prototype.
31661         * lib/memrchr.c (__memrchr): Likewise.
31662         * lib/memcmp.c (__P): Remove, and remove all uses.
31663         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
31664         Remove forward decls; no longer needed.
31665         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
31666         Use types required by C89 in prototype.
31667
31668         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
31669         * lib/savedir.c: Likewise.
31670         * lib/mkdir.c (free): Remove decl.
31671         * lib/rmdir.c (rmdir): Define with a prototype.
31672         * lib/savedir.c: Include savedir.h first, to test interface.
31673
31674         * lib/mktime.c (STDC_HEADERS): Remove.
31675         Include <stdlib.h>, <string.h> unconditionally.
31676
31677         * lib/modechange.c: Include <stdlib.h> unconditionally.
31678         (malloc): Remove decl.
31679
31680         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
31681         (free): Remove decl.
31682
31683         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
31684         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
31685         (This type really should be intptr_t, but that's a C99ism.)
31686         (_obstack_memcpy): Remove: all uses changed to memcpy.
31687         Include <string.h> unconditionally.
31688         (struct obstack): Assume __STDC__ for types of members
31689         chunkfun, freefun, extra_arg.
31690         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
31691         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
31692         obstack_begin, obstack_specify_allocation,
31693         obstack_specify_allocation_with_arg, obstack_chunkfun,
31694         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
31695         Remove unprototyped decls and the macros that use them.
31696         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
31697         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
31698         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
31699         (defined __STDC__ && __STDC__)]:
31700         Remove nonprototyped code.
31701         Include <stdlib.h> unconditionally.
31702         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
31703         _obstack_allocated_p, _obstack_free, obstack_free,
31704         _obstack_memory_used, print_and_abort):
31705         Define using prototypes.
31706         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
31707         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
31708         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
31709         obstack_next_free, obstack_object_size, obstack_room) [0]:
31710         Remove unused, unprototyped code.
31711
31712         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
31713
31714         * lib/physmem.c (physmem_total, physmem_available, main): Define
31715         with prototypes.
31716
31717         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
31718         (main): Define with a prototype.
31719
31720         * lib/posixver.c (getenv): Remove decl.
31721
31722         * lib/putenv.c (malloc): Returns void *, not char *.
31723         Include <string.h> unconditionally.
31724         (strchr, memcpy, NULL): Do not define.
31725
31726         * lib/readtokens.c: Include readtokens.h first, to test interface.
31727         Include <stdlib.h>, <string.h> unconditionally.
31728         (init_tokenbuffer): Define with a prototype.
31729
31730         * lib/regex.c (PARAMS): Remove.  All uses removed.
31731         All uses of _RE_ARGS removed, too.
31732         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
31733         unconditionally.
31734         (bzero): Assume memset exists.
31735         (memcmp, memcpy, NULL): Remove.
31736         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
31737         char, or assignments to local vars of type signed char.
31738         (init_syntax_once, PREFIX(extract_number_and_incr),
31739         PREFIX(print_partial_compiled_pattern),
31740         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
31741         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
31742         PREFIX(regex_grow_registers), PREFIX(regex_compile),
31743         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
31744         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
31745         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
31746         wcs_compile_range, byte_compile_range, truncate_wchar,
31747         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
31748         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
31749         count_mbs_length, wcs_re_match_2_internal,
31750         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
31751         PREFIX(alt_match_null_string_p),
31752         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
31753         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
31754         regfree, PREFIX(extract_number)): Define with prototype.  Remove
31755         now-unnecessary declaration, if any.
31756         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
31757         regcomp, regexec):
31758         Remove now-unnecessary casts among pointer types.
31759         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
31760
31761         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
31762         (free): Remove decl.
31763
31764         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
31765
31766         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
31767         (free): Remove decl.
31768
31769         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
31770         * lib/xgetcwd.c: Likewise.
31771
31772         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
31773         (free): Remove decl.
31774
31775         * lib/strchrnul.c (strchrnul): Define with a prototype.
31776         Fix bug: c_in was not converted to char before searching.
31777
31778         The following changes are not K&R related:
31779
31780         * lib/group-member.h: Include <sys/types.h>, so that this file is
31781         self-contained.
31782         * lib/makepath.h: Likewise.
31783
31784         * lib/getusershell.c (readname, default_index, line_size, readname):
31785         Use size_t, not int, for sizes.
31786         (readname): If the size overflows, report an error instead of
31787         looping forever.
31788
31789 2003-09-09  Paul Eggert  <eggert@twinsun.com>
31790
31791         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
31792         libc.
31793
31794 2003-09-09  Paul Eggert  <eggert@twinsun.com>
31795
31796         * README: New section: portability guidelines.
31797
31798 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
31799
31800         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
31801         C89 spec.
31802
31803 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
31804
31805         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
31806
31807 2003-09-08  Paul Eggert  <eggert@twinsun.com>
31808
31809         Assume C89 or better; remove K&R cruft.
31810         A few of these changes were first proposed by Derek Robert Price
31811         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
31812
31813         * lib/addext.c: Include <string.h> unconditionally.
31814         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
31815         Don't declare getenv or malloc.
31816
31817         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
31818         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
31819         (NULL): Remove.
31820         (find_stack_direction, alloca): Use prototypes.
31821
31822         * lib/atexit.c (atexit): Define using a prototype.
31823
31824         * lib/basename.c, dirname.c, stripslash.c:
31825         Include <string.h> unconditionally.
31826
31827         * lib/bcopy.c: Include <stddef.h>.
31828         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
31829
31830         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
31831
31832         * lib/error.h (error, error_at_line, error_print_progname)
31833         [! (defined (__STDC__) && __STDC__)]: Remove decls.
31834         * lib/error.c: Include error.h first, to check interface.
31835         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
31836         (VA_START): Remove; all uses changeed to va_start.
31837         (exit, strerror): Remove decls.
31838         (error_print_progname): Prototype uncondionally.
31839         Don't include <errno.h>; no longer needed.
31840         (private_strerror): Remove.
31841         (error_tail): Always define.
31842         (error, error_at_line): Assume C89 or better; always use prototypes.
31843         * lib/fatal.c: Include "fatal.h" first, to test interface.
31844         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
31845         (VA_START): Remove; all uses changed to va_start.
31846         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
31847         this case.
31848         (exit): Remove decl.
31849         (fatal): Prototype unconditionally.  Assume va_start works.
31850         Abort at end, to pacify gcc.
31851
31852         * lib/euidaccess.c (main): Define with a prototype.
31853
31854         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
31855
31856         * lib/exitfail.c: Include <stdlib.h> unconditionally.
31857
31858         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
31859         prototypes.
31860         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
31861         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
31862         (getenv): Remove decl.
31863         (fnmatch): Define using a prototype.
31864         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
31865         (FCT): Define using a prototype.
31866
31867         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
31868
31869         * lib/gethostname.c: Include <stddef.h>.
31870         (gethostname): Define with prototype.  Length is size_t, not int.
31871
31872 2003-09-08  Paul Eggert  <eggert@twinsun.com>
31873
31874         Assume C89 or better; remove K&R cruft.
31875         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
31876         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
31877         string.h, getenv, malloc.
31878         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
31879         headers.
31880         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
31881         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
31882         do not check for strerror.
31883         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
31884         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
31885         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
31886         do not check for doprnt or vprintf.
31887         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
31888         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
31889
31890 2003-09-08  Paul Eggert  <eggert@twinsun.com>
31891
31892         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
31893         getversion.c should have been removed then, but was accidentally
31894         preserved.
31895
31896         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
31897         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
31898
31899 2003-09-08  Karl Berry  <karl@gnu.org>
31900
31901         * config/config.sub, config.guess, srclistvars.sh: update from savannah
31902                 config, forget about prep.
31903
31904         * config/depcomp, missing: update from automake.
31905
31906 2003-09-07  Paul Eggert  <eggert@twinsun.com>
31907
31908         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
31909         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
31910
31911 2003-09-07  Paul Eggert  <eggert@twinsun.com>
31912
31913         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
31914         copy_tm_result.  Bug reported by Simon Josefsson in
31915         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
31916
31917 2003-09-06  Paul Eggert  <eggert@twinsun.com>
31918
31919         * m4/time_r.m4: New file.
31920         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
31921         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
31922         is. Check for timegm declaration.
31923         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
31924         Do not check for gmtime_r.
31925         Replace mktime if __mktime_internal does not exist and if mktime
31926         hasn't been replaced already.
31927
31928 2003-09-06  Paul Eggert  <eggert@twinsun.com>
31929
31930         * lib/time_r.c, lib/time_r.h: New files.
31931
31932         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
31933         __localtime_r.
31934         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
31935         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
31936
31937         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
31938         __gmtime_r.
31939         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
31940         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
31941         Include <time_r.h>.
31942
31943         * lib/timegm.c: Switch to glibc implementation, with the following
31944         changes:
31945         [defined HAVE_CONFIG_H]: Include <config.h>.
31946         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
31947         (__mktime_internal) [!defined _LIBC]: New decl.
31948         (__gmtime_r) [!defined _LIBC]: New macro and function.
31949         (timegm): Use a prototype, since gnulib assumes C89.
31950         Do not bother declaring tmp to be const, as it's not really usefu.
31951         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
31952         (timegm): Declare only if HAVE_DECL_TIMEGM.
31953
31954 2003-09-06  Paul Eggert  <eggert@twinsun.com>
31955
31956         * MODULES.html.sh (func_all_modules): Add time_r.
31957         * modules/time_r: New file.
31958         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
31959         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
31960
31961 2003-09-03  Paul Eggert  <eggert@twinsun.com>
31962
31963         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
31964         Bug reported by Lute Kamstra in
31965         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
31966
31967         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
31968         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
31969         course with correspondingly smaller numbers for tomorrow and
31970         yesterday.  From Tadayoshi Funaba.  Originally installed into
31971         sh-utils on 1999-08-07, but the patch got lost (I guess during the
31972         coreutils merge?).
31973
31974 2003-08-31  Simon Josefsson  <jas@extundo.com>
31975
31976         * modules/timegm: New file.
31977         * MODULES.html.sh (func_all_modules): Add timegm.
31978
31979 2003-08-31  Simon Josefsson  <jas@extundo.com>
31980
31981         * m4/timegm.m4: New file.
31982
31983 2003-08-31  Simon Josefsson  <jas@extundo.com>
31984
31985         * lib/timegm.h: New file.
31986         * lib/timegm.c: New file.  Based on
31987         wget-1.8.2/src/http.c:mktime_from_utc.
31988
31989 2003-08-31  Karl Berry  <karl@gnu.org>
31990
31991         * lib/argp.h: update from libc.
31992
31993 2003-08-28  Bruno Haible  <bruno@clisp.org>
31994
31995         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
31996         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
31997         followed by '#define fnmatch fnmatch_posix' gives an error.
31998
31999 2003-08-28  Bruno Haible  <bruno@clisp.org>
32000
32001         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
32002         warning on QNX, which defines O_BINARY to 000000.
32003
32004 2003-08-27  Jim Meyering  <jim@meyering.net>
32005
32006         * m4/mkstemp.m4: Require that the system mkstemp be able to create
32007         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
32008         would fail after 32.  Reported by Danny Levinson.  Details here:
32009         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
32010
32011 2003-08-24  Bruno Haible  <bruno@clisp.org>
32012
32013         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
32014         MSVC7 <stdio.h> is included later.
32015
32016 2003-08-22  Simon Josefsson  <jas@extundo.com>
32017
32018         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
32019
32020 2003-08-20  Karl Berry  <karl@gnu.org>
32021
32022         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
32023
32024 2003-08-20  Bruno Haible  <bruno@clisp.org>
32025
32026         * modules/progname: New file.
32027         * MODULES.html.sh (func_all_modules): Add progname.
32028
32029 2003-08-20  Bruno Haible  <bruno@clisp.org>
32030
32031         * lib/progname.h: New file, from GNU gettext.
32032         * lib/progname.c: New file, from GNU gettext.
32033         * lib/progreloc.c: New file, from GNU gettext.
32034
32035 2003-08-19  Jim Meyering  <jim@meyering.net>
32036
32037         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
32038         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
32039
32040 2003-08-19  Bruno Haible  <bruno@clisp.org>
32041
32042         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
32043         more.
32044
32045 2003-08-19  Bruno Haible  <bruno@clisp.org>
32046
32047         * lib/xstrdup.c: Assume <string.h> exists.
32048
32049 2003-08-18  Paul Eggert  <eggert@twinsun.com>
32050
32051         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
32052         in makefile rules.
32053
32054 2003-08-18  Jim Meyering  <jim@meyering.net>
32055
32056         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
32057         * m4/lib-ld.m4: Likewise.
32058
32059 2003-08-18  Jim Meyering  <jim@meyering.net>
32060
32061         * lib/setenv.h: Indent nested cpp directive.
32062         * lib/vasnprintf.c: Remove trailing blanks.
32063
32064 2003-08-17  Simon Josefsson  <jas@extundo.com>
32065
32066         * modules/xstrndup: New file.
32067         * MODULES.html.sh (func_all_modules): Add xstrndup.
32068
32069 2003-08-17  Simon Josefsson  <jas@extundo.com>
32070
32071         * modules/argp: Fix autoconf macro name. Add more dependencies.
32072
32073 2003-08-17  Simon Josefsson  <jas@extundo.com>
32074
32075         * m4/xstrndup.m4: New file.
32076
32077 2003-08-17  Simon Josefsson  <jas@extundo.com>
32078
32079         * m4/argp.m4: New file.
32080
32081 2003-08-17  Simon Josefsson  <jas@extundo.com>
32082             Bruno Haible  <bruno@clisp.org>
32083
32084         * lib/xstrndup.h: New file.
32085         * lib/xstrndup.c: New file.
32086
32087 2003-08-17  Bruno Haible  <bruno@clisp.org>
32088
32089         * modules/strndup (Files, Include): Add lib/strndup.h.
32090
32091 2003-08-17  Bruno Haible  <bruno@clisp.org>
32092
32093         * modules/euidaccess (Files): Add lib/euidaccess.h.
32094
32095 2003-08-17  Bruno Haible  <bruno@clisp.org>
32096
32097         * lib/strndup.h: New file.
32098
32099 2003-08-17  Bruno Haible  <bruno@clisp.org>
32100
32101         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
32102         like AC_GNU_SOURCE.
32103         * modules/extensions (configure.ac): Comment out the invocation of
32104         gl_USE_SYSTEM_EXTENSIONS.
32105
32106 2003-08-16  Paul Eggert  <eggert@twinsun.com>
32107
32108         Merges from coreutils, etc.
32109         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
32110         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
32111         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
32112         fixing a typo.
32113         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
32114         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
32115
32116 2003-08-16  Paul Eggert  <eggert@twinsun.com>
32117
32118         Document merge from coreutils.
32119         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
32120         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
32121         * modules/utime: Add m4/utimes-null.m4.
32122
32123 2003-08-16  Paul Eggert  <eggert@twinsun.com>
32124
32125         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
32126         space, undoing this 2003-08-12 change:
32127         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
32128
32129 2003-08-16  Paul Eggert  <eggert@twinsun.com>
32130
32131         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
32132         strtoul.c from libc, undoing this 2003-08-12 change:
32133         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
32134
32135 2003-08-16  Jim Meyering  <jim@meyering.net>
32136
32137         Merges from coreutils.
32138         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
32139         prefix.  Adjust cache variables similarly.  Create 500 rather than
32140         just 300 files, to exercise bug on Darwin6.5, too.
32141         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
32142         $missing_dir.
32143         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
32144         AM_SYS_POSIX_TERMIOS.
32145         Reported by mkc@mathdogs.com.
32146         Also change use of $am_cv_sys_posix_termios
32147         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
32148         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
32149         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
32150         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
32151         in /proc/mounts until it finds one with matching device number.  This
32152         is unnecessary when the FILE argument *is* a mount point.  No stat call
32153         is necessary in that case.  So, disable the statvfs-testing code on
32154         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
32155         as RedHat bug# 84846.
32156         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
32157         to 1MB, so as not to render systems with no stack size limit (e.g.,
32158         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
32159         Include <unistd.h>.  On some systems,
32160         it is required for the definition of _SC_PAGESIZE.
32161
32162 2003-08-16  Jim Meyering  <jim@meyering.net>
32163
32164         Merge from coreutils.
32165         * lib/xstrtoimax.c: #else #if -> #elif.
32166         * lib/xstrtoumax.c: Likewise.
32167
32168 2003-08-16  Jim Meyering  <jim@meyering.net>
32169
32170         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
32171         * m4/utimes.m4: Removed.
32172         * m4/utimes-null.m4: Renamed from utimes.m4.
32173
32174         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
32175         to 1MB, so as not to render systems with no stack size limit (e.g.,
32176         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
32177         Include <unistd.h>.  On some systems,
32178         it is required for the definition of _SC_PAGESIZE.
32179
32180 2003-08-16  Jim Meyering  <jim@meyering.net>
32181         and Paul Eggert  <eggert@cs.ucla.edu>
32182
32183         Merges from coreutils, etc.
32184
32185         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
32186         using the latest version from cvs.  This avoids problems with #line
32187         directives using a vendor (Sun) compiler.
32188         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
32189         Don't set GETGROUPS_LIB here; now it's
32190         done via getgroups.m4's wrapper function.
32191         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
32192         rather than just in sh-util/configure.in, so that the
32193         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
32194         same.
32195         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
32196         AC_FUNC_GETLOADAVG where to find getloadavg.c.
32197         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
32198         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
32199         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
32200         Remove code that is now done by the newly-required macros.
32201         Append $(EXEEXT) to DF_PROG.
32202         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
32203         Do not invoke or require the following here,
32204         since prereq.m4 or some gnulib .m4 now does this for us:
32205         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
32206         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
32207         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
32208         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
32209         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
32210         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
32211         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
32212         AC_FUNC_OBSTACK.
32213         Do not replace the following functions, as this is now the job
32214         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
32215         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
32216         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
32217         atexit getpass, strdup, getpagesize.
32218         Replace 'raise'.
32219         Do not check for the following functions, as this is now the job
32220         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
32221         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
32222         setregid.
32223         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
32224         Check for sys/sysctl.h.
32225         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
32226         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
32227         of checking for ssize_t ourselves.
32228
32229         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
32230         Require every macro that gnulib/modules/* suggests for us.
32231         (jm_PREREQ_ADDEXT): New macro.
32232         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
32233         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
32234
32235         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
32236         (gl_PHYSMEM): Use it.
32237         Also check for `table' function.
32238         Check for new headers and functions.
32239         Add check for sys/sysmp.h.
32240         With suggestions from Kaveh Ghazi.
32241         Ignore headers that are present but cannot be compiled.  This
32242         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
32243         C 5.4.
32244
32245 2003-08-15  Paul Eggert  <eggert@twinsun.com>
32246
32247         Document merge from coreutils.
32248         * modules/userspec: Depend on posixver.
32249         * modules/strftime: Depend on tzset.
32250
32251 2003-08-15  Paul Eggert  <eggert@twinsun.com>
32252
32253         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
32254         rather than tab, after '#' in shell-script copyright notices.
32255         Suggested by Bruno Haible.
32256
32257 2003-08-15  Paul Eggert  <eggert@twinsun.com>
32258
32259         * config/srclist-update: Use three spaces, rather than tab, after '#'
32260         in shell-script copyright notices.  Suggested by Bruno Haible.
32261         Remove unnecessary parenthesization in regular expression.
32262
32263 2003-08-15  Jim Meyering  <jim@meyering.net>
32264
32265         Merge from coreutils.
32266         * lib/xgethostname.c: Include <stdlib.h>.
32267         (xghostname): Don't exit for anything other than memory-related
32268         failure; just return NULL.
32269         * lib/userspec.c: Include "posixver.h".
32270         (parse_user_spec): Accept `.' as a separator only
32271         in pre-POSIX-200112 mode.
32272         * lib/strtoimax.c: Use #elif rather than #else #if.
32273         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
32274         Remove function, now that we can rely on a working tzset function.
32275         [!_LIBC]: Ensure that the required autoconf test has been run.
32276         [!defined _NL_CURRENT && HAVE_STRFTIME]:
32277         Use underlying_strftime for %r.
32278         * lib/sha.c: Merge in some clean-up and optimization changes from
32279         glibc.
32280         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
32281         Ensure that it is a multiple of 64.
32282         Rearrange loop exit tests so as to avoid performing an
32283         additional fread after encountering an error or EOF.
32284         * lib/realloc.c: Update copyright date.
32285
32286 2003-08-15  Jim Meyering  <jim@meyering.net>
32287         and Paul Eggert  <eggert@twinsun.com>
32288
32289         Merge from coreutils.
32290         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
32291         member but strut utmpx does not.  Needed for AIX 4.3.3.
32292         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
32293
32294 2003-08-15  Jim Meyering  <jim@meyering.net>
32295         and Paul Eggert  <eggert@cs.ucla.edu>
32296
32297         Merges from coreutils, etc.
32298         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
32299         Require gl_FUNC_TZSET_CLOBBER.
32300         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
32301         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
32302         members.
32303
32304 2003-08-14  Paul Eggert  <eggert@twinsun.com>
32305
32306         Help the merge from coreutils.
32307         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
32308         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
32309         * m4/tzset.m4: Use it too.
32310
32311 2003-08-14  Paul Eggert  <eggert@twinsun.com>
32312
32313         * modules/tzset: New file.
32314
32315 2003-08-14  Jim Meyering  <jim@meyering.net>
32316
32317         Merges from coreutils.
32318         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
32319         variable names, rather than @FNMATCH_H@.
32320         * modules/alloca: Likewise for $(ALLOCA_H).
32321
32322         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
32323         the three copies of the literal target, `fnmatch.h'.
32324         * modules/alloca (alloca.h): Likewise.
32325
32326 2003-08-14  Jim Meyering  <jim@meyering.net>
32327
32328         Merge from coreutils.
32329         * m4/tzset.m4: New file.
32330         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
32331         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
32332         otherwise, AIX 5.1 systems would end up using the latter.
32333         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
32334         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
32335         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
32336         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
32337
32338 2003-08-14  Jim Meyering  <jim@meyering.net>
32339
32340         Merge from coreutils.
32341         * lib/obstack.h: Whitespace changes.
32342         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
32343         and xcalloc return values.
32344         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
32345         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
32346         hang on OSF/1 5.1 for DIR on both local and remote file systems.
32347         Reported by (and fix confirmed by) Nelson H. F. Beebe.
32348         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
32349         error from mntctl.
32350         Use mntctl's return value to drive the entry-processing loop, since
32351         we can't rely on the value of the vmt_length member in the last
32352         entry.  On some systems doing so could result in exhausting
32353         virtual memory.  Based in part on a patch from Mike Jetzer.
32354
32355 2003-08-14  Jim Meyering  <jim@meyering.net>
32356         and Paul Eggert  <eggert@twinsun.com>
32357
32358         Merges from coreutils, plus other fixes.
32359         * lib/physmem.c: Merge in portability changes from gcc/libiberty
32360         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
32361         for credits and details.  Thanks to Kaveh Ghazi for helping
32362         to keep these files in sync.
32363         (ARRAY_SIZE): Define it.
32364         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
32365         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
32366         (memcasecmp): Don't assume size_t fits in unsigned int.
32367         Remove casts and duplicate code.
32368         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
32369         (memcpy): Remove definition.
32370         Merge in some clean-up and optimization changes from glibc.
32371         [BLOCKSIZE]: Move definition to top of file.
32372         Ensure that it is a multiple of 64.
32373         Rearrange loop exit tests so as to avoid performing an
32374         additional fread after encountering an error or EOF.
32375         * lib/md5.h (md5_uintptr): Define.
32376         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
32377         return to the initial working directory.  Preserve errno
32378         for caller.
32379         * lib/idcache.c: Include "xalloc.h".
32380         (xmalloc, xrealloc): Remove decls.
32381         (getuser): Remove casts no longer required in C89.
32382         * lib/human.c: Include stdio.h, for sprintf.
32383         * lib/group-member.c: Include "xalloc.h".
32384         (xmalloc, xrealloc): Remove decls.
32385         (get_group_info): Remove casts no longer required in C89.
32386         * lib/getusershell.c (readname): Remove casts no longer required in
32387         C89.
32388         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
32389         * lib/getline.c: Whitespace fix, from coreutils.
32390
32391 2003-08-13  Paul Eggert  <eggert@twinsun.com>
32392
32393         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
32394         Check for isascii.
32395
32396         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
32397         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
32398         Undo previous (whitespace-only) change.
32399
32400 2003-08-13  Paul Eggert  <eggert@twinsun.com>
32401
32402         * lib/exclude.c: Include <ctype.h>
32403         (IN_CTYPE_DOMAIN): New macro.
32404         (is_space): New fn.
32405         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
32406         and empty lines.
32407
32408         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
32409         Undo previous (whitespace-only) change.
32410
32411 2003-08-13  Paul Eggert  <eggert@twinsun.com>
32412
32413         * config/srclist-update: Change update back to the old behavior,
32414         leaving whitespace alone.  Use one 'sed' command rather than a
32415         pipeline.
32416         (fixlicense): Now a variable, not a function.
32417         (remove_trailing_blanks): Remove.
32418         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
32419         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
32420         Undo previous (whitespace-only) change.
32421
32422 2003-08-12  Paul Eggert  <eggert@twinsun.com>
32423
32424         Merge from coreutils.
32425         * modules/euidaccess: Add lib_SOURCES, include for new
32426         file euidaccess.h
32427
32428 2003-08-12  Paul Eggert  <eggert@twinsun.com>
32429
32430         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
32431         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
32432         Normalize leading white space and remove trailing white space.
32433
32434         Merge from coreutils
32435         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
32436
32437         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
32438         0.12.1.  These files are now being upgraded automatically by
32439         ../config/srclist-update.
32440
32441 2003-08-12  Paul Eggert  <eggert@twinsun.com>
32442
32443         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
32444         Normalize leading white space and remove trailing white space.
32445         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
32446         notice, as per ../config/srclist-update.
32447
32448         Merge from coreutils.
32449         * lib/euidaccess.h: New file.
32450         * lib/euidaccess.c: Include it.
32451         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
32452         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
32453         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
32454
32455 2003-08-12  Paul Eggert  <eggert@twinsun.com>
32456
32457         * config/srclist-update: Add copyright notice.
32458         (remove_id_lines, remove_trailing_blanks): New constants.
32459         (fixfile): Use them to normalize spacing a bit in copied files.
32460         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
32461         Normalize leading white space and remove trailing white space.
32462
32463         * config/texinfo.tex: Sync with texinfo.
32464
32465         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
32466         strtoul.c from libc, to merge coreutils whitespace changes.
32467
32468         * config/srclist.txt: Get the following m4 files from gettext:
32469         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
32470         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
32471         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
32472         wint_t.m4.
32473
32474 2003-08-12  Karl Berry  <karl@gnu.org>
32475
32476         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
32477         been made.
32478
32479 2003-08-11  Paul Eggert  <eggert@twinsun.com>
32480
32481         * modules/gnu-source, m4/gnu-source.m4:
32482         Remove; we're assuming Autoconf 2.54 or later now.
32483         Suggested by Bruno Haible.
32484         * MODULES.html.sh (func_all_modules): Remove gnu-source.
32485
32486 2003-08-11  Bruno Haible  <bruno@clisp.org>
32487
32488         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
32489
32490 2003-08-11  Bruno Haible  <bruno@clisp.org>
32491
32492         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
32493         (vasnprintf): Use it instead of wcslen.
32494
32495 2003-08-11  Bruno Haible  <bruno@clisp.org>
32496
32497         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
32498         value to ensure that _Bool promotes to int. Use #define for _Bool when
32499         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
32500
32501 2003-08-10  Karl Berry  <karl@gnu.org>
32502
32503         * lib/regex.h: update from libc (whitespace fix).
32504
32505 2003-08-09  Paul Eggert  <eggert@twinsun.com>
32506
32507         Merge some files from coreutils.  These changes were
32508         originally made by Jim Meyering.
32509         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
32510         many older Unixes require this.
32511         * lib/alloca.c (alloca): Remove cast to argument of free;
32512         no longer needed in C89.
32513         * lib/alloca_.h, regex.h: Fix white space to match
32514         what GNU indent does.
32515
32516 2003-08-09  Paul Eggert  <eggert@twinsun.com>
32517
32518         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
32519         apparently Emacs's Unicode mode got confused before my 2003-08-05
32520         checkin.
32521
32522 2003-08-08  Paul Eggert  <eggert@twinsun.com>
32523
32524         * m4/extensions.m4: New file.
32525         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
32526         Require gl_USE_SYSTEM_EXTENSIONS.
32527         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
32528         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
32529
32530 2003-08-08  Paul Eggert  <eggert@twinsun.com>
32531
32532         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
32533         * modules/extensions, modules/gnu-source: New files.
32534         * modules/timespec, modules/unlocked-io: Depend on extensions.
32535
32536 2003-08-07  Paul Eggert  <eggert@twinsun.com>
32537
32538         * modules/restrict: New file.
32539         * MODULES.html.sh (func_all_modules): Add restrict.
32540         * modules/regex: Depend on restrict.
32541
32542 2003-08-07  Paul Eggert  <eggert@twinsun.com>
32543
32544         * m4/restrict.m4: New file.
32545         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
32546
32547 2003-08-07  Bruno Haible  <bruno@clisp.org>
32548
32549         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
32550         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
32551
32552 2003-08-07  Bruno Haible  <bruno@clisp.org>
32553
32554         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
32555         makes the module 'getndelim2' compatible with the module 'getline'.
32556
32557 2003-08-05  Paul Eggert  <eggert@twinsun.com>
32558
32559         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
32560         byte with "\201" to avoid glitches when editing that source file
32561         with multi-gnome-terminal.
32562
32563 2003-08-05  Paul Eggert  <eggert@twinsun.com>
32564
32565         * lib/bumpalloc.h: Remove.
32566
32567 2003-08-05  Paul Eggert  <eggert@twinsun.com>
32568
32569         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
32570         * modules/bumpalloc: Remove.
32571
32572 2003-08-04  Paul Eggert  <eggert@twinsun.com>
32573
32574         * lib/getloadavg.c: Change copyright notice and spacing to conform to
32575         GNU coding style.
32576
32577         Merge from coreutils.
32578         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
32579         1. From glibc.
32580         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
32581         from Karl Berry, implemented by Jim Meyering.
32582         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
32583         from Dmitry V. Levin.
32584         Remove anachronistic cast of xrealloc.
32585         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
32586         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
32587         type. Otherwise, it wouldn't compile with at least /bin/cc on
32588         ymp-cray-unicos9.0.2.X.
32589         Combine two mostly-identical uses of alloca into one.
32590         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
32591
32592 2003-08-04  Dave Love  <d.love@dl.ac.uk>
32593
32594         [From Emacs.]
32595
32596         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
32597         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
32598         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
32599         obsolete NLIST_NAME_UNION.
32600         [__GNU__]: Undef BSD and FSCALE.
32601         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
32602
32603 2003-08-03  Paul Eggert  <eggert@twinsun.com>
32604
32605         * lib/stdbool_.h (_Bool): Make it signed char, instead of
32606         an enum type, so that it's guaranteed to promote to int.  See:
32607         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
32608
32609 2003-08-03  Karl Berry  <karl@gnu.org>
32610
32611         * config/depcomp: update from automake.
32612
32613 2003-07-31  Paul Eggert  <eggert@twinsun.com>
32614
32615         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
32616         (strerror): Don't assume that a printable int fits in 14 bytes.
32617
32618 2003-07-31  Bruno Haible  <bruno@clisp.org>
32619
32620         * modules/getpass-gnu: New file.
32621         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
32622
32623 2003-07-31  Bruno Haible  <bruno@clisp.org>
32624
32625         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
32626
32627 2003-07-24  Karl Berry  <karl@gnu.org>
32628
32629         * config/missing: update from automake.
32630
32631 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
32632             Bruno Haible  <bruno@clisp.org>
32633
32634         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
32635         * lib/getline.c (getline, getdelim): Likewise.
32636         Remove _GNU_SOURCE define; now it's defined in config.h through
32637         m4/getline.m4.
32638
32639 2003-07-23  Karl Berry  <karl@gnu.org>
32640
32641         * config/config.sub: update from prep.
32642
32643 2003-07-22  Paul Eggert  <eggert@twinsun.com>
32644
32645         * modules/xalloc (Depends-on): Add exitfail.
32646         * modules/xmemcoll: Likewise.
32647
32648 2003-07-22  Paul Eggert  <eggert@twinsun.com>
32649
32650         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
32651         over-parenthesization in macros.
32652
32653         Sync with coreutils.
32654
32655         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
32656         required by C99.
32657
32658         Use `exit_failure' for xalloc and xmemcoll instead of their own
32659         private exit-failure variables.
32660         * lib/xalloc.h (xalloc_exit_failure): Remove.
32661         * lib/xmalloc.c: Likewise.  Include exitfail.h.
32662         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
32663         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
32664         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
32665         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
32666
32667 2003-07-20  Jim Meyering  <jim@meyering.net>
32668
32669         * modules/closeout (Depends-on): Add exitfail.
32670         Suggestion from Bruno Haible.
32671
32672 2003-07-19  Karl Berry  <karl@gnu.org>
32673
32674         * config/config.sub: update from prep.
32675
32676 2003-07-18  Paul Eggert  <eggert@twinsun.com>
32677
32678         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
32679         Remove.
32680         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
32681         to test that it can stand by itself.  Include "exitfail.h".
32682         Clients should set exit_failure instead.
32683         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
32684
32685 2003-07-18  Bruno Haible  <bruno@clisp.org>
32686
32687         * modules/getndelim2: New file.
32688         * modules/getline: Share files with module getndelim2.
32689         * modules/getnline: Depend on getndelim2 instead of sharing files with
32690         it. Add getnline.c to lib_SOURCES.
32691         * MODULES.html.sh (func_all_modules): Add getndelim2.
32692
32693 2003-07-18  Bruno Haible  <bruno@clisp.org>
32694
32695         * m4/getndelim2.m4: New file.
32696         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
32697         invoke gl_PREREQ_GETNDELIM2.
32698         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
32699         gl_PREREQ_GETNDELIM2.
32700         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
32701         gl_GETNDELIM2.
32702
32703 2003-07-18  Bruno Haible  <bruno@clisp.org>
32704
32705         * lib/getndelim2.h: New file.
32706         * lib/getndelim2.c: Make into a module of its own. Include config.h,
32707         getndelim2.h.
32708         (getndelim2): Make non-static. Change return type to ssize_t.
32709         * lib/getline.h: Change argument names.
32710         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
32711         * lib/getnline.c: Include getndelim2.h.
32712
32713 2003-07-18  Andreas Schwab  <schwab@suse.de>
32714
32715         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
32716
32717 2003-07-17  Karl Berry  <karl@gnu.org>
32718
32719         * config/config.sub: update from prep.
32720
32721 2003-07-17  Bruno Haible  <bruno@clisp.org>
32722
32723         * modules/getnline: New file.
32724         * modules/getline: Add lib/getndelim2.c to source file list.
32725         * MODULES.html.sh (func_all_modules): Add getnline.
32726
32727 2003-07-17  Bruno Haible  <bruno@clisp.org>
32728
32729         * m4/getnline.m4: New file.
32730
32731 2003-07-17  Bruno Haible  <bruno@clisp.org>
32732
32733         * m4/Makefile.am.in: Remove file.
32734         * m4/Makefile.am: Remove file.
32735         * m4/Makefile.in: Remove file.
32736
32737 2003-07-17  Bruno Haible  <bruno@clisp.org>
32738
32739         * lib/getnline.h: New file.
32740         * lib/getnline.c: New file.
32741         * lib/getndelim2.c: New file, extracted from getline.c.
32742         (getndelim2): Renamed from getdelim2, with added nmax argument.
32743         * lib/getline.c: Include getndelim2.c.
32744         (getdelim2): Moved out to getndelim2.c.
32745         (getline, getdelim): Update.
32746
32747 2003-07-17  Bruno Haible  <bruno@clisp.org>
32748
32749         * lib/Makefile.am: Remove file.
32750         * lib/Makefile.in: Remove file.
32751
32752 2003-07-17  Bruno Haible  <bruno@clisp.org>
32753
32754         * configure.in: Remove file.
32755         * Makefile.in: Remove file.
32756
32757 2003-07-17  Bruno Haible  <bruno@clisp.org>
32758
32759         * MODULES.html.sh: Put the </BODY> right before </HTML>.
32760
32761 2003-07-16  Karl Berry  <karl@gnu.org>
32762
32763         * config/srclist-update: was running fixlicense twice, which caused
32764                 texinfo.tex to be nullified for some reason.  Simplify,
32765                 $gplsrc is no longer needed as far as I can see?
32766
32767 2003-07-16  Jim Meyering  <jim@meyering.net>
32768
32769         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
32770
32771 2003-07-15  Paul Eggert  <eggert@twinsun.com>
32772
32773         * config/srclist.txt: Get the following files from gettext-runtime/intl
32774         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
32775         ref-del.sin.  From Bruno Haible.
32776         * config/srclist-update (fixfile): Change grep pattern again, since the
32777         previous fix didn't work (there was another trailing $).  Use
32778         '[$]' to escape the $s.
32779
32780 2003-07-15  Karl Berry  <karl@gnu.org>
32781
32782         * lib/vasnprintf.c: update from gettext.
32783
32784 2003-07-15  Karl Berry  <karl@gnu.org>
32785
32786         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
32787         gets expanded when surrounded by '$'.
32788
32789 2003-07-15  Jim Meyering  <jim@meyering.net>
32790
32791         * modules/save-cwd: Don't depend on error.  From Derek Price.
32792
32793 2003-07-15  Jim Meyering  <jim@meyering.net>
32794
32795         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
32796
32797 2003-07-14  Simon Josefsson  <jas@extundo.com>
32798
32799         * modules/mempcpy: New file.
32800         * MODULES.html.sh (func_all_modules): Add mempcpy.
32801
32802 2003-07-14  Simon Josefsson  <jas@extundo.com>
32803
32804         * m4/mempcpy.m4: New file.
32805
32806 2003-07-14  Simon Josefsson  <jas@extundo.com>
32807
32808         * lib/mempcpy.h: New file.
32809         * lib/mempcpy.c: New file.
32810
32811 2003-07-14  Paul Eggert  <eggert@twinsun.com>
32812
32813         * modules/getdate, modules/posixtm: Depend on mktime.
32814
32815 2003-07-14  Paul Eggert  <eggert@twinsun.com>
32816
32817         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
32818         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
32819         unicodeio.c, unicodeio.h, unlocked-io.h:
32820         Switch from LGPL to GPL.
32821
32822 2003-07-14  Paul Eggert  <eggert@twinsun.com>
32823
32824         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
32825         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
32826         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
32827         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
32828         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
32829         updated automatically by ../config/srclist-update.  This changes
32830         their license from LPGL to GPL.
32831
32832 2003-07-14  Paul Eggert  <eggert@twinsun.com>
32833
32834         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
32835         assumed to refer to the root of the most recent stable gettext version.
32836         * config/srclistvars.sh: Add defaults for eggert.
32837         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
32838         Match "This program" as well as "The program".  This is needed
32839         for gettext.
32840
32841 2003-07-14  Jim Meyering  <jim@meyering.net>
32842
32843         Don't emit diagnostics.  Let callers do that.
32844         * lib/save-cwd.c: Don't include "error.h".
32845         (save_cwd): Don't call error.  Ensure that errno is valid
32846         when returning nonzero.
32847
32848         * lib/save-cwd.h (restore_cwd): Update prototype.
32849         * lib/save-cwd.c (restore_cwd): Remove two parameters.
32850         Simplify.  Don't call error upon failure.  Let callers do that.
32851         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
32852         when auditing is enabled.  But don't bother updating the #if.
32853
32854 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
32855
32856         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
32857         it breaks C++ compilation.
32858         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
32859
32860 2003-07-10  Simon Josefsson  <jas@extundo.com>
32861
32862         * modules/strchrnul (Makefile.am): Add strchrnul.h.
32863
32864 2003-07-10  Jim Meyering  <jim@meyering.net>
32865
32866         * m4/clock_time.m4: Remove trailing blank.
32867         * m4/intmax_t.m4: Likewise.
32868
32869 2003-07-10  Jim Meyering  <jim@meyering.net>
32870
32871         * lib/vasnprintf.c: Remove trailing blanks.
32872         Make cpp indentation consistent.
32873
32874 2003-07-09  Paul Eggert  <eggert@twinsun.com>
32875
32876         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
32877         posixver.c, strftime.c, strnlen.c, strverscmp.c:
32878         Switch from LGPL to GPL.
32879
32880 2003-07-09  Paul Eggert  <eggert@twinsun.com>
32881
32882         * config/srclist.txt: Sort sublists.  Add
32883         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
32884         that differ from gnulib for one reason or another; we'd like this list
32885         to be smaller but for now let's document what we have.
32886
32887 2003-07-08  Paul Eggert  <eggert@twinsun.com>
32888
32889         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
32890         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
32891         and sweeter "eval x=$x".
32892         * config/srclist.txt: Get lib/argp* from glibc.
32893
32894 2003-07-07  Paul Eggert  <eggert@twinsun.com>
32895
32896         * lib/mktime.c: Fix some boundary cases and remove need for floating
32897         point.
32898
32899         Issue a compile-time diagnostic if time_t is floating point, or if
32900         two's complement arithmetic is not in effect, or if arithmetic
32901         right shift does not propagate the sign.  These assumptions were
32902         all in the original code but they weren't checked.
32903
32904         (TIME_T_MIDPOINT, verify): New macros.
32905         (__isleap): Remove; it has integer overflow problems.
32906         (leapyear): New function, without those problems.
32907         (ydhms_tm_diff): Remove; splitting into two parts.
32908         (ydhms_diff): New function, containing the arithmetic part of
32909         the old ydhms_tm_diff function.  Issue a compile-time
32910         diagnostic if we are not using C99 integer division.
32911         Avoid casts when possible.
32912         (guess_time_tm): New function, containing the checking part of
32913         the old ydhms_tm_diff function.  Return the new value, rather than
32914         the difference between it and the old.  Accept a new argument T
32915         so that *T specifies the old value.  Check for overflow in the result.
32916
32917         (__mktime_internal): Use a time_t offset, not a long int offset.
32918         This undoes the 2003-06-04 change, which is no longer needed now
32919         that we have better overflow checking.
32920         (localtime_offset): Likewise.
32921
32922         (__mktime_internal): Avoid harmful overflow on hosts where time_t
32923         and long are 64-bit but int is only 32-bit.
32924         (ydhms_diff): Use long int to store year1 and yday1.
32925         Issue a compile-time diagnostic if long int is not wide enough.
32926
32927         (__mktime_internal): Use long int to store adjusted year and yday.
32928         Use plain C rather than preprocessor commands, if that doesn't
32929         affect efficiency.
32930         Check for overflow (and try to repair) after each probe
32931         rather than checking only at the very end.  This avoids some bugs
32932         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
32933         does not equal GMT offset at maximum time).
32934         Use integer to check for overflow rather than floating point; this
32935         is more portable to non-IEEE hosts, and is a tad faster.
32936         When we detect that we are oscillating between two values,
32937         don't check whether tm_isdst has the requested value, since
32938         we already know the answer.  When tm_isdst has the wrong value,
32939         use a different heuristic to find the right one, based on the
32940         extreme values actually observed in practice in tz2003a,
32941         rather than the (overly optimistic) "previous 3 calendar quarters".
32942
32943         (not_equal_tm, print_tm, check_result): Use "const T" rather than
32944         "T const" to accommodate glibc style.
32945         (check_result): Use less-confusing report format.  "long" -> "long int.
32946         (main): Likewise.
32947         Don't loop if the iteration overflows time_t.
32948         Allow a negative step in the iteration.
32949
32950 2003-07-06  Karl Berry  <karl@gnu.org>
32951
32952         * config/depcomp: update from automake.
32953         * config/config.sub: update from prep.
32954
32955 2003-07-03  Karl Berry  <karl@gnu.org>
32956
32957         * config/config.guess: update from prep.
32958
32959 2003-07-01  Paul Eggert  <eggert@twinsun.com>
32960
32961         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
32962         xreadlink.c now includes it unconditionally.
32963
32964 2003-07-01  Paul Eggert  <eggert@twinsun.com>
32965
32966         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
32967         having it depend on HAVE_SYS_TYPES_H.
32968
32969 2003-07-01  Bruno Haible  <bruno@clisp.org>
32970
32971         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
32972         <sys/types.h> should be sufficient.
32973         Reported by Paul Eggert.
32974
32975 2003-06-26  Karl Berry  <karl@gnu.org>
32976
32977         * config/depcomp: update from automake.
32978
32979 2003-06-26  Bruno Haible  <bruno@clisp.org>
32980
32981         * modules/human: Depend on module stdbool.
32982
32983 2003-06-25  Bruno Haible  <bruno@clisp.org>
32984
32985         * modules/readlink: New file.
32986         * modules/xreadlink: Depend on it.
32987         * MODULES.html.sh (func_all_modules): Add readlink.
32988
32989 2003-06-25  Bruno Haible  <bruno@clisp.org>
32990
32991         * m4/readlink.m4: New file.
32992
32993 2003-06-25  Bruno Haible  <bruno@clisp.org>
32994
32995         * lib/readlink.c: New file.
32996
32997 2003-06-22  Karl Berry  <karl@gnu.org>
32998
32999         * config/srclist.txt: update mkinstalldirs from automake.
33000         * config/mkinstalldirs: update.
33001
33002 2003-06-22  Bruno Haible  <bruno@clisp.org>
33003
33004         Portability to mingw32.
33005         * m4/ssize_t.m4: New file, from GNU gettext.
33006         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
33007         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
33008
33009 2003-06-22  Bruno Haible  <bruno@clisp.org>
33010
33011         * modules/safe-read: Add m4/ssize_t.m4.
33012         * modules/xreadlink: Add m4/ssize_t.m4.
33013
33014 2003-06-20  Bruno Haible  <bruno@clisp.org>
33015
33016         Assume C89, so PARAMS isn't needed.
33017         * lib/unicodeio.h (PARAMS): Remove.
33018         * lib/unicodeio.c: Don't use PARAMS.
33019
33020 2003-06-18  Karl Berry  <karl@gnu.org>
33021
33022         * config/config.{guess,sub}: update from prep.
33023
33024 2003-06-18  Jim Meyering  <jim@meyering.net>
33025
33026         Merge changes from coreutils.
33027         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
33028         Remove explicit declarations of xmalloc and realloc.
33029         Include xalloc.h.
33030         (read_utmp): Remove anachronistic cast of xmalloc.
33031
33032 2003-06-17  Paul Eggert  <eggert@twinsun.com>
33033
33034         Assume C89, so PARAMS isn't needed.
33035         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
33036         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
33037         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
33038         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
33039         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
33040         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
33041         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
33042         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
33043         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
33044         lib/xstrtod.h, lib/xstrtol.h: Likewise.
33045         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
33046         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
33047         no longer needed. Anyway, config.h should always be included before any
33048         other file.
33049
33050 2003-06-11  Simon Josefsson  <jas@extundo.com>
33051
33052         * modules/sysexits: New file.
33053         * MODULES.html.sh (func_all_modules): Add sysexits.
33054
33055 2003-06-11  Simon Josefsson  <jas@extundo.com>
33056
33057         * lib/sysexit_.h: New file.
33058
33059 2003-06-11  Derek Price  <derek@ximbiot.com>
33060
33061         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
33062         necessary.
33063
33064 2003-06-11  Bruno Haible  <bruno@clisp.org>
33065
33066         * m4/sysexits.m4: New file.
33067
33068 2003-06-10  Simon Josefsson  <jas@extundo.com>
33069
33070         * lib/argp.h: New file, from glibc.
33071         * lib/argp-ba.c: New file, from glibc.
33072         * lib/argp-eexst.c: New file, from glibc.
33073         * lib/argp-fmtstream.c: New file, from glibc.
33074         * lib/argp-fmtstream.h: New file, from glibc.
33075         * lib/argp-fs-xinl.c: New file, from glibc.
33076         * lib/argp-help.c: New file, from glibc.
33077         * lib/argp-namefrob.h: New file, from glibc.
33078         * lib/argp-parse.c: New file, from glibc.
33079         * lib/argp-pv.c: New file, from glibc.
33080         * lib/argp-pvh.c: New file, from glibc.
33081         * lib/argp-xinl.c: New file, from glibc.
33082
33083 2003-06-10  Simon Josefsson  <jas@extundo.com>
33084
33085         * modules/strchrnul: New file.
33086
33087 2003-06-10  Simon Josefsson  <jas@extundo.com>
33088
33089         * modules/argp: New file.
33090
33091 2003-06-10  Simon Josefsson  <jas@extundo.com>
33092
33093         * m4/strchrnul.m4: New file.
33094
33095 2003-06-10  Simon Josefsson  <jas@extundo.com>
33096
33097         * lib/strchrnul.h: New file.
33098         * lib/strchrnul.c: New file.
33099
33100 2003-06-10  Bruno Haible  <bruno@clisp.org>
33101
33102         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
33103
33104 2003-06-07  Karl Berry  <karl@gnu.org>
33105
33106         * config/config.{guess,sub}: update from prep.
33107
33108 2003-06-07  Jim Meyering  <jim@meyering.net>
33109
33110         * modules/strtod: Use $(...) notation, not @...@ for
33111         AC_REPLACE'd variables.
33112         * modules/localcharset: Likewise.
33113
33114 2003-06-07  Jim Meyering  <jim@meyering.net>
33115
33116         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
33117         in place of my name in the copyright comment.
33118         Remove definition and uses of __P.
33119
33120         From coreutils.
33121         * lib/stat.c: Don't declare xmalloc explicitly.
33122         Instead, include "xalloc.h".
33123         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
33124         xrealloc, and xcalloc return values.
33125         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
33126         Improve comment.
33127         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
33128
33129 2003-06-07  Bruno Haible  <bruno@clisp.org>
33130
33131         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
33132         avoid AC_CONFIG_LINKS.
33133         * modules/fnmatch (Makefile.am): Use explicit creation rule for
33134         fnmatch.h, to avoid AC_CONFIG_LINKS.
33135         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
33136
33137 2003-06-07  Bruno Haible  <bruno@clisp.org>
33138
33139         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
33140         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
33141         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
33142         directory.
33143         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
33144         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
33145         directory.
33146
33147 2003-06-06  Jim Meyering  <jim@meyering.net>
33148
33149         Merge from coreutils.
33150         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
33151         Consolidate declarations and initializations of *_base* locals.
33152
33153         Merge from coreutils.
33154         This avoids a core dump on systems without GNU putenv,
33155         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
33156         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
33157         (unsetenv): New static function, from GNU libc.
33158         (rpl_putenv): Use it.
33159
33160         * lib/modechange.c: Remove trailing blanks.
33161
33162         Merge from coreutils.
33163         * lib/fsusage.c: Remove declaration of statfs.
33164         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
33165
33166         * lib/posixtm.c: Include <stdbool.h> unconditionally.
33167
33168 2003-06-06  Jim Meyering  <jim@meyering.net>
33169
33170         * lib/stdbool_.h: Renamed from stdbool.h.in.
33171
33172 2003-06-06  Jim Meyering  <jim@meyering.net>
33173             Bruno Haible  <bruno@clisp.org>
33174
33175         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
33176         Adjust Makefile.am snippet not to redirect directly to target.
33177         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
33178
33179 2003-06-05  Paul Eggert  <eggert@twinsun.com>
33180
33181         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
33182         mismatch, look in future quarters as well as past.  This fixes a
33183         bug when processing fall-backwards gaps immediately after a long
33184         period of daylight-saving time.
33185
33186         * lib/mktime.c: Assume freestanding C89 or better.
33187         (HAVE_LIMITS_H): Remove.  Assume it's 1.
33188         (__P): Remove; not used.
33189         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
33190         (mktime, not_equal_tm, print_tm, check_result,
33191         main): Use prototypes.  Use const * where appropriate.
33192         (main): Fix typo in testing code that uncovered by above changes.
33193         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
33194
33195 2003-06-04  Paul Eggert  <eggert@twinsun.com>
33196
33197         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
33198         locale.h, localeconv.  This merges changes from coreutils.
33199
33200         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
33201         It can be removed after the next Autoconf is released.
33202         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
33203         needed.
33204
33205 2003-06-04  Paul Eggert  <eggert@twinsun.com>
33206
33207         * lib/mktime.c: Fix Debian bug 177940
33208         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
33209         (localtime_offset): Now long int, not time_t, because we want it
33210         to be guaranteed to be signed.  All uses changed.
33211         (__mktime_internal): If overflow would occur when adding offset,
33212         don't add it.
33213
33214         Merge 'human' changes from coreutils.  Rewrite to support
33215         locale-specific notations like thousands separators.
33216         * lib/human.c: Simplify authorship notice.
33217         Include human.h immediately after config.h.
33218         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
33219         <limits.h>: Do not include, since human.h does.
33220         (SIZE_MAX, UINTMAX_MAX): New macros.
33221         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
33222         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
33223         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
33224         (power_letter): Renamed from suffixes.
33225         (generate_suffix_backwards): Remove.
33226         (adjust_value): Now takes int style (because of human.h changes)
33227         and long double value (for greater precision on some platforms).
33228         (group_number): New function.
33229         (human_readable): Use it.  Use integer options, not enum.
33230         Put the options before the sizes in the arg list.
33231         Support all the new options.
33232         The old human_readable function has been removed;
33233         use inttostr.h instead.
33234         (human_readable, default_block_size, humblock):
33235         Use uintmax_t, not int, for block sizes.
33236         (human_readable_inexact, block_size_types): Remove.
33237         (block_size_opts): New constant.
33238         (human_options): Renamed from human_block_size, with new signature
33239         that allows block sizes up to UINTMAX_MAX.  All callers changed.
33240         * lib/human.h: Add copyright and authorship notice.
33241         Include <limits.h> and <stdbool.h> unconditionally.
33242         (PARAMS): Remove.  All uses removed.
33243         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
33244         (enum human_inexact_style): Remove tag; now a nameless enum.
33245         (human_floor, human_ceiling, human_round_to_even): Now have
33246         values 2, 0, 1 rather than -1, 1, 0.
33247         (human_group_digits, human_suppress_point_zero, human_autoscale,
33248         human_base_1024, human_SI, human_B): New constants.
33249         (human_readable_inexact, human_block_size): Remove.
33250         (human_readable): Size args are now uintmax_t, not int.
33251         (human_options): New decl.
33252
33253         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
33254         unnecessary now that we assume C89 or better.  This change
33255         imported from coreutils.
33256
33257         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
33258         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
33259         in the 2003-05-30 sync from glibc.
33260
33261         .h files should stand alone, but we shouldn't include <sys/types.h>
33262         if we can get away with just <stddef.h>.
33263
33264         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
33265         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
33266         rather than <sys/types.h>, as we merely need size_t.
33267         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
33268         to get size_t.
33269         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
33270         Include <stdio.h>, to get FILE.
33271         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
33272         memcasecmp.h has included <stddef.h> and all we need is size_t.
33273         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
33274         our interface, instead of including <sys/types.h>
33275
33276 2003-06-04  Paul Eggert  <eggert@twinsun.com>
33277
33278         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
33279         now, as glibc mktime is buggy on non-glibc systems.
33280
33281 2003-06-03  Karl Berry  <karl@gnu.org>
33282
33283         * config/config.sub: update from prep.
33284
33285 2003-06-02  Paul Eggert  <eggert@twinsun.com>
33286
33287         [from coreutils]
33288         Fix some minor time-related bugs with POSIX time arguments.
33289         Some valid time stamps were being rejected (notably -1, and
33290         time stamps before 1900 on 64-bit hosts).  And some invalid
33291         time stamps were being accepted, e.g. September 31.
33292
33293         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
33294         that we can return (time_t) -1 successfully.
33295         * lib/posixtm.c: Likewise.
33296         [HAVE_STDBOOL_H]: Include <stdbool.h>.
33297         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
33298         (t): Remove static var.
33299         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
33300         of static var.  All uses changed.
33301         (year): Do not reject years before 1900; they can occur with
33302         64-bit time_t.
33303         (posix_time_parse): Do not check for out-of-range components;
33304         that is now the caller's responsibility, since our checks were
33305         only approximations.
33306         (posixtime): Use mktime to check for out-of-range components,
33307         since it knows them exactly.
33308         If mktime returns (time_t) -1, check whether an error actually occurred
33309         by invoking localtime on -1.
33310         (main) [TEST_POSIXTIME]: Check for input data errors, and report
33311         posixtime failures better.
33312         Improve the test data (in comments only).
33313
33314 2003-06-02  Karl Berry  <karl@gnu.org>
33315
33316         * config/mkinstalldirs (version): new variable.
33317         (--version): new option.
33318         (usage): improve message.
33319
33320 2003-05-30  Karl Berry  <karl@gnu.org>
33321
33322         * lib/mktime.c: update from libc.
33323
33324 2003-05-30  Bruno Haible  <bruno@clisp.org>
33325
33326         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
33327         * config/config.rpath: Upgrade to gettext-0.12.1.
33328
33329 2003-05-30  Bruno Haible  <bruno@clisp.org>
33330
33331         * m4/gettext.m4: Upgrade to gettext-0.12.1.
33332         * m4/nls.m4: New file, from gettext-0.12.1.
33333         * m4/po.m4: New file, from gettext-0.12.1.
33334         * m4/progtest.m4: Upgrade to gettext-0.12.1.
33335
33336 2003-05-30  Bruno Haible  <bruno@clisp.org>
33337
33338         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
33339         * lib/localcharset.h: Likewise.
33340         * lib/localcharset.c: Likewise.
33341
33342 2003-05-29  Karl Berry  <karl@gnu.org>
33343
33344         * config/config.rpath: update from gettext.
33345
33346 2003-05-28  Paul Eggert  <eggert@twinsun.com>
33347
33348         Assume the headers required for C89 freestanding compilers.
33349         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
33350         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
33351         * m4/human.m4 (gl_HUMAN): Likewise.
33352         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
33353         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
33354         * m4/userspec.m4 (gl_USERSPEC): Likewise.
33355         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
33356         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
33357         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
33358
33359 2003-05-28  Paul Eggert  <eggert@twinsun.com>
33360
33361         Assume the headers required for C89 freestanding compilers.
33362         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
33363         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
33364         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
33365         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
33366         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
33367         define, since <limits.h> is guaranteed to do that.
33368         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
33369         * lib/exclude.c: Include <stdbool.h> unconditionally.
33370         * lib/tempname.c: Include <stddef.h> unconditionally.
33371         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
33372         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
33373         <stddef.h> does that.
33374         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
33375         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
33376         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
33377         needed.
33378         * lib/xstrtol.c: Likewise.
33379         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
33380         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
33381
33382         * lib/addext.c (addext): Use assignment rather than cast, to avoid
33383         warnings on some platforms.
33384
33385         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
33386         arbitrarily.
33387
33388 2003-05-26  Jim Meyering  <jim@meyering.net>
33389
33390         Merge in a change from coreutils:
33391         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
33392         that is guaranteed to be `no'.  Use `no_such_member' to indicate
33393         that condition, rather than `-1' which is slightly misleading.
33394         Change the name of the cache variable to have the gl_ prefix.
33395         Prompted by a patch from Richard Dawe for DJGPP.
33396
33397 2003-05-24  Karl Berry  <karl@gnu.org>
33398
33399         * config/config.guess: update from prep.
33400
33401 2003-05-22  Karl Berry  <karl@gnu.org>
33402
33403         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
33404
33405 2003-05-20  Karl Berry  <karl@gnu.org>
33406
33407         * config/config.guess: update from prep.
33408
33409 2003-05-18  Karl Berry  <karl@gnu.org>
33410
33411         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
33412         might actually be set by the user.
33413
33414         * config/depcomp, install-sh, mdate-sh: update from automake.
33415
33416 2003-05-17  Bruno Haible  <bruno@clisp.org>
33417
33418         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
33419         invalid expansion for AC_EGREP_CPP.
33420         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
33421         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
33422         Suggested by Akim Demaille <akim@epita.fr> in
33423         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
33424
33425 2003-05-12  Jim Meyering  <jim@meyering.net>
33426
33427         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
33428         the space-padded-by-default conversion specifiers, %e, %k, %l.
33429
33430 2003-05-12  Bruno Haible  <bruno@clisp.org>
33431
33432         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
33433         the string is longer than 4 KB.
33434
33435 2003-05-11  Karl Berry  <karl@gnu.org>
33436
33437         * config/config.{guess,sub}: update from prep.
33438
33439 2003-05-09  Bruno Haible  <bruno@clisp.org>
33440
33441         * modules/error: Add m4/strerror_r.m4 to file list.
33442
33443 2003-05-03  Bruno Haible  <bruno@clisp.org>
33444
33445         Upgrade to Unicode-4.0.
33446         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
33447         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
33448         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
33449         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
33450         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
33451         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
33452         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
33453         Change width of U+E0100..U+E01EF from 1 to 0.
33454
33455 2003-04-25  Jim Meyering  <jim@meyering.net>
33456
33457         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
33458         of type size_t, not int.
33459
33460 2003-04-25  Bruno Haible  <bruno@clisp.org>
33461
33462         * lib/copy-file.c: Include <stddef.h>, for size_t.
33463
33464 2003-04-21  Paul Eggert  <eggert@twinsun.com>
33465
33466         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
33467         code which expansion is under static control.  Patch imported from
33468         Akim Demaille's patch to Bison; see
33469         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
33470
33471 2003-04-14  Bruno Haible  <bruno@clisp.org>
33472
33473         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
33474
33475 2003-04-11  Jim Meyering  <jim@meyering.net>
33476
33477         Merge changes from Coreutils.
33478
33479         2003-03-22  Jim Meyering  <jim@meyering.net>
33480
33481         * lib/strftime.c (widen): Cast alloca return value to proper type.
33482
33483         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
33484
33485         From GNU libc.
33486         * lib/strftime.c (my_strftime): Handle very large width
33487         specifications for numeric values correctly.  Improve checks for
33488         overflow.
33489
33490         2003-01-19  Jim Meyering  <jim@meyering.net>
33491
33492         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
33493         definitions.
33494         (nl_get_alt_digit) [! defined my_strftime]: Define.
33495         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
33496         _nl_get_alt_digit and _nl_get_walt_digit.
33497
33498         * lib/strftime.c (my_strftime): Merge in locale-related changes from
33499         libc. These changes have no effect outside of _LIBC.
33500
33501 2003-04-10  Bruno Haible  <bruno@clisp.org>
33502
33503         * modules/findprog: New file.
33504         * MODULES.html.sh (func_all_modules): Add it.
33505
33506 2003-04-10  Bruno Haible  <bruno@clisp.org>
33507
33508         * m4/findprog.m4: New file.
33509         * m4/eaccess.m4: New file.
33510
33511 2003-04-10  Bruno Haible  <bruno@clisp.org>
33512
33513         * lib/findprog.h: New file, from GNU gettext.
33514         * lib/findprog.c: New file, from GNU gettext.
33515
33516 2003-04-05  Jim Meyering  <jim@meyering.net>
33517
33518         Merge changes from Coreutils.
33519
33520         * lib/exclude.h (PARAMS): Remove definition and uses.
33521         * lib/exclude.c: Remove uses of `PARAMS'.
33522
33523         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
33524         Add test-cases for DOS filenames. Declare program_name.
33525         (main): Set up program_name.  Patch by Rich Dawe.
33526
33527         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
33528         error from mntctl.
33529         Use mntctl's return value to drive the entry-processing loop, since
33530         we can't rely on the value of the vmt_length member in the last
33531         entry.  On some systems doing so could result in exhausting
33532         virtual memory.  Based in part on a patch from Mike Jetzer.
33533
33534 2003-04-04  Bruno Haible  <bruno@clisp.org>
33535
33536         * modules/linebreak: New file.
33537         * MODULES.html.sh (func_all_modules): Add it.
33538
33539 2003-04-04  Bruno Haible  <bruno@clisp.org>
33540
33541         * m4/linebreak.m4: New file.
33542
33543 2003-04-04  Bruno Haible  <bruno@clisp.org>
33544
33545         * lib/linebreak.h: New file, from GNU gettext.
33546         * lib/linebreak.c: New file, from GNU gettext with slight
33547         modifications.
33548         * lib/lbrkprop.h: New file, from GNU gettext.
33549
33550 2003-04-03  Bruno Haible  <bruno@clisp.org>
33551
33552         * modules/utf8-ucs4: New file.
33553         * modules/utf16-ucs4: New file.
33554         * modules/ucs4-utf8: New file.
33555         * modules/ucs4-utf16: New file.
33556         * MODULES.html.sh (func_all_modules): Add them.
33557
33558 2003-04-03  Bruno Haible  <bruno@clisp.org>
33559
33560         * m4/utf-ucs4.m4: New file.
33561         * m4/ucs4-utf.m4: New file.
33562
33563 2003-04-03  Bruno Haible  <bruno@clisp.org>
33564
33565         * lib/utf8-ucs4.h: New file, from GNU gettext.
33566         * lib/utf16-ucs4.h: New file, from GNU gettext.
33567         * lib/ucs4-utf8.h: New file, from GNU gettext.
33568         * lib/ucs4-utf16.h: New file, from GNU gettext.
33569
33570 2003-04-02  Bruno Haible  <bruno@clisp.org>
33571
33572         * modules/binary-io: New file.
33573         * MODULES.html.sh (func_all_modules): Add it.
33574
33575 2003-04-02  Bruno Haible  <bruno@clisp.org>
33576
33577         * lib/binary-io.h: New file, from GNU gettext.
33578
33579 2003-04-01  Bruno Haible  <bruno@clisp.org>
33580
33581         * modules/pathname: New file.
33582         * MODULES.html.sh (func_all_modules): Add it.
33583
33584 2003-04-01  Bruno Haible  <bruno@clisp.org>
33585
33586         * lib/pathname.h: New file, from GNU gettext.
33587         * lib/concatpath.c: New file, from GNU gettext.
33588
33589 2003-03-30  Bruno Haible  <bruno@clisp.org>
33590
33591         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
33592
33593 2003-03-30  Bruno Haible  <bruno@clisp.org>
33594
33595         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
33596         function chown() doesn't exist.
33597
33598 2003-03-28  Bruno Haible  <bruno@clisp.org>
33599
33600         * modules/copy-file: New file.
33601         * MODULES.html.sh (func_all_modules): Add it.
33602
33603 2003-03-28  Bruno Haible  <bruno@clisp.org>
33604
33605         * m4/copy-file.m4: New file.
33606
33607 2003-03-28  Bruno Haible  <bruno@clisp.org>
33608
33609         * lib/copy-file.h: New file, from GNU gettext.
33610         * lib/copy-file.c: New file, from GNU gettext.
33611
33612 2003-03-18  Jim Meyering  <jim@meyering.net>
33613
33614         * lib/quote.c (quote_n): Fix typo in comment.
33615
33616 2003-03-18  Bruno Haible  <bruno@clisp.org>
33617
33618         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
33619         checking.
33620         * m4/onceonly_2_57.m4: Likewise.
33621
33622 2003-03-17  Bruno Haible  <bruno@clisp.org>
33623
33624         * m4/onceonly.m4: Require autoconf 2.54 or newer.
33625         (m4_quote): Remove macro.
33626         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
33627
33628 2003-03-14  Jim Meyering  <jim@meyering.net>
33629
33630         Merge changes from Coreutils.
33631         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
33632         to be const, in order to avoid warnings.
33633         (obstack_room): Likewise.
33634         (obstack_empty_p): Likewise.
33635
33636 2003-03-14  Bruno Haible  <bruno@clisp.org>
33637
33638         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
33639         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
33640
33641 2003-03-13  Paul Eggert  <eggert@twinsun.com>
33642
33643         Merge changes from Bison.
33644         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
33645         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
33646         when compiling Bison 1.875's `bitset bset = obstack_alloc
33647         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
33648         * lib/hash.c: Include <stdbool.h> unconditionally.
33649
33650 2003-03-13  Paul Eggert  <eggert@twinsun.com>
33651
33652         * m4/onceonly.m4 (m4_quote): New macro.
33653         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
33654         Quote AC_FOREACH variable-expansions properly.
33655
33656 2003-03-13  Paul Eggert  <eggert@twinsun.com>
33657
33658         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
33659
33660 2003-03-09  Paul Eggert  <eggert@twinsun.com>
33661
33662         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
33663         Reported by Bruce Becker; see:
33664         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
33665
33666 2003-03-03  Paul Eggert  <eggert@twinsun.com>
33667             Bruno Haible  <bruno@clisp.org>
33668
33669         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
33670         Reported by John Hughes, see
33671         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
33672
33673 2003-02-20  Bruno Haible  <bruno@clisp.org>
33674
33675         * MODULES.html.sh (func_all_modules): Add poll.
33676
33677 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
33678
33679         * modules/poll: New file.
33680
33681 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
33682
33683         * lib/poll_.h: New file.
33684         * lib/poll.c: New file.
33685
33686 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
33687
33688         * m4/poll.m4: New file.
33689
33690 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
33691
33692         * modules/mathl: New file.
33693
33694 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
33695
33696         * lib/mathl.h: New file.
33697         * lib/acosl.c: New file.
33698         * lib/asinl.c: New file.
33699         * lib/atanl.c: New file.
33700         * lib/ceill.c: New file.
33701         * lib/cosl.c: New file.
33702         * lib/expl.c: New file.
33703         * lib/floorl.c: New file.
33704         * lib/frexpl.c: New file.
33705         * lib/ldexpl.c: New file.
33706         * lib/logl.c: New file.
33707         * lib/sincosl.c: New file.
33708         * lib/sinl.c: New file.
33709         * lib/sqrtl.c: New file.
33710         * lib/tanl.c: New file.
33711         * lib/trigl.c: New file.
33712         * lib/trigl.h: New file.
33713
33714 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
33715
33716         * m4/mathl.m4: New file.
33717
33718 2003-02-18  Bruno Haible  <bruno@clisp.org>
33719
33720         * MODULES.html.sh (func_all_modules): Add mathl.
33721
33722 2003-02-17  Bruno Haible  <bruno@clisp.org>
33723
33724         * modules/mkdtemp: New module.
33725         * MODULES.html.sh (func_all_modules): Add it.
33726
33727 2003-02-17  Bruno Haible  <bruno@clisp.org>
33728
33729         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
33730
33731 2003-02-17  Bruno Haible  <bruno@clisp.org>
33732
33733         * lib/mkdtemp.h: New file, from GNU gettext.
33734         * lib/mkdtemp.c: New file, from GNU gettext.
33735
33736 2003-02-02  Jim Meyering  <jim@meyering.net>
33737
33738         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
33739         e.g. glibc-2.2.93.
33740
33741 2003-01-31  Bruno Haible  <bruno@clisp.org>
33742
33743         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
33744         'rpl_rename'.
33745         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
33746         'rpl_strnlen'.
33747         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
33748         'rpl_strtod'.
33749         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
33750         'rpl_utime'.
33751
33752 2003-01-31  Bruno Haible  <bruno@clisp.org>
33753
33754         * lib/rename.c: #undef rename before defining rpl_rename.
33755         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
33756
33757 2003-01-30  Bruno Haible  <bruno@clisp.org>
33758
33759         * modules/vasnprintf, modules/vasprintf: New modules.
33760         * MODULES.html.sh (func_all_modules): Add them.
33761
33762 2003-01-30  Bruno Haible  <bruno@clisp.org>
33763
33764         * m4/signed.m4: New file, from GNU gettext.
33765         * m4/longdouble.m4: New file, from GNU gettext.
33766         * m4/wchar_t.m4: New file, from GNU gettext.
33767         * m4/wint_t.m4: New file, from GNU gettext.
33768         * m4/vasnprintf.m4: New file.
33769         * m4/vasprintf.m4: New file.
33770
33771 2003-01-30  Bruno Haible  <bruno@clisp.org>
33772
33773         * lib/printf-args.h: New file, from GNU gettext.
33774         * lib/printf-args.c: New file, from GNU gettext.
33775         * lib/printf-parse.h: New file, from GNU gettext.
33776         * lib/printf-parse.c: New file, from GNU gettext.
33777         * lib/vasnprintf.h: New file, from GNU gettext.
33778         * lib/vasnprintf.c: New file, from GNU gettext.
33779         * lib/asnprintf.c: New file, from GNU gettext.
33780         * lib/vasprintf.h: New file, from GNU gettext with modifications.
33781         * lib/vasprintf.c: New file, from GNU gettext.
33782         * lib/asprintf.c: New file, from GNU gettext.
33783
33784 2003-01-29  Bruno Haible  <bruno@clisp.org>
33785
33786         * modules/stpncpy: New module.
33787         * MODULES.html.sh (func_all_modules): Add it.
33788
33789 2003-01-29  Bruno Haible  <bruno@clisp.org>
33790
33791         * m4/stpncpy.m4: New file.
33792
33793 2003-01-29  Bruno Haible  <bruno@clisp.org>
33794
33795         * lib/stpncpy.h: New file, from GNU gettext with modifications.
33796         * lib/stpncpy.c: New file, from GNU gettext with modifications.
33797
33798 2003-01-28  Bruno Haible  <bruno@clisp.org>
33799
33800         * modules/c-ctype: New module.
33801         * MODULES.html.sh (func_all_modules): Add it.
33802
33803 2003-01-28  Bruno Haible  <bruno@clisp.org>
33804
33805         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
33806         Paul Eggert.
33807         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
33808         Paul Eggert.
33809
33810 2003-01-27  Bruno Haible  <bruno@clisp.org>
33811
33812         * modules/xsetenv: New module.
33813         * MODULES.html.sh (func_all_modules): Add it.
33814
33815 2003-01-27  Bruno Haible  <bruno@clisp.org>
33816
33817         * lib/xsetenv.h: New file, from GNU gettext.
33818         * lib/xsetenv.c: New file, from GNU gettext.
33819
33820 2003-01-23  Jim Meyering  <jim@meyering.net>
33821
33822         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
33823         from working on systems without dirfd (at least Irix and OSF1/Tru64).
33824
33825 2003-01-23  Bruno Haible  <bruno@clisp.org>
33826
33827         * modules/minmax: New module.
33828         * MODULES.html.sh (func_all_modules): Add it.
33829
33830 2003-01-23  Bruno Haible  <bruno@clisp.org>
33831
33832         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
33833         Eggert.
33834
33835 2003-01-22  Bruno Haible  <bruno@clisp.org>
33836
33837         * modules/exit: New module.
33838         * MODULES.html.sh (func_all_modules): Add it.
33839
33840 2003-01-22  Bruno Haible  <bruno@clisp.org>
33841
33842         * lib/exit.h: New file, from GNU gettext.
33843
33844 2003-01-19  Bruno Haible  <bruno@clisp.org>
33845
33846         * gnulib-tool: Recognize option --extract-maintainer.
33847         (func_get_maintainer): New function.
33848         * modules/*: Add Maintainer entry.
33849
33850 2003-01-16  Jim Meyering  <jim@meyering.net>
33851
33852         * m4/regex.m4: The `regex' struct is both input and output.
33853         Initialize it before each use.  Patch by Tim Waugh.
33854
33855 2003-01-16  Bruno Haible  <bruno@clisp.org>
33856
33857         * MODULES.html.sh: Add a table of contents. Add the module name as
33858         leftmost column. Add hyperlinks.
33859
33860 2003-01-15  Bruno Haible  <bruno@clisp.org>
33861
33862         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
33863
33864 2003-01-15  Bruno Haible  <bruno@clisp.org>
33865
33866         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
33867         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
33868         suffix.
33869
33870 2003-01-15  Bruno Haible  <bruno@clisp.org>
33871
33872         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
33873
33874 2003-01-15  Bruno Haible  <bruno@clisp.org>
33875
33876         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
33877         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
33878
33879 2003-01-14  Jim Meyering  <jim@meyering.net>
33880
33881         * lib/same.c (same_name): Tweak a comment.
33882
33883 2003-01-14  Bruno Haible  <bruno@clisp.org>
33884
33885         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
33886         when a string comparison is sufficient.
33887
33888 2003-01-14  Bruno Haible  <bruno@clisp.org>
33889
33890         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
33891         'unsigned int'.
33892
33893 2003-01-14  Bruno Haible  <bruno@clisp.org>
33894
33895         * lib/hash-pjw.c: Add comment about low quality of this function.
33896
33897 2003-01-13  Bruno Haible  <bruno@clisp.org>
33898
33899         * modules/stpcpy: Distribute lib/stpcpy.h.
33900         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
33901
33902 2003-01-13  Bruno Haible  <bruno@clisp.org>
33903
33904         * modules/*: Add a description.
33905         * modules/strpbrk: Fix Makefile.am snippet.
33906         * modules/strtoimax: Fix dependencies.
33907         * modules/strtoumax: Likewise.
33908
33909 2003-01-13  Bruno Haible  <bruno@clisp.org>
33910
33911         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
33912         * modules/alloca (Makefile.am): All object files depend on alloca.h.
33913         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
33914
33915 2003-01-13  Bruno Haible  <bruno@clisp.org>
33916
33917         * gnulib-tool (func_create_testdir): Store config/* files in the main
33918         directory.
33919         * config.rpath: Move to ...
33920         * config/config.rpath: ... here.
33921         * modules/gettext: Contains config/config.rpath, not config.rpath.
33922         * modules/iconv: Likewise.
33923
33924 2003-01-12  Paul Eggert  <eggert@twinsun.com>
33925
33926         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
33927         to avoid collisions with libcurses and libreadline.
33928
33929         * m4/getstr.m4: Remove.
33930         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
33931
33932 2003-01-12  Paul Eggert  <eggert@twinsun.com>
33933
33934         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
33935         to avoid collisions with libcurses and libreadline.
33936
33937         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
33938         * lib/getstr.h, getstr.c: Remove.
33939         * lib/getline.c: Include "getline.h", to check interface.
33940         Move body of old getstr.c here: this defines MIN_CHUNK and
33941         declares getdelim2, which is renamed from getstr.
33942         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
33943
33944         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
33945         All uses changed.
33946         * lib/linebuffer.h: Likewise.
33947         (readline): Remove backward-compatibility macro.
33948
33949 2003-01-12  Paul Eggert  <eggert@twinsun.com>
33950
33951         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
33952         to avoid collisions with libcurses and libreadline.
33953         * getstr: Remove.
33954         * MODULES.html.sh: Remove getstr.
33955         * modules/getline: Depend on unlocked-io, not getstr.
33956
33957 2003-01-12  Jim Meyering  <jim@meyering.net>
33958
33959         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
33960
33961 2003-01-10  Bruno Haible  <bruno@clisp.org>
33962
33963         * modules/alloca: Change Makefile.am requirements. Simplify Include
33964         requirements. Add lib/alloca_.h to file list.
33965
33966 2003-01-10  Bruno Haible  <bruno@clisp.org>
33967
33968         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
33969
33970 2003-01-10  Bruno Haible  <bruno@clisp.org>
33971
33972         * lib/alloca_.h: New file.
33973         * lib/getdate.y: Unconditionally include alloca.h.
33974         * lib/makepath.c: Likewise.
33975         * lib/setenv.c: Likewise.
33976         * lib/userspec.c: Likewise.
33977
33978 2003-01-09  Karl Berry  <karl@gnu.org>
33979
33980         * MODULES.html.sh: include `dirname $0` in PATH, to find
33981         gnulib-tool.
33982
33983 2003-01-09  Bruno Haible  <bruno@clisp.org>
33984
33985         * modules/stdbool: Change configure.ac, Makefile.am requirements.
33986         Simplify Include requirements. Add lib/stdbool.h.in to file list.
33987
33988 2003-01-09  Bruno Haible  <bruno@clisp.org>
33989
33990         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
33991
33992 2003-01-09  Bruno Haible  <bruno@clisp.org>
33993
33994         * lib/stdbool.h.in: New file.
33995
33996 2003-01-09  Bruno Haible  <bruno@clisp.org>
33997
33998         * gnulib-tool (func_all_modules): Ignore files ending in ~.
33999         * MODULES.html.sh: Likewise.
34000
34001 2003-01-08  Jim Meyering  <jim@meyering.net>
34002
34003         * lib/full-write.c: Undefine and define-away `const' after inclusion
34004         of errno.h, not before.  Suggestion from Bruno Haible.
34005
34006 2003-01-08  Bruno Haible  <bruno@clisp.org>
34007
34008         * modules/full-read: Depend on full-write.
34009
34010 2003-01-08  Bruno Haible  <bruno@clisp.org>
34011
34012         * lib/safe-read.c: Include specification header first, to ensure its
34013         selfcontainedness.
34014         * lib/full-write.c: Likewise.
34015
34016 2003-01-07  Jim Meyering  <jim@meyering.net>
34017
34018         * lib/full-write.c: Rework so that it may serve to define full_read,
34019         too.
34020         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
34021
34022 2003-01-07  Bruno Haible  <bruno@clisp.org>
34023
34024         * lib/strtoimax.c: Include <stdint.h> as an alternative to
34025         <inttypes.h>.
34026         * lib/xstrtol.h: Likewise.
34027         * lib/xstrtoimax.c: Likewise.
34028         * lib/xstrtoumax.c: Likewise.
34029         * lib/human.h: Likewise.
34030
34031         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
34032         on systems that have <inttypes.h> but not <stdint.h>.
34033
34034 2003-01-07  Bruno Haible  <bruno@clisp.org>
34035
34036         * MODULES.html.sh: Add copyright notice.
34037         (missed_files): Omit CVS directory entries.
34038         (func_module): Make it work with sed-3.02.
34039         * MODULES.txt: Remove file.
34040
34041 2003-01-06  Jim Meyering  <jim@meyering.net>
34042
34043         * lib/version-etc.c: Update year in translatable copyright string.
34044
34045 2003-01-03  Karl Berry  <karl@gnu.org>
34046
34047         * config/config.{guess,sub}: update from prep.
34048
34049 2003-01-02  Karl Berry  <karl@gnu.org>
34050
34051         * doc/COPYING.DOC: belatedly updated to 1.2.
34052
34053 2003-01-01  Karl Berry  <karl@gnu.org>
34054
34055         * gnulib-tool (func_verify_module): report module name $module in
34056         error message, not $1.
34057         * gnulib-tool (create-testdir): don't complain if destdir couldn't
34058         be created, only if it doesn't exist.
34059         * gnulib-tool (last_checkin_date): don't expand the $Date here.
34060
34061 2002-12-31  Paul Eggert  <eggert@twinsun.com>
34062
34063         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
34064
34065 2002-12-31  Paul Eggert  <eggert@twinsun.com>
34066
34067         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
34068         memcmp if strcoll doesn't work.
34069
34070 2002-12-31  Bruno Haible  <bruno@clisp.org>
34071
34072         * lib/utime.c (utime_null): No need to call ftruncate if the file was
34073         nonempty.
34074
34075 2002-12-31  Bruno Haible  <bruno@clisp.org>
34076
34077         * lib/memcoll.c (STRCOLL): New macro.
34078         (memcoll): Use it.
34079
34080 2002-12-31  Bruno Haible  <bruno@clisp.org>
34081
34082         * lib/localcharset.h: New file.
34083         * lib/localcharset.c: Include it.
34084         * lib/unicodeio.c: Likewise.
34085
34086 2002-12-31  Bruno Haible  <bruno@clisp.org>
34087
34088         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
34089         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
34090
34091 2002-12-31  Bruno Haible  <bruno@clisp.org>
34092
34093         * lib/getline.h: Include <stddef.h>, for size_t.
34094
34095         * lib/unicodeio.h: Include <stddef.h>, for size_t.
34096         * lib/unicodeio.c: Don't include <stddef.h>.
34097
34098 2002-12-31  Bruno Haible  <bruno@clisp.org>
34099
34100         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
34101         HAVE_TM_ZONE.
34102
34103 2002-12-24  Karl Berry  <karl@gnu.org>
34104
34105         * config/config.guess: update from prep.
34106
34107 2002-12-24  Bruno Haible  <bruno@clisp.org>
34108
34109         General infrasructure.
34110         * m4/README: Rewritten.
34111         * m4/onceonly.m4: New file.
34112         * m4/onceonly_2_57.m4: New file.
34113
34114         Module atexit.
34115         * m4/atexit.m4: New file.
34116
34117         Module strtod.
34118         * m4/strtod.m4: New file.
34119
34120         Module strtol.
34121         * m4/strtol.m4: New file.
34122
34123         Module strtoul.
34124         * m4/strtoul.m4: New file.
34125
34126         Module memchr.
34127         * m4/memchr.m4: New file.
34128
34129         Module memcmp.
34130         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
34131         (jm_FUNC_MEMCMP): Invoke it.
34132
34133         Module memcpy.
34134         * m4/memcpy.m4: New file.
34135
34136         Module memmove.
34137         * m4/memmove.m4: New file.
34138
34139         Module memset.
34140         * m4/memset.m4: New file.
34141
34142         Module strcspn.
34143         * m4/strcspn.m4: New file.
34144
34145         Module strpbrk.
34146         * m4/strpbrk.m4: New file.
34147
34148         Module strstr.
34149         * m4/strstr.m4: New file.
34150
34151         Module strerror.
34152         * m4/strerror.m4: New file.
34153
34154         Module mktime.
34155         * m4/mktime.m4: Renamed from jm-mktime.m4.
34156         (gl_PREREQ_MKTIME): New macro.
34157         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
34158
34159         Module malloc.
34160         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
34161         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
34162         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
34163
34164         Module realloc.
34165         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
34166         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
34167         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
34168
34169         Module strftime.
34170         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
34171         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
34172         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
34173         gl_TM_GMTOFF.
34174         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
34175
34176         Module xalloc.
34177         * m4/xalloc.m4: New file.
34178
34179         Module alloca.
34180         * m4/alloca.m4: New file.
34181
34182         Module putenv.
34183         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
34184         (jm_FUNC_PUTENV): Invoke it.
34185
34186         Module setenv.
34187         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
34188         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
34189         when invoked twice.
34190         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
34191         gt_FUNC_SETENV.
34192
34193         Module memrchr.
34194         * m4/memrchr.m4: New file.
34195
34196         Module stpcpy.
34197         * m4/stpcpy.m4: New file.
34198
34199         Module strcase.
34200         * m4/strcase.m4: New file.
34201
34202         Module strdup.
34203         * m4/strdup.m4: New file.
34204
34205         Module strnlen.
34206         * m4/strnlen.m4: New file.
34207
34208         Module strndup.
34209         * m4/strndup.m4: New file.
34210
34211         Module xstrtod.
34212         * m4/xstrtod.m4: New file.
34213
34214         Module xstrtol.
34215         * m4/xstrtol.m4: New file.
34216
34217         Module getdate.
34218         * m4/getdate.m4: New file.
34219
34220         Module unlocked-io.
34221         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
34222         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
34223         * m4/jm-glibc-io.m4n: Remove file.
34224
34225         Module long-options.
34226         * m4/long-options.m4: New file.
34227
34228         Module md5.
34229         * m4/md5.m4: New file.
34230
34231         Module sha.
34232         * m4/sha.m4: New file.
34233
34234         Module getstr.
34235         * m4/getstr.m4: New file.
34236
34237         Module getline.
34238         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
34239         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
34240         <sys/types.h>, for size_t. Use the function name gnu_getline, not
34241         simply getline. Infoke gl_PREREQ_GETLINE.
34242
34243         Module obstack.
34244         * m4/obstack.m4: New file.
34245
34246         Module hash.
34247         * m4/hash.m4: New file.
34248
34249         Module readtokens.
34250         * m4/readtokens.m4: New file.
34251
34252         Module strverscmp.
34253         * m4/strverscmp.m4: New file.
34254
34255         Module stdbool.
34256         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
34257         OSF/1.
34258
34259         Module strtoll.
34260         * m4/strtoll.m4: New file.
34261
34262         Module strtoull.
34263         * m4/strtoull.m4: New file.
34264
34265         Module strtoimax.
34266         * m4/strtoimax.m4: New file.
34267
34268         Module strtoumax.
34269         * m4/strtoumax.m4: New file.
34270
34271         Module xstrtoimax.
34272         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
34273         jm_AC_PREREQ_XSTRTOIMAX.
34274         Moved the strtol prerequisites to strtol.m4.
34275         Moved the strtoll prerequisites to strtoll.m4.
34276         Moved the strtoimax prerequisites to strtoimax.m4.
34277
34278         Module xstrtoumax.
34279         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
34280         jm_AC_PREREQ_XSTRTOUMAX.
34281         Moved the strtoul prerequisites to strtoul.m4.
34282         Moved the strtoull prerequisites to strtoull.m4.
34283         Moved the strtoumax prerequisites to strtoumax.m4.
34284
34285         Module chown.
34286         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
34287         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
34288
34289         Module dup2.
34290         * m4/dup2.m4: New file.
34291
34292         Module ftruncate.
34293         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
34294         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
34295
34296         Module getgroups.
34297         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
34298         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
34299
34300         Module gettimeofday.
34301         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
34302         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
34303         gl_PREREQ_GETTIMEOFDAY.
34304
34305         Module mkdir.
34306         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
34307         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
34308
34309         Module mkstemp.
34310         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
34311         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
34312         jm_AC_TYPE_UINTMAX_T.
34313         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
34314
34315         Module stat.
34316         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
34317         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
34318
34319         Module lstat.
34320         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
34321         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
34322
34323         Module timespec.
34324         * m4/timespec.m4 (gl_TIMESPEC): New macro.
34325         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
34326         * m4/st_mtim.m4: Indentation.
34327
34328         Module nanosleep.
34329         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
34330         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
34331         gl_PREREQ_NANOSLEEP.
34332
34333         Module regex.
34334         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
34335         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
34336         (gl_REGEX): New macro.
34337
34338         Module rename.
34339         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
34340         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
34341
34342         Module rmdir.
34343         * m4/rmdir.m4: New file.
34344
34345         Module utime.
34346         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
34347         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
34348         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
34349
34350         Module dirname.
34351         * m4/dirname.m4: New file.
34352
34353         Module getopt.
34354         * m4/getopt.m4: New file.
34355
34356         Module unistd-safer.
34357         * m4/unistd-safer.m4: New file.
34358
34359         Module fnmatch.
34360         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
34361         declaration.
34362         (gl_PREREQ_FNMATCH_EXTRA): New macro.
34363         (gl_FUNC_FNMATCH_POSIX): New macro.
34364         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
34365         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
34366         simply fnmatch.
34367
34368         Module exclude.
34369         * m4/exclude.m4: New file.
34370
34371         Module human.
34372         * m4/human.m4: New file.
34373
34374         Module acl.
34375         * m4/acl.m4: Nop.
34376
34377         Module backupfile.
34378         * m4/backupfile.m4: New file.
34379         * m4/d-ino.m4: Indentation.
34380
34381         Module fsusage.
34382         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
34383         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
34384         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
34385
34386         Module dirfd.
34387         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
34388         requirements.
34389
34390         Module euidaccess.
34391         * m4/euidaccess.m4: New file.
34392
34393         Module file-type.
34394         * m4/file-type.m4: New file.
34395
34396         Module fileblocks.
34397         * m4/fileblocks.m4: New file.
34398
34399         Module filemode.
34400         * m4/filemode.m4: New file.
34401
34402         Module isdir.
34403         * m4/isdir.m4: New file.
34404
34405         Module lchown.
34406         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
34407         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
34408
34409         Module makepath.
34410         * m4/makepath.m4: New file.
34411
34412         Module modechange.
34413         * m4/modechange.m4: New file.
34414
34415         Module mountlist.
34416         * m4/mountlist.m4: New file.
34417         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
34418         Indentation.
34419
34420         Module path-concat.
34421         * m4/path-concat.m4: New file.
34422
34423         Module pathmax.
34424         * m4/pathmax.m4: New file.
34425
34426         Module same.
34427         * m4/same.m4: New file.
34428
34429         Module save-cwd.
34430         * m4/save-cwd.m4: New file.
34431
34432         Module savedir.
34433         * m4/savedir.m4: New file.
34434
34435         Module xgetcwd.
34436         * m4/xgetcwd.m4: New file.
34437         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
34438
34439         Module xreadlink.
34440         * m4/xreadlink.m4: New file.
34441
34442         Module safe-read.
34443         * m4/safe-read.m4: New file.
34444
34445         Module safe-write.
34446         * m4/safe-write.m4: New file.
34447
34448         Module closeout.
34449         * m4/closeout.m4: New file.
34450
34451         Module stdio-safer.
34452         * m4/stdio-safer.m4: New file.
34453
34454         Module getpass.
34455         * m4/getpass.m4: New file.
34456
34457         Module getugroups.
34458         * m4/getugroups.m4: New file.
34459
34460         Module group-member.
34461         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
34462         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
34463
34464         Module idcache.
34465         * m4/idcache.m4: New file.
34466
34467         Module userspec.
34468         * m4/userspec.m4: New file.
34469
34470         Module gettime.
34471         * m4/clock_time.m4: New file.
34472         * m4/gettime.m4: New file.
34473
34474         Module settime.
34475         * m4/settime.m4: New file.
34476
34477         Module posixtm.
34478         * m4/posixtm.m4: New file.
34479
34480         Module gethostname.
34481         * m4/gethostname.m4: New file.
34482
34483         Module canon-host.
34484         * m4/canon-host.m4: New file.
34485
34486         Module gettext.
34487         * m4/codeset.m4: New file, from gettext-0.11.5.
34488         * m4/gettext.m4: New file, from gettext-0.11.5.
34489         * m4/glibc21.m4: New file, from gettext-0.11.5.
34490         * m4/iconv.m4: New file, from gettext-0.11.5.
34491         * m4/intdiv0.m4: New file, from gettext-0.11.5.
34492         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
34493         * m4/inttypes.m4: New file, from gettext-0.11.5.
34494         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
34495         * m4/isc-posix.m4: New file, from gettext-0.11.5.
34496         * m4/lcmessage.m4: New file, from gettext-0.11.5.
34497         * m4/lib-ld.m4: New file, from gettext-0.11.5.
34498         * m4/lib-link.m4: New file, from gettext-0.11.5.
34499         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
34500         * m4/progtest.m4: New file, from gettext-0.11.5.
34501         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
34502         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
34503         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
34504
34505         Module localcharset.
34506         * m4/localcharset.m4: New file.
34507
34508         Module hard-locale.
34509         * m4/hard-locale.m4: New file.
34510
34511         Module mbswidth.
34512         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
34513         onceonly macros.
34514         * m4/mbrtowc.m4: Add comment.
34515
34516         Module memcasecmp.
34517         * m4/memcasecmp.m4: New file.
34518
34519         Module memcoll.
34520         * m4/memcoll.m4: New file.
34521
34522         Module unicodeio.
34523         * m4/unicodeio.m4: New file.
34524
34525         Module rpmatch.
34526         * m4/rpmatch.m4: New file.
34527
34528         Module yesno.
34529         * m4/yesno.m4: New file.
34530
34531         Module exitfail.
34532         * m4/exitfail.m4: New file.
34533
34534         Module c-stack.
34535         * m4/c-stack.m4 (gl_C_STACK): New macro.
34536         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
34537
34538         Module error.
34539         * m4/error.m4 (gl_ERROR): New macro.
34540         (jm_PREREQ_ERROR): Use onceonly macros.
34541
34542         Module fatal.
34543         * m4/fatal.m4: New file.
34544
34545         Module getloadavg.
34546         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
34547         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
34548
34549         Module getpagesize.
34550         * m4/getpagesize.m4: New file.
34551
34552         Module getusershell.
34553         * m4/getusershell.m4: New file.
34554
34555         Module physmem.
34556         * m4/physmem.m4: New file.
34557
34558         Module posixver.
34559         * m4/posixver.m4: New file.
34560
34561         Module quotearg.
34562         * m4/quotearg.m4: New file.
34563
34564         Module quote.
34565         * m4/quote.m4: New file.
34566
34567         Module readutmp.
34568         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
34569
34570         Module sig2str.
34571         * m4/sig2str.m4: New file.
34572
34573         Other.
34574         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
34575         ulonglong.m4.
34576         * m4/intmax_t.m4: New file.
34577         * m4/d-type.m4: Indentation.
34578         * m4/jm-macros.m4: Update.
34579         * m4/prereq.m4 (jm_PREREQ): Update.
34580         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
34581         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
34582         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
34583         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
34584         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
34585         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
34586         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
34587         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
34588         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
34589         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
34590         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
34591         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
34592         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
34593         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
34594         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
34595         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
34596         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
34597         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
34598         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
34599
34600 2002-12-24  Bruno Haible  <bruno@clisp.org>
34601
34602         * MODULES.txt: Update according to m4/ changes.
34603
34604         Module gettext.
34605         * config.rpath: New file, from gettext-0.11.5.
34606
34607         * modules/*: New module descriptions.
34608         * gnulib-tool: New file.
34609         * MODULES.html.sh: New file.
34610
34611 2002-12-21  Karl Berry  <karl@gnu.org>
34612
34613         * doc/fdl.texi: update to version 1.2.
34614
34615 2002-12-19  Karl Berry  <karl@gnu.org>
34616
34617         * config/config.guess: update from prep.
34618
34619 2002-12-18  Bruno Haible  <bruno@clisp.org>
34620
34621         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
34622         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
34623
34624 2002-12-17  Bruno Haible  <bruno@clisp.org>
34625
34626         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
34627         stdlib.h, string.h.
34628
34629 2002-12-17  Bruno Haible  <bruno@clisp.org>
34630
34631         * lib/canon-host.c (strdup): Remove unused declaration.
34632
34633         * lib/fsusage.c: Include full_read.h.
34634         (get_fs_usage): Use full_read instead of safe_read.
34635
34636         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
34637
34638 2002-12-12  Karl Berry  <karl@gnu.org>
34639
34640         * config/config.guess: update from prep.
34641
34642 2002-12-11  Bruno Haible  <bruno@clisp.org>
34643
34644         * m4/setenv.m4: New file, from gettext-0.11.5.
34645
34646 2002-12-11  Bruno Haible  <bruno@clisp.org>
34647
34648         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
34649         not unsetenv().
34650         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
34651         modifications:
34652
34653         2002-12-11  Bruno Haible  <bruno@clisp.org>
34654
34655                 * setenv.c (alloca): Fall back to malloc.
34656                 (freea): New macro.
34657                 (setenv): Use freea() to free memory allocated with alloca().
34658
34659         2002-11-13  Bruno Haible  <bruno@clisp.org>
34660
34661                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
34662                 function declarations.
34663                 * unsetenv.c (unsetenv): Likewise.
34664
34665         2002-03-04  Bruno Haible  <bruno@clisp.org>
34666
34667                 Portability to AIX 4.3.3.
34668                 * unsetenv.c: New file, extracted from setenv.c.
34669                 * setenv.c: Move the unsetenv() function to unsetenv.c.
34670
34671         2001-12-20  Bruno Haible  <bruno@clisp.org>
34672
34673                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
34674                 use malloc instead. For SunOS 4.
34675
34676         2001-12-11  Bruno Haible  <bruno@clisp.org>
34677
34678                 * setenv.c: Declare alloca.
34679                 (compar_fn_t): New typedef.
34680                 (KNOWN_VALUE, STORE_VALUE): Use it.
34681
34682         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
34683         setenv.h.
34684
34685 2002-12-10  Paul Eggert  <eggert@twinsun.com>
34686
34687         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
34688         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
34689         Choose values that are less likely to collide with system fnmatch
34690         options.
34691         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
34692         defined (e.g., a pure POSIX system).
34693         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
34694         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
34695
34696 2002-12-06  Paul Eggert  <eggert@twinsun.com>
34697
34698         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
34699         a pain in practice to deal with generated m4 files.  This change
34700         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
34701
34702         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
34703         and jm-glibc-io.m4, as they are no longer a special case.
34704         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
34705         kludge and the auto-generation stuff.  Check only whether the
34706         functions are declared, not whether they exist, since older hosts
34707         that don't declare the functions can't use the optimization anyway.
34708
34709 2002-12-06  Jim Meyering  <jim@meyering.net>
34710
34711         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
34712
34713         Merge in changes from libc's misc/error.c, in preparation
34714         for the merge of gnulib's changes back into libc.
34715
34716         * lib/error.c (_): Define only if not already defined.
34717         Move definition to follow all #include directives.
34718         Include unlocked-io.h only if !_LIBC.
34719         [_LIBC]: Include <libio/libioP.h>.
34720         [USE_IN_LIBIO]: Include <libio/iolibio.h>
34721         (fflush): Tweak definition to use INTUSE.
34722         (putc): Define.
34723
34724 2002-12-05  Paul Eggert  <eggert@twinsun.com>
34725
34726         * lib/alloca.c [defined emacs]: Include "lisp.h".
34727         (xalloc_die) [defined emacs]: New macro.
34728         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
34729         [! defined emacs]: Include <xalloc.h>.
34730         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
34731         (pointer): Typedef to POINTER_TYPE *.
34732         (malloc): Remove decl; we now always use xmalloc.
34733         (alloca): Use old-style definition, since Emacs needs this.
34734         Check for arithmetic overflow when computing combined size.
34735
34736 2002-12-04  Paul Eggert  <eggert@twinsun.com>
34737
34738         Do not generate unlocked-io.h automatically, since it's easier to
34739         maintain it by hand.
34740
34741         * lib/unlocked-io.h: New file, from GNU diffutils,
34742         but with proper copyright notice and attribution.
34743         * lib/gen-uio: Remove.
34744         * lib/Makefile.am: Add copyright notice.
34745         (libfetish_a_SOURCES): Add unlocked-io.h.
34746         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
34747         (DISTCLEANFILES, io_functions): Remove macros.
34748         (EXTRA_DIST): Remove gen_uio.
34749         (unlocked-io.h): Remove rule.
34750
34751 2002-12-04  Jim Meyering  <jim@meyering.net>
34752
34753         Reflect the fact that stat.c and lstat.c are no longer generated.
34754         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
34755         (DISTCLEANFILES): Likewise.
34756         (EXTRA_DIST): Likewise.
34757         (all_local): Don't depend on stat.c or lstat.c.
34758         (stat.c, lstat.c): Remove rules.
34759         (EXTRA_DIST): Remove xstat.in.
34760
34761         * lib/xstat.in: Remove file.  Contents moved into stat.c.
34762         * lib/stat.c: New file.  Contents mostly from xstat.in.
34763         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
34764         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
34765
34766         * lib/safe-read.c: Rework so that it may serve to define safe_write,
34767         too.
34768         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
34769
34770 2002-12-03  Jim Meyering  <jim@meyering.net>
34771
34772         * lib/safe-read.c, safe-write.c: Change variable names and comments,
34773         but not semantics, to minimize the differences between these two files.
34774         (safe_read): Change comment to mention SAFE_READ_ERROR.
34775
34776         * lib/safe-read.c (IS_EINTR): Define.
34777         (safe_read): Use IS_EINTR in place of in-function cpp directives.
34778
34779 2002-12-02  Jim Meyering  <jim@meyering.net>
34780
34781         * lib/safe-read.c (EINTR): Define.
34782         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
34783         (INT_MAX): Provide fallback.
34784         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
34785
34786         * lib/safe-read.h (SAFE_READ_ERROR): Define.
34787
34788 2002-12-02  Bruno Haible  <bruno@clisp.org>
34789
34790         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
34791         Define, taken from safe-read.c.
34792         (INT_MAX): Provide fallback.
34793         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
34794         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
34795
34796         * lib/safe-read.c (EINTR): Remove definition.
34797         (safe_read): Don't use EINTR if it is absent.
34798
34799 2002-12-01  Jim Meyering  <jim@meyering.net>
34800
34801         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
34802         zero.
34803         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
34804
34805 2002-11-27  Paul Eggert  <eggert@twinsun.com>
34806
34807         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
34808         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
34809         with `if (! (value < limit)) abort ();', for readability.
34810
34811 2002-11-26  Karl Berry  <karl@gnu.org>
34812
34813         * lib/strdup.c: copy from libc again, with jim's ok.
34814         * lib/.cppi-disable: re-add strdup.c
34815
34816 2002-11-25  Karl Berry  <karl@gnu.org>
34817
34818         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
34819         instead of "strtol.c".
34820
34821 2002-11-25  Karl Berry  <karl@gnu.org>
34822
34823         * config/install-sh: update from automake for variable quoting, $0 in
34824         error msgs, etc.
34825
34826         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
34827         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
34828         entry.
34829
34830 2002-11-25  Jim Meyering  <jim@meyering.net>
34831
34832         * lib/mktime.c: Sync from libc, now that it has the latest fix.
34833
34834 2002-11-24  Karl Berry  <karl@gnu.org>
34835
34836         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
34837         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
34838
34839 2002-11-24  Jim Meyering  <jim@meyering.net>
34840
34841         Update from coreutils:
34842
34843         * lib/mktime.c: Merge in changes from libc.
34844
34845         Avoid a link-time failure on some Linux systems.
34846         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
34847         (otherwise).
34848         (__mon_yday): Declare with the STATIC attribute.
34849         (__mktime_internal): Likewise.
34850         Based on a report from Greg Schafer.
34851
34852 2002-11-23  Jim Meyering  <jim@meyering.net>
34853
34854         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
34855         Use `unsigned', not `int', as type of index.
34856
34857         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
34858
34859         * lib/fsusage.c: Remove unneeded parentheses around operands of
34860         `defined'.
34861
34862 2002-11-22  Paul Eggert  <eggert@twinsun.com>
34863
34864         * lib/quotearg.h: Allow multiple inclusion by surrounding with
34865         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
34866         so that we can be included first.
34867         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
34868         * lib/quotearg.c: Include quotearg.h immediately after config.h.
34869         No need to include stddef.h or sys/types.h any more.
34870         Surround local include files with "", not "<>".
34871         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
34872         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
34873         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
34874         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
34875         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
34876         (ISPRINT): Remove; no longer needed now that we assume C89.
34877
34878         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
34879         Preserve errno.
34880
34881         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
34882         quotearg_char): Use SIZE_MAX rather than
34883         (size_t) -1 when we are talking about "infinity".
34884
34885         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
34886
34887 2002-11-22  Paul Eggert  <eggert@twinsun.com>
34888
34889         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
34890         hint that one should use `if (! x) abort ();' rather than `assert
34891         (x);', and anyway it's one less thing to worry about configuring.
34892         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
34893         hash_rehash, hash_insert): Use abort rather than assert.
34894
34895 2002-11-22  Bruno Haible  <bruno@clisp.org>
34896
34897         * lib/safe-read.h: Assume C89. Add comments.
34898         (safe_read): Change return type to size_t.
34899         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
34900         byte counts > SSIZE_MAX correctly.
34901         * lib/safe-write.h: New file.
34902         * lib/safe-write.c: New file.
34903         * lib/full-read.h: New file.
34904         * lib/full-read.c: New file.
34905         * lib/full-write.h: Assume C89. Add comments.
34906         * lib/full-write.c: Include safe-write.h.
34907         (full_write): Rewritten to use safe_write.
34908         Suggested by Jim Meyering and Paul Eggert.
34909
34910 2002-11-21  Jim Meyering  <jim@meyering.net>
34911
34912         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
34913
34914         Merge in changes from the coreutils.
34915
34916         2002-09-25  Paul Eggert  <eggert@twinsun.com>
34917         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
34918         <stdint.h>.
34919         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
34920         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
34921         int.  Work more efficiently if X is the same width as uintmax_t.
34922         Do not compare X to -1, to avoid bogus compiler warning.
34923         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
34924         Don't assume that f_frsize and f_bsize are the same type.
34925
34926         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
34927         warning on FreeBSD.
34928
34929         * lib/makepath.c (make_path): Restore umask *before* creating the final
34930         component.
34931         (make_path): Minor reformatting.
34932
34933         * lib/xmalloc.c: Adjust to work with new autoconf macros,
34934         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
34935         HAVE_MALLOC/HAVE_REALLOC.
34936
34937         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
34938         dummy ones.  At least on GNU/Linux systems, `auto' means something
34939         else.
34940         From Michael Stone.
34941
34942 2002-11-21  Bruno Haible  <bruno@clisp.org>
34943
34944         Remove case insensitive option matching.
34945         * lib/argmatch.h (argcasematch): Remove declaration.
34946         (ARGCASEMATCH): Remove macro.
34947         (__xargmatch_internal): Remove case_sensitive argument.
34948         (XARGMATCH): Update.
34949         (XARGCASEMATCH): Remove macro.
34950         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
34951         case_sensitive argument.
34952         (argcasematch): Remove function.
34953         (__xargmatch_internal): Remove case_sensitive argument.
34954         (main): Use XARGMATCH instead of XARGCASEMATCH.
34955
34956         * lib/xmalloc.c: Change compile-time error message. Add comment about
34957         required autoconf version.
34958
34959 2002-11-20  Paul Eggert  <eggert@twinsun.com>
34960
34961         Merge argmatch cleanups from Bison.  Assume C89.
34962
34963         * lib/argmatch.c: Include config.h here, not in argmatch.h.
34964         Include stdlib.h, for EXIT_FAILURE.
34965         Always include <string.h>, since we assume C89.
34966         (EXIT_FAILURE): Remove pre-C89 bug workaround.
34967         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
34968         Include <stddef.h> instead, since it's all we need for size_t.
34969         (PARAMS): Remove.  All uses removed.
34970         (ARRAY_CARDINALITY): Do not bother to #undef.
34971         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
34972         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
34973         Remove unnecessary parentheses.
34974         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
34975         Insert necessary parentheses.
34976         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
34977         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
34978
34979 2002-11-19  Bruno Haible  <bruno@clisp.org>
34980
34981         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
34982         * lib/mbswidth.h: Include <stddef.h>, for size_t.
34983
34984         * lib/mbswidth.h (PARAMS): Remove macro.
34985         (mbswidth, mbsnwidth): Use ANSI C function declarations.
34986         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
34987
34988         * lib/gcd.h (PARAMS): Remove macro.
34989         (gcd): Use ANSI C function declarations.
34990         * lib/gcd.c (gcd): Likewise.
34991
34992 2002-11-15  Bruno Haible  <bruno@clisp.org>
34993
34994         * lib/strcspn.c: Include <stddef.h>.
34995         (strcspn): Use ANSI C function declaration. Change return type to
34996         size_t. Use NULL.
34997         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
34998         (strpbrk): Use NULL.
34999         * lib/strpbrk.h (PARAMS): Remove macro.
35000         (strpbrk): Use ANSI C function declaration.
35001         * lib/strstr.c: Don't include <sys/types.h>.
35002         * lib/strstr.h (PARAMS): Remove macro.
35003         (strstr): Use ANSI C function declarations.
35004
35005 2002-11-14  Karl Berry  <karl@gnu.org>
35006
35007         * config/mkinstalldirs: `do' on separate line, instead of
35008         `for var; do'.
35009
35010 2002-11-06  Bruno Haible  <bruno@clisp.org>
35011
35012         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
35013         * lib/gcd.c (gcd): Likewise.
35014
35015 2002-11-05  Bruno Haible  <bruno@clisp.org>
35016
35017         * lib/gcd.h: New file, from gettext-0.11.5.
35018         * lib/gcd.c: New file, from gettext-0.11.5.
35019
35020 2002-11-05  Bruno Haible  <bruno@clisp.org>
35021
35022         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
35023         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
35024         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
35025         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
35026
35027         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
35028         <libintl.h>.
35029         * lib/makepath.c: Include gettext.h instead of <locale.h> and
35030         <libintl.h>.
35031
35032         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
35033         * lib/human.c: Include gettext.h instead of <libintl.h>.
35034         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
35035         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
35036         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
35037         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
35038         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
35039         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
35040         (textdomain): Remove definition.
35041         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
35042
35043         * lib/long-options.c: Remove include of <libintl.h> and definition of
35044         _.
35045         * lib/same.c: Remove include of <libintl.h> and definition of _.
35046
35047 2002-11-04  Owen Taylor  <otaylor@redhat.com>
35048
35049         * lib/config.charset: A few additions for Solaris.
35050
35051 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
35052
35053         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
35054         * lib/localcharset.c (locale_charset): Declare as extern "C".
35055
35056 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
35057
35058         * lib/config.charset: msdos in uk_UA uses CP1125.
35059
35060 2002-11-04  Bruno Haible  <bruno@clisp.org>
35061
35062         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
35063         * lib/strcase.h: New file, from GNU gettext-0.11.5.
35064         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
35065         * lib/strstr.h: New file, from GNU gettext-0.11.5.
35066         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
35067
35068 2002-11-04  Bruno Haible  <bruno@clisp.org>
35069
35070         * lib/localcharset.c (locale_charset): Don't return an empty string.
35071
35072 2002-11-04  Bruno Haible  <bruno@clisp.org>
35073
35074         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
35075         aliases.
35076
35077 2002-11-04  Bruno Haible  <bruno@clisp.org>
35078
35079         * lib/config.charset: Update for newest glibc. Add canonical names
35080         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
35081
35082 2002-11-04  Bruno Haible  <bruno@clisp.org>
35083
35084         * lib/config.charset: Add support for NetBSD.
35085
35086 2002-11-04  Bruno Haible  <bruno@clisp.org>
35087
35088         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
35089
35090 2002-11-01  Bruno Haible  <bruno@clisp.org>
35091
35092         * configure.in: Add AC_CONFIG_AUX_DIR call.
35093         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
35094         test/Makefile.
35095         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
35096
35097 2002-09-28  Karl Berry  <karl@gnu.org>
35098
35099         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
35100         installed automake until the next release, since changes have been
35101         made.
35102
35103 2002-09-25  Karl Berry  <karl@gnu.org>
35104
35105         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
35106         * lib/getopt*: copy from libc/posix.
35107         * lib/gettext.h: copy from gettext.
35108         * lib/.cppi-disable: add strdup.c, gettext.h.
35109
35110 2002-09-25  Karl Berry  <karl@gnu.org>
35111
35112         * config/srclist.txt: enable gettext.h check.
35113         * config/config.{guess,sub}: update from prep.
35114         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
35115                 from automake 1.6.3.
35116         See srclist*.
35117
35118 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
35119
35120         * regex.c (PATFETCH): Remove the translating fetch.
35121         (PATFETCH_RAW): Rename to PATFETCH.
35122         (set_image_of_range): New fun.
35123         (SET_RANGE_TABLE_WORK_AREA): Use it.
35124         (regex_compile): Don't translate the pattern chars so eagerly.
35125         Only do it when inserting an `exactn' bytecode or when handling
35126         a char-range.
35127         (mutually_exclusive_p): Avoid empty statement.
35128
35129 2002-07-06  Jim Meyering  <meyering@lucent.com>
35130
35131         * m4/README: Don't mention Makefile.am.in.
35132         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
35133
35134 2002-07-01  Jim Meyering  <meyering@lucent.com>
35135
35136         * lib/c-stack.c: Include sys/time.h.
35137         From Volker Borchert.
35138
35139 2002-06-26  Paul Eggert  <eggert@twinsun.com>
35140
35141         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
35142
35143 2002-06-26  Paul Eggert  <eggert@twinsun.com>
35144
35145         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
35146         New macro.  Use it uniformly instead of
35147         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
35148         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
35149         reported by Vin Shelton.
35150
35151 2002-06-22  Paul Eggert  <eggert@twinsun.com>
35152
35153         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
35154         Do not assume SA_SIGINFO behavior.
35155         Bug reported by Jim Meyering on NetBSD 1.5.2.
35156
35157 2002-06-22  Jim Meyering  <meyering@lucent.com>
35158
35159         * m4/c-stack.m4: New file, from diffutils-2.8.2.
35160         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
35161
35162         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
35163         now that configure.ac uses AC_GNU_SOURCE.
35164         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
35165         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
35166
35167         Update to latest tools.  Suggestions from Paul Eggert.
35168         * m4/stdbool.m4: New file, from diffutils-2.8.2.
35169         * m4/gnu-source.m4: Update from diffutils-2.8.2.
35170         * m4/fnmatch.m4: Likewise.
35171         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
35172         to AC_HEADER_STDBOOL
35173
35174 2002-06-22  Jim Meyering  <meyering@lucent.com>
35175
35176         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
35177         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
35178
35179 2002-06-22  Jim Meyering  <meyering@lucent.com>
35180
35181         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
35182
35183         * lib/exitfail.c, exitfail.h: Likewise.
35184         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
35185
35186         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
35187         of fnmatch.h.
35188         (EXTRA_DIST): Add fnmatch_loop.c.
35189         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
35190
35191         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
35192         * lib/fnmatch.c: Update from diffutils-2.8.2.
35193         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
35194         * lib/fnmatch.h: Remove file.
35195
35196 2002-06-21  Jim Meyering  <meyering@lucent.com>
35197
35198         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
35199         * m4/mbrtowc.m4: Likewise.
35200
35201         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
35202         * m4/mbswidth.m4: Reflect name change:
35203         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
35204         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
35205
35206         * m4/lib-link.m4: Update from gettext-0.11.2.
35207         * m4/gettext.m4: Likewise.
35208
35209         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
35210         From Alfred M. Szmidt.
35211
35212 2002-06-18  Paul Eggert  <eggert@twinsun.com>
35213
35214         * lib/file-type.h: Report an error if neither S_ISREG nor
35215         S_IFREG is defined, instead of using a test specific to glibc
35216         2.2.  This should be safe, since POSIX requires S_ISREG and
35217         Unix Version 7 had S_IFREG.  We don't need to check for
35218         <sys/types.h> since we don't use any symbols that it defines.
35219
35220 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
35221
35222         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
35223         $@-t, so that each temporary file name is unique and valid in the first
35224         8 characters, for operation under DOS.
35225
35226 2002-06-15  Paul Eggert  <eggert@twinsun.com>
35227
35228         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
35229
35230 2002-06-15  Jim Meyering  <meyering@lucent.com>
35231
35232         Work even with DJGPP 2.03, which lacks support for symlinks.
35233         From Richard Dawe.
35234         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
35235         is defined.
35236         * lib/lchown.c (S_ISLNK): Likewise.
35237
35238 2002-06-15  Jim Meyering  <meyering@lucent.com>
35239
35240         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
35241         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
35242         have been included before this file.
35243
35244 2002-06-14  Jim Meyering  <meyering@lucent.com>
35245
35246         * lib/file-type.h: Use the version from diffutils-2.8.2.
35247         * lib/file-type.c: Likewise.
35248
35249 2002-06-07  Jim Meyering  <meyering@lucent.com>
35250
35251         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
35252         They're needed at least for NetBSD 1.5.2.
35253         ($statxfs_includes): Include those same headers.
35254         ($statxfs_includes): Include sys/vfs.h if available.
35255         ($statxfs_includes): Likewise for sys/statvfs.h.
35256         Check for the following members in both structs statfs and statvfs:
35257         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
35258
35259 2002-06-01  Jim Meyering  <meyering@lucent.com>
35260
35261         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
35262         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
35263
35264 2002-05-28  Jim Meyering  <meyering@lucent.com>
35265
35266         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
35267         Reported by Volker Borchert.
35268
35269 2002-05-27  Jim Meyering  <meyering@lucent.com>
35270
35271         Fix a problem seen only on nonconforming systems whereby ls.c's
35272         use of localtime, and then of gettimeofday would cause trouble:
35273         the localtime call used to initialize rpl_gettimeofday's save
35274         mechanism would clobber ls's current local time information so
35275         that in any long listing the first file would always be listed
35276         with date 1970-01-01.  Analysis by Volker Borchert.
35277
35278         * lib/gettimeofday.c (localtime): Undefine.
35279         (rpl_localtime): New function.
35280
35281 2002-05-27  Jim Meyering  <meyering@lucent.com>
35282
35283         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
35284         localtime.
35285
35286         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
35287         use the replacement function; it wouldn't resolve at link time.
35288         Reported by Volker Borchert.
35289
35290 2002-05-22  Jim Meyering  <meyering@lucent.com>
35291
35292         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
35293         file-type.h.
35294         * lib/file-type.h: New file.
35295         * lib/file-type.c (file_type): New file/function.  Extracted from
35296         diffutils.
35297
35298 2002-04-30  Jim Meyering  <meyering@lucent.com>
35299
35300         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
35301
35302 2002-04-29  Paul Eggert  <eggert@twinsun.com>
35303
35304         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
35305
35306 2002-04-29  Paul Eggert  <eggert@twinsun.com>
35307
35308         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
35309         Do not check for alloca.h (no longer used) or stdbool.h (was never
35310         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
35311
35312 2002-04-29  Paul Eggert  <eggert@twinsun.com>
35313
35314         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
35315
35316 2002-04-29  Jim Meyering  <meyering@lucent.com>
35317
35318         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
35319         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
35320         Use AC_FUNC_STRNLEN here instead.
35321
35322         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
35323         With autoconf-2.53a, it's part of AC_PROG_CC.
35324
35325 2002-04-28  Paul Eggert  <eggert@twinsun.com>
35326
35327         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
35328         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
35329
35330 2002-04-28  Paul Eggert  <eggert@twinsun.com>
35331
35332         * lib/sig2str.h, lib/sig2str.c: New files.
35333         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
35334
35335 2002-04-28  Paul Eggert  <eggert@twinsun.com>
35336
35337         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
35338         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
35339         of 127, since 64 is the largest conceivable number for ancient
35340         nonstandard hosts.
35341         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
35342
35343 2002-04-28  Jim Meyering  <meyering@lucent.com>
35344
35345         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
35346
35347 2002-04-24  Jim Meyering  <meyering@lucent.com>
35348
35349         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
35350         (jm_PREREQ): Use it.
35351
35352         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
35353         mach/mach.h fcntl.h.
35354         Check for this function: setlocale.
35355
35356 2002-04-24  Jim Meyering  <meyering@lucent.com>
35357
35358         * lib/gettext.h: New file, from Gettext.
35359         * lib/Makefile.am (INCLUDES): Remove -I../intl.
35360         (libfetish_a_SOURCES): Add gettext.h.
35361
35362 2002-04-16  Jim Meyering  <meyering@lucent.com>
35363
35364         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
35365         ut_pid, ut_id, ut_exit.
35366
35367 2002-04-16  Jim Meyering  <meyering@lucent.com>
35368
35369         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
35370         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
35371         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
35372
35373 2002-04-12  Jim Meyering  <meyering@lucent.com>
35374
35375         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
35376         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
35377         existence of the getmntinfo function.  Needed for Darwin 5.3.
35378
35379         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
35380         This is necessary at least on Darwin 5.3.
35381
35382         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
35383         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
35384         strnlen.o in the library, and that makes some versions of ranlib
35385         object.
35386
35387 2002-04-12  Jim Meyering  <meyering@lucent.com>
35388
35389         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
35390
35391 2002-04-09  Jim Meyering  <meyering@lucent.com>
35392
35393         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
35394         to be more precise.  Rather than saying we're checking whether the
35395         function `works', say what we're testing.
35396         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
35397         Reported by Bruno Haible.
35398
35399 2002-03-10  Jim Meyering  <meyering@lucent.com>
35400
35401         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
35402         Suggestion from Santiago Vila.
35403
35404 2002-03-08  Jim Meyering  <meyering@lucent.com>
35405
35406         * lib/rename.c: Mention that this wrapper is needed also on
35407         mips-dec-ultrix4.4 systems.
35408
35409 2002-03-02  Jim Meyering  <meyering@lucent.com>
35410
35411         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
35412         not HAVE_CLOCK_SETTIME.
35413
35414 2002-02-27  Paul Eggert  <eggert@twinsun.com>
35415
35416         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
35417         Check for clock_settime.
35418
35419 2002-02-27  Paul Eggert  <eggert@twinsun.com>
35420
35421         * lib/nanosleep.h: Rename to....
35422         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
35423
35424         * lib/gettime.c: New file.
35425         * lib/settime.c: New file.
35426         * lib/stime.c: Remove.
35427
35428         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
35429         timespec.h.  Remove nanosleep.h.
35430
35431 2002-02-25  Paul Eggert  <eggert@twinsun.com>
35432
35433         * m4/acl.m4: New file.
35434         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
35435         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
35436
35437 2002-02-25  Paul Eggert  <eggert@twinsun.com>
35438
35439         * lib/acl.c, lib/acl.h: New files.
35440         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
35441
35442 2002-02-24  Jim Meyering  <meyering@lucent.com>
35443
35444         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
35445         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
35446         cause trouble.  Reported by Nelson Beebe.
35447
35448 2002-02-23  Paul Eggert  <eggert@twinsun.com>
35449
35450         * lib/path-concat.c (xpath_concat): Reorder code to pacify
35451         compilers that don't know that xalloc_die never returns.
35452
35453 2002-02-20  Jim Meyering  <meyering@lucent.com>
35454
35455         * lib/getdate.c: Regenerate using bison-1.33.
35456
35457 2002-02-17  Jim Meyering  <meyering@lucent.com>
35458
35459         * config/config.guess (main): Don't use `head -1'; it's no longer
35460         portable. Use `sed 1q' instead.
35461
35462 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
35463
35464         * m4/codeset.m4: Upgrade to gettext-0.11.
35465         * m4/gettext.m4: Upgrade to gettext-0.11.
35466         * m4/glibc21.m4: Upgrade to gettext-0.11.
35467         * m4/iconv.m4: Upgrade to gettext-0.11.
35468         * m4/isc-posix.m4: Upgrade to gettext-0.11.
35469         * m4/lcmessage.m4: Upgrade to gettext-0.11.
35470         * m4/lib-ld.m4: New file, from gettext-0.11.
35471         * m4/lib-link.m4: New file, from gettext-0.11.
35472         * m4/lib-prefix.m4: New file, from gettext-0.11.
35473         * m4/progtest.m4: Upgrade to gettext-0.11.
35474
35475 2002-02-15  Paul Eggert  <eggert@twinsun.com>
35476
35477         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
35478         (jm_PREREQ): Use it.
35479
35480 2002-02-15  Paul Eggert  <eggert@twinsun.com>
35481
35482         * lib/posixver.c, lib/posixver.h: New files.
35483         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
35484
35485 2002-02-02  Paul Eggert  <eggert@twinsun.com>
35486             Bruno Haible  <bruno@clisp.org>
35487
35488         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
35489         (fwrite_success_callback): New declaration.
35490         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
35491         print_unicode_char. Call failure callback instead of error.
35492         (fwrite_success_callback): New function.
35493         (exit_failure_callback): New function.
35494         (fallback_failure_callback): New function.
35495         (print_unicode_char): Call unicode_to_mb.
35496
35497 2002-01-26  Jim Meyering  <meyering@lucent.com>
35498
35499         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
35500         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
35501
35502 2002-01-26  Jim Meyering  <meyering@lucent.com>
35503
35504         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
35505
35506 2002-01-22  Paul Eggert  <eggert@twinsun.com>
35507
35508         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
35509
35510 2002-01-22  Jim Meyering  <meyering@lucent.com>
35511
35512         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
35513         Otherwise, some versions of automake would omit the rule that makes
35514         Makefile from Makefile.in.
35515
35516 2002-01-21  Paul Eggert  <eggert@twinsun.com>
35517
35518         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
35519         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
35520         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
35521         (memcoll): Set errno to zero if there is no error.
35522
35523         * lib/quotearg.c (quotearg_buffer_restyled):
35524         Fix bug with quoting buffers containing NUL when backslashing escapes.
35525         This bug was exposed by the other changes in this patch.
35526         (quotearg_n_options): New arg ARGSIZE.
35527         All callers changed.
35528         (quoting_options_from_style): New function.
35529         (quotearg_n_style): Use it.
35530         (quotearg_n_style_mem): New function.
35531
35532         * lib/quotearg.h (quotearg_n_style_mem): New function.
35533
35534 2002-01-19  Jim Meyering  <meyering@lucent.com>
35535
35536         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
35537         Remove useless quotes: DF_PROG="df".
35538         * m4/strnlen.m4: New file.
35539
35540 2002-01-16  Paul Eggert  <eggert@twinsun.com>
35541
35542         * lib/backupfile.c (ISDIGIT): Comment fix.
35543         * lib/getdate.y (ISDIGIT): Likewise.
35544         * lib/posixtm.c (ISDIGIT, year): Likewise.
35545         * lib/strverscmp.c (ISDIGIT): Likewise.
35546         * lib/userspec.c (ISDIGIT): Likewise.
35547
35548 2002-01-16  Jim Meyering  <meyering@lucent.com>
35549
35550         * lib/getdate.y: Add three semicolons, each just before a closing
35551         brace. Bison (as of version 1.31) no longer papers over that mistake.
35552
35553 2002-01-05  Jim Meyering  <meyering@lucent.com>
35554
35555         * lib/version-etc.c (version_etc_copyright): Update copyright year.
35556
35557 2001-12-19  Paul Eggert  <eggert@twinsun.com>
35558
35559         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
35560         not silently exit merely because the output buffer happens to
35561         have nothing pending.
35562
35563 2001-12-18  Paul Eggert  <eggert@twinsun.com>
35564
35565         See the big note in ../ChangeLog.
35566         * lib/human.c (suffixes): Prefer K to k for 1024.
35567         (generate_suffix_backwards): New function.
35568         (human_readable_inexact): Use it.
35569         * lib/xstrtol.c (__xstrtol): If there is no number but there
35570         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
35571         Accept 'K' as well as 'k'.
35572
35573 2001-12-15  Jim Meyering  <meyering@lucent.com>
35574
35575         * lib/regex.h (__restrict_arr): Update from libc.
35576
35577         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
35578         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
35579         (STREQ): Define.
35580
35581 2001-12-14  Jim Meyering  <meyering@lucent.com>
35582
35583         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
35584         Suggestion from Bruno Haible.
35585
35586 2001-12-10  Jim Meyering  <meyering@lucent.com>
35587
35588         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
35589         xrealloc, Instead, include "xalloc.h".
35590         (initbuffer): Don't cast xmalloc return value to char*.
35591         (readline): Reword comment.
35592         Don't cast xrealloc return value to char*
35593         Return NULL, not 0.
35594
35595 2001-12-09  Jim Meyering  <meyering@lucent.com>
35596
35597         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
35598         about `signed and unsigned type in conditional expression'.
35599         * lib/posixtm.c (posix_time_parse): Likewise.
35600
35601         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
35602
35603         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
35604         to avoid a pedantic warning.
35605
35606         * lib/getstr.c: Don't include assert.h.
35607         (getstr): Remove warning-evoking assertions.
35608         Return -1 if offset parameter is out of bounds.
35609         Change the type of a local from int to size_t.
35610
35611         * lib/strftime.c (my_strftime_localtime_r): Include this function
35612         definition in the `#if ! HAVE_TM_GMTOFF' block.
35613
35614         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
35615         Include xalloc.h instead.
35616
35617 2001-12-02  Jim Meyering  <meyering@lucent.com>
35618
35619         * lib/tempname.c: Don't declare getenv, thus reverting the change of
35620         2001-11-18.  It's no longer necessary, now that stdlib.h is always
35621         included.
35622
35623         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
35624         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
35625
35626 2001-11-30  Akim Demaille  <akim@epita.fr>
35627
35628         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
35629         before being defined.
35630
35631 2001-11-27  Paul Eggert  <eggert@twinsun.com>
35632
35633         * lib/quotearg.h (quotearg_n, quotearg_n_style):
35634         First arg is int, not unsigned.
35635         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
35636         (SIZE_MAX, UINT_MAX): New macros.
35637         (quotearg_n_options): Abort if N is negative.
35638         Avoid overflow check on hosts where size_t is 64 bits and int
35639         is 32 bits, as overflow is impossible there.
35640         Fix off-by-one typo that caused unnecessary reallocation.
35641
35642 2001-11-27  Jim Meyering  <meyering@lucent.com>
35643
35644         * lib/tempname.c: Merge with version from libc.
35645         * lib/regex.c: Likewise.
35646
35647         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
35648         systems for which STDC_HEADERS is 0, it was not included, resulting in
35649         a warning about an integer-to-pointer conversion problem with getenv.
35650         Reported by Volker Borchert.
35651
35652 2001-11-26  Jim Meyering  <meyering@lucent.com>
35653
35654         * lib/gtod.h: Remove file.
35655         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
35656         * lib/gettimeofday.c: Don't include gtod.h.
35657         (GTOD_init): Remove function.
35658         (rpl_gettimeofday): Do its job here instead, rather than aborting.
35659         Suggestion from Volker Borchert.
35660
35661 2001-11-23  Jim Meyering  <meyering@lucent.com>
35662
35663         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
35664         it.
35665         * lib/hash.c (struct hash_table): Define it here instead.
35666
35667 2001-11-22  Jim Meyering  <meyering@lucent.com>
35668
35669         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
35670
35671 2001-11-20  Jim Meyering  <meyering@lucent.com>
35672
35673         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
35674         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
35675
35676 2001-11-19  Jim Meyering  <meyering@lucent.com>
35677
35678         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
35679         directory.  Use "conftestXXXXXX" as the template.
35680         Suggestion from Paul Eggert.
35681
35682         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
35683         immediately, so the test doesn't mistakenly hit the max-open-files
35684         limit.
35685
35686 2001-11-18  Paul Eggert  <eggert@twinsun.com>
35687
35688         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
35689         (TEMPORARIES): New macro.
35690         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
35691         removes an artificial limitation (e.g. HP-UX 10.20, where
35692         TMP_MAX is 17576).
35693
35694 2001-11-18  Jim Meyering  <meyering@lucent.com>
35695
35696         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
35697
35698 2001-11-18  Jim Meyering  <meyering@lucent.com>
35699
35700         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
35701         on SunOS 4.
35702
35703         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
35704         files will be created before anything else.
35705
35706 2001-11-17  Paul Eggert  <eggert@twinsun.com>
35707
35708         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
35709         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
35710
35711 2001-11-17  Jim Meyering  <meyering@lucent.com>
35712
35713         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
35714         Prompted by a report from Bob Proulx.
35715
35716         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
35717         Instead, require UTILS_FUNC_MKSTEMP.
35718
35719 2001-11-17  Jim Meyering  <meyering@lucent.com>
35720
35721         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
35722         Now, that's done as part of AC_FUNC_STRTOD.
35723
35724 2001-11-17  Jim Meyering  <meyering@lucent.com>
35725
35726         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
35727         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
35728         rather than group writable.  Patch by Juan F. Codagnone.
35729
35730         * lib/readtokens.c: Remove explicit declarations of xmalloc and
35731         xrealloc, Instead, include "xalloc.h".
35732
35733         * lib/mountlist.c: Include unlocked-io.h after all system headers.
35734         Remove explicit declarations of xmalloc, xrealloc,
35735         and xstrdup.  Instead, include "xalloc.h".
35736
35737         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
35738         unlocked-io.h.
35739         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
35740         Likewise.
35741         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
35742
35743         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
35744         Reported by Padraig Brady.
35745
35746         * lib/mkstemp.c: #undef mkstemp.
35747         Include config.h.
35748         (rpl_mkstemp): Rename from mkstemp.
35749         Protoize.
35750
35751 2001-11-16  Jim Meyering  <meyering@lucent.com>
35752
35753         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
35754         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
35755         determine the amount of total physical memory, use pstat_getstatic.
35756         HPUX-11 doesn't define _SC_PHYS_PAGES.
35757         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
35758         If sysconf couldn't be used to determine the amount of available
35759         physical memory, use both pstat_getstatic and pstat_getdynamic.
35760         Based on a patch from Bob Proulx.
35761
35762 2001-11-10  Jim Meyering  <meyering@lucent.com>
35763
35764         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
35765         (jm_PREREQ): Use it.
35766
35767 2001-11-09  Jim Meyering  <meyering@lucent.com>
35768
35769         * m4/jm-macros.m4: Require autoconf-2.52f.
35770         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
35771         Use these AC_-prefixed names, not the AM_-prefixed ones.
35772
35773         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
35774
35775 2001-11-05  Jim Meyering  <meyering@lucent.com>
35776
35777         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
35778
35779 2001-11-04  Jim Meyering  <meyering@lucent.com>
35780
35781         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
35782         $DEFS.
35783
35784 2001-11-03  Jim Meyering  <meyering@lucent.com>
35785
35786         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
35787         of AC_DEFUN.
35788
35789         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
35790         know the name of the variable in the macro definition.
35791
35792 2001-11-03  Jim Meyering  <meyering@lucent.com>
35793
35794         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
35795         in argmatch_to_argument call.
35796
35797         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
35798         argument.
35799
35800         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
35801         e.g., a fault due to an attempt to free a NULL pointer.
35802
35803 2001-11-01  Jim Meyering  <meyering@lucent.com>
35804
35805         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
35806         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
35807
35808 2001-11-01  Jim Meyering  <meyering@lucent.com>
35809
35810         * lib/dirfd.c, lib/dirfd.h: New files.
35811         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
35812
35813         * lib/hash.c (hash_print) [TESTING]: Clean up.
35814
35815 2001-10-22  Paul Eggert  <eggert@twinsun.com>
35816
35817         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
35818         to avoid a warning if -Wall.
35819
35820 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
35821
35822         * README: New file
35823         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
35824         (per RMS's instructions, this is now the canonical source)
35825         * lgpl/, gpl/: New directories.
35826
35827 2001-10-21  Paul Eggert  <eggert@twinsun.com>
35828
35829         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
35830
35831 2001-10-21  Jim Meyering  <meyering@lucent.com>
35832
35833         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
35834         this code would end up calling gettext even in packages built
35835         with --disable-nls.
35836         * lib/getopt.c (_): Likewise.
35837         * lib/regex.c (_): Likewise.
35838
35839 2001-10-20  Paul Eggert  <eggert@twinsun.com>
35840
35841         * m4/error.m4 (jm_PREREQ_ERROR):
35842         Do not invoke AC_CHECK_FUNCS with strerror_r, as
35843         AC_FUNC_STRERROR_R does that.
35844         Check for strerror declaration.
35845
35846         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
35847         are supposed to have them these days.
35848         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
35849         Merge changes from latest Autoconf CVS.
35850         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
35851         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
35852         POSIX decided to standardize on the int flavor of strerror_r.
35853
35854 2001-10-20  Paul Eggert  <eggert@twinsun.com>
35855
35856         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
35857         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
35858         Use strerror_r that is only a macro, even if it is not a function.
35859         (strerror): Check for HAVE_DECL_STRERROR before declaring.
35860         (private_strerror): Use prototypes, not old-style function definition.
35861         (print_errno_message): New function.
35862         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
35863         char*-flavored one.
35864         (error_tail, error, error_at_line): Use it.
35865
35866 2001-10-11  Jim Meyering  <meyering@lucent.com>
35867
35868         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
35869         and quote_n (1, ... to avoid clobbering a buffer.
35870
35871 2001-10-05  Jim Meyering  <meyering@lucent.com>
35872
35873         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
35874         hash-pjw.h.
35875         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
35876         * lib/hash-pjw.h: New file.
35877
35878 2001-09-30  Jim Meyering  <meyering@lucent.com>
35879
35880         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
35881         `struct fsstat' has the `f_fstypename' member.
35882         Use that to define FS_TYPE, which is now used to make
35883         the getfsstat link test tighter.
35884
35885 2001-09-30  Jim Meyering  <meyering@lucent.com>
35886
35887         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
35888         Include <sys/ucred.h>, for Apple Darwin.
35889         Include sys/mount.h and sys/fs_types.h only if available.
35890         (FS_TYPE): Define.
35891         (read_filesystem_list): Use FS_TYPE.
35892
35893 2001-09-29  Paul Eggert  <eggert@twinsun.com>
35894
35895         * lib/exclude.c (excluded_filename): 0 -> false, since it's
35896         a boolean context.
35897
35898 2001-09-29  Jim Meyering  <meyering@lucent.com>
35899
35900         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
35901         [one-argument getmntent function]): Include stdio.h before mntent.h.
35902         SunOS 4.1.x needs it for the declaration of `FILE'.
35903         Patch by Volker Borchert.
35904
35905         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
35906         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
35907         sys/fs_types.h, and make the link-test for getfsstat guard #include
35908         directives with appropriate #if HAVE_*_H tests so that we can
35909         detect getfsstat on Apple Darwin1.3.7 systems.
35910         Reported by Nelson Beebe.
35911         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
35912
35913 2001-09-28  Paul Eggert  <eggert@twinsun.com>
35914
35915         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
35916         #defines strtoimax.  Also treat the other strto* functions
35917         like strtoimax.
35918
35919         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
35920         Check for strtoul and strtoumax,
35921         as those declarations are made even in the signed case.
35922         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
35923         Likewise, for strtol and strtoimax.
35924
35925 2001-09-28  Paul Eggert  <eggert@twinsun.com>
35926
35927         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
35928         #defines strtoimax.  Also treat the other strto* functions
35929         like strtoimax.
35930
35931         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
35932         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
35933         (strtoimax, strtoumax): Do not declare if already defined as a macro.
35934
35935 2001-09-26  Jim Meyering  <meyering@lucent.com>
35936
35937         Most macros in unlocked-io.h had the wrong number of arguments.
35938         * lib/gen-uio: New script.
35939         (USE_UNLOCKED_IO): Define to 1 if not already defined.
35940         * lib/unlocked-io.hin: Remove file.
35941         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
35942         rather than trying to embed it here.
35943         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
35944         Reported by Padraig Brady.
35945
35946 2001-09-25  Volker Borchert  <bt@teknon.de>
35947
35948         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
35949         `result'.
35950
35951 2001-09-24  Jim Meyering  <meyering@lucent.com>
35952
35953         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
35954
35955 2001-09-23  Jim Meyering  <meyering@lucent.com>
35956
35957         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
35958         instead of the mere test for existence of mntent.h.  The latter
35959         would get a false-positive on AIX 3.4 systems.
35960         In the outer getmntent if-block, don't die if neither of the getmntent
35961         tests succeeds.  Instead, just fall through and continue with the
35962         remaining tests.
35963
35964 2001-09-23  Jim Meyering  <meyering@lucent.com>
35965
35966         * lib/mountlist.c: Remove useless parentheses in #if directives.
35967         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
35968         the deprecated MOUNTED symbol is no longer defined in mntent.h.
35969
35970 2001-09-22  Jim Meyering  <meyering@lucent.com>
35971
35972         * m4/gettext.m4: New file.  From gettext.
35973         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
35974         * m4/progtest.m4: Likewise
35975         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
35976         * m4/glibc21.m4: Likewise.
35977
35978         * m4/libintl.m4: Remove.  No longer used.
35979
35980 2001-09-22  Jim Meyering  <meyering@lucent.com>
35981
35982         * lib/localcharset.c: Update from latest gettext.
35983         * lib/config.charset: Likewise.
35984
35985 2001-09-20  Jim Meyering  <meyering@lucent.com>
35986
35987         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
35988         strtoimax.
35989         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
35990         strtoumax.
35991
35992 2001-09-20  Jim Meyering  <meyering@lucent.com>
35993
35994         * lib/xstrtol.c (strtoimax): Guard declaration with
35995         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
35996         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
35997         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
35998         (strtoumax): Likewise, for completeness (it wasn't necessary).
35999
36000 2001-09-17  Paul Eggert  <eggert@twinsun.com>
36001
36002         * lib/strtoimax.c (HAVE_LONG_LONG):
36003         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
36004         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
36005         to work around bug in IBM C compiler.
36006
36007 2001-09-17  Jim Meyering  <meyering@lucent.com>
36008
36009         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
36010         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
36011         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
36012         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
36013         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
36014         whenever the right hand side need not be expanded by the shell.
36015
36016 2001-09-16  Paul Eggert  <eggert@twinsun.com>
36017
36018         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
36019         library.  It's not correct, as some older glibcs are buggy.
36020         fnmatch wasn't fixed until glibc 2.2.
36021
36022         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
36023         special shell magic here.
36024
36025 2001-09-16  Jim Meyering  <meyering@lucent.com>
36026
36027         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
36028         * m4/jm-macros.m4: Require it.
36029
36030 2001-09-16  Jim Meyering  <meyering@lucent.com>
36031
36032         * lib/mkdir.c: New file.
36033
36034 2001-09-15  Jim Meyering  <meyering@lucent.com>
36035
36036         * m4/jm-macros.m4: Check for help2man.
36037
36038 2001-09-11  Jim Meyering  <meyering@lucent.com>
36039
36040         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
36041         The body, by Paul Eggert, was moved here from configure.in.
36042         * m4/jm-macros.m4: Require UTILS_HOST_OS.
36043
36044 2001-09-04  Paul Eggert  <eggert@twinsun.com>
36045
36046         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
36047         (jm_PREREQ): Use it.
36048
36049 2001-09-04  Paul Eggert  <eggert@twinsun.com>
36050
36051         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
36052         Use ssize_t, not int, to store result of readlink.
36053         Check for ssize_t overflow as well as size_t overflow,
36054         as POSIX says the result of readlink is implementation-defined
36055         when ssize_t overflows.
36056         Remove unnecessary cast to char*.
36057         Use free+malloc instead of realloc, as the storage doesn't need
36058         to be preserved and it's clearer and can be more efficient that way.
36059         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
36060         * lib/xreadlink.h (xreadlink): Update prototype.
36061
36062 2001-09-04  Paul Eggert  <eggert@twinsun.com>
36063
36064         * lib/xgetcwd.c: Revert some of the previous change; intead,
36065         fix the HAVE_GETCWD_NULL code to behave more like the
36066         !HAVE_GETCWD_NULL code used to.
36067
36068         Include "xalloc.h".
36069         (xgetcwd): Do not return NULL when memory is exhausted; instead,
36070         invoke xalloc_die.
36071
36072 2001-09-03  Paul Eggert  <eggert@twinsun.com>
36073
36074         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
36075         sys/param.h, as pathmax.h includes them.
36076
36077 2001-09-03  Paul Eggert  <eggert@twinsun.com>
36078
36079         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
36080         (jm_PREREQ_XGETCWD): New macro.
36081
36082         * m4/getcwd.m4: New file.
36083
36084 2001-09-03  Paul Eggert  <eggert@twinsun.com>
36085
36086         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
36087         like the HAVE_GETCWD_NULL code.
36088         Include pathmax.h if not HAVE_GETCWD.
36089         Do not include xalloc.h.
36090         (INITIAL_BUFFER_SIZE): New symbol.
36091         Do not use xmalloc / xrealloc, since the caller is responsible for
36092         handling errors.  Preserve errno around `free' during failure.
36093         Do not overrun buffer when using getwd.
36094
36095 2001-09-03  Paul Eggert  <eggert@twinsun.com>
36096
36097         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
36098         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
36099         getcwd (NULL, 0).
36100
36101 2001-09-03  Paul Eggert  <eggert@twinsun.com>
36102
36103         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
36104         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
36105         spotted by Jim Meyering.
36106
36107 2001-09-03  Jim Meyering  <meyering@lucent.com>
36108
36109         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
36110         failure.
36111
36112 2001-09-02  Jim Meyering  <meyering@lucent.com>
36113
36114         * lib/error.c: Update from GNU libc.
36115
36116 2001-09-01  Jim Meyering  <meyering@lucent.com>
36117
36118         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
36119         Used by df.
36120
36121 2001-09-01  Jim Meyering  <meyering@lucent.com>
36122
36123         * lib/xreadlink.c: New file.
36124         * lib/xreadlink.h: New file.
36125         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
36126         xreadlink.h.
36127
36128         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
36129         doesn't conflict with sparc Solaris 7's definition in
36130         /usr/include/sys/int_types.h.
36131
36132         * lib/exclude.c: Use `""', not `<>' to #include non-system header
36133         files.
36134         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
36135         and strncasecmp as r-values.  Unixware didn't have declarations.
36136
36137 2001-08-31  Paul Eggert  <eggert@twinsun.com>
36138
36139         * lib/xstrtol.h: Add copyright notice.
36140         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
36141         LONGINT_INVALID_SUFFIX_CHAR.
36142
36143 2001-08-31  Paul Eggert  <eggert@twinsun.com>
36144
36145         * lib/xstrtol.c (strtoimax): New decl.
36146
36147 2001-08-31  Paul Eggert  <eggert@twinsun.com>
36148
36149         * lib/xgetcwd.c: Don't include pathmax.h.
36150         Include stdlib.h and unistd.h if available.
36151         Include xalloc.h.
36152         (xmalloc, xstrdup, free): Remove decls.
36153         (xgetcwd): Don't assume sizes fit in unsigned.
36154         Check for overflow when computing sizes.
36155         Simplify reallocation code.
36156
36157 2001-08-31  Paul Eggert  <eggert@twinsun.com>
36158
36159         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
36160         a directory's st_size can have an arbitrary value, so the old
36161         usage could waste an arbitrary amount of memory.  All uses
36162         changed.
36163         * lib/savedir.h: Update prototype.
36164
36165 2001-08-31  Paul Eggert  <eggert@twinsun.com>
36166
36167         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
36168
36169         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
36170         old strtoimax.c.
36171
36172         Also, make the following further changes to make this file's
36173         configuration more similar to that of strtol.c:
36174         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
36175         (strtoumax, uintmax_t, strtoull, strtol): Remove.
36176         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
36177         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
36178         changed to signed values.
36179
36180         And make the following changes as well:
36181         Fix copyright notice, as 1999 was missing.
36182         (verify): New macro.
36183         (strtoimax): Check sizes at compile-time, not run-time.
36184         Prefer strtol to strtoll if both work.
36185         (main): Remove; it was not that useful and was a pain to maintain.
36186
36187         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
36188
36189 2001-08-31  Jim Meyering  <meyering@lucent.com>
36190
36191         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
36192         Use an initial, malloc'd, buffer of length 128 rather than
36193         a statically allocated one of length 1024.
36194
36195 2001-08-30  Paul Eggert  <eggert@twinsun.com>
36196
36197         Simplify code, partly by assuming autoconf 2.52 semantics.
36198
36199         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
36200
36201         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
36202         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
36203         All uses removed.
36204         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
36205         Move AC_REQUIRE to next-to-top level, to avoid confusion.
36206         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
36207         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
36208         jm_AC_HEADER_INTTYPES_H.
36209         * m4/jm-macros.m4 (jm_MACROS): Likewise.
36210
36211         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
36212
36213         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
36214         Quote first arg of AC_DEFUN.
36215         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
36216         since they are needed to parse the include file even if we need
36217         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
36218         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
36219         but with opposite signedness.
36220
36221 2001-08-30  Paul Eggert  <eggert@twinsun.com>
36222
36223         Merge 'exclude' changes from tar 1.13.22.
36224         This fixes one or two unlikely storage allocation overflow bugs,
36225         but doesn't change user-visible behavior otherwise.
36226
36227 2001-08-30  Paul Eggert  <eggert@twinsun.com>
36228
36229         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
36230         (jm_PREREQ_EXCLUDE): New macro.
36231
36232 2001-08-30  Paul Eggert  <eggert@twinsun.com>
36233
36234         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
36235         tm to be declared.
36236
36237 2001-08-30  Paul Eggert  <eggert@twinsun.com>
36238
36239         * lib/hash.c: Remove '2001' from copyright notice.
36240
36241 2001-08-30  Paul Eggert  <eggert@twinsun.com>
36242
36243         * lib/full-write.h: New file.
36244         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
36245         * lib/full-write.c: Correct credits, as cccp.c no longer
36246         exists and anyway it was so heavily changed from the old cccp
36247         code as to be unrecognizable.  Include full-write.h.
36248         (full_write) Return size_t, with short writes meaning failure.
36249         All callers changed.  This fixes a bug with large buffers
36250         on 64-bit hosts.
36251         * lib/utime.c: Include full-write.h.
36252
36253 2001-08-30  Paul Eggert  <eggert@twinsun.com>
36254
36255         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
36256         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
36257         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
36258         Include if available.
36259         (<xalloc.h>): Include
36260         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
36261         (verify): New macro.  Use it to verify that EXCLUDE macros do not
36262         collide with FNM macros.
36263         (struct patopts): New struct.
36264         (struct exclude): Use it, as exclude patterns now come with options.
36265         (new_exclude): Support above changes.
36266         (new_exclude, add_exclude_file):
36267         Initial size must now be a power of two to simplify overflow checking.
36268         (free_exclude, fnmatch_no_wildcards): New function.
36269         (excluded_filename): No longer requires options arg, as the options
36270         are determined by add_exclude.  Now returns bool, not int.
36271         (excluded_filename, add_exclude):
36272         Add support for the fancy new exclusion options.
36273         (add_exclude, add_exclude_file): Now takes int options arg.
36274         Check for arithmetic overflow when computing sizes.
36275         (add_exclude_file): xrealloc might modify errno, so don't
36276         realloc until after errno might be used.
36277
36278         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
36279         New macros.
36280         (free_exclude): New decl.
36281         (add_exclude, add_exclude_file): Now takes int options arg.
36282         (excluded_filename): No longer requires options arg, as the options
36283         are determined by add_exclude.  Now returns bool, not int.
36284
36285 2001-08-30  Paul Eggert  <eggert@twinsun.com>
36286
36287         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
36288
36289 2001-08-27  Jim Meyering  <meyering@lucent.com>
36290
36291         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
36292
36293         * lib/version-etc.c (N_): Remove definition.
36294         Revert most of last change.
36295         Instead, simply don't mark the `Copyright...' string for translation.
36296         Based on advice from Paul Eggert.
36297
36298         * lib/strtoxmax.c: Tweak comment.
36299
36300 2001-08-26  Jim Meyering  <meyering@lucent.com>
36301
36302         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
36303
36304         * m4/xstrtoimax.m4: New file.
36305         * m4/xstrtoumax.m4: Add comments explaining why we
36306         AC_REPLACE_FUNCS(strtol).
36307
36308 2001-08-26  Jim Meyering  <meyering@lucent.com>
36309
36310         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
36311         of copyright with `%s' so translators don't get an untranslated
36312         message in 2002.
36313         (COPYRIGHT_YEAR): Define.
36314         (version_etc): Use fprintf rather than fputs.
36315         Suggestion from Ulrich Drepper.
36316
36317         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
36318
36319         * lib/strtoll.c: New file, from GNU libc.
36320         * lib/xstrtoimax.c: New file.
36321
36322         * lib/xstrtol.h: Add xstrtoimax.
36323         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
36324         * lib/strtoimax.c: New file.  Likewise, but first define
36325         STRTOUXMAX_SIGNED.
36326
36327         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
36328         ...
36329         * lib/strtoxmax.c: ... then renamed to this.
36330
36331 2001-08-18  Paul Eggert  <eggert@twinsun.com>
36332
36333         * m4/inttypes.m4: Add AC_PREREQ(2.13).
36334         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
36335         (jm_AC_TYPE_INTMAX_T): New macro.
36336         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
36337
36338         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
36339
36340         * m4/longlong.m4: Renamed from ulonglong.m4.
36341         * m4/inttypes.m4: Renamed from inttypes_h.m4.
36342         * m4/uintmax_t.m4: Removed.
36343
36344 2001-08-13  Paul Eggert  <eggert@twinsun.com>
36345
36346         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
36347         Port to Solaris 8, where 'sed' requires a space after the 'r'
36348         command, and where sh dislikes "$/".  Clean up the spacing a bit.
36349         Redirect output to $tmp just once.
36350
36351 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
36352
36353         * lib/addext.c (<errno.h>): Include.
36354         (errno): Declare if not defined.
36355         (addext): Work correctly when pathconf returns -1 and leaves
36356         errno alone because there is no limit.  Also, work even if
36357         pathconf returns a value greater than SIZE_MAX.
36358
36359 2001-08-12  Jim Meyering  <meyering@lucent.com>
36360
36361         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
36362         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
36363         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
36364         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
36365         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
36366         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
36367         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
36368         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
36369         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
36370         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
36371         utime.m4, utimes.m4, xstrtoumax.m4:
36372         Quote the first argument in each use of AC_DEFUN.
36373
36374 2001-08-12  Jim Meyering  <meyering@lucent.com>
36375
36376         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
36377         Simply `return getcwd (NULL, 0);'.
36378         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
36379         Use 1300 as initial value for length, not PATH_MAX.
36380
36381         * lib/pathmax.h: Clean up cpp syntax.
36382
36383 2001-08-12  Jim Meyering  <meyering@lucent.com>
36384
36385         * lib/gettimeofday.c: New file.
36386         * lib/gtod.h: New file.
36387         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
36388
36389 2001-08-05  Jim Meyering  <meyering@lucent.com>
36390
36391         * m4/jm-macros.m4: Require autoconf-2.52.
36392
36393 2001-08-04  Jim Meyering  <meyering@lucent.com>
36394
36395         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
36396         stmt, to get in sync with glibc.
36397
36398 2001-08-03  Paul Eggert  <eggert@twinsun.com>
36399
36400         The following changes are from gettext 0.10.39 as maintained by
36401         Bruno Haible.
36402
36403         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
36404         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
36405         with inverted sense.  All uses changed.
36406
36407         * lib/mbswidth.c: Don't include <limits.h>.
36408         Include <stdlib.h> and <string.h> unconditionally.
36409         (iswcntrl, mbsinit, ISCNTRL): New macros.
36410         (mbsnwidth): Use K&R style function declarations.
36411         Don't bother checking for MB_LEN_MAX == 1, since the compiler
36412         can optimize it when MB_CUR_MAX == 1.
36413         The width of control characters is zero, not 1.
36414
36415 2001-08-03  Paul Eggert  <eggert@twinsun.com>
36416
36417         The following changes are from gettext 0.10.39 as maintained by
36418         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
36419
36420         * m4/codeset.m4: Upgrade to serial AM1.
36421         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
36422         all uses changed.  Quote first arg of AC_DEFUN.
36423         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
36424
36425         * m4/iconv.m4: Upgrade to serial AM2.
36426         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
36427         Add --with-libconv-prefix.
36428         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
36429         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
36430         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
36431         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
36432         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
36433
36434         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
36435         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
36436         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
36437         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
36438         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
36439         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
36440         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
36441         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
36442         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
36443
36444         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
36445         string.h any more.
36446
36447         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
36448         not the default value.
36449
36450         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
36451         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
36452         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
36453         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
36454         Also check for iswcntrl, used for wcwidth fallback.
36455         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
36456         to Autoconf 2.13.
36457
36458 2001-08-03  Jim Meyering  <meyering@lucent.com>
36459
36460         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
36461         as it was in the original.  Reported by Paul Eggert.
36462
36463 2001-07-16  Jim Meyering  <meyering@lucent.com>
36464
36465         * m4/gettimeofday.m4: New file.
36466         Prompted by a report from Bernhard Baehr.
36467
36468 2001-07-15  Jim Meyering  <meyering@lucent.com>
36469
36470         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
36471         stuff. Now it's in ../Makefile.cfg.
36472
36473 2001-07-15  Jim Meyering  <meyering@lucent.com>
36474
36475         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
36476         (BUILT_SOURCES): Add unlocked-io.h.
36477         (io_functions): Define.
36478         (unlocked-io.h): New rule.
36479         (DISTCLEANFILES): Add unlocked-io.h.
36480         (all-local): Depend on unlocked-io.h, to ensure it is created.
36481
36482         * lib/unlocked-io.hin: New file
36483
36484         * lib/regex.c: Update from glibc.
36485
36486 2001-07-05  Jim Meyering  <meyering@lucent.com>
36487
36488         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
36489         recommendation.
36490         (libfetish_a_SOURCES): Put all .h files here instead.
36491         Remove a thus-exposed (better checks in automake) duplicate and
36492         two unnecessary .h files.
36493
36494 2001-07-04  Jim Meyering  <meyering@lucent.com>
36495
36496         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
36497         that generates jm-glibc-io.m4 so that it doesn't trigger any make
36498         distcheck failure.
36499
36500 2001-07-02  Jim Meyering  <meyering@lucent.com>
36501
36502         The following changes were prompted by suggestions from Bruno Haible.
36503
36504         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
36505         is now generated.
36506         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
36507         definition of EXTRA_DIST.
36508         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
36509         ensure that the generated file is created/updated whenever the list
36510         of $(unlocked_functions) is changed.
36511         (jm-glibc-io.m4): New rule.
36512         (unlocked-io.h): New rule -- currently unused.
36513
36514 2001-06-24  Jim Meyering  <meyering@lucent.com>
36515
36516         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
36517         unmatched right bracket, rather than kludging it with an extra,
36518         falsely-matching quote in a comment.  Patch by Akim Demaille.
36519
36520 2001-06-11  Jim Meyering  <meyering@lucent.com>
36521
36522         * lib/regex.c: Update from GNU libc.
36523
36524 2001-05-27  Jim Meyering  <meyering@lucent.com>
36525
36526         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
36527         Check for ut_type in struct utmp.
36528
36529 2001-05-27  Jim Meyering  <meyering@lucent.com>
36530
36531         * lib/readutmp.h (UT_TYPE): Define.
36532
36533 2001-05-24  Jim Meyering  <meyering@lucent.com>
36534
36535         * lib/argmatch.c: Include "quote.h".
36536         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
36537         quote function.  Reported by Göran Uddeborg.
36538
36539 2001-05-22  Jim Meyering  <meyering@lucent.com>
36540
36541         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
36542         now that we use the package-supplied version unconditionally.
36543         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
36544
36545 2001-05-21  Jim Meyering  <meyering@lucent.com>
36546
36547         * m4/regex.m4: Change a couple backticks to single quotes to avoid
36548         shell syntax errors.
36549
36550 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
36551
36552         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
36553
36554 2001-05-20  Paul Eggert  <eggert@twinsun.com>
36555
36556         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
36557         Don't bother to check library strftime, since
36558         we'll be using our own my_strftime function anyway.
36559         Define my_strftime instead of strftime.
36560
36561 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
36562
36563         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
36564         which is not yet declared.
36565
36566 2001-05-15  Jim Meyering  <meyering@lucent.com>
36567
36568         * m4/regex.m4: Use proper quoting so brackets appear in the test
36569         program.
36570         Reported by, and with help from, Bruno Haible.
36571
36572 2001-05-13  Jim Meyering  <meyering@lucent.com>
36573
36574         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
36575         undefined.
36576
36577 2001-05-11  Paul Eggert  <eggert@twinsun.com>
36578
36579         dirname code cleanup.  base_name now behaves more compatibly
36580         with POSIX basename when given file names that have trailing
36581         slashes, and similarly for dir_name.  Add new primitives
36582         base_len and dir_len.  Put the directory-name-related decls
36583         into dirname.h.
36584
36585         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
36586         * lib/backupfile.c (base_name): Likewise.
36587         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
36588         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
36589         * lib/makepath.c (strip_trailing_slashes): Likewise.
36590         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
36591         ISSLASH): Likewise.
36592         * lib/rename.c (strip_trailing_slashes): Likewise.
36593         * lib/same.c (base_name): Likewise.
36594         * lib/stripslash.c (ISSLASH): Likewise.
36595
36596         * lib/addext.c: Include <dirname.h> after size_t is defined.
36597         * lib/backupfile.c: Likewise.
36598
36599         * lib/addext.c (addext): Use base_len to trim redundant
36600         trailing slashes instead of doing it ourselves.
36601         But do not trim the last slash if it is not redundant.
36602
36603         * lib/backupfile.c (find_backup_file_name,
36604         max_backup_version): Use base_len instead of rolling it ourselves.
36605         Handle the case of "" and (on DOS) "C:" correctly.
36606
36607         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
36608         needed. Include <string.h>, <dirname.h>.
36609         (base_name): Allow file names ending in slashes, other than names
36610         that are all slashes.  In this case, return the basename followed
36611         by the slashes.  This is more general, and can be used in places
36612         where the original base_name purposely had an assertion failure.
36613         (base_len): New function.
36614
36615         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
36616         Do not include <assert.h>; no longer needed.
36617         Include xalloc.h.
36618         (memrchr): Remove decl.
36619         (dir_name_r): Remove.
36620         (dir_len): Renamed from dirlen.  All callers changed.
36621         Rewrite in terms of base_name, for simplicity and consistency.
36622         (dir_name): Never return NULL.  All callers changed.
36623         Do not include <stdlib.h> in test program; no longer needed.
36624         return 0; is fine for test program.
36625
36626         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
36627         New macros.
36628         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
36629
36630         * lib/path-concat.c (path_concat): Use base_len to compute
36631         base length, not strlen; this means we cannot rely on memcpy
36632         to null-terminate.
36633
36634         * lib/same.c (STREQ): Remove.
36635         (same_name): Handle the case where the basename ends in trailing '/'.
36636
36637         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
36638         a slash was stripped.  Do not strip the last slash after a
36639         file system prefix.
36640
36641 2001-05-11  Paul Eggert  <eggert@twinsun.com>
36642
36643         * lib/Makefile.am (libfetish_a_SOURCES):
36644         Add strftime.c, since we now compile it on all hosts.
36645
36646         * lib/strftime.c (my_strftime):
36647         Define to nstrftime if emacs, but only if my_strftime is not defined.
36648         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
36649         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
36650         Add one more extra argument: a nanoseconds value.
36651         All uses changed.
36652         (ns): New macro.
36653         (my_strftime function): Add %N format.
36654         (emacs_strftimeu): Renamed from emacs_strftime,
36655         with extra ut argument.
36656
36657 2001-05-09  Paul Eggert  <eggert@twinsun.com>
36658
36659         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
36660
36661 2001-04-21  Jim Meyering  <meyering@lucent.com>
36662
36663         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
36664         doesn't interfere.
36665
36666 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
36667
36668         * m4/ftruncate.m4: Check for chsize.
36669         Link with ftruncate.o unconditionally if ftruncate is missing.
36670         This was required when cross-compiling to i586-mingw32msvc.
36671
36672 2001-04-08  Jim Meyering  <meyering@lucent.com>
36673
36674         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
36675         recomputed; that's necessary when the offset spans a DST transition.
36676         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
36677
36678 2001-04-02  Jim Meyering  <meyering@lucent.com>
36679
36680         * lib/regex.h, regex.c: Update from GNU libc.
36681
36682 2001-03-24  Jim Meyering  <meyering@lucent.com>
36683
36684         * m4/jm-macros.m4: Require autoconf-2.49d.
36685
36686 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
36687
36688         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
36689
36690 2001-03-19  Paul Eggert  <eggert@twinsun.com>
36691
36692         * lib/version-etc.c (version_etc_copyright): Update to 2001.
36693
36694 2001-03-17  Jim Meyering  <meyering@lucent.com>
36695
36696         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
36697         now that the version in autoconf is equivalent.
36698         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
36699
36700         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
36701         Suggestion from Akim Demaille.
36702
36703         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
36704         (jm_PREREQ_TEMPNAME): New function.
36705
36706 2001-03-16  Paul Eggert  <eggert@twinsun.com>
36707
36708         * lib/tempname.c (uint64_t): Define to uintmax_t if
36709         not defined, and if UINT64_MAX is not defined.
36710         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
36711         Reported by John David Anglin.
36712
36713 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
36714
36715         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
36716         resolve alias if codeset is empty.
36717         * lib/config.charset (BeOS): Use wildcard syntax.
36718
36719 2001-03-13  Jim Meyering  <meyering@lucent.com>
36720
36721         * lib/path-concat.c (path_concat)
36722         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
36723         concatenating e.g., `C:' and `foo'.
36724         From Bruno Haible.
36725
36726 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
36727
36728         * lib/localcharset.c (locale_charset): Don't use
36729         setlocale(LC_CTYPE,NULL). Don't return NULL.
36730         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
36731
36732 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
36733
36734         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
36735         support for DOS/DJGPP.
36736
36737 2001-03-01  Paul Eggert  <eggert@twinsun.com>
36738
36739         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
36740         lacks mkstemp.  Compile our own tempname.c if we compile our own
36741         mkstemp.c, as mkstemp relies on tempname.
36742
36743 2001-03-01  Jim Meyering  <meyering@lucent.com>
36744
36745         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
36746         AH_VERBATIM really does output its argument verbatim.
36747
36748 2001-02-28  Paul Eggert  <eggert@twinsun.com>
36749
36750         * lib/Makefile.am (libfetish_a_SOURCES):
36751         Add dup-safer.c, fopen-safer.c.
36752         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
36753
36754         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
36755         * lib/unistd-safer.h: New files.
36756
36757 2001-02-25  Paul Eggert  <eggert@twinsun.com>
36758
36759         The mkstemp replacement is taken from glibc 2.2.2, with some
36760         portability fixes for use outside glibc, as follows:
36761
36762         * lib/tempname.c (struct_stat64): New macro.
36763         (direxists, __gen_tempname): Use it.
36764         This avoids a portability problem with Solaris 8.
36765
36766         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
36767         (<stddef.h>, <stdint.h>, <string.h>):
36768         Include only if STDC_HEADERS || _LIBC.
36769         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
36770         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
36771         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
36772         (__set_errno): Define this macro if <errno.h> doesn't.
36773         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
36774         Define these macros if <stdio.h> doesn't.
36775         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
36776         Define these macros if <sys/stat.h>
36777         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
36778         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
36779         __xstat64): Define if not _LIBC.
36780         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
36781         (__gen_tempname): Invoke gettimeofday only if
36782         HAVE_GETTIMEOFDAY || _LIBC;
36783         otherwise, fall back on plain "time".
36784         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
36785
36786         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
36787
36788         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
36789
36790 2001-02-18  Paul Eggert  <eggert@twinsun.com>
36791
36792         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
36793
36794 2001-02-17  Paul Eggert  <eggert@twinsun.com>
36795
36796         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
36797         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
36798         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
36799         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
36800
36801 2001-02-17  Paul Eggert  <eggert@twinsun.com>
36802
36803         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
36804         Remove workaround macros for hosts that have mbrtowc but not
36805         mbstate_t, as we now insist on proper declarations for both
36806         before using mbrtowc.
36807
36808 2001-02-17  Jim Meyering  <meyering@lucent.com>
36809
36810         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
36811         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
36812         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
36813         UnixWare 7.1.1.
36814
36815         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
36816         rather than AC_CACHE_VAL.
36817
36818 2001-02-17  Jim Meyering  <meyering@lucent.com>
36819
36820         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
36821         around included file name.
36822
36823         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
36824
36825         * lib/strftime.c: Update from GNU libc (the only changes were to
36826         comments).
36827
36828 2001-02-17  Jim Meyering  <meyering@lucent.com>
36829
36830         * lib/regex.c: Update from libc.
36831
36832 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
36833
36834         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
36835         clash.
36836
36837 2001-02-16  Paul Eggert  <eggert@twinsun.com>
36838
36839         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
36840         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
36841         Reported by Mark Hounschell via Paul Eggert.
36842
36843 2001-02-07  Jim Meyering  <meyering@lucent.com>
36844
36845         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
36846
36847 2001-02-05  Jim Meyering  <meyering@lucent.com>
36848
36849         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
36850         it includes the patch required for `large file' support with at least
36851         HP-UX's 10.20 /bin/cc.
36852
36853 2001-02-03  Jim Meyering  <meyering@lucent.com>
36854
36855         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
36856         AS_IF, now that it works once again (mysteriously).
36857         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
36858
36859 2001-01-30  Jim Meyering  <meyering@lucent.com>
36860
36861         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
36862         * m4/chown.m4: Rename conftestchown to conftest.chown.
36863         * m4/rename.m4: s/conftestdir/conftest.d1/ and
36864         s/conftestdir2/conftest.d2/.
36865         * m4/utimes.m4: s/conftestdata/conftest.data/
36866         Inspired by Pavel Roskin's change in autoconf.
36867
36868 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
36869
36870         * lib/config.charset: Update for FreeBSD 4.2.
36871
36872 2001-01-27  Jim Meyering  <meyering@lucent.com>
36873
36874         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
36875         a use of AS_IF.
36876         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
36877
36878 2001-01-26  Jim Meyering  <meyering@lucent.com>
36879
36880         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
36881         quotearg.c includes it.
36882
36883 2001-01-26  Jim Meyering  <meyering@lucent.com>
36884
36885         * lib/quotearg.c: Include stddef.h.
36886         * lib/quote.c: Include stddef.h.
36887         Reported by Axel Kittenberger.
36888
36889         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
36890         line in double quotes so that it evokes a better diagnostic.
36891         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
36892         Reported by Axel Kittenberger.
36893
36894 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
36895
36896         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
36897         as if it was a `charset'.
36898
36899 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
36900
36901         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
36902         has const.
36903
36904 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
36905
36906         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
36907         to avoid a warning.  Add back 'const' to inptr.
36908
36909 2001-01-20  Jim Meyering  <meyering@lucent.com>
36910
36911         Be sure that headers are checked before used in code compiled
36912         for the type checks.
36913         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
36914         In place of that, invoke jm_CHECK_ALL_TYPES.
36915         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
36916         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
36917         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
36918         The check for ssize_t was mistakenly run before the test for unistd.h.
36919
36920         The configure-time check for stdbool.h was missing.
36921         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
36922         (jm_PREREQ_HASH): New function.
36923
36924 2001-01-17  Jim Meyering  <meyering@lucent.com>
36925
36926         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
36927         for autoconf-2.49c.
36928         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
36929
36930 2001-01-16  Jim Meyering  <meyering@lucent.com>
36931
36932         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
36933         From Bruno Haible.
36934
36935 2001-01-14  Jim Meyering  <meyering@lucent.com>
36936
36937         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
36938         foo and bar.  Create conftestdir/ in the script, not in the C code.
36939         Remove directories in the script, not in the C code.
36940         Remove conftestdir{,2} before trying to create the directory.
36941         Make the entire configure script fail if the mkdir fails.
36942
36943 2001-01-14  Jim Meyering  <meyering@lucent.com>
36944
36945         * lib/rename.c: New file.  From Volker Borchert.
36946         Include stdlib.h, string.h or strings.h, and xalloc.h.
36947         Use strip_trailing_slashes rather than open-coding it.
36948
36949 2001-01-03  Paul Eggert  <eggert@twinsun.com>
36950
36951         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
36952
36953 2001-01-03  Jim Meyering  <meyering@lucent.com>
36954
36955         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
36956         of local `inptr' to avoid warning with some system declarations of
36957         iconv.
36958
36959 2001-01-02  Volker Borchert  <bt@teknon.de>
36960
36961         * m4/rename.m4: New file.
36962         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
36963
36964 2001-01-01  Jim Meyering  <meyering@lucent.com>
36965
36966         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
36967         even on systems with utmpx.h.  It's necessary for the declaration of
36968         utmp's ut_user member.  Reported by Andreas Jaeger.
36969
36970         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
36971         available. They are required for the declarations of getgrgid and
36972         getpwuid resp.
36973         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
36974         Reported by Andreas Jaeger.
36975
36976 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
36977
36978         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
36979         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
36980         so `make install' also works in VPATH builds.
36981
36982 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
36983
36984         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
36985         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
36986         can be used in subdirectories.
36987
36988 2000-12-29  Paul Eggert  <eggert@twinsun.com>
36989
36990         * lib/modechange.c: Do not assume that mode_t uses the
36991         traditional octal encoding.  E.g. "chmod 1 FOO" should set
36992         the other-execute bit of FOO even if S_IXOTH != 1.
36993
36994         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
36995         WOTH, XOTH, ALLM): New macros.
36996         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
36997          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
36998         Use them.
36999         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
37000         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
37001         (mode_compile):
37002         No need to use uintmax_t; unsigned long is long enough.
37003         Don't bother to get suffix since we don't use it.
37004
37005 2000-12-26  Jim Meyering  <meyering@lucent.com>
37006
37007         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
37008         better with autoheader.
37009
37010 2000-12-24  Jim Meyering  <meyering@lucent.com>
37011
37012         * lib/hash.c (is_prime): Return explicit boolean values.
37013         (hash_get_first): Return NULL to appease Irix5.6's 89.
37014         Reported by Nelson Beebe.
37015
37016 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
37017
37018         * lib/localcharset.c (locale_charset): Add support for Win32.
37019
37020 2000-12-18  Paul Eggert  <eggert@twinsun.com>
37021
37022         * lib/physmem.h, lib/physmem.c: New files.
37023
37024         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
37025         (noinst_HEADERS): Add physmem.h.
37026
37027         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
37028         't' for compatibility with Solaris 8 sort.
37029
37030 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
37031
37032         * lib/config.charset: Add support for BeOS.
37033
37034 2000-12-17  Jim Meyering  <meyering@lucent.com>
37035
37036         * m4/dos.m4 (jm_AC_DOS): New file and macro.
37037         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
37038
37039 2000-12-16  Jim Meyering  <meyering@lucent.com>
37040
37041         This bug had a serious impact on chown: `chown N:M FILE' (for integer
37042         N and M) would have treated it like `chown N:N FILE'.
37043
37044         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
37045
37046 2000-12-16  Jim Meyering  <meyering@lucent.com>
37047
37048         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
37049         SHELLS_FILE to a file name that's useful on djgpp systems.
37050         Include stdlib.h.
37051         (ADDITIONAL_DEFAULT_SHELLS): Define.
37052         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
37053         Based mostly on a patch from Prashant TR.
37054
37055 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
37056
37057         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
37058         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
37059         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
37060
37061 2000-12-08  Andreas Schwab  <schwab@suse.de>
37062
37063         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
37064         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
37065
37066 2000-12-07  Jim Meyering  <meyering@lucent.com>
37067
37068         * lib/stripslash.c (ISSLASH): Define.
37069         (strip_trailing_slashes): Use ISSLASH rather than comparing against
37070         `/'.
37071         From Prashant TR.
37072
37073         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
37074         (dir_name_r): Declare this function as static.
37075         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
37076         manifest itself on a name containing a mix of slashes and
37077         backslashes.
37078         Make this function work with names starting with a DOS-style
37079         drive letter and colon prefix.
37080         (dir_name): Append `.' if necessary.
37081         Based mostly on patches from Prashant TR and Eli Zaretskii.
37082
37083         * lib/dirname.h (dir_name_r): Remove prototype.
37084
37085 2000-12-06  Paul Eggert  <eggert@twinsun.com>
37086
37087         * m4/off_t-format.m4: Remove this file.
37088         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
37089
37090 2000-12-06  Jim Meyering  <meyering@lucent.com>
37091
37092         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
37093         replacement strtoull, we may well need the replacement strtoul, too.
37094         Check for declarations of strtoul and strtoull.
37095         Check for strtol.  Mainly as a cue to cause automake to include
37096         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
37097         Check for limits.h -- strtol.c needs it.
37098
37099 2000-12-05  Jim Meyering  <meyering@lucent.com>
37100
37101         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
37102
37103 2000-12-04  Jim Meyering  <meyering@lucent.com>
37104
37105         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
37106         Also include memory.h, stdlib.h, unistd.h if appropriate.
37107         Reported by Andreas Jaeger (conflicting declaration of malloc).
37108
37109 2000-12-02  Jim Meyering  <meyering@lucent.com>
37110
37111         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
37112         * m4/jm-macros.m4 (jm_MACROS): require it.
37113
37114 2000-12-02  Jim Meyering  <meyering@lucent.com>
37115
37116         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
37117
37118 2000-12-01  Paul Eggert  <eggert@twinsun.com>
37119
37120         * lib/memrchr.c: Include <config.h> before any system include file.
37121
37122 2000-11-30  Jim Meyering  <meyering@lucent.com>
37123
37124         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
37125
37126 2000-11-30  Jim Meyering  <meyering@lucent.com>
37127
37128         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
37129
37130 2000-11-29  Paul Eggert  <eggert@twinsun.com>
37131
37132         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
37133
37134 2000-11-26  Jim Meyering  <meyering@lucent.com>
37135
37136         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
37137
37138 2000-11-22  Paul Eggert  <eggert@twinsun.com>
37139
37140         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
37141         size of (size_t) -1; it's not portable.
37142
37143 2000-11-17  Jim Meyering  <meyering@lucent.com>
37144
37145         * lib/strstr.c: Update from GNU libc.
37146
37147 2000-11-17  Akim Demaille  <akim@epita.fr>
37148
37149         * lib/obstack.h: Formatting changes.
37150         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
37151         prevent type checking.
37152         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
37153         cast the value to (void *): assigning a `foo *' to a `void *'
37154         variable is valid.
37155         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
37156
37157 2000-11-16  Jim Meyering  <meyering@lucent.com>
37158
37159         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
37160
37161 2000-11-11  Jim Meyering  <meyering@lucent.com>
37162
37163         * lib/error.c: Add a couple #includes, merging from GNU libc version.
37164
37165 2000-11-10  Jim Meyering  <meyering@lucent.com>
37166
37167         * lib/obstack.h: Update from GNU libc.
37168         * lib/obstack.c: Likewise.
37169
37170 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
37171
37172         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
37173
37174 2000-11-06  Paul Eggert  <eggert@twinsun.com>
37175
37176         * lib/getusershell.c (setusershell): Use rewind rather than
37177         fseek/fseeko, to avoid configuration hassles with fseeko.
37178         Don't bother opening SHELLS_FILE if shellstream is NULL;
37179         it's not necessary.
37180
37181 2000-11-05  Jim Meyering  <meyering@lucent.com>
37182
37183         * lib/makepath.h (make_dir): Declare.
37184         * lib/makepath.c (make_dir): Remove `static' attribute.
37185         Tweak a comment.
37186
37187 2000-11-04  Jim Meyering  <meyering@lucent.com>
37188
37189         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
37190
37191 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
37192
37193         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
37194         last one in a bucket, advance to the next bucket.
37195
37196 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
37197
37198         * lib/fnmatch.c: Do not comment out all the code if we are using
37199         the GNU C library, because in some cases we are replacing buggy
37200         code in the GNU C library itself.
37201
37202 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
37203
37204         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
37205         (regex_compile): Catch bogus \(\1\).
37206
37207 2000-10-30  Paul Eggert  <eggert@twinsun.com>
37208
37209         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
37210         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
37211         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
37212
37213 2000-10-30  Paul Eggert  <eggert@twinsun.com>
37214
37215         * lib/error.h, getline.h, modechange.h:
37216         Remove "2000" from Copyright line, as the file hasn't been
37217         changed this year other than in the copyright notice.
37218
37219         * lib/xalloc.h: Add "2000" to Copyright line, as this file
37220         was changed this year.
37221
37222 2000-10-29  Jim Meyering  <meyering@lucent.com>
37223
37224         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
37225         renaming.
37226         * m4/ls-mntd-fs.m4: Likewise
37227
37228 2000-10-29  Jim Meyering  <meyering@lucent.com>
37229
37230         * lib/xstat.in: Fix grammar in comment.
37231
37232 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
37233
37234         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
37235         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
37236         doesn't define __restrict_arr.
37237
37238 2000-10-28  Jim Meyering  <meyering@lucent.com>
37239
37240         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
37241         (jm_PREREQ_MEMCHR): New function.
37242
37243 2000-10-28  Jim Meyering  <meyering@lucent.com>
37244
37245         * lib/memchr.c: Update from libc.
37246         Adjust for portability:
37247         [HAVE_STDLIB_H]: Include stdlib.h.
37248         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
37249         Undef __memchr, too.
37250         [!weak_alias]: Define __memchr to memchr.
37251
37252         * lib/regex.c: Update from libc.
37253         * lib/regex.h: Likewise.
37254         * lib/getopt1.c: Likewise.
37255         * lib/memcmp.c: Likewise.
37256
37257         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
37258         Avoid using fseek, when possible -- it's broken by design.
37259         Patch by Ulrich Drepper.
37260
37261 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
37262
37263         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
37264         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
37265         Giving in to popular pressure to shut up the compiler with casts.
37266
37267 2000-10-26  Jim Meyering  <meyering@lucent.com>
37268
37269         * lib/strftime.c: Update from libc.
37270
37271 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
37272
37273         * regex.c: More `unsigned char' -> `re_char' changes.
37274         Also change several `int' into `re_wchar_t'.
37275         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
37276         (PUSH_FAILURE_POINTER): Don't cast any more.
37277         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
37278         We want GCC to complain, since this piece of code makes
37279         re_match non-reentrant, which *should* be fixed.
37280         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
37281         (EXTEND_BUFFER): Use RETALLOC.
37282         (SET_LIST_BIT): Don't cast.
37283         (re_wchar_t): New type.
37284         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
37285         that those two functions will always properly return.
37286         (IMMEDIATE_QUIT_CHECK): Cast to void.
37287         (analyse_first): Use recursion rather than an explicit stack.
37288         (re_compile_fastmap): Can't fail anymore.
37289         (re_search_2): Don't check re_compile_fastmap for failure.
37290         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
37291         Now also sets the new value (passed in a new argument).
37292         (re_match_2_internal): Use it.
37293         Also, use a new var `reg' of type size_t when looping through regs
37294         rather than reuse the inappropriate `mcnt'.
37295
37296 2000-10-25  Jim Meyering  <meyering@lucent.com>
37297
37298         * lib/obstack.c: Update from libc.
37299
37300 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
37301
37302         * regex.c (regex_compile): Change the way of handling a range from
37303         a char less than 256 to a char not less than 256.
37304
37305 2000-10-24  Andrew Innes  <andrewi@gnu.org>
37306
37307         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
37308         NT-Emacs only.
37309         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
37310         so that re_search functions only quit when callers expect them to.
37311
37312 2000-10-23  Jim Meyering  <meyering@lucent.com>
37313
37314         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
37315         wrong.  That set_locale call must not have any side effects.
37316         From Paul Eggert.
37317
37318 2000-10-22  Jim Meyering  <meyering@lucent.com>
37319
37320         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
37321         [CYCLIC]: Remove now-unused definition.
37322
37323         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
37324         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
37325         Suggestion from Ulrich Drepper.
37326
37327 2000-10-21  Jim Meyering  <meyering@lucent.com>
37328
37329         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
37330         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
37331         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
37332
37333 2000-10-21  Jim Meyering  <meyering@lucent.com>
37334
37335         * lib/dirname.c (memrchr): Declare if necessary.
37336         (dir_name): Remove the restriction that there be no
37337         trailing slashes.  Now, this code skips past them, effectively
37338         ignoring them.
37339         [TEST_DIRNAME] (main): New unit tests.
37340
37341         * lib/memrchr.c: New file from GNU libc.
37342         Undef __memrchr, too.
37343         [!weak_alias]: Define __memrchr to memrchr.
37344         Guard weak_alias use with `#ifdef weak_alias'.
37345
37346 2000-10-21  Jim Meyering  <meyering@lucent.com>
37347
37348         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
37349         (dir_name): Use dir_name_r.
37350         * lib/dirname.h (dir_name_r): Declare it.
37351
37352 2000-10-17  Jim Meyering  <meyering@lucent.com>
37353
37354         * lib/quote.h (PARAMS): Define and use.
37355         Reported by Akim Demaille.
37356
37357         * lib/getopt.c: Update from libc.
37358
37359 2000-10-16  Jim Meyering  <meyering@lucent.com>
37360
37361         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
37362         setlocale.
37363         From Jan Fedak.
37364
37365 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
37366
37367         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
37368
37369 2000-09-25  Jim Meyering  <meyering@lucent.com>
37370
37371         * lib/md5.h (rol): Define (from GnuPG).
37372
37373         * lib/sha.c: Give credit (GnuPG) where due.
37374         (M): Use rol rather than open-coding it.
37375         Add a FIXME comment.
37376
37377 2000-09-21  Jim Meyering  <meyering@lucent.com>
37378
37379         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
37380         Reported by Michael Stone.
37381
37382 2000-09-20  Jim Meyering  <meyering@lucent.com>
37383
37384         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
37385         (noinst_HEADERS): Add sha.h.
37386         Based on code from Scott G. Miller and from GnuPG.
37387
37388 2000-09-18  Jim Meyering  <meyering@lucent.com>
37389
37390         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
37391         LIBS. Otherwise, everyone ends up linking with -lelf for some
37392         configurations.
37393         Reported by Mike Stone.
37394
37395 2000-09-15  Jim Meyering  <meyering@lucent.com>
37396
37397         * lib/regex.c: Update from libc.
37398
37399 2000-09-10  Jim Meyering  <meyering@lucent.com>
37400
37401         * lib/getopt.c (_getopt_internal): Update from glibc.
37402
37403 2000-09-09  Jim Meyering  <meyering@lucent.com>
37404
37405         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
37406         think it should be used as a general replacement for isascii.
37407         * lib/fnmatch.c: Likewise.
37408         * lib/mbswidth.c: Likewise
37409         * lib/regex.c: Likewise.
37410
37411         Don't use atoi.
37412         * lib/userspec.c: Include sys/param.h and limits.h.
37413         Include xstrtol.h.
37414         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
37415         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
37416         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
37417         UID, GID.  Check range.
37418
37419 2000-09-06  Jim Meyering  <meyering@lucent.com>
37420
37421         * lib/getopt.c (_getopt_internal): Update from glibc.
37422
37423 2000-08-30  Jim Meyering  <meyering@lucent.com>
37424
37425         * lib/strftime.c: Merge in changes from GNU libc.
37426
37427 2000-08-26  Jim Meyering  <meyering@lucent.com>
37428
37429         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
37430         * m4/fpending.m4: New file.
37431
37432 2000-08-26  Jim Meyering  <meyering@lucent.com>
37433
37434         * lib/closeout.c: Include "__fpending.h".
37435         (close_stdout_status): Return right away if there's nothing to flush.
37436
37437         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
37438         * lib/__fpending.c: New file.
37439         * lib/__fpending.h: New file.
37440
37441 2000-08-20  Jim Meyering  <meyering@lucent.com>
37442
37443         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
37444         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
37445         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
37446
37447 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
37448
37449         Improve fileutils installation on systems where running
37450         programs (like install) can't be unlinked.
37451         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
37452         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
37453
37454 2000-08-07  Paul Eggert  <eggert@twinsun.com>
37455
37456         Standardize on "memory exhausted" instead of "Memory exhausted"
37457         or "virtual memory exhausted".
37458         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
37459         "virtual memory exhausted".
37460         * lib/same.c (same_name): Invoke xalloc_die instead of printing
37461         our own message.
37462         * lib/userspec.c (parse_user_spec): Likewise.
37463         * lib/bumpalloc.h: comment fix
37464         * lib/same.c, userspec.c: Include xalloc.h.
37465
37466         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
37467         not char *const and pointing to a constant array.
37468         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
37469         (xrealloc): Comment fix.
37470
37471         * lib/userspec.c (parse_user_spec):
37472         Don't translate a message until just before returning,
37473         to avoid unnecessary translation.
37474
37475 2000-08-07  Jim Meyering  <meyering@lucent.com>
37476
37477         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
37478         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
37479         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
37480         getgroups.c, gethostname.c, getopt.h, group-member.c,
37481         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
37482         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
37483         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
37484         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
37485         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
37486         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
37487         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
37488         yesno.c: Back out Copyright date changes for each file with no change
37489         this year.  This eases coordination with other programs using the same
37490         source code modules.  From Paul Eggert.
37491
37492 2000-08-06  Paul Eggert  <eggert@twinsun.com>
37493
37494         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
37495         not char, for compatibility with glibc 2.1.3 strftime.c.
37496
37497 2000-08-03  Greg McGary  <greg@mcgary.org>
37498
37499         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
37500         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
37501         (EXTEND_BUFFER): Use them.
37502
37503 2000-08-01  Jim Meyering  <meyering@lucent.com>
37504
37505         * lib/dirname.c (ISSLASH): Define.
37506         (BACKSLASH_IS_PATH_SEPARATOR): Define.
37507         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
37508         both `\' and `/' may be use as path separators.
37509         Based on a patch from Prashant TR.
37510
37511 2000-07-31  Paul Eggert  <eggert@twinsun.com>
37512
37513         * lib/quotearg.c (quotearg_n_options): Don't make the initial
37514         slot vector a constant, since it might get modified.
37515
37516 2000-07-31  Jim Meyering  <meyering@lucent.com>
37517
37518         * lib/xmalloc.c: Use `virtual memory exhausted', not
37519         `Memory exhausted'.
37520         * lib/obstack.c (print_and_abort): Likewise.
37521
37522 2000-07-30  Paul Eggert  <eggert@twinsun.com>
37523
37524         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
37525         buffer, so that the caller can always quote one small
37526         component of a "memory exhausted" message in slot 0.
37527         From a suggestion by Jim Meyering.
37528
37529 2000-07-30  Jim Meyering  <meyering@lucent.com>
37530
37531         * lib/makepath.c (make_path): Quote the other instance, too.
37532
37533         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
37534         (STATIC_BUF_SIZE): Define.
37535         (quotearg_n_options): Use only statically allocated storage when
37536         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
37537         than STATIC_BUF_SIZE.
37538
37539 2000-07-29  Jim Meyering  <meyering@lucent.com>
37540
37541         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
37542         * lib/dirname.c (dir_name): Likewise.
37543
37544         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
37545         `/'.
37546
37547         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
37548         (dir_name): Assert that there are no trailing slashes.
37549
37550 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
37551
37552         * lib/mbswidth.h (mbswidth): Add a flags argument.
37553         (mbswidth): New declaration.
37554         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
37555         * lib/mbswidth.c (mbswidth): Add a flags argument.
37556         (mbsnwidth): New function.
37557
37558 2000-07-24  Jim Meyering  <meyering@lucent.com>
37559
37560         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
37561
37562 2000-07-23  Paul Eggert  <eggert@twinsun.com>
37563
37564         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
37565
37566 2000-07-23  Paul Eggert  <eggert@twinsun.com>
37567
37568         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
37569         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
37570         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
37571         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
37572         invoke multibyte primitives.
37573
37574 2000-07-23  Paul Eggert  <eggert@twinsun.com>
37575
37576         * lib/quotearg.c:
37577         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
37578         so that mbstate_t is always defined.
37579
37580         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
37581         be 1 in at least one GCC installation, and this configuration
37582         error is likely to be common.  Ignoring MB_LEN_MAX hurts
37583         performance on hosts that have mbrtowc but have only unibyte
37584         locales, but I assume these hosts are rare.
37585
37586 2000-07-23  Paul Eggert  <eggert@twinsun.com>
37587
37588         * lib/mbswidth.c (_XOPEN_SOURCE):
37589         Don't define; this causes problems on Solaris 7.
37590         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
37591
37592 2000-07-23  Jim Meyering  <meyering@lucent.com>
37593
37594         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
37595         too: getgrgid, getpwuid, getuid.
37596
37597 2000-07-23  Jim Meyering  <meyering@lucent.com>
37598
37599         * lib/basename.c (base_name): Add an assertion.
37600
37601 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
37602
37603         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
37604         shadow its mbsinit function.
37605
37606 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
37607
37608         * lib/mbswidth.h: New file.
37609         * lib/mbswidth.c: New file.
37610         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
37611         (noinst_HEADERS): Add mbswidth.h.
37612
37613 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
37614
37615         * lib/config.charset: Add support for FreeBSD. Improve support for
37616         HP-UX and IRIX 6.
37617
37618 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
37619
37620         * m4/mbswidth.m4: New file.
37621         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
37622
37623 2000-07-15  Jim Meyering  <meyering@lucent.com>
37624
37625         * lib/makepath.c: Include quote.h.
37626         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
37627         corresponding argument in a `quote (...)' call.
37628         Give better diagnostics.
37629
37630         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
37631         (noinst_HEADERS): Add quote.h.
37632
37633         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
37634         from tar's src/misc.c.
37635         * lib/quote.h: New file.  Prototypes for same.
37636
37637 2000-07-14  Paul Eggert  <eggert@twinsun.com>
37638
37639         From a suggestion by Bruno Haible.
37640         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
37641         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
37642         to decide whether to define the BeOS workaround macro;
37643         this adjusts to the change to AC_MBSTATE_T.
37644
37645 2000-07-14  Jim Meyering  <meyering@lucent.com>
37646
37647         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
37648         jm_AC_TYPE_UINTMAX_T.
37649
37650 2000-07-13  Paul Eggert  <eggert@twinsun.com>
37651
37652         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
37653
37654         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
37655         quotearg_buffer_restyled): Add support for
37656         clocale_quoting_style.  Undo previous change to
37657         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
37658         and "{RIGHT QUOTATION MARK}" msgids.
37659
37660 2000-07-10  Paul Eggert  <eggert@twinsun.com>
37661
37662         From a suggestion by Bruno Haible.
37663         * m4/mbstate_t.m4 (AC_MBSTATE_T):
37664         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
37665         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
37666         and mbstate_t, to a single-part test that simply defines mbstate_t.
37667         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
37668         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
37669
37670 2000-07-10  Jim Meyering  <meyering@lucent.com>
37671
37672         * m4/strerror_r.m4: Mirror the correction made in autoconf.
37673
37674         * m4/gnu-source.m4: Output to confdefs.h directly.
37675         Suggestion from Akim Demaille.
37676
37677 2000-07-09  Paul Eggert  <eggert@twinsun.com>
37678
37679         The old behavior of quoting `like this' doesn't look good with
37680         newer, ISO-style fonts.  See:
37681         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
37682
37683         Instead, quote "like this" by default.  Let the translator
37684         tailor the locale-specific quoting behavior by providing
37685         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
37686
37687         * lib/quotearg.c (N_): New macro.
37688         (gettext_default): New function.
37689         (quotearg_buffer_restyled): Use
37690         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
37691         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
37692
37693 2000-07-09  Jim Meyering  <meyering@lucent.com>
37694
37695         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
37696         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
37697
37698         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
37699         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
37700
37701 2000-07-09  Jim Meyering  <meyering@lucent.com>
37702
37703         * lib/Most files: Update copyright dates to include 2000.
37704
37705 2000-07-08  Jim Meyering  <meyering@lucent.com>
37706
37707         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
37708         if not defined.
37709         (xgethostname): Remove now-unnecessary #ifdef.
37710         Move declaration of `err' into loop where it's used.
37711
37712 2000-07-05  Paul Eggert  <eggert@twinsun.com>
37713         and Bruno Haible  <haible@clisp.cons.org>
37714
37715         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
37716         only if the test for an object-type mbstate_t fails.  This
37717         prevents us from mistakenly reporting that mbstate_t is a
37718         system object type after we "#define mbstate_t int" to work
37719         around its lack.
37720
37721 2000-07-05  Paul Eggert  <eggert@twinsun.com>
37722         and Bruno Haible  <haible@clisp.cons.org>
37723
37724         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
37725
37726 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
37727
37728         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
37729         to strerror_r.
37730         Include <ctype.h> for use of isalpha.
37731
37732 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
37733
37734         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
37735         by allocating a larger buffer. Test the gethostname return value for
37736         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
37737         returns an error and ENAMETOOLONG isn't defined.
37738
37739 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
37740
37741         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
37742         dimension.
37743
37744 2000-07-04  Jim Meyering  <meyering@lucent.com>
37745
37746         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
37747         of the deprecated AC_CHECKING.
37748
37749 2000-07-04  Jim Meyering  <meyering@lucent.com>
37750
37751         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
37752         Reported by Bruno Haible.
37753
37754 2000-07-04  Jim Meyering  <meyering@lucent.com>
37755
37756         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
37757         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
37758         lacks mbrtowc.
37759
37760 2000-07-03  Paul Eggert  <eggert@twinsun.com>
37761
37762         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
37763         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
37764
37765 2000-07-03  Paul Eggert  <eggert@twinsun.com>
37766         and Bruno Haible  <haible@clisp.cons.org>
37767
37768         * lib/quotearg.c (mbrtowc):
37769         Assign to *pwc, and return 1 only if result is nonzero.
37770         (iswprint): Use ISPRINT when substituting our own mbrtowc.
37771
37772 2000-07-03  Jim Meyering  <meyering@lucent.com>
37773
37774         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
37775
37776 2000-07-03  Jim Meyering  <meyering@lucent.com>
37777
37778         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
37779         This is necessary to get a definition of e.g., UTMP_FILE on
37780         HP-UX 10.20.
37781         From Bob Proulx.
37782
37783 2000-07-02  Jim Meyering  <meyering@lucent.com>
37784
37785         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
37786
37787         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
37788         AC_LIBOBJ(function_name).
37789         * m4/chown.m4: Likewise.
37790         * m4/fnmatch.m4: Likewise.
37791         * m4/ftruncate.m4: Likewise.
37792         * m4/getgroups.m4: Likewise.
37793         * m4/getline.m4: Likewise.
37794         * m4/group-member.m4: Likewise.
37795         * m4/jm-macros.m4: Likewise.
37796         * m4/lstat.m4: Likewise.
37797         * m4/malloc.m4: Likewise.
37798         * m4/memcmp.m4: Likewise.
37799         * m4/nanosleep.m4: Likewise.
37800         * m4/putenv.m4: Likewise.
37801         * m4/realloc.m4: Likewise.
37802         * m4/regex.m4: Likewise.
37803         * m4/stat.m4: Likewise.
37804         * m4/strftime.m4: Likewise.
37805
37806 2000-07-02  Jim Meyering  <meyering@lucent.com>
37807
37808         * lib/quotearg.c (mbstate_t): Don't define here.
37809
37810 2000-07-02  Jim Meyering  <meyering@lucent.com>
37811
37812         * lib/nanosleep.c (SIGCONT): Define if not already defined.
37813
37814 2000-07-01  Jim Meyering  <meyering@lucent.com>
37815
37816         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
37817
37818 2000-07-01  Jim Meyering  <meyering@lucent.com>
37819
37820         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
37821         problem.
37822
37823 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
37824
37825         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
37826         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
37827
37828 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
37829
37830         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
37831         per change in ../m4/ls-mntd-fs.m4.
37832         (read_filesystem_list): Ignore symbolic links.
37833
37834 2000-06-29  Jim Meyering  <meyering@lucent.com>
37835
37836         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
37837         for declaration of strcmp.
37838
37839         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
37840
37841         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
37842         Avoid warning by casting result to `char *' to remove `const'.
37843
37844 2000-06-28  Jim Meyering  <meyering@lucent.com>
37845
37846         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
37847         included by quotearg.c, for which we perform this test.  From
37848         Bruno Haible.
37849
37850 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
37851
37852         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
37853         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
37854         <utmpx.h> exists, put readutmp.o into LIBOBJS.
37855
37856 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
37857
37858         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
37859
37860 2000-06-26  Paul Eggert  <eggert@twinsun.com>
37861
37862         savedir now sets errno on failure and invokes xmalloc to get memory.
37863         Fix a couple of other minor bugs while we're at it.
37864
37865         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
37866         (NAMLEN): Remove macro.
37867         (malloc, realloc): Remove decls.
37868         (stpcpy): Likewise.
37869         ("xalloc.h"): Include.
37870         (NAME_SIZE_DEFAULT): New macro.
37871         (savedir): Use xmalloc / xrealloc to allocate memory.
37872         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
37873         Skip "" directory entries.
37874         Use strlen to calculate directory entry length, since the old method
37875         is rarely used these days and isn't worth supporting.
37876         Don't use a pointer after freeing it.
37877         Check for integer overflow when calculating allocation size.
37878         Use memcpy to copy entries, instead of stpcpy.
37879         Set errno properly when returning NULL.
37880         Check for readdir error.
37881
37882 2000-06-26  Jim Meyering  <meyering@lucent.com>
37883
37884         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
37885
37886 2000-06-25  Jim Meyering  <meyering@lucent.com>
37887
37888         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
37889         Linux header bug when _XOPEN_SOURCE is defined to 500.
37890
37891 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
37892
37893         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
37894         deficiency.
37895
37896 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
37897
37898         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
37899         Include xalloc.h.
37900         Don't include <stdlib.h>.  Don't declare malloc, realloc.
37901
37902 2000-06-24  Jim Meyering  <meyering@lucent.com>
37903
37904         * m4/strerror_r.m4: Revive this file -- to try out an experimental
37905         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
37906         for which strerror does return char*, but which lacks a conveniently
37907         accessible declaration of the function.  If the compile-test says
37908         strerror_r doesn't work, then resort to a `run'-test that works on
37909         BeOS and segfaults on DEC Unix.
37910
37911 2000-06-24  Jim Meyering  <meyering@lucent.com>
37912
37913         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
37914
37915 2000-06-23  Paul Eggert  <eggert@twinsun.com>
37916
37917         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
37918         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
37919
37920 2000-06-23  Paul Eggert  <eggert@twinsun.com>
37921
37922         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
37923         (mbrtowc, mbstate_t): Define substitutes if
37924         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
37925         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
37926         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
37927
37928 2000-06-23  Jim Meyering  <meyering@lucent.com>
37929
37930         * m4/afs.m4: Add missing AC_MSG_RESULT.
37931         Reported by Bruno Haible.
37932
37933         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
37934         Suggestion from Bruno Haible.
37935
37936 2000-06-23  Jim Meyering  <meyering@lucent.com>
37937
37938         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
37939
37940 2000-06-21  Jim Meyering  <meyering@lucent.com>
37941
37942         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
37943
37944 2000-06-21  Jim Meyering  <meyering@lucent.com>
37945
37946         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
37947         (noinst_HEADERS): Add getstr.h.
37948
37949         * lib/getline.c (getstr): Move into a separate file.
37950         * lib/getstr.c (getstr): New file, extracted from getline.c, with
37951         the following changes: new parameter, delim2; both delim[12]
37952         parameters have type `int', not `char'.  The latter would lose
37953         with 8-bit delimiters.
37954         * lib/getstr.h: New file.
37955
37956 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
37957
37958         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
37959         than 1024, return a memory chunk of least possible size, instead
37960         of size PATH_MAX + 2. In the loop, increment the size proportionally.
37961         Use free/xmalloc instead of xrealloc to avoid copying for very long
37962         paths.
37963
37964 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
37965
37966         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
37967         the empty string.
37968
37969 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
37970
37971         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
37972         address, not strdup.  Include <stdlib.h> and don't declare free().
37973
37974 2000-06-19  Jim Meyering  <meyering@lucent.com>
37975
37976         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
37977
37978 2000-06-18  Jim Meyering  <meyering@lucent.com>
37979
37980         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
37981
37982         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
37983         `checking whether...' message to be consistent with that of the
37984         lstat test.
37985
37986 2000-06-18  Jim Meyering  <meyering@lucent.com>
37987
37988         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
37989         Besides, these days every porting target provides a mkdir function.
37990
37991         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
37992         needed. (this snippet comes from src/system.h).
37993
37994 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
37995
37996         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
37997
37998 2000-06-15  Paul Eggert  <eggert@twinsun.com>
37999
38000         * lib/human.c (adjust_value): New function.
38001         (human_readable_inexact): Apply rounding style even when
38002         printing approximate values.
38003
38004 2000-06-14  Paul Eggert  <eggert@twinsun.com>
38005
38006         * lib/human.c (human_readable_inexact): Allow an input block
38007         size that is not a multiple of the output block size, and vice versa.
38008         Reported by Piergiorgio Sartor.
38009
38010 2000-06-14  Paul Eggert  <eggert@twinsun.com>
38011
38012         * lib/getdate.y (get_date): Apply relative times after time
38013         zone indicator, not before.  Reported by Todd A. Jacobs.
38014
38015 2000-06-13  Jim Meyering  <meyering@lucent.com>
38016
38017         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
38018
38019         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
38020
38021 2000-06-12  Paul Eggert  <eggert@twinsun.com>
38022
38023         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
38024
38025 2000-06-12  Jim Meyering  <meyering@lucent.com>
38026
38027         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
38028         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
38029         optional argument.
38030         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
38031         the optional argument, `lib'.
38032
38033 2000-06-08  Jim Meyering  <meyering@lucent.com>
38034
38035         * m4/largefile.m4: Remove file (now that it's part of autoconf).
38036
38037 2000-06-04  Paul Eggert  <eggert@twinsun.com>
38038
38039         Rewrite largefile configuration so that we don't need to run
38040         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
38041         AC_CANONICAL_HOST in configure.in -- jmm]
38042
38043         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
38044         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
38045         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
38046         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
38047         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
38048         All uses changed.
38049         Instead of inspecting the output of getconf, try to compile the
38050         test program without and with the macro definition.
38051         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
38052         for getconf.  Instead, check for the needed flags by compiling
38053         test programs.
38054
38055 2000-06-04  Paul Eggert  <eggert@twinsun.com>
38056
38057         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
38058
38059 2000-06-04  Jim Meyering  <meyering@lucent.com>
38060
38061         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
38062         SunOS 4.1.4 for which gid_t is an unsigned type.
38063
38064 2000-06-03  Jim Meyering  <meyering@lucent.com>
38065
38066         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
38067         now that autoconf requires that.
38068
38069         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
38070         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
38071         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
38072
38073 2000-06-03  Jim Meyering  <meyering@lucent.com>
38074
38075         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
38076
38077 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
38078
38079         * m4/glibc21.m4: New file.
38080         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
38081
38082 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
38083
38084         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
38085         newer, don't install charset.alias.
38086         * lib/config.charset: Change the Linux/glibc rules so they become empty
38087         on glibc-2.1 or newer.
38088
38089 2000-06-02  Jim Meyering  <meyering@lucent.com>
38090
38091         * lib/mountlist.c: Back out last change.  Instead, do this...
38092         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
38093         me_dummy member using the same `ignore'-testing code.
38094         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
38095         fs_type strings.
38096         From Mark D. Roth.
38097
38098 2000-05-29  Jim Meyering  <meyering@lucent.com>
38099
38100         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
38101         mounts with the `ignore' attribute.  Based on a patch from
38102         Mark D. Roth.
38103
38104 2000-05-28  Jim Meyering  <meyering@lucent.com>
38105
38106         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
38107         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
38108         * m4/stat.m4: Likewise.
38109         * m4/lstat.m4: Likewise.
38110         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
38111
38112         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
38113         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
38114
38115 2000-05-26  Jim Meyering  <meyering@lucent.com>
38116
38117         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
38118
38119 2000-05-24  Jim Meyering  <meyering@lucent.com>
38120
38121         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
38122         autoconf requires that.
38123         * m4/lib-check.m4: Likewise.
38124         * m4/jm-macros.m4: Likewise.
38125         * m4/strftime.m4: Likewise.
38126
38127         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
38128         AC_CHECK_DECLS, now that autoconf requires that.
38129
38130 2000-05-22  Jim Meyering  <meyering@lucent.com>
38131
38132         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
38133         * m4/lstat.m4: Likewise.
38134
38135 2000-05-22  Jim Meyering  <meyering@lucent.com>
38136
38137         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
38138
38139 2000-05-20  Jim Meyering  <meyering@lucent.com>
38140
38141         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
38142         (jm_PREREQ): Use it.
38143
38144 2000-05-18  Jim Meyering  <meyering@lucent.com>
38145
38146         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
38147         back, too, since it may have been modified by allocate_entry.
38148         (hash_delete): Rewrite to use neither the assignment operator
38149         nor the comma operator in an if-expression.
38150
38151 2000-05-15  Paul Eggert  <eggert@twinsun.com>
38152
38153         * lib/closeout.c:
38154         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
38155         Remove; no longer needed.
38156         "quotearg.h": Add include.
38157         (file_name): Do not bother to explicitly initialize to NULL; it's less
38158         efficient on some hosts.
38159         (close_stdout_status): Remove test as to whether stdout was already
38160         closed; it breaks for the case "echo x | sort >&-".
38161         Quote file name colons.
38162         Do not assume that _("write error") lacks format strings.
38163
38164 2000-05-15  Jim Meyering  <meyering@lucent.com>
38165
38166         * lib/version-etc.c (version_etc_copyright): Update the copyright
38167         string used in all --version output.
38168
38169 2000-05-14  Jim Meyering  <meyering@lucent.com>
38170
38171         * lib/closeout.c (close_stdout_set_file_name): New function.
38172         (close_stdout_status): Use new file-scoped global.
38173         Return right away if fstat says the stdout file descriptor is invalid.
38174         * lib/closeout.h (close_stdout_set_file_name): Declare.
38175
38176 2000-05-10  Jim Meyering  <meyering@lucent.com>
38177
38178         * lib/closeout.c [default_exit_status]: New file-scoped variable.
38179         (close_stdout_set_status): New function.
38180         * lib/closeout.h (close_stdout_set_status): Declare.
38181
38182 2000-05-09  Jim Meyering  <meyering@lucent.com>
38183
38184         * m4/gettext.m4: Rename this...
38185         * m4/libintl.m4: ...to this.
38186
38187 2000-05-08  Jim Meyering  <meyering@lucent.com>
38188
38189         * lib/long-options.c: Don't include closeout.h.
38190         (parse_long_options): Don't call close_stdout for --version.
38191
38192 2000-05-06  Paul Eggert  <eggert@twinsun.com>
38193
38194         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
38195         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
38196         2.1.3 bug.  This avoids a clash when files like regex.c define
38197         _GNU_SOURCE.
38198
38199 2000-05-06  Jim Meyering  <meyering@lucent.com>
38200
38201         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
38202         (AC_REPLACE_FUNCS): Add strnlen.
38203
38204         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
38205         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
38206
38207         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
38208         AC_SEARCH_LIBS call for nanosleep.
38209         (LIB_NANOSLEEP): Set and AC_SUBST.
38210
38211 2000-05-06  Jim Meyering  <meyering@lucent.com>
38212
38213         * lib/strnlen.c: Undefine __strnlen and strnlen.
38214         [!weak_alias]: Define __strnlen to strnlen.
38215
38216         * lib/atexit.c: New file, from libiberty.
38217
38218 2000-05-06  Jim Meyering  <meyering@lucent.com>
38219
38220         * lib/closeout.c (close_stdout_status): Also check for errors on the
38221         stderr stream.
38222
38223 2000-05-05  Jim Meyering  <meyering@lucent.com>
38224
38225         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
38226         AC_SEARCH_LIBS call for clock_gettime.
38227         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
38228
38229         * m4/search-libs.m4: Update from autoconf.
38230
38231         su doesn't work on Solaris 2.6.
38232         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
38233         <shadow.h>.  Reported by Dragos Harabor.
38234
38235 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
38236
38237         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
38238         memcpy instead of xmalloc, xrealloc, path_concat.
38239         (locale_charset): Treat empty environment variables as absent.
38240         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
38241
38242 2000-05-04  Jim Meyering  <meyering@lucent.com>
38243
38244         * lib/getopt.c: Update from glibc.
38245         * lib/obstack.c: Likewise.
38246         * lib/obstack.h: Likewise.
38247         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
38248         file
38249
38250         * lib/regex.h: Likewise.
38251         * lib/strndup.c: Likewise.
38252         * lib/strnlen.c: New file, from glibc.
38253
38254 2000-05-03  Jim Meyering  <meyering@lucent.com>
38255
38256         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
38257
38258 2000-05-02  Paul Eggert  <eggert@twinsun.com>
38259
38260         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
38261         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
38262         compile-time test, rather than inspecting host and OS, to
38263         decide whether to define _LARGEFILE_SOURCE.
38264
38265 2000-05-01  Jim Meyering  <meyering@lucent.com>
38266
38267         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
38268
38269         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
38270         Based on a patch from Bruno Haible.
38271
38272 2000-05-01  Jim Meyering  <meyering@lucent.com>
38273
38274         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
38275
38276 2000-04-29  Jim Meyering  <meyering@lucent.com>
38277
38278         * lib/path-concat.c: Declare strdup only if it's not defined.
38279         * lib/canon-host.c: Likewise.
38280
38281 2000-04-28  Jim Meyering  <meyering@lucent.com>
38282
38283         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
38284         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
38285         is included first, then limits.h is included by locale.h by libintl.h.
38286         From John David Anglin.
38287
38288 2000-04-25  Jim Meyering  <meyering@lucent.com>
38289
38290         * lib/makepath.c (S_IRWXUGO): Define.
38291         (make_path): Always perform explicit chmod if MODE specifies any
38292         of the `special' permission bits.  Prompted by a bug report against
38293         install from Mate Wierdl and Joost van Baal.
38294
38295 2000-04-18  Jim Meyering  <meyering@lucent.com>
38296
38297         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
38298         (jm_PREREQ): Use it.
38299
38300 2000-04-18  Jim Meyering  <meyering@lucent.com>
38301
38302         * lib/README: New file.
38303
38304         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
38305         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
38306
38307 2000-04-17  Jim Meyering  <meyering@lucent.com>
38308
38309         Get it right :-)
38310         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
38311         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
38312         Suggestion from Akim Demaille.
38313
38314 2000-04-17  Jim Meyering  <meyering@lucent.com>
38315
38316         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
38317         the definition of it to rpl_strftime also defined-away the system's
38318         declaration.
38319
38320 2000-04-15  Jim Meyering  <meyering@lucent.com>
38321
38322         Use `C' to denote so-called `contiguous' files, the same way
38323         that tar does.
38324         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
38325         (ftypelet): Use S_ISCTG.
38326         From Michael Deutschmann.
38327
38328 2000-04-14  Jim Meyering  <meyering@lucent.com>
38329
38330         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
38331         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
38332         clobbered.
38333
38334 2000-04-14  Jim Meyering  <meyering@lucent.com>
38335
38336         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
38337
38338 2000-04-13  Jim Meyering  <meyering@lucent.com>
38339
38340         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
38341         AH_VERBATIM to insert required #ifndef into config.h.in.
38342         Suggestion from Akim Demaille.
38343
38344 2000-04-12  Jim Meyering  <meyering@lucent.com>
38345
38346         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
38347         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
38348         Christian Krackowizer.
38349
38350         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
38351         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
38352         (AC_SYS_LARGEFILE): Require.
38353         (AM_C_PROTOTYPES): Require.
38354
38355 2000-04-08  Jim Meyering  <meyering@lucent.com>
38356
38357         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
38358         names don't conflict.  Reported by Eli Zaretskii.
38359
38360 2000-04-07  Jim Meyering  <meyering@lucent.com>
38361
38362         * lib/putenv.c: Move inclusion of errno.h so it follows that of
38363         sys/types.h, to work around system header problems on AIX 3.2.5.
38364         From Bruno Haible.
38365
38366 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
38367
38368         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
38369         bug.  Deal with the different error behavior of Irix iconv.
38370
38371 2000-04-05  Paul Eggert  <eggert@twinsun.com>
38372
38373         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
38374         IRIX if the installer said otherwise.
38375
38376 2000-04-05  Jim Meyering  <meyering@lucent.com>
38377
38378         Portability tweaks required for ultrix4.3.
38379         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
38380         (jm_CHECK_DECLS): Add getutent to the list of functions.
38381         (_jm_DECL_HEADERS): Add utmpx.h.
38382         From John David Anglin.
38383
38384         * m4/strftime.m4: Back out the 2000-04-02 change.
38385         Instead of that change, simply undefine putenv in the test program.
38386
38387 2000-04-05  Jim Meyering  <meyering@lucent.com>
38388
38389         Portability tweaks required for ultrix4.3.
38390         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
38391         getutent.
38392         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
38393         * lib/canon-host.c: Declare strdup.
38394         * lib/path-concat.c: Likewise.
38395         From John David Anglin.
38396
38397 2000-04-04  Jim Meyering  <meyering@lucent.com>
38398
38399         Be more DOS 8.3-friendly.
38400         * lib/ref-add.sin: Renamed from ref-add.sed.in.
38401         * lib/ref-del.sin: Renamed from ref-del.sed.in.
38402         * lib/Makefile.am: Reflect renaming.
38403         Reported by Eli Zaretskii.
38404
38405         Use a temporary file name that won't clash with `charset.alias'
38406         in the DOS 8.3 name space.
38407         * lib/Makefile.am (charset_tmp): Define.
38408         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
38409         (uninstall-local): Likewise.
38410         Reported by Eli Zaretskii.
38411
38412 2000-04-03  Jim Meyering  <meyering@lucent.com>
38413
38414         * m4/gettext.m4: Fix typo in comment.
38415
38416         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
38417         textutils/configure.in).  Suggestion from Paul Eggert.
38418         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
38419
38420 2000-04-02  Paul Eggert  <eggert@twinsun.com>
38421
38422         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
38423         variable in the shell rather than using putenv, which isn't
38424         portable.  This avoids the configure-time inter-test dependency
38425         on the potentially-renamed putenv function.
38426
38427 2000-03-30  Paul Eggert  <eggert@twinsun.com>
38428
38429         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
38430         before checking struct stat.st_blksize, so that
38431         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
38432
38433 2000-03-29  Paul Eggert  <eggert@twinsun.com>
38434
38435         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
38436         since strftime.c uses HAVE_STRFTIME to decide whether to use
38437         the underlying strftime.
38438
38439 2000-03-29  Paul Eggert  <eggert@twinsun.com>
38440
38441         * lib/time/strftime.c (my_strftime): Make sure we call the system
38442         strftime, not ourselves, when invoking the underlying strftime.
38443
38444 2000-03-24  Jim Meyering  <meyering@lucent.com>
38445
38446         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
38447         (charset_alias): Define.
38448         (install-exec-local): Factor out common code.
38449         (uninstall-local): Split lines longer than 80.
38450         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
38451         (SUFFIXES): Define.
38452         (.sed.in.sed): New rule.  Don't redirect directly to $@.
38453         (CLEANFILES): Add ref-add.sed and ref-del.sed.
38454
38455 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
38456
38457         * lib/config.charset: Output a line containing "Packages using this
38458         file".
38459         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
38460         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
38461         ref-del.sed): New rules.
38462
38463 2000-03-17  Jim Meyering  <meyering@lucent.com>
38464
38465         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
38466         Otherwise, include <strings.h>
38467
38468 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
38469
38470         * lib/unicodeio.c (utf8_wctomb): New function.
38471         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
38472         format instead of in UCS-4 with platform dependent endianness.
38473
38474 2000-03-10  Jim Meyering  <meyering@lucent.com>
38475
38476         * m4/lib-check.m4: Look for getspnam in -lgen, too.
38477         From Marco Franzen.
38478
38479 2000-03-07  Paul Eggert  <eggert@twinsun.com>
38480
38481         * lib/savedir.c (savedir): Work even if directory size is
38482         negative; this can happen with some screwy NFS configurations.
38483
38484 2000-03-06  Jim Meyering  <meyering@lucent.com>
38485
38486         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
38487         if it's NULL (because we ran out of memory).  From Bruno Haible.
38488
38489 2000-03-05  Jim Meyering  <meyering@lucent.com>
38490
38491         * lib/localcharset.c ("path-concat.h"): Include.
38492         (get_charset_aliases): Use path_concat instead of ANSI string
38493         concatenation.
38494
38495         * lib/unicodeio.h (PARAMS): Define.
38496         Use it to guard prototype.
38497
38498 2000-03-04  Jim Meyering  <meyering@lucent.com>
38499
38500         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
38501         for lib/localcharset.c.
38502
38503 2000-03-04  Jim Meyering  <meyering@lucent.com>
38504
38505         * lib/Makefile.am (install-exec-local): Create $(libdir) before
38506         installing into it.
38507         (uninstall-local): Uncomment this rule so `make distcheck' works
38508         once again.
38509
38510         * lib/unicodeio.c (<errno.h>): Include it.
38511         (errno): Declare if not defined.
38512
38513         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
38514
38515         * lib/config.charset: New version, incorporating remarks from a linux
38516         i18n mailing list.  From Bruno Haible.
38517
38518 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
38519
38520         * m4/codeset.m4: New file.
38521         * m4/iconv.m4: New file.
38522         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
38523
38524 2000-03-03  Jim Meyering  <meyering@lucent.com>
38525
38526         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
38527
38528 2000-03-02  Jim Meyering  <meyering@lucent.com>
38529
38530         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
38531         the messages come out on separate lines.
38532
38533         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
38534         rather than jm_CHECK_DECLARATIONS.
38535         * m4/decl.m4: Remove now-unused file.
38536
38537         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
38538         geteuid.
38539
38540 2000-03-02  Jim Meyering  <meyering@lucent.com>
38541
38542         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
38543
38544 2000-03-01  Jim Meyering  <meyering@lucent.com>
38545
38546         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
38547         * lib/unicodeio.c: Likewise.
38548
38549 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
38550
38551         * lib/config.charset: New file.
38552         * lib/localcharset.c: New file.
38553         * lib/unicodeio.h, lib/unicodeio.c: New files.
38554         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
38555         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
38556         (noinst_HEADERS): Add unicodeio.h.
38557         (all-local, install-exec-local, charset.alias): New targets.
38558
38559 2000-02-28  Paul Eggert  <eggert@twinsun.com>
38560
38561         * lib/quotearg.c (ALERT_CHAR): New macro.
38562         (quotearg_buffer_restyled): Use it.
38563
38564 2000-02-27  Jim Meyering  <meyering@lucent.com>
38565
38566         * m4/check-decl.m4: Add getenv to the list.
38567
38568 2000-02-27  Jim Meyering  <meyering@lucent.com>
38569
38570         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
38571         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
38572
38573         * lib/backupfile.c: Guard inclusion of stdlib.h with
38574         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
38575         Declare malloc if needed.
38576
38577         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
38578         `#ifndef HAVE_DECL..'
38579         now that autoconf always defines the HAVE_DECL_ symbols.
38580         * lib/human.c: Likewise.
38581         * lib/same.c: Likewise.
38582         * lib/strtoumax.c: Likewise.
38583
38584         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
38585         declaration check was not run.
38586         * lib/hash.c: Likewise.
38587         * lib/human.c: Likewise.
38588         * lib/same.c: Likewise.
38589         * lib/strtoumax.c: Likewise.
38590
38591         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
38592         `.', then first look up the entire `.'-containing string as a login
38593         name.
38594
38595 2000-02-23  Jim Meyering  <meyering@lucent.com>
38596
38597         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
38598         in place of my hack.
38599
38600 2000-02-18  Paul Eggert  <eggert@twinsun.com>
38601
38602         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
38603         (textint): New typedef.
38604         (parser_control): Member year changed from int to textint.
38605         All uses changed.
38606         (YYSTYPE): Removed; replaced by %union with int and textint members.
38607         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
38608         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
38609         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
38610         (tSNUMBER, tUNUMBER): Now of type <textintval>.
38611         (date, number, to_year): Use width of number in digits, not its value,
38612         to determine whether it's a 2-digit year, or a 2-digit time.
38613         (yylex): Store number of digits of numeric tokens.
38614         Reported by John Kendall.
38615
38616         (parser_control): Changed from struct parser_control to typedef (for
38617         consistency).  All uses changed.
38618
38619         (tID): Removed; not used.
38620         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
38621
38622 2000-02-14  Paul Eggert  <eggert@twinsun.com>
38623
38624         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
38625         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
38626
38627 2000-02-12  Jim Meyering  <meyering@lucent.com>
38628
38629         * lib/userspec.c (ISDIGIT): Define it.
38630         (isdigit): Remove definition.
38631         (is_number): Use ISDIGIT, not isdigit.
38632         <libintl.h>: Include.
38633         (_ and N_): Define.
38634         (parse_user_spec): Mark translatable strings.
38635
38636 2000-02-10  Jim Meyering  <meyering@lucent.com>
38637
38638         With these changes, nanosleep.[ch] are finally enough like the other
38639         lib/* replacement files to compile on a few more losing systems.
38640
38641         * lib/nanosleep.h: Don't include config.h.
38642         Remove prototype from declaration of nanosleep.
38643         (PARAMS): Remove now-unneeded definition.
38644         * lib/nanosleep.c: #undef nanosleep.
38645         (rpl_nanosleep): Rename from nanosleep.
38646
38647 2000-02-10  Jim Meyering  <meyering@lucent.com>
38648
38649         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
38650         gnu_nanosleep to rpl_nanosleep.
38651
38652 2000-02-09  Jim Meyering  <meyering@lucent.com>
38653
38654         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
38655         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
38656
38657 2000-02-08  Akim Demaille  <akim@epita.fr>
38658
38659         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
38660         `[' and `]' and remove uses of `changequote'.
38661         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
38662         (AC_SYS_LARGEFILE): Likewise.
38663         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
38664         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
38665         of changequote.
38666         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
38667         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
38668         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
38669         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
38670
38671 2000-02-05  Jim Meyering  <meyering@lucent.com>
38672
38673         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
38674         Remove explicit use of AC_HEADER_TIME.  It is required by
38675         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
38676         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
38677         in autoconf whereby the expansion of the latter ended up preceding
38678         the expansion of its prerequisite, AC_HEADER_TIME.
38679         Reported by Volker Borchert.
38680
38681 2000-02-03  Jim Meyering  <meyering@lucent.com>
38682
38683         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
38684
38685 2000-02-03  Jim Meyering  <meyering@lucent.com>
38686
38687         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
38688         rather than with `#if HAVE_UTMPNAME'.
38689
38690 2000-02-02  Jim Meyering  <meyering@lucent.com>
38691
38692         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
38693         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
38694         Reported by Eli Zaretskii.
38695
38696 2000-02-01  Jim Meyering  <meyering@lucent.com>
38697
38698         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
38699
38700 2000-01-31  Jim Meyering  <meyering@lucent.com>
38701
38702         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
38703         functions.  Add the time.h and sys/time.h headers along with the
38704         AC_REQUIRE'ment of AC_HEADER_TIME.
38705
38706 2000-01-31  Jim Meyering  <meyering@lucent.com>
38707
38708         * lib/nanosleep.h (nanosleep): Guard declaration with
38709         `#if ! HAVE_DECL_NANOSLEEP'.
38710         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
38711         the declaration in that vendor's sys/timers.h.
38712         Reported by Christian Krackowizer.
38713
38714         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
38715         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
38716         (ISPRINT): Likewise.
38717         Reported by Tom Tromey.
38718
38719 2000-01-30  Jim Meyering  <meyering@lucent.com>
38720
38721         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
38722
38723         * m4/prereq.m4 (utmp_includes): Define.
38724         Check for ut_user and ut_name members in both struct utmpx
38725         and struct utmp.
38726
38727 2000-01-30  Jim Meyering  <meyering@lucent.com>
38728
38729         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
38730         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
38731         header files where only utmpx.ut_user is declared.
38732
38733         * lib/readutmp.h (UT_USER): Define.
38734
38735 2000-01-29  Jim Meyering  <meyering@lucent.com>
38736
38737         * m4/lib-check.m4: New file containing library-related checks from
38738         fileutils and sh-utils (textutils had none).
38739
38740 2000-01-28  Jim Meyering  <meyering@lucent.com>
38741
38742         * m4/perl.m4: Change format of warning message to look more like that
38743         from the missing script.  Suggestion from François Pinard.
38744
38745 2000-01-25  Jim Meyering  <meyering@lucent.com>
38746
38747         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
38748         well as time.h in the compile check.
38749         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
38750         Fix typo in cross-compiling case: s/yes/no/.
38751
38752 2000-01-23  Jim Meyering  <meyering@lucent.com>
38753
38754         * m4/jm-macros.m4: Move df-related tests here from
38755         fileutils/configure.in
38756
38757         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
38758         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
38759
38760         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
38761         s/space/ac_fsusage_space/.
38762         (jm_FILE_SYSTEM_USAGE): Take two parameters.
38763
38764         * m4/ftruncate.m4: New file (derived from part of
38765         fileutils/configure.in).
38766         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
38767         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
38768
38769         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
38770         AC_SUBST these here, rather than just in sh-util/configure.in, so
38771         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
38772         all the same.
38773         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
38774         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
38775         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
38776         (AC_SUBST(POW_LIBM)): Likewise.
38777         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
38778
38779 2000-01-23  Jim Meyering  <meyering@lucent.com>
38780
38781         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
38782         obstack.c.
38783
38784 2000-01-22  Jim Meyering  <meyering@lucent.com>
38785
38786         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
38787
38788         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
38789
38790         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
38791         configure.in
38792         (AC_CHECK_HEADERS): Likewise for sh-utils.
38793         (AC_CHECK_HEADERS): Likewise for textutils.
38794         Merge the three lists of headers.
38795
38796         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
38797         from fileutils' configure.in.
38798
38799         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
38800         code. Moved tests into their own function (_jm_DECL_HEADERS) in
38801         check-decl.m4.
38802
38803         * m4/check-decl.m4: Use #if rather than #ifdef.
38804         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
38805         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
38806         (_jm_DECL_HEADERS): Define new function.
38807         (jm_CHECK_DECLARATIONS): Require it.
38808
38809 2000-01-22  Jim Meyering  <meyering@lucent.com>
38810
38811         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
38812         [! HAVE_DECL_STRTOULL]: Declare strtoull.
38813         Required for some AIX systems.  Reported by Christian Krackowizer.
38814         [TESTING] (main): New function.
38815
38816         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
38817         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
38818         letters.
38819
38820         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
38821         iswprint.
38822
38823         * lib/strverscmp.c (ISDIGIT): Define.
38824         (strverscmp): Use ISDIGIT, not isdigit.
38825
38826 2000-01-19  Jim Meyering  <meyering@lucent.com>
38827
38828         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
38829         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
38830         defines `struct timespec' in <sys/time.h>
38831
38832         * m4/c-bs-a.m4: Remove uses of changequote altogether.
38833         Thanks to Akim for explaining.
38834
38835 2000-01-17  Paul Eggert  <eggert@twinsun.com>
38836
38837         * lib/nanosleep.c (nanosleep):
38838         Don't use SA_INTERRUPT to decide whether to call sigaction, as
38839         POSIX.1 doesn't require SA_INTERRUPT and some systems
38840         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
38841         it's been part of POSIX.1 since day 1 (in 1988).
38842
38843 2000-01-17  Jim Meyering  <meyering@lucent.com>
38844
38845         * lib/interlock: Remove unused file.  Reported by François Pinard.
38846
38847 2000-01-16  Paul Eggert  <eggert@twinsun.com>
38848
38849         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
38850         alert, backslash, formfeed, and vertical tab unnecessarily in
38851         shell quoting style.
38852
38853 2000-01-16  Jim Meyering  <meyering@lucent.com>
38854
38855         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
38856         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
38857         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
38858         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
38859
38860 2000-01-16  Jim Meyering  <meyering@lucent.com>
38861
38862         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
38863         because the latter didn't work.
38864
38865 2000-01-15  Jim Meyering  <meyering@lucent.com>
38866
38867         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
38868         (AC_REPLACE_FUNCS): Add memcpy and memset.
38869         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
38870         Add strpbrk.
38871         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
38872
38873 2000-01-12  Jim Meyering  <meyering@lucent.com>
38874
38875         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
38876         (jm_PREREQ): Use it.
38877         (jm_PREREQ_READUTMP): New macro.
38878         (jm_PREREQ): Use it.
38879
38880 2000-01-11  Paul Eggert  <eggert@twinsun.com>
38881
38882         Quote multibyte characters correctly.
38883         * m4/c-bs-a.m4: New file.
38884         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
38885         (jm_PREREQ): Use it.
38886
38887 2000-01-11  Paul Eggert  <eggert@twinsun.com>
38888
38889         * m4/uintmax_t.m4: Port to autoconf 2.13.
38890
38891 2000-01-08  Jim Meyering  <meyering@ascend.com>
38892
38893         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
38894         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
38895
38896 2000-01-04  Jim Meyering  <meyering@ascend.com>
38897
38898         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
38899         jm_STRUCT_DIRENT_D_TYPE.
38900         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
38901         jm_STRUCT_DIRENT_D_INO.
38902         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
38903         jm_STRUCT_UTIMBUF.
38904         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
38905         renamings.
38906         * m4/utime.m4: Likewise.
38907
38908         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
38909         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
38910
38911 2000-01-03  Paul Eggert  <eggert@twinsun.com>
38912
38913         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
38914         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
38915
38916 2000-01-02  Jim Meyering  <meyering@ascend.com>
38917
38918         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
38919         remember if this is necessary.
38920
38921 1999-12-26  Jim Meyering  <meyering@ascend.com>
38922
38923         * m4/jm-macros.m4: Use it here.
38924         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
38925
38926 1999-12-23  Jim Meyering  <meyering@ascend.com>
38927
38928         * m4/jm-macros.m4: Check for clock_gettime (moved from
38929         fileutils/configure.in)
38930         Check for gettimeofday.
38931
38932 1999-12-20  Jim Meyering  <meyering@ascend.com>
38933
38934         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
38935         autoconf-2.14a-1999-12-20.
38936
38937 1999-12-19  Jim Meyering  <meyering@ascend.com>
38938
38939         * m4/lstat-slash.m4: New file.
38940         * m4/jm-macros.m4: Use the new macro:
38941         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
38942
38943 1999-12-07  Jim Meyering  <meyering@ascend.com>
38944
38945         * m4/perl.m4: Require that File::Compare be available, too.
38946         Too many systems seem to lack it.
38947
38948         * m4/strftime.m4: Add checks for most of the cpp macros tested in
38949         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
38950
38951 1999-11-18  Paul Eggert  <eggert@twinsun.com>
38952
38953         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
38954         problem with the QNX 4.25 shell, which doesn't propagate exit
38955         status of failed commands inside shell assignments.
38956
38957 1999-11-17  Jim Meyering  <meyering@ascend.com>
38958
38959         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
38960
38961 1999-11-07  Jim Meyering  <meyering@ascend.com>
38962
38963         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
38964
38965 1999-11-06  Jim Meyering  <meyering@ascend.com>
38966
38967         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
38968         * m4/jm-macros.m4 (jm_MACROS): Use it here.
38969
38970 1999-11-05  Jim Meyering  <meyering@ascend.com>
38971
38972         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
38973         configure.in of textutils, fileutils, and sh-utils into this one
38974         (shared between those packages) file.
38975         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
38976         AC_STRUCT_ST_BLKSIZE.
38977
38978 1999-11-03  Jim Meyering  <meyering@ascend.com>
38979
38980         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
38981         of AC_CHECK_TYPE checks includes unistd.h.
38982         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
38983         Suggestion from Akim Demaille.
38984
38985 1999-10-30  Jim Meyering  <meyering@ascend.com>
38986
38987         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
38988         m4-quoted string.
38989         * m4/ls-mntd-fs.m4: Likewise.
38990         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
38991         * m4/jm-winsz1.m4: Likewise.
38992
38993         * m4/const.m4: Remove file, since the fix made it into the experimental
38994         version of autoconf.
38995         * m4/mktime.m4: Likewise.
38996
38997         * m4/check-type.m4: Remove file, now that the latest version of
38998         AC_CHECK_TYPE takes a third arg to specify additional #includes.
38999
39000         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
39001         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
39002         AC_CHECK_TYPE.
39003
39004 1999-10-04  Jim Meyering  <meyering@ascend.com>
39005
39006         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
39007
39008 1999-09-22  Paul Eggert  <eggert@twinsun.com>
39009
39010         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
39011         2.95.1 bug with HP-UX 10.20.
39012
39013 1999-09-17  Jim Meyering  <meyering@ascend.com>
39014
39015         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
39016         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
39017         due to missing strdup (against sh-utils-2.0).
39018
39019 1999-08-29  Jim Meyering  <meyering@ascend.com>
39020
39021         * m4/jm-macros.m4: Require jm_BISON.
39022         * m4/bison.m4: New file.
39023
39024 1999-08-17  Paul Eggert  <eggert@twinsun.com>
39025
39026         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
39027         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
39028
39029 1999-08-05  Jim Meyering  <meyering@ascend.com>
39030
39031         * m4/getline.m4: Rename test file from conftestdata to conftest.data
39032         to avoid conflicts with `conftest' on 8+3 filesystems.
39033         Suggestion from Eli Zaretskii.
39034
39035 1999-08-04  Jim Meyering  <meyering@ascend.com>
39036
39037         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
39038         fileutils and sh-utils (textutils's getline test was inadequate).
39039         (AM_FUNC_GETLINE): Run this test.
39040         (AC_CHECK_FUNCS): Check for getdelim.
39041         Reported by Bob Proulx.
39042
39043 1999-08-02  Jim Meyering  <meyering@ascend.com>
39044
39045         * m4/jm-macros.m4: Add a comment.
39046
39047 1999-08-01  Paul Eggert  <eggert@twinsun.com>
39048
39049         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
39050         <inttypes.h> defines strtoumax as a macro (and not as a
39051         function).
39052
39053 1999-08-01  Paul Eggert  <eggert@twinsun.com>
39054
39055         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
39056         that we can shift, multiply and divide unsigned long long
39057         values; Ultrix cc can't do it.
39058
39059 1999-08-01  Paul Eggert  <eggert@twinsun.com>
39060
39061         * m4/mktime.m4: New file, which is a preview of what should appear
39062         in the next public autoconf release.
39063
39064 1999-08-01  Paul Eggert  <eggert@twinsun.com>
39065
39066         * m4/lfs.m4: Remove this file.
39067         * m4/largefile.m4: New file.  It contains the old contents of
39068         lfs.m4, except that all names with prefix AC_LFS have been
39069         changed to use the prefix AC_SYS_LARGEFILE instead, to be
39070         compatible with future autoconf versions.  Also, some minor m4
39071         quoting problems have been fixed.
39072
39073 1999-08-01  Paul Eggert  <eggert@twinsun.com>
39074
39075         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
39076         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
39077         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
39078         and simplify the shell code.
39079
39080 1999-08-01  Jim Meyering  <meyering@ascend.com>
39081
39082         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
39083         m4.
39084
39085 1999-07-20  Jim Meyering  <meyering@ascend.com>
39086
39087         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
39088
39089 1999-07-15  Jim Meyering  <meyering@ascend.com>
39090
39091         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
39092
39093 1999-05-22  Jim Meyering  <meyering@ascend.com>
39094
39095         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
39096
39097 1999-05-20  Jim Meyering  <meyering@ascend.com>
39098
39099         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
39100         Add a colon after each `then' in case $4 is empty.
39101
39102 1999-05-16  Jim Meyering  <meyering@ascend.com>
39103
39104         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
39105
39106 1999-05-10  Jim Meyering  <meyering@ascend.com>
39107
39108         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
39109
39110         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
39111         AC_FUNC_MKTIME.
39112
39113 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
39114
39115         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
39116
39117 1999-05-04  Paul Eggert  <eggert@twinsun.com>
39118
39119         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
39120         not CPPFLAGS, so that linking works correctly in IRIX.
39121
39122 1999-04-30  Paul Eggert  <eggert@twinsun.com>
39123
39124         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
39125
39126 1999-04-20  Paul Eggert  <eggert@twinsun.com>
39127
39128         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
39129         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
39130         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
39131         jm_AC_TYPE_UNSIGNED_LONG_LONG.
39132         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
39133
39134         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
39135
39136 1999-04-20  Jim Meyering  <meyering@ascend.com>
39137
39138         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
39139         AC_REPLACE xstroull if necessary.  From Paul Eggert.
39140         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
39141
39142 1999-04-18  Jim Meyering  <meyering@ascend.com>
39143
39144         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
39145         * m4/jm-macros.m4: Use it.
39146
39147 1999-04-06  Jim Meyering  <meyering@ascend.com>
39148
39149         * m4/strftime.m4: Remove test for %f.
39150
39151 1999-03-29  Jim Meyering  <meyering@ascend.com>
39152
39153         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
39154         superset of the AC_TYPE_* checks in the textutils, fileutils,
39155         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
39156         AC_TYPE_PID_T.
39157
39158 1999-03-28  Jim Meyering  <meyering@ascend.com>
39159
39160         * m4/jm-macros.m4: Define GNU_PACKAGE here.
39161         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
39162         replaced e.g., in the *.sh files of the sh-utils.
39163
39164 1999-03-20  Jim Meyering  <meyering@ascend.com>
39165
39166         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
39167         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
39168         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
39169
39170 1999-03-19  Jim Meyering  <meyering@ascend.com>
39171
39172         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
39173
39174 1999-03-12  Jim Meyering  <meyering@ascend.com>
39175
39176         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
39177
39178 1999-03-07  Jim Meyering  <meyering@ascend.com>
39179
39180         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
39181         declared.
39182
39183 1999-02-17  Jim Meyering  <meyering@ascend.com>
39184
39185         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
39186         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
39187
39188 1999-02-07  Jim Meyering  <meyering@ascend.com>
39189
39190         * m4/group-member.m4: New file -- extracted from sh-utils'
39191         configure.in.
39192
39193         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
39194         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
39195
39196 1999-02-06  Jim Meyering  <meyering@ascend.com>
39197
39198         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
39199         * m4/fnmatch.m4: Likewise.
39200         * m4/getgroups.m4: Likewise.
39201         * m4/lstat.m4: Likewise.
39202         * m4/malloc.m4: Likewise.
39203         * m4/putenv.m4: Likewise.
39204         * m4/realloc.m4: Likewise.
39205         * m4/regex.m4: Likewise.
39206         * m4/stat.m4: Likewise.
39207         * m4/strftime.m4: Likewise.
39208         Suggestion from Alain Magloire.
39209
39210         * m4/chown.m4: Use `.$ac_objext', not `.o'.
39211         * m4/fnmatch.m4: Likewise.
39212         * m4/getgroups.m4: Likewise.
39213         * m4/getline.m4: Likewise.
39214         * m4/lstat.m4: Likewise.
39215         * m4/malloc.m4: Likewise.
39216         * m4/memcmp.m4: Likewise.
39217         * m4/putenv.m4: Likewise.
39218         * m4/realloc.m4: Likewise.
39219         * m4/regex.m4: Likewise.
39220         * m4/stat.m4: Likewise.
39221         * m4/strftime.m4: Likewise.
39222         Suggestion from Alain Magloire.
39223
39224         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
39225         an argument.
39226
39227         * m4/regex.m4: Add a run-time Test for proper operation of
39228         re_compile_pattern.
39229
39230 1999-01-31  Jim Meyering  <meyering@ascend.com>
39231
39232         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
39233
39234 1999-01-30  Jim Meyering  <meyering@ascend.com>
39235
39236         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
39237
39238         * m4/jm-mktime.m4: Make this a wrapper around the official
39239         AM_FUNC_MKTIME rather than my private copy, now that the official one
39240         is up to date.
39241         * m4/mktime.m4: Remove file.
39242
39243         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
39244         * m4/uptime.m4: Likewise.
39245         * m4/uintmax_t.m4: Likewise.
39246
39247 1999-01-28  Jim Meyering  <meyering@ascend.com>
39248
39249         * m4/jm-macros.m4: Use jm_AFS.
39250         * m4/afs.m4: New file (from fileutils' configure.in).
39251
39252         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
39253         * m4/chown.m4: Likewise.
39254         * m4/d-ino.m4: Likewise.
39255         * m4/d-type.m4: Likewise.
39256         * m4/fnmatch.m4: Likewise.
39257         * m4/getgroups.m4: Likewise.
39258         * m4/gettext.m4: Likewise.
39259         * m4/jm-mktime.m4: Likewise.
39260         * m4/jm-winsz2.m4: Likewise.
39261         * m4/lcmessage.m4: Likewise.
39262         * m4/ls-mntd-fs.m4: Likewise.
39263         * m4/malloc.m4: Likewise.
39264         * m4/memcmp.m4: Likewise.
39265         * m4/putenv.m4: Likewise.
39266         * m4/realloc.m4: Likewise.
39267         * m4/st_mtim.m4: Likewise.
39268         * m4/strftime.m4: Likewise.
39269
39270 1999-01-16  Jim Meyering  <meyering@ascend.com>
39271
39272         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
39273         (ARGMATCH_DIE_DECL): Define.
39274
39275 1999-01-12  Jim Meyering  <meyering@ascend.com>
39276
39277         * m4/Makefile.am.in: Rewrite to avoid using fmt.
39278         Reported by Lars Hecking.
39279
39280 1999-01-10  Jim Meyering  <meyering@ascend.com>
39281
39282         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
39283         gross kludge.
39284         * m4/inttypes_h.m4: Likewise.
39285         * m4/lstat.m4: Likewise.
39286         * m4/malloc.m4: Likewise.
39287         * m4/readdir.m4: Likewise.
39288         * m4/realloc.m4: Likewise.
39289         * m4/st_dm_mode.m4: Likewise.
39290         * m4/stat.m4: Likewise.
39291         * m4/utimbuf.m4: Likewise.
39292         * m4/utimes.m4: Likewise.
39293
39294         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
39295         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
39296         comments in config.h.in are meaningful.
39297
39298         * m4/jm-macros.m4: Require autoconf-2.13 here.
39299
39300         * m4/regex.m4: By default, don't use the included regex.c on systems
39301         with glibc 2.  Suggestion from Uli Drepper.
39302
39303 1999-01-02  Jim Meyering  <meyering@ascend.com>
39304
39305         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
39306
39307 1998-12-18  Jim Meyering  <meyering@ascend.com>
39308
39309         * m4/Makefile.am.in (Makefile.am): Simplify rule.
39310         Based on a suggestion from Lars Hecking.
39311
39312 1998-11-16  Paul Eggert  <eggert@twinsun.com>
39313
39314         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
39315
39316 1998-11-16  Jim Meyering  <meyering@ascend.com>
39317
39318         * m4/lfs.m4: Double-quote the `uname...` expression.
39319
39320 1998-11-14  Jim Meyering  <meyering@ascend.com>
39321
39322         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
39323         * m4/stat.m4: Likewise.
39324
39325 1998-11-03  Jim Meyering  <meyering@ascend.com>
39326
39327         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
39328         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
39329
39330 1998-10-18  Jim Meyering  <meyering@ascend.com>
39331
39332         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
39333
39334 1998-10-17  Jim Meyering  <meyering@ascend.com>
39335
39336         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
39337         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
39338         calls for those previously hard-coded headers.  Instead, take a new
39339         parameter.
39340         (jm_CHECK_DECLARATIONS): Reflect interface change.
39341         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
39342         (jm_CHECK_DECL_LOCALTIME_R): New macro.
39343
39344         * m4/mktime.m4: Test for spring-forward gap before long-running test.
39345
39346 1998-10-14  Jim Meyering  <meyering@ascend.com>
39347
39348         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
39349         instead of "TZ=America/Vancouver".  From Paul Eggert.
39350
39351 1998-10-11  Jim Meyering  <meyering@ascend.com>
39352
39353         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
39354         This adds a test for a recently added compatibility fix for mktime.c.
39355         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
39356
39357 1998-09-27  Jim Meyering  <meyering@ascend.com>
39358
39359         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
39360
39361         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
39362         ../configure.in, including a change from Gordon Matzigkeit to allow
39363         cross-compiling for the Hurd.
39364
39365         * m4/glibc.m4: New file/macro to test for the GNU C Library
39366         versions 1 and 2.  From Gordon Matzigkeit.
39367         Indent.
39368
39369 1998-09-21  Jim Meyering  <meyering@ascend.com>
39370
39371         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
39372
39373 1998-08-18  Paul Eggert  <eggert@twinsun.com>
39374
39375         Port nanosecond-resolution times to UnixWare 2.1.2 and
39376         pedantic Solaris 2.6.
39377
39378         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
39379         AC_STRUCT_ST_MTIM.
39380         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
39381         Generate name of ns member, instead of just 1 or undef.
39382         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
39383
39384 1998-08-15  Jim Meyering  <meyering@ascend.com>
39385
39386         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
39387         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
39388         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
39389         instead of jm_TYPE_SSIZE_T.
39390
39391 1998-08-12  Jim Meyering  <meyering@ascend.com>
39392
39393         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
39394
39395 1998-08-02  Jim Meyering  <meyering@ascend.com>
39396
39397         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
39398         in acconfig.h manually.
39399
39400 1998-07-31  Paul Eggert  <eggert@twinsun.com>
39401
39402         * m4/st_mtim.m4: New file.
39403
39404 1998-07-28  Jim Meyering  <meyering@ascend.com>
39405
39406         * m4/utimes.m4: Undef stat.
39407
39408 1998-07-25  Jim Meyering  <meyering@ascend.com>
39409
39410         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
39411         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
39412
39413 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
39414
39415         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
39416         uid and gid actually remain unchanged.
39417
39418 1998-07-07  Jim Meyering  <meyering@ascend.com>
39419
39420         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
39421
39422 1998-07-04  Jim Meyering  <meyering@ascend.com>
39423
39424         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
39425         to prove that this macro can be used in packages without regex.c.
39426
39427 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
39428
39429         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
39430         is to be used.
39431
39432 1998-07-03  Jim Meyering  <meyering@ascend.com>
39433
39434         * m4/gettext.m4: Add -lintl if it's found to be necessary.
39435
39436         * m4/gettext.m4: New file -- from gettext-0.10.35.
39437         * m4/lcmessage.m4: Likewise.
39438         * m4/progtest.m4: Likewise.
39439
39440         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
39441         * m4/jm-macros.m4: Require the new macro.
39442
39443 1998-06-29  Jim Meyering  <meyering@ascend.com>
39444
39445         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
39446         for the definition of NGROUPS (used in a system header included
39447         by sys/mount.h).
39448
39449 1998-06-28  Jim Meyering  <meyering@ascend.com>
39450
39451         * m4/ls-mntd-fs.m4: New file.
39452         * m4/fstypename.m4: New file.
39453
39454         * m4/jm-macros.m4: Require the new macro.
39455         * m4/jm-glibc-io.m4: New file.
39456
39457 1998-05-19  Jim Meyering  <meyering@ascend.com>
39458
39459         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
39460         * m4/lchown.m4: New file.
39461
39462         * m4/Makefile.am.in: New file.
39463         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
39464
39465 1998-05-14  Jim Meyering  <meyering@ascend.com>
39466
39467         * m4/Makefile.am (EXTRA_DIST): Add them.
39468         * m4/jm-macros.m4: New file.
39469         * m4/utimbuf.m4: New file.
39470
39471 1998-05-12  Jim Meyering  <meyering@ascend.com>
39472
39473         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
39474
39475 1998-05-11  Jim Meyering  <meyering@ascend.com>
39476
39477         * m4/isc-posix.m4: New file.
39478
39479 1998-05-10  Jim Meyering  <meyering@ascend.com>
39480
39481         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
39482
39483 1998-05-09  Jim Meyering  <meyering@ascend.com>
39484
39485         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
39486         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
39487         with automake.
39488
39489         * m4/ssize_t.m4: New file.
39490         * m4/mktime.m4: Remove file -- the new automake has this now.
39491
39492 1998-04-26  Jim Meyering  <meyering@ascend.com>
39493
39494         * m4/assert.m4: New file.
39495         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
39496
39497 1998-04-05  Jim Meyering  <meyering@ascend.com>
39498
39499         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
39500         (jm_PREREQ): Use it here.
39501
39502 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
39503
39504         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
39505         in acconfig.h.
39506
39507 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
39508
39509         * m4/prereq.m4: New file.
39510         * m4/error.m4: New file.
39511         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
39512
39513 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
39514
39515         * m4/getline.m4: Don't set am_cv_func_working_getline before the
39516         cache-check for the same variable -- that defeated the purpose of
39517         the test; the test program was never run.  This was a problem only
39518         on systems with losing getline functions -- HP-UX 10.20 is one.
39519         Reported by Bjorn Helgaas.
39520
39521 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
39522
39523         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
39524
39525 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
39526
39527         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
39528
39529         * m4/const.m4: New file.  Use an initializer in this declaration
39530         typedef int charset[2]; const charset x;
39531         Reported by Bob Glickstein.
39532
39533 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
39534
39535         * m4/chown.m4: Fix reversed types on -1 args to chown.
39536         From Kaveh Ghazi.
39537
39538 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
39539
39540         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
39541         Add lseek and memchr.
39542
39543         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
39544         T.E.Dickey <dickey@clark.net> said that some older preprocessors
39545         have a 20-character limit on names.
39546
39547 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
39548
39549         * m4/inttypes_h.m4: New file.
39550         * m4/uintmax_t.m4: New file.
39551         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
39552
39553
39554         -----
39555
39556         Copyright (C) 1997-2008 Free Software Foundation, Inc.
39557
39558         Copying and distribution of this file, with or without
39559         modification, are permitted provided the copyright notice
39560         and this notice are preserved.